一键导入
spec-writer
// Transforms ambiguous user requests into rigorous Product Requirements Documents (PRDs). Use when requirements are vague or high-level.
// Transforms ambiguous user requests into rigorous Product Requirements Documents (PRDs). Use when requirements are vague or high-level.
分析构建系统拓扑,识别独立构建单元、多产物风险和版本漂移隐患。
The final gatekeeper. Audits RFCs to reject over-engineering, unnecessary dependencies, and resume-driven development.
从模糊的用户需求中提取领域概念——实体、流程和"暗物质"(用户没说的)。基于 DDD(领域驱动设计)方法论。
使用三维框架(系统设计、运行模拟、工程实现)系统性审查架构和系统设计文档。产出按严重度分级的发现,关联到具体文档段落。
分析 Git 历史,发现"逻辑耦合"(总一起改的文件)和"热点"(高频修改的复杂模块)。基于 Adam Tornhill 的《Your Code as a Crime Scene》方法论。
综合 Scout 阶段所有分析(build-inspector, runtime-inspector, git-forensics, concept-modeler),生成决策就绪的系统风险报告。
| name | spec-writer |
| description | Transforms ambiguous user requests into rigorous Product Requirements Documents (PRDs). Use when requirements are vague or high-level. |
"The hardest part of building software is deciding precisely what to build."
Your job is to kill ambiguity.
view_file or context to identify "Vibe Words" (Fast, Modern, Easy).sequential thinking with 3-7 reasoning steps (depending on complexity) to:
view_file references/prd_template.md then write_to_file to create genesis/v{N}/01_PRD.md.[ASSUMPTION].Before creating the PRD, you MUST:
write_to_file to save output. DO NOT just print to chat.After creating the PRD, you MUST:
5. Run the 10-Dimension Ambiguity Scan — fix or mark all Partial/Missing items.
6. Verify every User Story has: Priority / 独立可测 / 涉及系统 / 边界情况.
7. Ensure [NEEDS CLARIFICATION] tags ≤ 3 (hard limit). Excess → use reasonable defaults + [ASSUMPTION] tag.
genesis/v{N}/01_PRD.mdreferences/prd_template.md: The Product Requirements Document template.After drafting the PRD, you MUST systematically scan it against these 10 dimensions. This replaces ad-hoc "any questions?" with a repeatable, exhaustive sweep.
For each dimension, mark status: Clear ✅ / Partial ⚠️ / Missing ❌
| # | Dimension | What to Check | Status |
|---|---|---|---|
| 1 | Functional Scope & Behavior | Core objectives / success criteria / explicit exclusions / user role distinctions | |
| 2 | Domain & Data Model | Entities, attributes, relationships / uniqueness rules / lifecycle & state transitions / data volume assumptions | |
| 3 | Interaction & UX Flow | Key user journeys / error, empty, loading states / accessibility & i18n | |
| 4 | Non-Functional Quality | Performance / scalability / reliability / observability / security & privacy / compliance | |
| 5 | Integration & External | External service failure modes / import-export formats / protocol version assumptions | |
| 6 | Edge Cases & Failure | Negative scenarios / rate limiting / concurrency conflict resolution | |
| 7 | Constraints & Tradeoffs | Technical constraints / explicit tradeoff records / rejected alternative archives | |
| 8 | Terminology Consistency | Canonical glossary / synonym normalization across PRD | |
| 9 | Completion Signals | Acceptance criteria testability / quantifiable DoD | |
| 10 | Placeholders | TODO markers / unquantified vague adjectives (fast, scalable, secure, intuitive, robust) |
Rules:
Partial or Missing items → rank by Impact × Uncertainty, pick top 5 to ask user[ASSUMPTION: ...] tagEvery User Story in the PRD MUST pass these checks before the PRD is considered complete:
| Check | Requirement |
|---|---|
| Unique ID | Has [REQ-XXX] identifier for traceability |
| Priority | Marked P0 / P1 / P2 — P0 stories listed first |
| 独立可测 | Describes how this story can be independently demonstrated and verified |
| 涉及系统 | Lists specific system IDs (must align with 02_ARCHITECTURE_OVERVIEW.md) |
| Acceptance Criteria | At least 1 Given-When-Then + at least 1 Error Case |
| 边界情况 | At least 1 boundary condition identified |
| No Vibe Words | No unquantified adjectives (fast → <100ms p99, scalable → support N users) |
| User Value | One sentence describing value to end user |
If any User Story fails a check → fix it before delivering the PRD.