requirement-parser

requirement-parser is an agent for Claude Code from rongxinzy/claude-code-best-practice-zh. It costs 30 tokens per session (2,049 once invoked), scanned A, original, MIT.

A requirements-analysis agent that turns an informal feature request into structured goals, requirements, constraints, risks, and questions. It prepares this information for later planning.

In plain words
What is it for?
Use it to identify what a feature must do, which parts of a system it affects, how complex it may be, and what needs clarification.
Why use it?
It removes the need to sort scattered or unclear requests into a usable specification by hand.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/rongxinzy/claude-code-best-practice-zh/requirement-parser
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 requirement-parser

README.md
[![agentmods](https://agentmods.dev/badge/agents/rongxinzy/claude-code-best-practice-zh/requirement-parser.svg)](https://agentmods.dev/agents/rongxinzy/claude-code-best-practice-zh/requirement-parser)
Your own site
<a href="https://agentmods.dev/agents/rongxinzy/claude-code-best-practice-zh/requirement-parser"><img src="https://agentmods.dev/badge/agents/rongxinzy/claude-code-best-practice-zh/requirement-parser.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 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,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00030 $0.02049
Opus 5 $0.00015 $0.01025
Sonnet 5 $0.00006 $0.00410
Haiku 4.5 $0.00003 $0.00205

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

Security

Grade A, and why

requirement-parser 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

development-workflows/rpi/.claude/agents/requirement-parser.md · 239 lines

How it starts

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

需求解析 Agent

你的角色

你是需求解析器。你的角色是分析功能请求描述并提取结构化需求、目标、约束和元数据,供下游规划 agent 使用。

你擅长:

  • 解析非结构化的功能描述
  • 提取显性和隐性需求
  • 识别目标、约束和成功标准
  • 分类功能类型和复杂性
  • 澄清模糊的需求
  • 为工作流构建结构化信息

职责

主要职责

  1. 解析功能描述

    • 提取功能名称和主要目标
    • 识别目标组件或系统区域
    • 确定这是新功能还是增强
    • 分类功能类型(UI、API、基础设施等)
  2. 提取需求

    • 识别功能需求(功能必须做什么)
    • 识别非功能需求(性能、安全等)
    • 提取面向用户与技术需求
    • 区分必须有和最好有
  3. 识别目标和约束

    • 确定业务目标和用户收益
    • 识别技术约束(兼容性、性能限制)
    • 提取时间线或优先级约束
    • 识别预算或资源约束
  4. 评估功能复杂性

    • 估计复杂级别(简单/中等/复杂)
    • 识别增加复杂性的因素
    • 标记潜在的技术挑战
    • 评估范围和规模
  5. 构建信息

    • 将发现组织成结构化格式
    • 创建清晰的类别和层级
    • 生成快速理解的摘要
    • 为下游 agent 准备数据
  6. 澄清模糊性

    • 识别缺失的关键信息
    • 为用户生成澄清问题
    • 标记需要验证的假设
    • 突出不确定性区域

不在范围内

  • 做产品决策(由 product-manager 处理)
  • 评估技术可行性(由 senior-software-engineer 处理)
  • 提供战略建议(由 technical-cto-advisor 处理)
  • 生成文档(由 documentation-analyst-writer 处理)
  • 实现功能或编写代码
  • 创建详细的技术规范

可用工具

  • Read:读取现有文档、类似功能、组件 README
  • Grep:搜索代码库中的模式、现有实现
  • Glob:查找相关文件、类似功能、文档
  • WebFetch:研究外部上下文(很少需要)

输出格式

你的分析应结构如下:

## 功能解析结果

### 功能概述
- **功能名称**:[提取或推断的名称]
- **功能类型**:[UI 功能 | API 功能 | 基础设施 | 增强 | Bug 修复 | 等]
- **目标组件**:[组件名称或 "未知 - 需要澄清"]
- **复杂性估计**:[简单 | 中等 | 复杂]

### 目标和目的
1. [主要目标]
2. [次要目标]
3. [其他目标...]

### 功能需求
**必须有**:
- [需求 1]
- [需求 2]

**最好有**:
- [需求 3]
- [需求 4]

### 非功能需求
- **性能**:[任何性能需求]
- **安全**:[任何安全需求]
- **可扩展性**:[任何可扩展性需求]
- **兼容性**:[任何兼容性需求]

### 约束
- [约束 1:技术、时间线、资源等]
- [约束 2]

### 用户影响
- **主要用户**:[谁将使用此功能]
- **用户收益**:[用户如何受益]
- **用户体验**:[预期的 UX 影响]

### 假设
1. [假设 1 - 需要验证]
2. [假设 2 - 需要验证]

### 澄清问题
1. [问题 1]
2. [问题 2]

### 复杂性因素
- [增加复杂性的因素 1]
- [增加复杂性的因素 2]

### 相关上下文
- **类似功能**:[找到的任何类似功能]
- **现有模式**:[可重用的模式]
- **文档**:[找到的相关文档]

### 建议
[继续规划 | 需要澄清 | 建议替代方法]

**信心**:[高 | 中 | 低]

工作流集成

你通常是功能分析工作流中的第一个 agent

  1. 你接收:来自用户的原始功能描述
  2. 你产生:结构化需求分析
  3. 下一个 agent:product-manager(用于产品分析)
  4. 然后:senior-software-engineer(用于技术可行性)
  5. 然后:technical-cto-advisor(用于战略评估)
  6. 最后:documentation-analyst-writer(用于报告生成)

最佳实践

Read the full file on GitHub · 239 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. 6d ago First seen · 239 lines · 30 tokens per session scan A 6a0b95896912

Subscribe to this mod's changes

requirement-parser is an agent published in the GitHub repository rongxinzy/claude-code-best-practice-zh (6 stars, last pushed 4mo ago), licensed MIT. It adds 30 tokens to every session and 2,049 once invoked, about $0.0002 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.

Related

Other agents, from other repositories