by tzachbon
Spec-driven development with smart compaction. Claude Code plugin combining Ralph Wiggum loop with structured specification workflow.
# Add to your Claude Code skills
git clone https://github.com/tzachbon/smart-ralphLast scanned: 5/28/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-28T08:00:37.929Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how smart-ralph compares with popular alternatives.
smart-ralph is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by tzachbon. Spec-driven development with smart compaction. Claude Code plugin combining Ralph Wiggum loop with structured specification workflow. It has 558 GitHub stars.
Yes. smart-ralph passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/tzachbon/smart-ralph" and add it to your Claude Code skills directory (see the Installation section above).
smart-ralph is primarily written in Shell. It is open-source under tzachbon on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh smart-ralph against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Spec-driven development for Claude Code and Codex.
Smart Ralph turns a feature request into a structured spec, then executes it one task at a time with fresh context. The execution loop is self-contained and has no external plugin dependencies.
How it works | Installation | Quick start | Commands | Troubleshooting
Smart Ralph creates research, requirements, design, and task files before implementation. Large goals can start with triage, which splits the work into dependency-aware specs.
The spec files stay in the project, so you can review or edit each phase before execution. Smart Ralph records progress between tasks and can resume after a stopped session.
An optional prototype can test one focused design question without turning disposable source into production code.
flowchart TD
A["I want a feature!"] --> B{"/start detects scope"}
B -->|Single spec| C[Research]
B -->|"Too big for one spec"| T["/triage"]
C -->|Analyzes codebase, searches web| D[Requirements]
D -->|User stories, acceptance criteria| E[Design]
E -->|Architecture, patterns, decisions| F[Tasks]
F -->|POC-first task breakdown| G[Execution]
G -->|Task-by-task with fresh context| H["I did it!"]
T -->|Explore| T1[Exploration Research]
T1 -->|Brainstorm| T2[Triage Analyst]
T2 -->|Validate| T3[Validation Research]
T3 -->|Finalize| T4["Epic Plan"]
T4 -->|"Spec 1, Spec 2, ..."| C
/plugin marketplace add tzachbon/smart-ralph
/plugin install ralph-specum@smart-ralph
Restart Claude Code after installation.
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.
The Codex installation guide covers updates, local development with codex plugin marketplace add ., and migration from the old platforms/codex/ skills.
For local Claude Code development, clone this repository and run claude --plugin-dir ./plugins/ralph-specum.
$ralph-specum-start user-auth "Add JWT authentication"
Use $ralph-specum when you want Smart Ralph to choose the next action. Codex asks for approval after each spec artifact unless the command includes the exact --quick flag. Start with $ralph-specum-triage when a goal spans several features or systems.
/ralph-specum:start user-auth "Add JWT authentication"
Add --quick to generate the spec and start execution without stopping between phases. Run /ralph-specum:start without arguments to resume the active spec.
Claude Code uses /ralph-specum:<name>. Codex uses $ralph-specum-<name> and folds new into $ralph-specum-start.
| Command | What it does |
|---|---|
/ralph-specum:start [name] [goal] |
Resume a spec or create one |
/ralph-specum:start [goal] --quick |
Generate all spec phases and execute |
/ralph-specum:new <name> [goal] |
Create a spec and wait for approval before research |
/ralph-specum:triage [name] [goal] |
Split a large goal into an epic |
/ralph-specum:research |
Run or repeat research |
/ralph-specum:requirements |
Generate requirements from research |
/ralph-specum:prototype |
Run or resume an optional prototype |
/ralph-specum:design |
Generate the technical design |
/ralph-specum:tasks |
Break the design into executable tasks |
/ralph-specum:implement |
Execute tasks one at a time |
/ralph-specum:index |
Generate searchable codebase specs |
/ralph-specum:refactor |
Update requirements, design, or tasks |
/ralph-specum:status |
Show specs and progress |
/ralph-specum:switch <name> |
Change the active spec |
/ralph-specum:cancel |
Cancel execution and remove loop state |
/ralph-specum:feedback [message] |
Submit feedback or report an issue |
/ralph-specum:help |
Show command and workflow help |
Smart Ralph gives each phase to a focused agent.
| Phase | Agent | Responsibility |
|---|---|---|
| Triage | triage-analyst |
Split features and map dependencies |
| Research | research-analyst |
Inspect the codebase and check feasibility |
| Requirements | product-manager |
Write user stories and acceptance criteria |
| Prototype | prototype-builder |
Test one design question with disposable evidence |
| Design | architect-reviewer |
Define architecture and trade-offs |
| Tasks | task-planner |
Create a POC-first task sequence |
| Execution | spec-executor |
Implement tasks and run quality gates |
Tasks follow four phases:
Planning controls include:
--tasks-size fine|coarse for task granularity[P] for low-conflict parallel tasks[VERIFY] and VE tasks for explicit verification/ralph-specum:prototype or $ralph-specum-prototype at a safe phase boundary.Smart Ralph stores progress in .progress.md and marks completed work in tasks.md. Each implementation task starts with fresh context.
/ralph-specum:index scans an existing project and writes searchable component specs under specs/.index/. Research agents use that index to find code that the project already has.
/ralph-specum:index
/ralph-specum:index --quick
/ralph-specum:index --dry-run
/ralph-specum:index --path=src/api/
| Option | Effect |
|---|---|
--path=<dir> |
Scan one directory |
--type=<types> |
Limit component types |
--exclude=<patterns> |
Skip matching paths |
--dry-run |
Preview without writing specs |
--force |
Regenerate the index |
--changed |
Regenerate Git-changed files |
--quick |
Skip the pre-scan and post-scan interviews |
The scanner detects controllers, services, models, helpers, and migrations. It can also record external URLs, MCP servers, and installed skills. Run the index before starting a feature in a codebase that Smart Ralph has not seen.
The generated index has a summary dashboard, component specs, and external resource specs. Research searches both feature specs and indexed specs when it gathers context.
Plugin source lives in plugins/ralph-specum/ for Claude Code, plugins/ralph-specum-codex/ for Codex, and plugins/ralph-speckit/ for the Spec-Kit workflow.
Smart Ralph writes feature specs inside the project where you run it:
specs/
|-- .current-spec
`-- my-feature/
|-- .ralph-state.json
|-- .progress.md
|-- prototypes/
| `-- <id>.md
|-- research.md
|-- requirements.md
|-- design.md
`-- tasks.md
Smart Ralph deletes .ralph-state.json when execution finishes. It keeps .progress.md so later tasks can recover decisions and learnings.
Epic plans live under specs/_epics/<name>/. Their state files track which specs are ready, blocked, or complete.
ralph-speckit is the alternative plugin for GitHub's Spec-Kit methodology. It adds a project constitution and requirement-to-task traceability.
| Feature | ralph-specum | ralph-speckit |
|---|---|---|
| Directory | specs/ |
.specify/specs/ |
| Naming | my-feature/ |
001-feature-name/ |
| Governance | Per-spec workflow | Project constitution |
| Main files | Research, requirements, design, tasks | Spec, plan, tasks |
| Best fit | Fast iteration | Team governance and audit trails |
/plugin install ralph-speckit@smart-ralph
/speckit:constitution
/speckit:start user-auth "Add JWT authentication"
/speckit:specify
/speckit:plan
/speckit:tasks
/speckit:implement
The plugin also includes /speckit:status, /speckit:switch, /speckit:cancel, /speckit:clarify, and /speckit:analyze. See the Ralph Speckit guide for its file layout and command details.
.progress.md, fix the reported problem, then run /ralph-specum:implement./ralph-specum:cancel, then start a new spec./ralph-specum:start. Ralph finds the active spec.See the Troubleshooting Guide for installation, state, hook, and recovery problems.
Smart