{Feature Name} — Product Requirements 发布时间:2026/9/12 6:15:26 {Feature Name} — Product Requirements【免费下载链接】ArchonThe first open-source harness builder for AI coding. Make AI coding deterministic and repeatable.项目地址: https://gitcode.com/GitHub_Trending/archon3/ArchonOverviewProblem: {What pain this solves — from Phase 1}Solution: {What were building}Branch:ralph/{slug}Goals SuccessPrimary Goal{The main outcome}Success MetricsMetricTargetHow Measured{metric}{target}{method}Non-Goals (Out of Scope){Item 1} — {why excluded}{Item 2} — {why excluded}User ContextTarget UserWho: {description}Role: {their context}Current Pain: {what they struggle with}User JourneyTrigger: {what prompts the need}Action: {what they do}Outcome: {success state}UX RequirementsInteraction Model{How users interact — CLI commands, API endpoints, UI components}States to HandleStateDescriptionBehaviorEmpty{when}{what happens}Loading{when}{what happens}Error{when}{what happens}Success{when}{what happens}Technical ContextPatterns to FollowSimilar implementation:{file:lines}— {what to mirror}Component pattern:{file:lines}— {pattern description}Test pattern:{file:lines}— {how to test}Types Interfaces// Key types to use or extend {relevant type definitions from codebase exploration}Architecture Notes{Key technical decisions}{Integration points from Phase 3}{Dependencies}Implementation SummaryStory OverviewIDTitlePriorityDependenciesUS-001{title}1—US-002{title}2US-001Dependency GraphUS-001 (schema/types) ↓ US-002 (backend) ↓ US-003 (UI) → US-004 (integration)Validation RequirementsEvery story must pass:Type-check:bun run type-checkLint:bun run lintTests:bun run testFormat:bun run format:checkGenerated: {ISO timestamp}**若输入是已有 PRD**将其内容并入该结构不丢失信息——把已有 PRD 的目标、上下文与需求合并进对应章节再叠加 Phase 3 代码库探索得到的技术上下文。 ### 7.4 编写 prd.json **输出路径**.archon/ralph/{slug}/prd.json json { project: {ProjectName}, branchName: ralph/{slug}, prdFile: prd.md, description: {One line summary}, userStories: [ { id: US-001, title: {Short title}, description: As a {user}, I want {capability} so that {benefit}, acceptanceCriteria: [ {Specific verifiable criterion 1}, {Specific verifiable criterion 2}, Type-check passes, Tests pass ], technicalNotes: {Files to modify, patterns to follow, types to use — from Phase 3}, dependsOn: [], priority: 1, passes: false, notes: } ] }各字段语义project/branchName/prdFile描述 PRD 归属、目标分支与配套文档userStories[]核心的故事列表description用户故事的标准三段式As a {user}, I want {capability} so that {benefit}acceptanceCriteria可验证的验收标准数组默认追加 Type-check passes 与 Tests passtechnicalNotesPhase 3 产出的实现提示要改的文件、要遵循的模式、要用的类型dependsOn依赖的低优先级故事 ID 列表初始为空priority数字优先级值越小越先执行passes故事完成标记生成阶段一律为false由 Ralph 循环在每轮实现后置truenotes附加备注实现后填充。7.5 提交 PRD 文件git add .archon/ralph/{slug}/ git commit -m docs: add Ralph PRD for {feature name}PHASE_5_CHECKPOINT.archon/ralph/{slug}/prd.md已写入全部章节.archon/ralph/{slug}/prd.json已写入粒度合适的故事故事具备可验证的验收标准技术备注引用代码库探索得到的真实文件文件已提交八、Phase 6输出报告OUTPUT生成完成后按固定格式汇报PRD_DIR.archon/ralph/{slug} STORIES_TOTAL{count} FILES_CREATEDprd.md,prd.json ## Ralph PRD Ready **Feature**: {name} **Directory**: .archon/ralph/{slug}/ **Stories**: {count} user stories **Dependencies**: Valid DAG (no cycles) | # | ID | Title | Dependencies | |---|-----|-------|--------------| | 1 | US-001 | {title} | — | | 2 | US-002 | {title} | US-001 |【免费下载链接】ArchonThe first open-source harness builder for AI coding. Make AI coding deterministic and repeatable.项目地址: https://gitcode.com/GitHub_Trending/archon3/Archon创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考