Purpose
Transform raw requirements into structured requirement specifications and executable task lists.
Process
1. Requirements understanding
- Read the raw requirement description, clarify the requirement background and intent
- Identify ambiguities and unclear points, ask the user for clarification
- Sort out the involved business flows and scope of impact
2. Produce spec.md
Requirement specification document, including:
# {需求名称}
Background and goals
{Why this requirement is being done, what problem it solves}
Feature description
{What exactly needs to be done, listed item by item}
Scope of impact
- Involved modules: {module list}
- Involved interfaces: {interface list}
- Involved data tables: {table names}
- Configuration changes: {configuration items}
Acceptance criteria
{Quantifiable and verifiable acceptance conditions}
### 3. 产出 tasks.md
任务拆分清单,每个任务包含:
```markdown
## Task N: {任务名称}
- **目标**:{一句话描述}
- **范围**:{涉及的文件/模块}
- **输入**:{前置依赖或输入条件}
- **产出**:{期望的产出物}
- **验收标准**:{如何判断完成}
- **依赖**:{依赖的其他 Task}
4. User confirmation
- Show the user a summary of spec.md and tasks.md
- Wait for user confirmation before proceeding to the next stage