qq-group-speaker-distinction

qq-group-speaker-distinction is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 32 tokens per session (392 once invoked), scanned A, original, MIT.

Rules for connecting QQ group chat, a messaging service, to one shared assistant session while keeping each participant identifiable. Every message includes a stable user ID and display name.

In plain words
What is it for?
Use it when implementing QQ group sessions, attaching speaker labels to incoming messages, and checking that multiple users reach the same session correctly.
Why use it?
It prevents messages from different people being merged or split into separate conversations when the group needs shared context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when implementing QQ group sessions, attaching speaker labels to incoming messages, and checking that multiple users reach the same session correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peiiii/nextclaw/qq-group-speaker-distinction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Peiiii/nextclaw --skill qq-group-speaker-distinction
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for qq-group-speaker-distinction

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/qq-group-speaker-distinction/github.svg)](https://agentmods.dev/skills/peiiii/nextclaw/qq-group-speaker-distinction)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/qq-group-speaker-distinction"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/qq-group-speaker-distinction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for qq-group-speaker-distinction

Your own site · 80×15
<a href="https://agentmods.dev/skills/peiiii/nextclaw/qq-group-speaker-distinction"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/qq-group-speaker-distinction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00392
Opus 5.5 $0.00013 $0.00157
Sonnet 5.5 $0.00006 $0.00078
Haiku 4.5 $0.00003 $0.00039

Measured 3mo ago against content hash d821a8dd561c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

qq-group-speaker-distinction scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/nextclaw-core/src/features/agent/shared/skills/qq-group-speaker-distinction/SKILL.md · 45 lines

What it actually says

QQ Group Speaker Distinction

Use this skill when the user says "do not isolate by user in group chat" but still needs speaker separation.

Core Rule

  • Keep one session key per group: qq:group:{group_id}.
  • Attach speaker identity on each inbound message before it enters model context.
  • Speaker identity must include stable user_id; nickname is only a display field.

Minimal Implementation

const sessionKey = `qq:group:${groupId}`;
const speakerTag = `[speaker:user_id=${userId};name=${displayName ?? "unknown"}]`;
const modelInput = `${speakerTag} ${rawText}`;

Add one system instruction for QQ group sessions:

  • "Use [speaker:...] to distinguish participants. Do not merge different speakers."

Anti-Patterns

  • Using qq:group:{group_id}:user:{user_id} when shared group context is required.
  • Passing only nickname without stable user_id.
  • Stripping speaker tags before session append or model input.

Validation Checklist

  1. Log group_id, user_id, final session_key, and final model input.
  2. Send two messages from different users in the same group.
  3. Confirm both messages hit the same session_key.
  4. Confirm each model input line has the correct speaker:user_id=... tag.

Best-Practice Memory Split

  • Conversation context: keyed by group_id only.
  • Optional profile memory: keyed by group_id + user_id for preference lookup only.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 45 lines · 32 tokens per session scan A d821a8dd561c

Subscribe to this mod's changes

qq-group-speaker-distinction is a skill published in the GitHub repository Peiiii/nextclaw (266 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 392 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

qq-group-speaker-distinction compared with skills from other repositories

qq-group-speaker-distinction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
qq-group-speaker-distinctionPeiiii/nextclawSkill266todayMITA32Claude Code, Codex
ha-skill-creatorshiwenwen/hope-agentSkill1.9ktodayMITA106Claude Code
ha-browsershiwenwen/hope-agentSkill1.9ktodayMITA140Claude Code
ha-logsshiwenwen/hope-agentSkill1.9ktodayMITA183Claude Code, Codex
ha-pet-importshiwenwen/hope-agentSkill1.9ktodayMITA109Codex
ha-skill-installershiwenwen/hope-agentSkill1.9ktodayMITA82Claude Code, Codex
email-draftshiwenwen/hope-agentSkill1.9ktodayMITA46Claude Code, Codex