test-collaboration

test-collaboration is a skill for Claude Code, Codex from Seekers2001/docs-governance. It costs 183 tokens per session (2,470 once invoked), scanned A, original, MIT.

A testing-governance skill that maps existing tests and records which requirements, rules, risks, and bugs need test coverage. It maintains this information in TESTS.md and connects it to executable evidence.

In plain words
What is it for?
Use it to inventory tests, analyze missing coverage, turn bugs into regression checks, review unit, integration, contract, end-to-end, and smoke tests, and maintain testing evidence.
Why use it?
It makes testing gaps and important coverage visible without copying every test into a document.

Skill for Claude CodeCodex

Part of the docs-governance plugin — 8 skills, 7 commands, 6 agents, 1 hook shipped together

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.

agentmods
npx agentmods add skills/seekers2001/docs-governance/test-collaboration
Any agent
npx skills add Seekers2001/docs-governance --skill test-collaboration
Clone the repo
git clone --depth 1 https://github.com/Seekers2001/docs-governance

Made for: Claude Code, Codex.

Or install docs-governance, the plugin that ships this one along with the rest of its 8 skills, 7 commands, 6 agents, 1 hook.

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 test-collaboration

README.md
[![agentmods](https://agentmods.dev/badge/skills/seekers2001/docs-governance/test-collaboration.svg)](https://agentmods.dev/skills/seekers2001/docs-governance/test-collaboration)
Your own site
<a href="https://agentmods.dev/skills/seekers2001/docs-governance/test-collaboration"><img src="https://agentmods.dev/badge/skills/seekers2001/docs-governance/test-collaboration.svg" alt="Measured on agentmods" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,470 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00183 $0.02470
Opus 5 $0.00092 $0.01235
Sonnet 5 $0.00037 $0.00494
Haiku 4.5 $0.00018 $0.00247

Measured 3d ago against content hash 476d2152e8a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-collaboration 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 3d 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.

skills/test-collaboration/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

测试协作治理(test-collaboration)

目标

用项目根目录的 TESTS.md 管理两类信息:

  1. 现有测试资产地图:项目已经有哪些测试、从哪里运行、保护什么。
  2. 必要测试点清单:哪些需求、规则、风险和 Bug 必须被测试保护,当前证据是否足够。

清单管理的是“为什么测、测什么、证据在哪”,测试代码仍然是可执行事实。不要把 TESTS.md 写成每个测试函数的镜像。

职责边界

资产 唯一职责
TESTS.md 测试资产、必要测试点、缺口、状态和证据
测试代码 可执行输入、断言、fixture/fake 和边界模拟
REGRESSION.md 模块下游、回归命令和改动后的重跑规则;只引用 TEST-ID
Spec/Issue 成功标准、问题现象、影响、优先级、任务状态和排期的唯一来源
PROJECT_LOG.md 只追加测试状态变化和交付结论,不复制整个清单

v1 由当前会话直接执行本 skill,不新增专用 agent、slash command 或强制脚本。

开始前读取

按存在性读取,不要求项目拥有全部文件:

  1. TESTS.mdtemplates/TESTS.example.md
  2. 项目规则和地图,如 CLAUDE.mdAGENTS.mdCLAUDE_MAP.md
  3. 测试目录、测试配置、CI 配置、标准测试入口和专用测试任务。
  4. Spec、Bug、Issue、审计、事故或回归清单;成功标准只引用,不复制进 TESTS.md
  5. REGRESSION.md,用于对齐模块回归命令与 TEST-ID。
  6. 跨端接口的机器可读契约及生成/校验入口,例如 OpenAPI、JSON Schema、GraphQL schema 或 protobuf。

先识别仓库已有的测试框架和命名习惯,不强迫项目改成统一目录结构。

工作模式

1. 盘点现有测试资产

首次采用时做一次全量盘点,之后按事件增量维护:

  1. 找到标准测试入口,例如 pytestnpm testmake test 或项目脚本。
  2. 扫描测试目录、配置和 CI;可以使用 collect/list 模式,但不要为了盘点执行高风险外部操作。
  3. 按模块、测试套件或关键流程聚合,禁止手抄每个测试函数。
  4. 标注层级、用途、执行组、外部依赖、位置和当前判断。
  5. 将资产判断为:必要、疑似重复、缺失或疑似废弃。盘点阶段只报告,不擅自删除或重写测试。

重新盘点由事件触发,不按日历机械执行:

  • 首次建立 TESTS.md:全量扫描。
  • 测试目录、测试配置、CI 或标准入口变化:重扫受影响区域。
  • 新增或更新 TEST-ID、Bug:增量核对相关模块。
  • 重大功能、接口、业务规则或安全边界变化:重扫对应链路。
  • 交付前或 /governance-sync 收尾:核对本次变更涉及的条目。
  • 只有测试体系整体重构或地图明显失真时,才再次全量扫描。

2. 把需求、规则和风险转成 TEST-ID

每个必要测试点使用稳定 ID,例如 TEST-ORDER-001。至少记录:

  • 状态:待补开发中已覆盖不适用
  • 来源:需求、规则、风险、Bug 或事故编号。
  • 模拟输入与业务预期。
  • 层级与用途。
  • 执行组和真实/模拟边界。
  • 测试文件、测试节点和可执行命令。

来源必须链接回 Spec/Issue 中的原始成功标准。TESTS.md 只回答“哪条证据验证它”,不得另写一份可独立漂移的业务标准。成功标准含糊时,回到需求澄清能力或请项目负责人确认,不由测试 Skill 猜测。

受控层级:单元集成契约E2E冒烟

受控用途:规则保护关键链路回归保护专项保护。需要多个用途时用逗号分隔,不能临时发明新值。

不适用 必须写理由,例如风险由 schema、类型系统或 lint 更合适地机械拦截。不能用“不好测”作为理由。

3. 把 Bug 转成回归保护

修复 Bug 时,必须二选一:

  1. 新增或关联一个 TEST-ID;或
  2. 明确记录为什么只能人工验收,以及人工验收步骤和证据。

TEST-ID 应复现真实失败形状,而不是换成更容易通过的相似输入。记录修复前失败、修复后通过的证据;如果无法先运行旧代码,至少说明复现依据和未实测项。

没有 TEST-ID 或明确的人工出口,不得宣称 Bug 已完整闭环。

Read the full file on GitHub · 147 lines

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. 3d ago First seen · 147 lines · 183 tokens per session scan A 476d2152e8a6

Subscribe to this mod's changes

test-collaboration is a skill published in the GitHub repository Seekers2001/docs-governance (11 stars, last pushed 21d ago), licensed MIT. It adds 183 tokens to every session and 2,470 once invoked, about $0.0009 per session on Opus 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-31.

Related

Other skills, from other repositories