ralph-orchestrator

from cfircoo/claude-code-toolkit

No description

11 stars1 forksUpdated Jan 21, 2026
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill ralph-orchestrator

SKILL.md

Orchestrate the complete Ralph pipeline for autonomous feature development:
  1. spec-interview → Gather comprehensive requirements through guided discovery
  2. generate-prd → Create actionable Product Requirements Document
  3. ralph-convert-prd → Transform PRD into atomic user stories (prd.json)
  4. ralph.sh → Execute autonomous implementation loop

This skill coordinates these tools while keeping you in control at decision points.

<essential_principles>

Ralph spawns fresh Claude instances for each story. Memory persists only through: - Git history (committed code) - progress.txt (learnings between iterations) - prd.json (story status tracking)

Never assume Ralph "remembers" previous iterations.

Each user story MUST be completable in ONE context window.

Right-sized:

  • Add a database column
  • Create a UI component
  • Update a server action
  • Implement a filter

Too large (will fail):

  • Build entire dashboard
  • Add authentication system
  • Refactor entire API
All checks must pass before Ralph commits: - TypeCheck passes - Tests pass - UI verified in browser (for frontend stories)

Broken code compounds across iterations. Never skip quality checks.

You approve at each stage: 1. After spec-interview → Review SPEC.md 2. After generate-prd → Review PRD 3. After ralph-convert-prd → Review prd.json stories 4. Before ralph.sh → Confirm ready to execute

Don't rush. Bad requirements = wasted iterations.

</essential_principles>

What would you like to do?
  1. Full pipeline - Start from scratch (spec → PRD → prd.json → execute)
  2. Continue from PRD - Already have PRD, convert and execute
  3. Execute only - Already have prd.json, run Ralph
  4. Check status - View current prd.json progress

Wait for response before proceeding.

| Response | Workflow | |----------|----------| | 1, "full", "start", "new feature" | `workflows/full-pipeline.md` | | 2, "continue", "have PRD", "convert" | `workflows/from-prd.md` | | 3, "execute", "run ralph", "have prd.json" | `workflows/execute-only.md` | | 4, "status", "check", "progress" | `workflows/check-status.md` |

After reading the workflow, follow it exactly.

<quick_reference>

Key Files:

FilePurpose
SPEC.mdComprehensive requirements from spec-interview
tasks/prd-*.mdProduct Requirements Document
prd.jsonAtomic user stories for Ralph (in project root)
progress.txtLearnings between iterations (in project root)
scripts/ralph.shRalph execution script (in this skill folder)
scripts/prompt.mdIteration prompt template

Commands:

# Run Ralph from your project directory
# (assumes toolkit is at ~/projects/claude-code-toolkit)
~/projects/claude-code-toolkit/skills/ralph-orchestrator/scripts/ralph.sh

# Or create an alias in ~/.bashrc:
alias ralph='~/projects/claude-code-toolkit/skills/ralph-orchestrator/scripts/ralph.sh'

# Run with custom iteration limit
ralph 5

# Check story status
cat prd.json | jq '.userStories[] | {id, title, passes}'

# View learnings
cat progress.txt

</quick_reference>

<workflows_index>

WorkflowPurpose
full-pipeline.mdComplete flow: spec → PRD → prd.json → execute
from-prd.mdConvert existing PRD and execute
execute-only.mdRun Ralph on existing prd.json
check-status.mdView current progress
</workflows_index>

<success_criteria> Pipeline is complete when:

  • Requirements gathered through spec-interview
  • PRD created with verifiable acceptance criteria
  • prd.json has atomic, right-sized stories
  • All stories have passes: true in prd.json
  • Code committed and quality checks passing </success_criteria>

Repository Stats

Stars11
Forks1
LicenseMIT License