research

research is a command for Claude Code from rongxinzy/claude-code-best-practice-zh. It costs 17 tokens per session (3,290 once invoked), scanned A, original, MIT.

A research command for evaluating a proposed product feature before detailed planning. It produces a report with a go or no-go recommendation.

In plain words
What is it for?
Use it with a feature request to analyze the market fit, inspect the codebase, assess implementation difficulty, and record the recommendation.
Why use it?
It helps decide whether an idea is worth building by checking its user value, technical feasibility, risks, and constraints.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it with a feature request to analyze the market fit, inspect the codebase, assess implementation difficulty, and record the recommendation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rongxinzy/claude-code-best-practice-zh/research
Install

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.

Clone the repo
git clone --depth 1 https://github.com/rongxinzy/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 research

README.md
[![agentmods](https://agentmods.dev/badge/commands/rongxinzy/claude-code-best-practice-zh/research.svg)](https://agentmods.dev/commands/rongxinzy/claude-code-best-practice-zh/research)
Your own site
<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="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 3,290 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.03290
Opus 5 $0.00009 $0.01645
Sonnet 5 $0.00003 $0.00658
Haiku 4.5 $0.00002 $0.00329

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

Security

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 8d 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.

development-workflows/rpi/.claude/commands/rpi/research.md · 382 lines

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 步初始功能描述之后)。

大纲

  1. 加载上下文:从 rpi/{功能标识}/ 读取功能描述和项目章程(如果存在)
  2. 解析功能请求:使用 requirement-parser agent 提取结构化需求
  3. 执行多阶段研究
    • 第 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)
  4. 综合建议:将所有分析组合成清晰的 go/no-go 建议
  5. 验证输出:对照质量门检查
  6. 报告完成:提供建议、后续步骤和报告位置

阶段

阶段 0:加载上下文

前提条件:提供了功能标识,rpi/{功能标识}/REQUEST.md 存在

过程

  1. 读取功能描述

    • 读取 rpi/{功能标识}/REQUEST.md(必需)
    • 从 REQUEST.md 提取功能需求和目标
  2. 检查项目章程(可选):

    • 查找仓库中的章程或原则文档
    • 常见位置:constitution.mdPRINCIPLES.md.project/constitution.md
    • 如果找到,提取核心原则、约束和目标
  3. 创建研究上下文

    • 综合成简洁的摘要供 agent 使用
    • 识别关键对齐标准

输出

  • 功能描述摘要
  • 章程原则(如果找到)
  • 评估的对齐标准

验证

  • 功能文件夹存在于 rpi/{功能标识}/
  • 提取了功能描述
  • 检查并加载了章程(如果存在)

第 1 阶段:解析功能请求

前提条件:阶段 0 完成

Agent:requirement-parser(规划域)

过程

  1. 启动 requirement-parser agent 并传入功能描述

  2. Agent 提取

    • 功能名称和类型
    • 目标组件
    • 目标和目的
    • 功能和非功能需求
    • 约束和假设
    • 复杂性估计
    • 澄清问题(如果有)
  3. 审查解析结果

    • 如果存在澄清问题,停止并询问用户再继续

输出

  • 结构化需求文档
  • 功能元数据(名称、类型、组件、复杂性)
  • 澄清问题(如果有)

第 2 阶段:产品分析与章程一致性

前提条件:第 1 阶段完成,需求清晰

Agent:product-manager

过程

  1. 启动 product-manager agent 并传入:

    • 第 1 阶段的解析需求
    • 第 0 阶段的章程上下文
  2. Agent 分析

    • 用户价值:谁受益?影响多大?
    • 市场契合:这与市场需求一致吗?
    • 产品愿景:这符合我们的产品战略吗?
    • 章程一致性:这与项目原则一致吗?
    • 约束检查:这是否违反任何章程约束?

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

Subscribe to this mod's changes

research is a command published in the GitHub repository rongxinzy/claude-code-best-practice-zh (6 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 3,290 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.