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/xiaobei930/cc-best/stocktakegit 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/stocktake)<a href="https://agentmods.dev/commands/xiaobei930/cc-best/stocktake"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/stocktake.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.00015 | $0.01329 |
| Opus 5 | $0.00008 | $0.00665 |
| Sonnet 5 | $0.00003 | $0.00266 |
| Haiku 4.5 | $0.00002 | $0.00133 |
Grade A, and why
stocktake 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/stocktake - 组件库审计
定期审计插件组件的健康度,给出 Keep/Improve/Update/Retire/Merge 建议。
用法
/cc-best:stocktake # 快速扫描(仅检查自上次审计以来的变化)
/cc-best:stocktake --full # 全量审计
/cc-best:stocktake --scope rules # 仅审计 rules
/cc-best:stocktake --scope skills # 仅审计 skills
/cc-best:stocktake --scope commands # 仅审计 commands
角色定位
- 身份: 组件健康度审计员
- 目标: 识别需要维护、合并或淘汰的组件
- 原则: 基于客观指标评判,Retire/Merge 操作需用户确认
审计流程
Phase 1: 库存扫描
├─ 枚举目标目录下所有 .md 文件
├─ 提取 frontmatter 信息
├─ 收集最后修改时间(git log)
└─ 统计文件行数
Phase 2: 质量评估(每个组件)
├─ 内容质量: 结构完整性、是否有代码示例
├─ 时效性: 引用的工具/库是否过时
├─ 使用频度: 基于 observations.jsonl 统计(如存在)
└─ 重叠度: 与其他组件的内容相似度
Phase 3: Verdict 判定
├─ 综合 Phase 2 各维度
├─ 输出 Keep/Improve/Update/Retire/Merge
└─ 每个 verdict 附带理由
Phase 4: 输出报告
├─ 表格汇总
├─ 具体建议
└─ Retire/Merge 操作需用户确认
Verdict 判定标准
| Verdict | 条件 | 要求 |
|---|---|---|
| Keep | 有用且最新 | - |
| Improve | 值得保留但需改进 | 指出具体章节和改进方向 |
| Update | 引用技术过时 | 指出过时内容 |
| Retire | 低价值/过时/已被替代 | 说明替代方案 |
| Merge | 与另一组件重叠 | 指定合并目标 |
质量评估维度
内容质量(1-5 分)
| 分数 | 条件 |
|---|---|
| 5 | 结构完整 + 代码示例 + 与其他命令联动 |
| 4 | 结构完整 + 代码示例 |
| 3 | 结构完整但缺少示例 |
| 2 | 结构不完整(缺少关键章节) |
| 1 | 内容过少(<50 行)或格式混乱 |
时效性(1-5 分)
| 分数 | 条件 |
|---|---|
| 5 | 30 天内更新 |
| 4 | 90 天内更新 |
| 3 | 180 天内更新 |
| 2 | 超过 180 天未更新 |
| 1 | 超过 1 年未更新或引用过时 |
输出规范
简洁输出(默认/--quick)
══════════════════════════════════════════════════
STOCKTAKE REPORT
══════════════════════════════════════════════════
📊 扫描范围: [skills|rules|commands|all]
📅 审计日期: YYYY-MM-DD
| 组件 | Verdict | 分数 | 说明 |
| ------------------- | ------- | ----- | ------------- |
| skills/search-first | Keep | 4.5/5 | - |
| skills/compact | Improve | 3.5/5 | 缺少代码示例 |
| rules/common/xxx | Update | 2.0/5 | 引用版本过时 |
══════════════════════════════════════════════════
Keep: N | Improve: M | Update: K | Retire: R | Merge: S
══════════════════════════════════════════════════
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.
- 5d ago First seen · 144 lines · 15 tokens per session scan A 3c34538fe8e8
stocktake is a command published in the GitHub repository xiaobei930/cc-best (50 stars, last pushed 2mo ago), licensed MIT. It adds 15 tokens to every session and 1,329 once invoked, about $0.0001 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
audit-agents-skills
Audit quality of agents, skills, and commands in a Claude Code project.
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.
release
Release guide version (CHANGELOG + VERSION + README + landing sync + commit + push).