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.
git clone --depth 1 https://github.com/xiaobei930/cc-bestWrote 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/xiaobei930/cc-best/test)<a href="https://agentmods.dev/commands/xiaobei930/cc-best/test"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/test/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.
<a href="https://agentmods.dev/commands/xiaobei930/cc-best/test"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/test.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00005 | $0.00646 |
| Opus 5.5 | $0.00002 | $0.00258 |
| Sonnet 5.5 | $0.00001 | $0.00129 |
| Haiku 4.5 | $0.00001 | $0.00065 |
Grade A, and why
test 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 1mo 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 - 运行测试
运行项目测试套件。
自动检测
根据项目类型自动选择测试命令:
| 项目类型 | 检测文件 | 测试命令 |
|---|---|---|
| Python | pytest.ini, pyproject.toml |
pytest |
| Node.js | package.json |
npm test |
| Java Maven | pom.xml |
mvn test |
| Java Gradle | build.gradle |
gradle test |
| .NET | *.csproj, *.sln |
dotnet test |
| Go | go.mod |
go test ./... |
| Rust | Cargo.toml |
cargo test |
常用选项
Python (pytest)
pytest # 运行所有测试
pytest tests/unit/ # 运行指定目录
pytest -v # 详细输出
pytest --lf # 只运行上次失败的
pytest -k "test_user" # 按名称过滤
pytest --cov=src # 覆盖率报告
Node.js
npm test # 运行所有测试
npm test -- --watch # 监听模式
npm test -- --coverage # 覆盖率
npm test -- --grep "user" # 按名称过滤
Java
mvn test # Maven
mvn test -Dtest=UserServiceTest # 指定类
gradle test # Gradle
gradle test --tests "UserServiceTest" # 指定类
.NET
dotnet test # 运行所有测试
dotnet test --filter "FullyQualifiedName~User" # 过滤
dotnet test --collect:"XPlat Code Coverage" # 覆盖率
执行流程
1. 检测项目类型
└─ 查找配置文件
2. 运行测试
└─ 执行对应的测试命令
3. 报告结果
└─ 显示通过/失败数量
└─ 显示失败详情
失败处理
如果测试失败:
- 分析失败原因
- 如果是代码问题,调用
/cc-best:dev修复 - 如果是测试问题,更新测试用例
- 需要系统化测试改进时,调用
tdd-guideagent 指导 TDD 流程 - 重新运行测试验证
记住: 测试是信心的来源——没有测试的代码只是"可能工作",有测试的代码才是"确认工作"。
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.
- 1mo ago First seen · 88 lines · 5 tokens per session scan A 95fb74c52e1b
test is a command published in the GitHub repository xiaobei930/cc-best (48 stars, last pushed 4mo ago), licensed MIT. It adds 5 tokens to every session and 646 once invoked, about $0.0000 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.
Other commands, from other repositories
audit-whitepapers
Audit version freshness, FR/EN parity, and metadata quality of all whitepapers and recap cards.
audit-repo-docs
Audit repository documentation against 85+ best practices from claude-code-ultimate-guide.
boldguy-linkedin-answer
Draft a LinkedIn comment on a post, referencing the guide's relevant section, in Flow style with AI markers removed.
methodology-advisor
Analyzes your codebase and asks 3 targeted questions to recommend the right AI-assisted development methodology stack.
security-audit
Comprehensive security audit of your project AND Claude Code configuration. Analyzes secrets exposure, injection surfaces, dependencies, hook security, and produces a scored security posture assessment.
update-infos-release
Update Claude Code releases tracking (guide + landing + version bump).