From ralpr
Ralpr - Ralph Autonomous Loop for Pull-request Readiness. Three phases - Implementation → Review → Refactor. Each invocation runs a single iteration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ralpr:ralprThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Three-phase architecture: **Implementation → Review → Refactor**
Three-phase architecture: Implementation → Review → Refactor
You MUST follow these steps sequentially — no parallel execution, no skipping.
Step 1 — Read phase docs FIRST. Before running ANY script or spawning ANY agent, read ALL @-referenced documentation for your phase. This is BLOCKING — do not proceed until you have read every referenced doc.
Step 2 — Pass arguments to scripts. All --issue and --pr arguments are optional. If the user provided a specific number, pass it. Otherwise, the scripts will auto-select.
Step 3 — Execute phase workflow. Follow the phase documentation step-by-step.
Critical - ALWAYS work in worktrees (described in every phase), otherwise parallel agents might work on the same branch resulting in collisions!
SKILL.md, phase-*.md, comment-formats.md, iteration-state.md) is authoritative. If script behavior or output contradicts docs, follow docs and flag the discrepancy to the user.| Agent | subagent_type | Purpose |
|---|---|---|
| Explore | ralpr:explore-agent | Map codebase structure |
| Understand | ralpr:understand-agent | Extract issue/PR requirements |
| Implement | ralpr:implement-agent | TDD implementation |
| QA Reviewer | ralpr:qa-reviewer | Test coverage, edge cases |
| Domain Expert | ralpr:domain-expert | Architecture, security, bugs |
| Codex Reviewer | ralpr:codex-reviewer | Third-party MCP review |
Only use these exact subagent_type values.
All scripts: RALPR_SCRIPTS/ralpr <subcommand> (path provided at session start)
Output contract: Parse RALPR_RESULT: {...json...} from stdout last line.
Select phase based on arguments. Issue/PR numbers are optional — scripts auto-select if omitted.
| Condition | Phase | Documentation |
|---|---|---|
[--issue <N>] --phase impl provided | Implementation | @../../docs/phase-implementation.md |
--pr <N> --phase review provided | Review | @../../docs/phase-review.md |
--pr <N> --phase refactor provided | Refactor | @../../docs/phase-refactor.md |
See @../../docs/iteration-state.md for:
RALPR_REVIEW_STATE, RALPR_REFACTOR_STATESee @../../docs/comment-formats.md for:
| Situation | Action |
|---|---|
| No default branch | STOP |
| No ready tickets | STOP |
| Already assigned | Pick next |
| Tests/CI fail | Fix & retry, or RELEASE and STOP |
| Agent output invalid | Retry once, then STOP |
Rule: Never leave assigned and inactive. Either fix or release.
npx claudepluginhub archethect/ralprRuns autonomous AI coding loop with ralph-starter: checks project state, implements tasks from specs/GitHub/Linear/Notion/Figma issues, iterates code writing/validation/commits.
Runs Ralph Loop autonomous dev loop: reads PRD/checklist, implements/tests/commits one item per session via Stop Hook, auto-branches/ignores state. Trigger: autodev, ralph loop for overnight progress.
Documents Ralph plugin arguments (--quick, --commit), execution modes (normal/quick), state management (.ralph-state.json), commit behavior, task loops, and error handling.