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.
npx agentmods add commands/xu-xiang/everything-claude-code-zh/test-coveragegit clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zhWrote 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.
[](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/test-coverage)<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/test-coverage"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/test-coverage.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00007 | $0.00547 |
| Opus 5 | $0.00003 | $0.00273 |
| Sonnet 5 | $0.00001 | $0.00109 |
| Haiku 4.5 | $0.00001 | $0.00055 |
Grade A, and why
test-coverage 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 4d 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.
What it actually says
测试覆盖率命令 (Test Coverage Command)
分析测试覆盖率并识别缺口:$ARGUMENTS
你的任务 (Your Task)
- 运行覆盖率报告:
npm test -- --coverage - 分析结果 - 识别低覆盖率区域
- 优先处理缺口 - 核心代码优先
- 生成缺失的测试 - 针对未覆盖的代码
覆盖率目标 (Coverage Targets)
| 代码类型 | 目标 |
|---|---|
| 标准代码 | 80% |
| 金融逻辑 | 100% |
| 认证/安全 | 100% |
| 工具库 | 90% |
| UI 组件 | 70% |
覆盖率报告分析 (Coverage Report Analysis)
摘要 (Summary)
文件 | % 语句 | % 分支 | % 函数 | % 行数
---------------|---------|----------|---------|--------
所有文件 | XX | XX | XX | XX
低覆盖率文件 (Low Coverage Files)
[低于目标的文件,按重要程度排序]
未覆盖的行 (Uncovered Lines)
[需要测试的具体行]
测试生成 (Test Generation)
对于每个未覆盖的区域:
[函数/组件名称]
位置: src/path/file.ts:123
覆盖率缺口: [说明]
建议的测试:
describe('functionName', () => {
it('should [expected behavior]', () => {
// 测试代码
})
it('should handle [edge case]', () => {
// 边界情况测试
})
})
覆盖率提升计划 (Coverage Improvement Plan)
-
紧急 (立即添加)
- file1.ts - 认证逻辑
- file2.ts - 支付处理
-
高 (本迭代添加)
- file3.ts - 核心业务逻辑
-
中 (修改文件时添加)
- file4.ts - 工具库
重要提示: 覆盖率是一个指标,而非最终目标。应专注于有意义的测试,而不只是为了追求数字。
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.
- 4d ago First seen · 81 lines · 7 tokens per session scan A 1c79460fb562
test-coverage is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,927 stars, last pushed 6mo ago), licensed MIT. It adds 7 tokens to every session and 547 once invoked, about $0.0000 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-30.
Other commands, from other repositories
awesome-chatgpt
Search awesome-ChatGPT-repositories for open-source GitHub repositories related to ChatGPT and LLMs.
init
Scaffold a new MindBase project (v2 layout). Usage: /mb:init [template] [-- mission ...].
commit
智能生成 Git 提交信息并提交.
pr
Handle the full workflow from current branch state to an open, CI-monitored pull request.
doctor.es
Diagnostica problemas de inferencia LLM en Mac: asiai doctor verifica el estado de los motores, conflictos de puertos, carga de modelos y estado de la GPU.
requirement-review
需求文档多角色评审(requirement-review):需求文档 → 7-Agent 并行评审 → 重构高质量需求文档(Runtime 受控流程,0-7 阶段状态机).