一键导入
ralpr
Ralpr - Ralph Autonomous Loop for Pull-request Readiness. Three phases - Implementation → Review → Refactor. Each invocation runs a single iteration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Ralpr - Ralph Autonomous Loop for Pull-request Readiness. Three phases - Implementation → Review → Refactor. Each invocation runs a single iteration.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ralpr |
| description | Ralpr - Ralph Autonomous Loop for Pull-request Readiness. Three phases - Implementation → Review → Refactor. Each invocation runs a single iteration. |
| args | [--issue <number>] [--pr <number>] [--phase <impl|review|refactor>] [--human-review] [--dry-run] |
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.