前言¶
When doing operations or collaboration in QQ groups, the common need is not “send one message,” but creating groups, editing profiles, approving join requests, muting, removing members, and adjusting roles. If every time you have to open the console or hand-write REST calls, it is hard for an Agent to reliably take over such workflows.
Below we introduce the QQ Group Chat skill (CLI version) on SkillHub. It wraps group and member management capabilities into a unified command-line entry point and documents them in a standard SKILL.md, so clients that support Skills—such as Cursor, Claude Code, and Codex—can trigger them in-conversation based on scenarios.
What This Is¶
The QQ Group Chat skill is an Agent Skill for QQ group chats (not QQ channels). Its current installation identifier on SkillHub is @indiv-yj/qq-group-chat, version 1.0.0. The Skill’s metadata describes it as: create/set/search/join/leave/dismiss groups; plus member management, muting, removal, role setting, invitations, transferring the group owner, etc. It should be triggered when the user mentions QQ groups, group chats, group management, or group members and involves the above operations. It explicitly does not apply to QQ channel management (use tencent-channel-community), pure message send/receive, or friend management.
Implementation-wise, all operations are invoked through scripts/qq-group-cli.py under the Skill directory and connect to the Tencent Cloud IM REST API and the QQ bot open platform API (see the Tencent Cloud IM documentation referenced by the Skill’s homepage). Credentials are stored in the user directory at ~/.qqgroup-cli/config.json (guided by the login subcommand).
The official page in the task clues is https://api.skillhub.cn/user_83961fe8/qq-group-chat; that URL cannot be fetched directly in the current environment. The SkillHub frontend path https://skillhub.cn/skills/user_83961fe8/qq-group-chat shows the Skill no longer exists or has been taken offline. For installation and discovery, use the CLI result as authoritative: skillhub search qq-group-chat will list @indiv-yj/qq-group-chat.
Core Capabilities¶
The Skill divides capabilities into two domains, with details handled in documents under references/.
Group Management (manage)¶
Corresponds to references/manage-group.md, including but not limited to:
- Create a group, modify group profiles, fetch group info/group list
- Search groups, join a group, leave a group, dismiss a group
- Get join requests
Supported group types include Public, Private (Work), ChatRoom (Meeting), AVChatRoom, Community, etc.; the Skill includes notes on the characteristics of each type.
Member Management (member)¶
Corresponds to references/manage-member.md, including but not limited to:
- Member list, member info, online count
- Mute member, mute all, remove member (kick)
- Set member role, modify group nickname, invite to group, transfer group owner
When unsure about parameters, you can query definitions via the schema subcommand, e.g., python3 scripts/qq-group-cli.py schema manage.create-group.
Agent-Side Constraints (Hard Rules in the Skill)¶
The Skill requires the Agent, for high-risk operations such as dismissing a group, kicking members, muting, and transferring the group owner, to first explain the impact and obtain the user’s consent; when the API returns a rate-limit error (ErrorCode 10006), sleep for 5 seconds and retry once; all operations must use GroupId (e.g., @TGS#...) and not mix it with ordinary group numbers; when not logged in, manage / member commands must not be executed.
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
Follow the SkillHub installation instructions to check or install the CLI:
command -v skillhub && skillhub --version
If not installed, you can run (full install, including default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install the QQ Group Chat skill into the current Agent’s skills directory¶
When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, the default ./skills/ may not be loaded. Common paths (from the official installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/in the project
Installation example:
skillhub search qq-group-chat
skillhub install qq-group-chat --namespace indiv-yj --dir ~/.cursor/skills/
You can also ask the Agent to follow the installation docs using a natural-language install prompt (package name @indiv-yj/qq-group-chat):
Please install `@indiv-yj/qq-group-chat` according to https://skillhub.cn/install/skillhub.md.
After installation, restart or refresh the Skills list as required by each client.
3. Configure authentication (required before performing any group operations)¶
Open a terminal in the Skill directory and run interactive login:
python3 scripts/qq-group-cli.py login
Option 1 (recommended, fullest features): Tencent Cloud IM — create an app in the Tencent Cloud IM console, choose 1, and fill in SDKAppID, SecretKey, and the admin account.
Option 2: QQ bot open platform — register a bot on QQ Open Platform, choose 2, and fill in AppID and AppSecret (some operations are limited).
Check status:
python3 scripts/qq-group-cli.py login --status
python3 scripts/qq-group-cli.py version
Typical Usage¶
The invocation form is unified as:
python3 scripts/qq-group-cli.py <domain> <action> [flags]
Complex parameters can be passed via stdin JSON (see the Skill documentation).
Create a group and invite members¶
Matching the Skill’s workflow example, you can first create a Public group and then use the returned GroupId to invite accounts:
python3 scripts/qq-group-cli.py manage create-group \
--type Public \
--name "技术交流群" \
--introduction "技术讨论与分享"
python3 scripts/qq-group-cli.py member invite-member \
--group-id <GroupId> \
--account zhangsan,lisi
Query parameters and modify group profiles¶
python3 scripts/qq-group-cli.py schema manage.modify-group-base-info
python3 scripts/qq-group-cli.py manage modify-group-base-info \
--group-id "@TGS#xxx" \
--name "新群名" \
--notification "新公告"
Mute then remove a member¶
High-risk steps require the Agent to confirm verbally first, then execute (Skill example):
python3 scripts/qq-group-cli.py member get-member-list --group-id <GroupId>
python3 scripts/qq-group-cli.py member mute-member \
--group-id <GroupId> \
--account <user_id> \
--duration 3600
python3 scripts/qq-group-cli.py member kick-member \
--group-id <GroupId> \
--account <user_id> \
--reason "发广告"
Suitable Scenarios and Notes¶
Suitable for: developers or operations staff who need to complete QQ group creation and configuration, search/join flows, and member/permission governance inside Agent conversations; who already have Tencent Cloud IM or QQ bot open platform credentials, and are willing to expose the CLI to the Skill.
Not suitable for: QQ channel community operations (use tencent-channel-community); only sending/receiving messages or maintaining friend relationships; environments that expect zero configuration and do not involve cloud-side or open platform credentials.
Notes:
- Some API capabilities are limited under QQ bot authentication; for full group management, prefer the Tencent Cloud IM approach.
- Sensitive information such as configuration, UserSig, SecretKey, etc., should not be echoed to users; the Skill requires minimizing the display of privacy fields like members’ QQ numbers during execution.
- The old
user_83961fe8namespace link may be invalid on SkillHub pages and download APIs; use installation from theindiv-yjnamespace as the authoritative method.
Closing¶
The QQ Group Chat skill consolidates a full chain—from creating a QQ group to member governance—into qq-group-cli.py and two reference documents, allowing the Agent to call official APIs under explicit trigger words and boundaries, instead of patching together ad-hoc HTTP requests. For discovery and installation, see the SkillHub CLI; the Skill page provided by the task is https://api.skillhub.cn/user_83961fe8/qq-group-chat, and the currently available package name is @indiv-yj/qq-group-chat.