重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
spec-generator by catlog22/claude-code-workflow
npx skills add https://github.com/catlog22/claude-code-workflow --skill spec-generator结构化规格文档生成器,通过 6 个顺序阶段,结合多 CLI 分析和交互式细化,生成完整的规格包(产品简介、PRD、架构、史诗)。仅生成文档 - 执行工作交接给现有工作流(lite-plan、plan、req-plan)。
Phase 0: 规格研究 (阅读 specs/ + templates/ - 强制先决条件)
|
Phase 1: 发现 -> spec-config.json + discovery-context.json
| (包括 spec_type 选择)
Phase 1.5: 需求扩展 -> refined-requirements.json (交互式讨论 + CLI 差距分析)
| (-y 自动模式: 自动扩展,跳过交互)
Phase 2: 产品简介 -> product-brief.md + glossary.json (多 CLI 并行分析)
|
Phase 3: 需求 (PRD) -> requirements/ (_index.md + REQ-*.md + NFR-*.md)
| (RFC 2119 关键词,数据模型定义)
Phase 4: 架构 -> architecture/ (_index.md + ADR-*.md, 多 CLI 评审)
| (状态机,配置模型,错误处理,可观测性)
Phase 5: 史诗与用户故事 -> epics/ (_index.md + EPIC-*.md)
|
Phase 6: 就绪检查 -> readiness-report.md + spec-summary.md
| (术语 + 范围一致性验证)
├── 通过 (>=80%): 交接给执行工作流
├── 评审 (60-79%): 带注意事项交接
└── 失败 (<60%): Phase 6.5 自动修复 (最多 2 次迭代)
|
Phase 6.5: 自动修复 -> 更新的 Phase 2-5 文档
|
└── 重新运行 Phase 6 验证
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
-y 标志启用完全自动模式spec-config.json 跟踪已完成的阶段;-c 标志从最后一个检查点恢复请勿跳过 : 在执行任何操作之前,您必须完整阅读以下文档。未阅读规格说明就继续操作将导致输出不符合质量标准。
| 文档 | 目的 | 优先级 |
|---|---|---|
| specs/document-standards.md | 文档格式、frontmatter、命名约定 | P0 - 执行前必读 |
| specs/quality-gates.md | 各阶段质量门标准与评分 | P0 - 执行前必读 |
| 文档 | 目的 |
|---|---|
| templates/product-brief.md | 产品简介文档模板 |
| templates/requirements-prd.md | PRD 文档模板 |
| templates/architecture-doc.md | 架构文档模板 |
| templates/epics-template.md | 史诗/用户故事文档模板 |
输入解析:
|- 解析 $ARGUMENTS: 提取想法/主题,标志 (-y, -c, -m)
|- 检测模式: new | continue
|- 如果 continue: 读取 spec-config.json,从第一个未完成的阶段恢复
|- 如果 new: 进入 Phase 1
Phase 1: 发现与种子分析
|- 参考: phases/01-discovery.md
|- 生成会话 ID: SPEC-{slug}-{YYYY-MM-DD}
|- 解析输入 (文本或文件引用)
|- Gemini CLI 种子分析 (问题、用户、领域、维度)
|- 代码库探索 (条件性,如果检测到项目)
|- 规格类型选择: service|api|library|platform (交互式,-y 默认为 service)
|- 用户确认 (交互式,-y 跳过)
|- 输出: spec-config.json, discovery-context.json (可选)
Phase 1.5: 需求扩展与澄清
|- 参考: phases/01-5-requirement-clarification.md
|- CLI 差距分析: 完整性评分,缺失维度检测
|- 多轮交互式讨论 (最多 5 轮)
| |- 第 1 轮: 呈现差距分析 + 扩展建议
| |- 第 N 轮: 基于用户响应的后续细化
|- 用户最终确认需求
|- 自动模式 (-y): CLI 自动扩展,无需交互
|- 输出: refined-requirements.json
Phase 2: 产品简介
|- 参考: phases/02-product-brief.md
|- 3 个并行 CLI 分析: 产品 (Gemini) + 技术 (Codex) + 用户 (Claude)
|- 综合视角: 趋同主题 + 冲突
|- 生成 glossary.json (术语来自产品简介 + CLI 分析)
|- 交互式细化 (-y 跳过)
|- 输出: product-brief.md (来自模板), glossary.json
Phase 3: 需求 / PRD
|- 参考: phases/03-requirements.md
|- Gemini CLI: 将目标扩展为功能 + 非功能需求
|- 为每个需求生成验收标准
|- RFC 2119 行为约束 (MUST/SHOULD/MAY)
|- 核心实体数据模型定义
|- 术语表注入以确保术语一致性
|- 用户优先级排序: MoSCoW (交互式,-y 自动分配)
|- 输出: requirements/ 目录 (_index.md + REQ-*.md + NFR-*.md, 来自模板)
Phase 4: 架构
|- 参考: phases/04-architecture.md
|- Gemini CLI: 核心组件、技术栈、ADRs
|- 代码库集成映射 (条件性)
|- 状态机生成 (生命周期实体的 ASCII 图)
|- 配置模型定义 (字段、类型、默认值、约束)
|- 错误处理策略 (按组件分类 + 恢复)
|- 可观测性规格 (指标、日志、健康检查)
|- 规格类型配置文件注入 (templates/profiles/{type}-profile.md)
|- 术语表注入以确保术语一致性
|- Codex CLI: 架构挑战 + 评审
|- 交互式 ADR 决策 (-y 自动接受)
|- 输出: architecture/ 目录 (_index.md + ADR-*.md, 来自模板)
Phase 5: 史诗与用户故事
|- 参考: phases/05-epics-stories.md
|- Gemini CLI: 将需求分组为史诗,MVP 子集标记
|- 用户故事生成: 作为一个...我想要...以便...
|- 依赖关系映射 (Mermaid)
|- 交互式验证 (-y 跳过)
|- 输出: epics/ 目录 (_index.md + EPIC-*.md, 来自模板)
Phase 6: 就绪检查
|- 参考: phases/06-readiness-check.md
|- 跨文档验证 (完整性、一致性、可追溯性)
|- 各维度质量评分
|- 术语一致性验证 (术语表合规性)
|- 范围包含验证 (PRD <= 简介范围)
|- 输出: readiness-report.md, spec-summary.md
|- 交接选项: lite-plan, req-plan, plan, issue:new, export only, iterate
Phase 6.5: 自动修复 (条件性,当 Phase 6 评分 < 60% 时触发)
|- 参考: phases/06-5-auto-fix.md
|- 解析 readiness-report.md 中的 Error/Warning 项
|- 按来源阶段 (2-5) 对问题进行分组
|- 通过 CLI 重新生成受影响的部分,并提供错误上下文
|- 重新运行 Phase 6 验证
|- 最多 2 次迭代,然后强制交接
|- 输出: 更新的 Phase 2-5 文档
完成: 完整的规格包准备就绪,可供执行
Phase 6 → 交接桥接 (条件性,基于用户选择):
├─ lite-plan: 提取第一个 MVP 史诗描述 → 直接文本输入
├─ plan / req-plan: 创建 WFS 会话 + .brainstorming/ 桥接文件
│ ├─ guidance-specification.md (从规格输出综合而来)
│ ├─ feature-specs/feature-index.json (史诗 → 功能映射)
│ └─ feature-specs/F-{num}-{slug}.md (每个史诗一个)
├─ issue:new: 为每个史诗创建 issue
└─ context-search-agent 自动发现 .brainstorming/
→ context-package.json.brainstorm_artifacts 被填充
→ action-planning-agent 消费: guidance_spec (P1) → feature_index (P2)
// 会话 ID 生成
const slug = topic.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g, '-').slice(0, 40);
const date = new Date().toISOString().slice(0, 10);
const sessionId = `SPEC-${slug}-${date}`;
const workDir = `.workflow/.spec/${sessionId}`;
Bash(`mkdir -p "${workDir}"`);
.workflow/.spec/SPEC-{slug}-{YYYY-MM-DD}/
├── spec-config.json # 会话配置 + 阶段状态
├── discovery-context.json # 代码库探索结果 (可选)
├── refined-requirements.json # Phase 1.5: 讨论后确认的需求
├── glossary.json # Phase 2: 用于跨文档一致性的术语表
├── product-brief.md # Phase 2: 产品简介
├── requirements/ # Phase 3: 详细 PRD (目录)
│ ├── _index.md # 摘要、MoSCoW 表、可追溯性、链接
│ ├── REQ-NNN-{slug}.md # 单个功能需求
│ └── NFR-{type}-NNN-{slug}.md # 单个非功能需求
├── architecture/ # Phase 4: 架构决策 (目录)
│ ├── _index.md # 概述、组件、技术栈、链接
│ └── ADR-NNN-{slug}.md # 单个架构决策记录
├── epics/ # Phase 5: 史诗/用户故事分解 (目录)
│ ├── _index.md # 史诗表、依赖关系图、MVP 范围
│ └── EPIC-NNN-{slug}.md # 包含用户故事的单个史诗
├── readiness-report.md # Phase 6: 质量报告
└── spec-summary.md # Phase 6: 一页执行摘要
spec-config.json 作为核心状态文件:
{
"session_id": "SPEC-xxx-2026-02-11",
"seed_input": "用户输入文本",
"input_type": "text",
"timestamp": "ISO8601",
"mode": "interactive",
"complexity": "moderate",
"depth": "standard",
"focus_areas": [],
"spec_type": "service",
"iteration_count": 0,
"iteration_history": [],
"seed_analysis": {
"problem_statement": "...",
"target_users": [],
"domain": "...",
"constraints": [],
"dimensions": []
},
"has_codebase": false,
"refined_requirements_file": "refined-requirements.json",
"phasesCompleted": [
{ "phase": 1, "name": "discovery", "output_file": "spec-config.json", "completed_at": "ISO8601" },
{ "phase": 1.5, "name": "requirement-clarification", "output_file": "refined-requirements.json", "discussion_rounds": 2, "completed_at": "ISO8601" },
{ "phase": 3, "name": "requirements", "output_dir": "requirements/", "output_index": "requirements/_index.md", "file_count": 8, "completed_at": "ISO8601" }
]
}
恢复机制 : -c|--continue 标志读取 spec-config.json.phasesCompleted,从第一个未完成的阶段恢复。
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/01-discovery.md | 种子分析和会话设置 | 阶段开始 |
| templates/profiles/ | 规格类型配置文件 | 规格类型选择 |
| specs/document-standards.md | spec-config.json 的 frontmatter 格式 | 配置生成 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/01-5-requirement-clarification.md | 交互式需求讨论工作流 | 阶段开始 |
| specs/quality-gates.md | 细化需求的质量标准 | 验证 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/02-product-brief.md | 多 CLI 分析编排 | 阶段开始 |
| templates/product-brief.md | 文档模板 | 文档生成 |
| specs/glossary-template.json | 术语表模式 | 术语表生成 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/03-requirements.md | PRD 生成工作流 | 阶段开始 |
| templates/requirements-prd.md | 文档模板 | 文档生成 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/04-architecture.md | 架构决策工作流 | 阶段开始 |
| templates/architecture-doc.md | 文档模板 | 文档生成 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/05-epics-stories.md | 史诗/用户故事分解 | 阶段开始 |
| templates/epics-template.md | 文档模板 | 文档生成 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/06-readiness-check.md | 跨文档验证 | 阶段开始 |
| specs/quality-gates.md | 质量评分标准 | 验证 |
| 文档 | 目的 | 何时使用 |
|---|---|---|
| phases/06-5-auto-fix.md | 就绪性问题的自动修复工作流 | 当 Phase 6 评分 < 60% 时 |
| specs/quality-gates.md | 迭代退出标准 | 验证 |
| 问题 | 解决方案文档 |
|---|---|
| 阶段执行失败 | 参考相关的阶段文档 |
| 输出不符合预期 | specs/quality-gates.md |
| 文档格式问题 | specs/document-standards.md |
| 阶段 | 错误 | 是否阻塞? | 操作 |
|---|---|---|---|
| Phase 1 | 空输入 | 是 | 错误并退出 |
| Phase 1 | CLI 种子分析失败 | 否 | 使用基本解析回退 |
| Phase 1.5 | 差距分析 CLI 失败 | 否 | 使用基本提示跳转到用户问题 |
| Phase 1.5 | 用户跳过讨论 | 否 | 使用 seed_analysis 原样继续 |
| Phase 1.5 | 达到最大轮数 (5) | 否 | 强制以当前状态确认 |
| Phase 2 | 单个 CLI 视角失败 | 否 | 继续使用可用的视角 |
| Phase 2 | 所有 CLI 调用失败 | 否 | 根据种子分析生成基本简介 |
| Phase 3 | Gemini CLI 失败 | 否 | 使用 codex 回退 |
| Phase 4 | 架构评审失败 | 否 | 跳过评审,继续初始分析 |
| Phase 5 | 用户故事生成失败 | 否 | 生成没有详细用户故事的史诗 |
| Phase 6 | 验证 CLI 失败 | 否 | 使用可用数据生成部分报告 |
| Phase 6.5 | 自动修复 CLI 失败 | 否 | 记录失败,以评审状态继续交接 |
| Phase 6.5 | 达到最大迭代次数 | 否 | 强制交接,报告剩余问题 |
Gemini -> Codex -> Claude -> 降级模式 (仅本地分析)
每周安装数
46
仓库
GitHub 星标
1.4K
首次出现
2026年2月17日
安全审计
安装于
codex45
opencode45
gemini-cli44
github-copilot44
amp44
kimi-cli44
Structured specification document generator producing a complete specification package (Product Brief, PRD, Architecture, Epics) through 6 sequential phases with multi-CLI analysis and interactive refinement. Document generation only - execution handoff to existing workflows (lite-plan, plan, req-plan).
Phase 0: Specification Study (Read specs/ + templates/ - mandatory prerequisite)
|
Phase 1: Discovery -> spec-config.json + discovery-context.json
| (includes spec_type selection)
Phase 1.5: Req Expansion -> refined-requirements.json (interactive discussion + CLI gap analysis)
| (-y auto mode: auto-expansion, skip interaction)
Phase 2: Product Brief -> product-brief.md + glossary.json (multi-CLI parallel analysis)
|
Phase 3: Requirements (PRD) -> requirements/ (_index.md + REQ-*.md + NFR-*.md)
| (RFC 2119 keywords, data model definitions)
Phase 4: Architecture -> architecture/ (_index.md + ADR-*.md, multi-CLI review)
| (state machine, config model, error handling, observability)
Phase 5: Epics & Stories -> epics/ (_index.md + EPIC-*.md)
|
Phase 6: Readiness Check -> readiness-report.md + spec-summary.md
| (terminology + scope consistency validation)
├── Pass (>=80%): Handoff to execution workflows
├── Review (60-79%): Handoff with caveats
└── Fail (<60%): Phase 6.5 Auto-Fix (max 2 iterations)
|
Phase 6.5: Auto-Fix -> Updated Phase 2-5 documents
|
└── Re-run Phase 6 validation
-y flag enables full auto modespec-config.json tracks completed phases; -c flag resumes from last checkpointDo NOT skip : Before performing any operations, you must completely read the following documents. Proceeding without reading the specifications will result in outputs that do not meet quality standards.
| Document | Purpose | Priority |
|---|---|---|
| specs/document-standards.md | Document format, frontmatter, naming conventions | P0 - Must read before execution |
| specs/quality-gates.md | Per-phase quality gate criteria and scoring | P0 - Must read before execution |
| Document | Purpose |
|---|---|
| templates/product-brief.md | Product brief document template |
| templates/requirements-prd.md | PRD document template |
| templates/architecture-doc.md | Architecture document template |
| templates/epics-template.md | Epic/Story document template |
Input Parsing:
|- Parse $ARGUMENTS: extract idea/topic, flags (-y, -c, -m)
|- Detect mode: new | continue
|- If continue: read spec-config.json, resume from first incomplete phase
|- If new: proceed to Phase 1
Phase 1: Discovery & Seed Analysis
|- Ref: phases/01-discovery.md
|- Generate session ID: SPEC-{slug}-{YYYY-MM-DD}
|- Parse input (text or file reference)
|- Gemini CLI seed analysis (problem, users, domain, dimensions)
|- Codebase exploration (conditional, if project detected)
|- Spec type selection: service|api|library|platform (interactive, -y defaults to service)
|- User confirmation (interactive, -y skips)
|- Output: spec-config.json, discovery-context.json (optional)
Phase 1.5: Requirement Expansion & Clarification
|- Ref: phases/01-5-requirement-clarification.md
|- CLI gap analysis: completeness scoring, missing dimensions detection
|- Multi-round interactive discussion (max 5 rounds)
| |- Round 1: present gap analysis + expansion suggestions
| |- Round N: follow-up refinement based on user responses
|- User final confirmation of requirements
|- Auto mode (-y): CLI auto-expansion without interaction
|- Output: refined-requirements.json
Phase 2: Product Brief
|- Ref: phases/02-product-brief.md
|- 3 parallel CLI analyses: Product (Gemini) + Technical (Codex) + User (Claude)
|- Synthesize perspectives: convergent themes + conflicts
|- Generate glossary.json (terminology from product brief + CLI analysis)
|- Interactive refinement (-y skips)
|- Output: product-brief.md (from template), glossary.json
Phase 3: Requirements / PRD
|- Ref: phases/03-requirements.md
|- Gemini CLI: expand goals into functional + non-functional requirements
|- Generate acceptance criteria per requirement
|- RFC 2119 behavioral constraints (MUST/SHOULD/MAY)
|- Core entity data model definitions
|- Glossary injection for terminology consistency
|- User priority sorting: MoSCoW (interactive, -y auto-assigns)
|- Output: requirements/ directory (_index.md + REQ-*.md + NFR-*.md, from template)
Phase 4: Architecture
|- Ref: phases/04-architecture.md
|- Gemini CLI: core components, tech stack, ADRs
|- Codebase integration mapping (conditional)
|- State machine generation (ASCII diagrams for lifecycle entities)
|- Configuration model definition (fields, types, defaults, constraints)
|- Error handling strategy (per-component classification + recovery)
|- Observability specification (metrics, logs, health checks)
|- Spec type profile injection (templates/profiles/{type}-profile.md)
|- Glossary injection for terminology consistency
|- Codex CLI: architecture challenge + review
|- Interactive ADR decisions (-y auto-accepts)
|- Output: architecture/ directory (_index.md + ADR-*.md, from template)
Phase 5: Epics & Stories
|- Ref: phases/05-epics-stories.md
|- Gemini CLI: requirement grouping into Epics, MVP subset tagging
|- Story generation: As a...I want...So that...
|- Dependency mapping (Mermaid)
|- Interactive validation (-y skips)
|- Output: epics/ directory (_index.md + EPIC-*.md, from template)
Phase 6: Readiness Check
|- Ref: phases/06-readiness-check.md
|- Cross-document validation (completeness, consistency, traceability)
|- Quality scoring per dimension
|- Terminology consistency validation (glossary compliance)
|- Scope containment validation (PRD <= Brief scope)
|- Output: readiness-report.md, spec-summary.md
|- Handoff options: lite-plan, req-plan, plan, issue:new, export only, iterate
Phase 6.5: Auto-Fix (conditional, triggered when Phase 6 score < 60%)
|- Ref: phases/06-5-auto-fix.md
|- Parse readiness-report.md for Error/Warning items
|- Group issues by originating Phase (2-5)
|- Re-generate affected sections via CLI with error context
|- Re-run Phase 6 validation
|- Max 2 iterations, then force handoff
|- Output: Updated Phase 2-5 documents
Complete: Full specification package ready for execution
Phase 6 → Handoff Bridge (conditional, based on user selection):
├─ lite-plan: Extract first MVP Epic description → direct text input
├─ plan / req-plan: Create WFS session + .brainstorming/ bridge files
│ ├─ guidance-specification.md (synthesized from spec outputs)
│ ├─ feature-specs/feature-index.json (Epic → Feature mapping)
│ └─ feature-specs/F-{num}-{slug}.md (one per Epic)
├─ issue:new: Create issues per Epic
└─ context-search-agent auto-discovers .brainstorming/
→ context-package.json.brainstorm_artifacts populated
→ action-planning-agent consumes: guidance_spec (P1) → feature_index (P2)
// Session ID generation
const slug = topic.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g, '-').slice(0, 40);
const date = new Date().toISOString().slice(0, 10);
const sessionId = `SPEC-${slug}-${date}`;
const workDir = `.workflow/.spec/${sessionId}`;
Bash(`mkdir -p "${workDir}"`);
.workflow/.spec/SPEC-{slug}-{YYYY-MM-DD}/
├── spec-config.json # Session configuration + phase state
├── discovery-context.json # Codebase exploration results (optional)
├── refined-requirements.json # Phase 1.5: Confirmed requirements after discussion
├── glossary.json # Phase 2: Terminology glossary for cross-doc consistency
├── product-brief.md # Phase 2: Product brief
├── requirements/ # Phase 3: Detailed PRD (directory)
│ ├── _index.md # Summary, MoSCoW table, traceability, links
│ ├── REQ-NNN-{slug}.md # Individual functional requirement
│ └── NFR-{type}-NNN-{slug}.md # Individual non-functional requirement
├── architecture/ # Phase 4: Architecture decisions (directory)
│ ├── _index.md # Overview, components, tech stack, links
│ └── ADR-NNN-{slug}.md # Individual Architecture Decision Record
├── epics/ # Phase 5: Epic/Story breakdown (directory)
│ ├── _index.md # Epic table, dependency map, MVP scope
│ └── EPIC-NNN-{slug}.md # Individual Epic with Stories
├── readiness-report.md # Phase 6: Quality report
└── spec-summary.md # Phase 6: One-page executive summary
spec-config.json serves as core state file:
{
"session_id": "SPEC-xxx-2026-02-11",
"seed_input": "User input text",
"input_type": "text",
"timestamp": "ISO8601",
"mode": "interactive",
"complexity": "moderate",
"depth": "standard",
"focus_areas": [],
"spec_type": "service",
"iteration_count": 0,
"iteration_history": [],
"seed_analysis": {
"problem_statement": "...",
"target_users": [],
"domain": "...",
"constraints": [],
"dimensions": []
},
"has_codebase": false,
"refined_requirements_file": "refined-requirements.json",
"phasesCompleted": [
{ "phase": 1, "name": "discovery", "output_file": "spec-config.json", "completed_at": "ISO8601" },
{ "phase": 1.5, "name": "requirement-clarification", "output_file": "refined-requirements.json", "discussion_rounds": 2, "completed_at": "ISO8601" },
{ "phase": 3, "name": "requirements", "output_dir": "requirements/", "output_index": "requirements/_index.md", "file_count": 8, "completed_at": "ISO8601" }
]
}
Resume mechanism : -c|--continue flag reads spec-config.json.phasesCompleted, resumes from first incomplete phase.
| Document | Purpose | When to Use |
|---|---|---|
| phases/01-discovery.md | Seed analysis and session setup | Phase start |
| templates/profiles/ | Spec type profiles | Spec type selection |
| specs/document-standards.md | Frontmatter format for spec-config.json | Config generation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/01-5-requirement-clarification.md | Interactive requirement discussion workflow | Phase start |
| specs/quality-gates.md | Quality criteria for refined requirements | Validation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/02-product-brief.md | Multi-CLI analysis orchestration | Phase start |
| templates/product-brief.md | Document template | Document generation |
| specs/glossary-template.json | Glossary schema | Glossary generation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/03-requirements.md | PRD generation workflow | Phase start |
| templates/requirements-prd.md | Document template | Document generation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/04-architecture.md | Architecture decision workflow | Phase start |
| templates/architecture-doc.md | Document template | Document generation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/05-epics-stories.md | Epic/Story decomposition | Phase start |
| templates/epics-template.md | Document template | Document generation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/06-readiness-check.md | Cross-document validation | Phase start |
| specs/quality-gates.md | Quality scoring criteria | Validation |
| Document | Purpose | When to Use |
|---|---|---|
| phases/06-5-auto-fix.md | Auto-fix workflow for readiness issues | When Phase 6 score < 60% |
| specs/quality-gates.md | Iteration exit criteria | Validation |
| Issue | Solution Document |
|---|---|
| Phase execution failed | Refer to the relevant Phase documentation |
| Output does not meet expectations | specs/quality-gates.md |
| Document format issues | specs/document-standards.md |
| Phase | Error | Blocking? | Action |
|---|---|---|---|
| Phase 1 | Empty input | Yes | Error and exit |
| Phase 1 | CLI seed analysis fails | No | Use basic parsing fallback |
| Phase 1.5 | Gap analysis CLI fails | No | Skip to user questions with basic prompts |
| Phase 1.5 | User skips discussion | No | Proceed with seed_analysis as-is |
| Phase 1.5 | Max rounds reached (5) | No | Force confirmation with current state |
| Phase 2 | Single CLI perspective fails | No | Continue with available perspectives |
| Phase 2 | All CLI calls fail | No |
Gemini -> Codex -> Claude -> degraded mode (local analysis only)
Weekly Installs
46
Repository
GitHub Stars
1.4K
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
codex45
opencode45
gemini-cli44
github-copilot44
amp44
kimi-cli44
并行功能开发策略:多代理协作、文件所有权与冲突避免指南
3,200 周安装
| Generate basic brief from seed analysis |
| Phase 3 | Gemini CLI fails | No | Use codex fallback |
| Phase 4 | Architecture review fails | No | Skip review, proceed with initial analysis |
| Phase 5 | Story generation fails | No | Generate epics without detailed stories |
| Phase 6 | Validation CLI fails | No | Generate partial report with available data |
| Phase 6.5 | Auto-fix CLI fails | No | Log failure, proceed to handoff with Review status |
| Phase 6.5 | Max iterations reached | No | Force handoff, report remaining issues |