Nov 16, 2026
Run Spec-Driven Feature Work with the Smart Ralph Plugin
A 1k-star plugin for Claude Code and Codex that turns a feature request into a structured spec, then executes it one task at a time with fresh context.
Feature work that lives only inside one long agent session is hard to review mid-flight and easy to lose when the session dies. Smart Ralph, a 1k-star MIT-licensed plugin for Claude Code and Codex, turns a feature request into a structured spec, then executes it one task at a time with fresh context.
Why This Skill Matters
The spec files stay in your project — research, requirements, design, and tasks — so you can review or edit each phase before execution. Large goals start with triage, which splits the work into dependency-aware specs under an epic plan. Smart Ralph records progress between tasks and can resume after a stopped session. The name comes from the Ralph agentic loop pattern, and the execution loop is self-contained with no external plugin dependencies.
Installation
For Claude Code, add the marketplace and install, then restart:
/plugin marketplace add tzachbon/smart-ralph
/plugin install ralph-specum@smart-ralph
For Codex, the marketplace add is sparse-checked out, and the Stop hook gates automatic execution:
codex plugin marketplace add tzachbon/smart-ralph \
--sparse .agents/plugins \
--sparse plugins/ralph-specum-codex
codex plugin add ralph-specum@smart-ralph
Start a new Codex task after installation, run /hooks, review the bundled Stop hook, and trust it if you want automatic task execution. Until then, run $ralph-specum-implement once per task.
Real Workflow: Ship User Authentication Through the Full Pipeline
Start a spec by naming it and stating the goal:
/ralph-specum:start user-auth "Add JWT authentication"
Without --quick, the pipeline runs phase by phase with approval checkpoints between them: research analyzes the codebase and checks feasibility, requirements writes user stories and acceptance criteria, design records architecture and trade-offs, and tasks breaks the design into a POC-first task sequence. Each phase goes to a focused agent — the README's table assigns triage to triage-analyst, research to research-analyst, requirements to product-manager, prototypes to prototype-builder, design to architect-reviewer, tasks to task-planner, and execution to spec-executor.
Implementation tasks follow four phases: make it work with a POC, refactor the working code, add unit, integration, and end-to-end tests, then run quality gates — lint, type, and CI checks. Progress lands in .progress.md, completed work is marked in tasks.md, and .ralph-state.json is deleted when execution finishes.
Add --quick to generate all spec phases and execute without stopping between them.
Real Workflow: Triage a Big Goal or Resume Where You Stopped
Run /ralph-specum:start without arguments to resume the active spec. For a goal that spans several features or systems, start with /ralph-specum:triage — it explores the problem, brainstorms, validates, and finalizes an epic plan whose state files track which specs are ready, blocked, or complete.
Tips
- Before the first feature in a codebase Smart Ralph has not seen, run
/ralph-specum:index: it writes searchable component specs underspecs/.index/, detects controllers, services, models, helpers, and migrations, and can also record external URLs, MCP servers, and installed skills. - Tune planning with
--tasks-size fine|coarsefor granularity,[P]for low-conflict parallel tasks, and[VERIFY]/VE tasks for explicit verification. - Prototypes are optional and behave differently per mode: normal mode may suggest one after research or requirements, and transfers only paths you approve; quick mode asks no prototype questions, owns the decisions, and always continues to design after the prototype outcome. Prototype source stays in a sibling worktree or eligible scratch directory.
- Repeated task failure: read
.progress.md, fix the reported problem, then run/ralph-specum:implement. - The same repo ships
ralph-speckit, an alternative plugin for GitHub's Spec-Kit methodology that adds a project constitution and requirement-to-task traceability — its files live under.specify/specs/with001-feature-namenaming, and the README frames it as best fit for team governance and audit trails.
When Not to Use This
Quick mode is the documented trade: it generates all spec phases and executes without stopping, asks no prototype questions, and owns the decisions. If you want to gate every phase yourself, stay in normal mode with its approval checkpoints. Note for upgrades: v3.0.0 moved execution into the plugin's Stop hook, so projects that used v2.x no longer need the separate Ralph Loop plugin.
See the leaderboard for more skills.