claude-code-best-practice-zh: Command for Claude Code

.claude/commands/workflows/agent-collections.md

agent-collections is a command for Claude Code from Rito-w/claude-code-best-practice-zh. It costs 17 tokens per session (2,008 once invoked), scanned A, original, MIT.

A workflow for updating a README table of collections of ready-made coding agents. It researches repositories whose main contents are agent definition files or curated links.

In plain words
What is it for?
It is for researching listed agent-collection repositories, finding new ones, recording star counts and agent totals, sorting the table, and updating the changelog or README after approval.
Why use it?
It keeps the collection list, agent counts, and repository popularity current without requiring manual research of every repository.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is Rito-w/claude-code-best-practice-zh's own configuration. It tells Claude Code how to work on claude-code-best-practice-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-best-practice-zh configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Rito-w/claude-code-best-practice-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Rito-w/claude-code-best-practice-zh/main/.claude/commands/workflows/agent-collections.md
Clone the repo
git clone --depth 1 https://github.com/Rito-w/claude-code-best-practice-zh

Made for: Claude Code.

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 agent-collections

README.md
[![agentmods](https://agentmods.dev/badge/commands/rito-w/claude-code-best-practice-zh/agent-collections.svg)](https://agentmods.dev/commands/rito-w/claude-code-best-practice-zh/agent-collections)
Your own site
<a href="https://agentmods.dev/commands/rito-w/claude-code-best-practice-zh/agent-collections"><img src="https://agentmods.dev/badge/commands/rito-w/claude-code-best-practice-zh/agent-collections.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,008 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.
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.00017 $0.02008
Opus 5 $0.00009 $0.01004
Sonnet 5 $0.00003 $0.00402
Haiku 4.5 $0.00002 $0.00201

Measured 7d ago against content hash ffc1ab1ea280, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

agent-collections 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 7d 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.

.claude/commands/workflows/agent-collections.md · 165 lines

How it starts

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

工作流 — 代理集合(Agent Collections)

通过并行研究列出的仓库来更新 README.md 中的 AGENT COLLECTIONS 表格。启动研究代理,合并结果,报告变更,经批准后更新表格。


仓库列表

# 仓库 所有者
1 msitarzewski/agency-agents msitarzewski
2 VoltAgent/awesome-claude-code-subagents VoltAgent(精选 awesome-list)

当发现新的代理集合仓库时,将它们添加到这里 AND Phase 1 的研究提示中。


表格格式

README 表格包含以下列:

| Name | ★ | <img src="!/tags/a.svg" height="14"> |
  • 名称(Name)[短名称](github-url) — 使用仓库的可识别短名称(如 msitarzewski/agency-agentsawesome-claude-code-subagents)。仅在名称不明确时使用完整的 owner/repo
  • ★(Stars):星标数四舍五入到 k(如 92k、19k、1.2k)。低于 1000 显示精确数字。
  • 代理数量:仅数字。对于 awesome-list 中代理是链接而非文件的情况,使用 N+ (curated list) 格式。

排序顺序:按星标数降序排列(最高的在前)。


Phase 0:读取当前状态

读取以下文件:

  1. README.md## 🤖 AGENT COLLECTIONS 表格(记录当前星标数和代理数量)
  2. changelog/agent-collections/changelog.md — 之前的变更日志条目(可能尚不存在 — 首次运行时创建)

Phase 1:启动研究代理

立即 spawn 一个 development-workflows-research-agent 覆盖所有仓库。(现有的研究代理是通用的 — 它可以统计任何仓库的 agents/skills/commands/stars。)

研究这些 Claude Code 代理集合(agent-collection) 仓库。每个仓库主要是子代理定义文件的库(定义代理的 .md 文件),而非完整的工作流方法论。

仓库 1:msitarzewski/agency-agents (https://github.com/msitarzewski/agency-agents) — agency 风格子代理集合 仓库 2:VoltAgent/awesome-claude-code-subagents (https://github.com/VoltAgent/awesome-claude-code-subagents) — 精选 awesome-list(链接到外部子代理,并非所有代理都以文件形式存储在仓库中)

对于每个仓库,返回:

  1. 星标数(Stars) — 使用 GitHub API https://api.github.com/repos/{owner}/{repo},读取 stargazers_count。四舍五入到 k
  2. 代理数量 — 通过 GitHub git tree API 统计子代理定义 .md 文件: https://api.github.com/repos/{owner}/{repo}/git/trees/HEAD?recursive=1 并 grep 传统代理目录下的路径。
    • 对于 msitarzewski/agency-agents:代理通常位于 agents/.claude/agents/ 或分类子目录下。统计看起来像子代理定义的 .md 文件(frontmatter 包含 name:description:)。排除 README/CHANGELOG/LICENSE/docs。
    • 对于 VoltAgent/awesome-claude-code-subagents:统计 README.md 中列出的代理(如链接到外部仓库的项目符号/表格行)。明确标记为"curated list, not files in repo"。
    • 如果一个仓库既有精选索引又有自己的代理文件,报告两个数字并解释。
  3. 显著变更 — 过去 30 天内有任何重大添加或移除吗?

为每个仓库返回结构化报告:

REPO: msitarzewski/agency-agents
STARS: <number>k (<exact>)
AGENTS: <count> (<file pattern used, e.g., ".md files under agents/ via git tree">)
NOTES: <anything unusual — flat layout vs categorized, README-only catalog, deprecated agents, curated-list disclaimer>
CHANGES: <changes or "No significant changes">
CONFIDENCE: <0-1>

Read the full file on GitHub · 165 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. 7d ago First seen · 165 lines · 17 tokens per session scan A ffc1ab1ea280

Subscribe to this mod's changes

agent-collections is a command published in the GitHub repository Rito-w/claude-code-best-practice-zh (10 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 2,008 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-31.