Smart-ralph spec-workflow
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.
install
source · Clone the upstream repo
git clone https://github.com/tzachbon/smart-ralph
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/tzachbon/smart-ralph "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/ralph-specum/skills/spec-workflow" ~/.claude/skills/tzachbon-smart-ralph-spec-workflow && rm -rf "$T"
manifest:
plugins/ralph-specum/skills/spec-workflow/SKILL.mdsource content
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 | |
| New feature, skip interviews | |
| Large feature needing decomposition | |
| Resume existing spec | (auto-detects) |
| Jump to specific 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 |
|---|---|---|---|
| research-analyst | research.md | Explore feasibility, patterns, context |
| product-manager | requirements.md | User stories, acceptance criteria |
| architect-reviewer | design.md | Architecture, components, interfaces |
| task-planner | tasks.md | POC-first task breakdown |
| 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:
-- create or resume an epic/ralph-specum:triage <goal>
-- detects active epics, suggests next unblocked spec/ralph-specum:start
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 |
|---|---|
| Show all specs and progress |
| Change active spec |
| Cancel active execution |
| 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
-- Detailed phase flow, state transitions, quick mode behavior, phase skippingreferences/phase-transitions.md