‹ 首页

spec-workflow

@tzachbon · 收录于 1 周前

This skill should be used when the user asks to "build a feature", "create a spec", "start spec-driven development", "run research phase", "generate requirements", "create design", "plan tasks", "implement spec", "check spec status", "triage a feature", "create an epic", "decompose a large feature", or needs guidance on spec-driven development workflow, phase ordering, or epic orchestration.

适合你,如果需要在开发前系统化梳理需求并规划实现步骤

/ 下载安装
spec-workflow.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add tzachbon/smart-ralph/spec-workflow
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- tzachbon/smart-ralph/spec-workflow
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify tzachbon/smart-ralph/spec-workflow
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
419GitHub stars
~677最小装载
~1.2K含声明引用
~1.2K文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · 1b33202

Spec Workflow

Spec-driven development transforms feature requests into structured specs through sequential phases, then executes them task-by-task.

Decision Tree: Where to Start

| Situation | Command | |-----------|---------| | New feature, want guidance | /ralph-specum:start <name> <goal> | | New feature, skip interviews | /ralph-specum:start <name> <goal> --quick | | Large feature needing decomposition | /ralph-specum:triage <goal> | | Resume existing spec | /ralph-specum:start (auto-detects) | | Jump to specific phase | /ralph-specum:<phase> |

Single Spec Flow
start/new -> research -> requirements -> design -> tasks -> implement

Each phase produces a markdown artifact in ./specs/<name>/. Normal mode pauses for approval between phases. Quick mode runs all phases then auto-starts execution.

Phase Commands

| Command | Agent | Output | Purpose | |---------|-------|--------|---------| | /ralph-specum:research | research-analyst | research.md | Explore feasibility, patterns, context | | /ralph-specum:requirements | product-manager | requirements.md | User stories, acceptance criteria | | /ralph-specum:design | architect-reviewer | design.md | Architecture, components, interfaces | | /ralph-specum:tasks | task-planner | tasks.md | POC-first task breakdown | | /ralph-specum:implement | spec-executor | commits | Autonomous task-by-task execution |

Epic Flow (Multi-Spec)

For features too large for a single spec, use epic triage to decompose into dependency-aware specs.

triage -> [spec-1, spec-2, spec-3...] -> implement each in order

Entry points:

  • /ralph-specum:triage <goal> -- create or resume an epic
  • /ralph-specum:start -- detects active epics, suggests next unblocked spec

File structure:

specs/
  _epics/<epic-name>/
    epic.md            # Triage output (vision, specs, dependency graph)
    research.md        # Exploration + validation research
    .epic-state.json   # Progress tracking across specs
    .progress.md       # Learnings and decisions
Management Commands

| Command | Purpose | |---------|---------| | /ralph-specum:status | Show all specs and progress | | /ralph-specum:switch <name> | Change active spec | | /ralph-specum:cancel | Cancel active execution | | /ralph-specum:refactor | Update spec files after execution |

Common Workflows
Quick prototype
/ralph-specum:start my-feature "Build X" --quick
# Runs all phases automatically, starts execution
Guided development
/ralph-specum:start my-feature "Build X"
# Interactive interviews at each phase
# Review and approve each artifact
/ralph-specum:implement
Large feature
/ralph-specum:triage "Build entire auth system"
# Decomposes into: auth-core, auth-oauth, auth-rbac
/ralph-specum:start  # Picks next unblocked spec
References
  • references/phase-transitions.md -- Detailed phase flow, state transitions, quick mode behavior, phase skipping
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。