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/rongxinzy/claude-code-best-practice-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/rongxinzy/claude-code-best-practice-zh/research)<a href="https://agentmods.dev/commands/rongxinzy/claude-code-best-practice-zh/research"><img src="https://agentmods.dev/badge/commands/rongxinzy/claude-code-best-practice-zh/research/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/rongxinzy/claude-code-best-practice-zh/research"><img src="https://agentmods.dev/badge/commands/rongxinzy/claude-code-best-practice-zh/research.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.00017 | $0.03290 |
| Opus 5.5 | $0.00007 | $0.01316 |
| Sonnet 5.5 | $0.00003 | $0.00658 |
| Haiku 4.5 | $0.00002 | $0.00329 |
Grade A, and why
research 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 3mo 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 — 382 lines — stays where its author put it; the contents beside it link to each section on GitHub.
用户输入
$ARGUMENTS
你必须解析用户输入以提取功能标识(rpi/ 中的文件夹名称)。
预期输入格式:rpi/{功能标识}/REQUEST.md
目的
此命令在规划阶段开始之前对功能请求进行全面的研究和分析。它作为关键的 GO/NO-GO 门,决定功能想法是否应该进入详细规划。
关键目标:
- 评估产品市场契合度和用户价值
- 评估技术可行性和复杂性
- 识别风险和潜在阻塞
- 确定正确的方法(构建、购买、合作或放弃)
- 做出 go/no-go 建议并给出明确理由
前提条件:
- 功能文件夹存在于
rpi/{功能标识}/ - 功能请求文件存在于
rpi/{功能标识}/REQUEST.md
输出位置:rpi/{功能标识}/research/RESEARCH.md
这是 RPI 工作流的第 2 步(第 1 步初始功能描述之后)。
大纲
- 加载上下文:从
rpi/{功能标识}/读取功能描述和项目章程(如果存在) - 解析功能请求:使用 requirement-parser agent 提取结构化需求
- 执行多阶段研究:
- 第 1 阶段:解析功能请求(requirement-parser agent)
- 第 2 阶段:产品分析与章程一致性(product-manager agent)
- 第 2.5 阶段:技术发现(Explore agent) - 关键:深度代码探索
- 第 3 阶段:技术可行性(senior-software-engineer agent)
- 第 4 阶段:战略评估(technical-cto-advisor agent)
- 第 5 阶段:生成研究报告(documentation-analyst-writer agent)
- 综合建议:将所有分析组合成清晰的 go/no-go 建议
- 验证输出:对照质量门检查
- 报告完成:提供建议、后续步骤和报告位置
阶段
阶段 0:加载上下文
前提条件:提供了功能标识,rpi/{功能标识}/REQUEST.md 存在
过程:
-
读取功能描述:
- 读取
rpi/{功能标识}/REQUEST.md(必需) - 从 REQUEST.md 提取功能需求和目标
- 读取
-
检查项目章程(可选):
- 查找仓库中的章程或原则文档
- 常见位置:
constitution.md、PRINCIPLES.md、.project/constitution.md - 如果找到,提取核心原则、约束和目标
-
创建研究上下文:
- 综合成简洁的摘要供 agent 使用
- 识别关键对齐标准
输出:
- 功能描述摘要
- 章程原则(如果找到)
- 评估的对齐标准
验证:
- 功能文件夹存在于
rpi/{功能标识}/ - 提取了功能描述
- 检查并加载了章程(如果存在)
第 1 阶段:解析功能请求
前提条件:阶段 0 完成
Agent:requirement-parser(规划域)
过程:
-
启动 requirement-parser agent 并传入功能描述
-
Agent 提取:
- 功能名称和类型
- 目标组件
- 目标和目的
- 功能和非功能需求
- 约束和假设
- 复杂性估计
- 澄清问题(如果有)
-
审查解析结果:
- 如果存在澄清问题,停止并询问用户再继续
输出:
- 结构化需求文档
- 功能元数据(名称、类型、组件、复杂性)
- 澄清问题(如果有)
第 2 阶段:产品分析与章程一致性
前提条件:第 1 阶段完成,需求清晰
Agent:product-manager
过程:
-
启动 product-manager agent 并传入:
- 第 1 阶段的解析需求
- 第 0 阶段的章程上下文
-
Agent 分析:
- 用户价值:谁受益?影响多大?
- 市场契合:这与市场需求一致吗?
- 产品愿景:这符合我们的产品战略吗?
- 章程一致性:这与项目原则一致吗?
- 约束检查:这是否违反任何章程约束?
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.
- 3mo ago First seen · 382 lines · 17 tokens per session scan A bde9ae3dd72f
research is a command published in the GitHub repository rongxinzy/claude-code-best-practice-zh (9 stars, last pushed 7mo ago), licensed MIT. It adds 17 tokens to every session and 3,290 once invoked, about $0.0001 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-31.
research compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| researchrongxinzy/claude-code-best-practice-zh | Command | 9 | 7mo ago | MIT | A | 17 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 153k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | today | MIT | A | 14 | Claude Code |