闲社服务运行正常AI智能体自动化平台
s

规格驱动流程

技能标识:spec-flow

Spec-driven development workflow. Interactive phase-by-phase confirmation from proposal to implementation. Trigger: 'spec-flow', 'spec mode', 'need a plan', 'structured development', 'write a spec', 'feature spec', 'technical spec', '需求文档', '技术方案', '任务拆解', '规格驱动', '写个方案', '做个规划', '结构化开发', 'plan this feature', 'break this down', 'design doc'. Creates .spec-flow/ directory with proposal, requirements, design, and tasks.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

规格驱动流程

Spec-Flow - 结构化开发工作流

针对复杂功能开发的结构化工作流。创建指导实施并作为团队参考的动态文档。

核心原则

  1. 1. 一次只处理一个阶段 — 切勿提前生成后续阶段的文档
  2. 强制确认 — 每个阶段结束后,停止并等待用户确认
  3. 用户驱动推进 — 仅在用户说继续/ok/next/继续/好时才继续

参数

参数说明
--fast跳过逐阶段确认,一次性生成所有文档(最后整体确认)
--skip-design
跳过设计阶段(简单功能,架构显而易见时) |

语言规则

所有生成的 .md 文件必须使用中文。

交互规则

加载 references/interaction-rules.md 获取详细的确认模板和禁止行为。



五阶段工作流

复制此清单并在完成后勾选项目:

Spec-Flow 进度:

  • - [ ] 阶段 0:初始化 ⚠️ 必需
- [ ] 0.1 运行 scripts/init-spec-flow.sh <功能名称> 或创建 .spec-flow/active// - [ ] 0.2 检查 .spec-flow/steering/ 是否存在 — 如果存在,读取以获取项目上下文 - [ ] 0.3 问自己:这个功能的核心价值是什么?用一句话能说清吗?
  • - [ ] 阶段 1:提案 ⚠️ 必需
- [ ] 1.1 使用 templates/proposal.md.template 创建 .spec-flow/active//proposal.md - [ ] 1.2 包含:背景、目标、非目标、范围、风险、待定问题 - [ ] 1.3 问自己:有没有隐含的需求没写出来? - [ ] 1.4 问自己:非目标是否足够明确?能防止范围蔓延吗? - [ ] 1.5 ⏸️ 确认节点 — 等待用户确认后继续
  • - [ ] 阶段 2:需求
- [ ] 2.1 使用 templates/requirements.md.template 创建 .spec-flow/active//requirements.md - [ ] 2.2 加载 references/ears-format.md — 使用 EARS 格式编写需求 - [ ] 2.3 包含:FR-xxx 功能需求、NFR-xxx 非功能需求、AC-xxx 验收标准 - [ ] 2.4 问自己:每条需求都是可测试的吗? - [ ] 2.5 问自己:边界情况覆盖了吗?错误场景呢? - [ ] 2.6 ⏸️ 确认节点 — 等待用户确认后继续
  • - [ ] 阶段 3:设计(除非 --skip-design)
- [ ] 3.1 使用 templates/design.md.template 创建 .spec-flow/active//design.md - [ ] 3.2 包含:架构(Mermaid)、组件、API、数据模型、错误处理 - [ ] 3.3 问自己:这个设计能满足所有需求吗?逐条对照 - [ ] 3.4 问自己:有没有更简单的方案?过度设计了吗? - [ ] 3.5 ⏸️ 确认节点 — 等待用户确认后继续
  • - [ ] 阶段 4:任务
- [ ] 4.1 使用 templates/tasks.md.template 创建 .spec-flow/active//tasks.md - [ ] 4.2 加载 references/task-decomposition.md — 遵循任务拆解规范 - [ ] 4.3 每个任务:1-2 次工具调用可完成,标注复杂度 低/中/高 - [ ] 4.4 分组:设置 → 实现 → 测试 → 文档 - [ ] 4.5 问自己:任务之间的依赖关系对吗?有没有可以并行的? - [ ] 4.6 ⏸️ 确认节点 — 等待用户确认后继续
  • - [ ] 阶段 5:实现
- [ ] 5.1 加载 references/execution-modes.md — 确认执行模式 - [ ] 5.2 默认步骤模式(逐任务确认),用户可切换批量/阶段模式 - [ ] 5.3 每个任务执行前:读取 tasks.md → 检查依赖 → 读取 design.md - [ ] 5.4 每个任务执行后:更新 tasks.md 状态(- [ ] → - [x]) - [ ] 5.5 全部完成后:归档到 .spec-flow/archive/

目录结构

.spec-flow/
├── steering/ # 全局项目上下文(可选)
│ ├── constitution.md
│ ├── product.md
│ ├── tech.md
│ └── structure.md
├── active/ # 进行中
│ └── <功能名称>/
│ ├── proposal.md
│ ├── requirements.md
│ ├── design.md
│ └── tasks.md
└── archive/ # 已完成

指导文档(可选)

文档用途模板
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 |

阶段转换

从到条件
提案需求提案已批准,问题已解决
需求
设计 | 需求完整、可测试 | | 需求 | 任务 | --skip-design,简单功能 | | 设计 | 任务 | 设计已批准 | | 任务 | 实现 | 任务已确认 | | 实现 | 完成 | 所有任务完成 → 归档 |

兼容性

适用于任何支持技能格式的 AI 代理:Claude Code、Blade、OpenClaw、Cursor、Windsurf 等。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 spec-flow-1776311143 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 spec-flow-1776311143 技能

通过命令行安装

skillhub install spec-flow-1776311143

下载

⬇ 下载 spec-flow v0.1.0(免费)

文件大小: 28.85 KB | 发布时间: 2026-4-16 16:57

v0.1.0 最新 2026-4-16 16:57
Initial release: introduces a structured, interactive, spec-driven workflow for complex feature development.

- Guides users through proposal, requirements, design, and task breakdown in distinct, confirmed phases
- Creates all documentation in Chinese under a dedicated `.spec-flow/` directory
- Supports optional global project context via steering documents
- Allows accelerated workflow (`--fast`) and skipping the design phase for simple features (`--skip-design`)
- Ensures user confirmation before proceeding to each next phase for accuracy and alignment
返回顶部