Sdflow Skills — Testing skill for Claude Code
Spec-driven development workflow for Claude Code / Codex: clarify → grill → generate the four artifacts, multi-lens design & code review, then ship to merge behind a single human gate.
How to install Sdflow Skills
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open laodao-ai/sdflow-skills and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Sdflow Skills does
Spec-driven development workflow for Claude Code / Codex: clarify → grill → generate the four artifacts, multi-lens design & code review, then ship to merge behind a single human gate. Built on OpenSpec.
Alternatives in Testing
- Testing Strategy — This project is small, runs in a terminal, and is mostly deterministic 10.9k ★
- Grilling.V1 — Interview the user to clarify or stress-test the request before acting 272 ★
- Solve — QA: solve levels 0 through N by creating minimum passing artifacts 92 ★
README
sdflow-skills
围绕 **OpenSpec 规格驱动流程(spec-driven flow)** 的 Claude Code / Codex 自建 skills 集合, 隶属老刀AI码场自建 skills 体系。提供一条从「铺工作流 → 生成变更 → 设计审 → 代码审 → 收尾归档」 的规格驱动开发(SDD)闭环,外加缺陷 / 待办 / 批次的记录工具。
本仓库同时是这套 spec 工作流 bundle 的 **权威源**(见下方[工作原理](#工作原理)), 既产出工作流资产、又用它管理自身变更(dogfooding)。
📖 想系统理解这套体系的**原理、设计思路与实战用法**:见 [sdflow-init/assets/workflow/sdflow-guide.html](./sdflow-init/assets/workflow/sdflow-guide.html) (自包含单文件,浏览器直接打开即可;装过 sdflow 的机器上也可直接开 `~/.sdflow/workflow/sdflow-guide.html`)。
Quick Start(跑一个变更,从需求到 merge)
git clone https://github.com/laodao-ai/sdflow-skills.git ~/.skills/sdflow-skills && bash ~/.skills/sdflow-skills/setup.sh
装完在**你的项目**里,逐条敲(问题模糊先 `opsx:explore`,清晰直接进 `/sdflow-spec`;`/sdflow-spec` 人可直接触发,人示意收敛时模型也会自动 invoke):
/sdflow-init # 只做一次:把 spec 工作流 bundle 铺进这个项目
/sdflow-spec # 阶段一:澄清 → 拷问 → 生成四件套 + decision-memo.md
/clear # ↓ 出口序列(G1 的具名例外之一:cache 按模型隔离 + 产/审错档)
# 切换到评审档模型
/sdflow-spec-review # 阶段二:并行多镜设计审 → 一份 spec-review-report.md
# ★ 人在这里过一次报告拍板(全流程唯一人类门)
/sdflow-ship {change} # 阶段三:实现 → 代码审 → done → merge,一路连续跑
阶段一的 project-local schema 由 `sdflow-init` 从 `sdflow-init/assets/schemas/sdflow-spec-driven/` 下发到消费项目。它负责四件套结构、依赖、`skip_specs` 和委派提示;委派只是提示层引流,不能替代 `/sdflow-spec` 的入口规则。CLI 版本门未通过时保持内置 `spec-driven`;迁移必须先补写 在途 change 的 schema,再切换配置。当前不提供 fork 漂移的机械检测或自动 rebase,该边界已记录为 后续 todo。
Skills 列表
| 分类 | Skill | 说明 |
|---|---|---|
| 工作流铺设/维护 | sdflow-init |
一键把整套 OpenSpec spec 工作流 bundle 铺进任意项目(本仓库是该 bundle 权威源) |
| 工作流铺设/维护 | sdflow-upgrade |
运行 checkout 一键升级:pull → setup → 版本展示(堵 pull→setup 窗口期) |
| 生成(阶段一) | sdflow-spec |
阶段一·产 spec 单一入口:澄清 → 拷问 → 生成三相位一次连续跑,拷问结构性前置于成文;产四件套 + 承重的 decision-memo.md(/clear 无损)。人可直接触发;人示意收敛(如"开搞")时模型自动 invoke,但模型不得自主判断"该开 change 了" |
| 评审(主审) | sdflow-spec-review |
阶段二·设计审主审:自持广审双镜 + 并行多镜(领域+对抗+接地读码)+ design-voice 跨模型第二意见 → 一份 spec-review-report,供人类门拍板 |
| 评审(主审) |
Related Skills
Pharn Loop
Run the PRODUCT pipeline as a BOUNDED, FLOOR-GATED auto-iteration: the same gated chain as /pharn-ship (/pharn
Pharn Ship
Run the PRODUCT pipeline in order so a PHARN user need not re-type or memorize it: /pharn-spec → human approv
Mos Copywriting Skills
The Copywriting Blueprint for Claude Code: a 6-step research ladder, framework-driven copywriting (Sugarman, K
Spec-Flow Agents
Spec-Flow coordinates multiple coding tools through a single shared canon. Every agent must read the same rule
Debloat
Retroactive whole-repo bloat removal (spec H-2ii). Scores an existing repo on the deterministic bloat axes, wr
Issue To PR
Claude Code plugin marketplace: adversarial review, test authoring, PR lifecycle, and a resumable issue-to-PR
Related Agents
PM Spec Author
Senior product manager that produces the four-file feature spec (master plan, implementation plan, design guid
Clarify Thinking
Probe lens 1 of 6. Clarifies key terms, traces where conclusions came from, and exposes reasoning chains that
Oneshot Reviewer
Independent PR reviewer. Runs locally after a Oneshot run reaches completed (PR open AND required CI green). S