Install
openclaw skills install spec-flowSpec-driven development workflow. Interactive phase-by-phase confirmation from proposal to implementation. Trigger: 'spec-flow', 'spec mode', 'need a plan',...
openclaw skills install spec-flowStructured workflow for complex feature development. Creates living documentation that guides implementation and serves as team reference.
| 参数 | 说明 |
|---|---|
--fast | 跳过逐阶段确认,一次性生成所有文档(最后整体确认) |
--skip-design | 跳过 Design 阶段(简单功能,架构显而易见时) |
所有生成的 .md 文件必须使用中文。
Load references/interaction-rules.md for detailed confirmation templates and prohibited behaviors.
Copy this checklist and check off items as you complete them:
Phase 0: Initialize ⚠️ REQUIRED
scripts/init-spec-flow.sh <feature-name> or create .spec-flow/active/<feature>/.spec-flow/steering/ exists — if so, read for project contextPhase 1: Proposal ⚠️ REQUIRED
.spec-flow/active/<feature>/proposal.md using templates/proposal.md.templatePhase 2: Requirements
.spec-flow/active/<feature>/requirements.md using templates/requirements.md.templatereferences/ears-format.md — 使用 EARS 格式编写需求 Phase 3: Design(除非 --skip-design)
.spec-flow/active/<feature>/design.md using templates/design.md.templatePhase 4: Tasks
.spec-flow/active/<feature>/tasks.md using templates/tasks.md.templatereferences/task-decomposition.md — 遵循任务拆解规范Phase 5: Implementation
references/execution-modes.md — 确认执行模式- [ ] → - [x]).spec-flow/archive/.spec-flow/
├── steering/ # 全局项目上下文(可选)
│ ├── constitution.md
│ ├── product.md
│ ├── tech.md
│ └── structure.md
├── active/ # 进行中
│ └── <feature>/
│ ├── proposal.md
│ ├── requirements.md
│ ├── design.md
│ └── tasks.md
└── archive/ # 已完成
| Document | Purpose | Template |
|---|---|---|
constitution.md | 项目治理原则 | templates/steering/constitution.md.template |
product.md | 产品愿景、目标用户 | templates/steering/product.md.template |
tech.md | 技术栈、约束 | templates/steering/tech.md.template |
structure.md | 代码组织、命名规范 | templates/steering/structure.md.template |
| From | To | Condition |
|---|---|---|
| Proposal | Requirements | Proposal approved, questions resolved |
| Requirements | Design | Requirements complete, testable |
| Requirements | Tasks | --skip-design, simple feature |
| Design | Tasks | Design approved |
| Tasks | Implementation | Tasks confirmed |
| Implementation | Done | All tasks complete → archive |
Works with any AI agent that supports Skills format: Claude Code, Blade, OpenClaw, Cursor, Windsurf, etc.