/boshu2:rpifrom boshu2
Full RPI lifecycle orchestrator. Delegates to /discovery, /crank, /validation phase skills. One command, full lifecycle with complexity classification, --from routing, and optional loop. Triggers: "rpi", "full lifecycle", "research plan implement", "end to end".
Ships in boshu2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Quick Ref: One command, full lifecycle.
/discovery→/crank→/validation. Thin wrapper that delegates to phase orchestrators.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
/rpi "add user authentication" # full lifecycle
/rpi --interactive "add user authentication" # human gates in discovery only
/rpi --from=discovery "add auth" # resume discovery
/rpi --from=implementation ag-23k # skip to crank with existing epic
/rpi --from=validation # run validation only
/rpi --loop --max-cycles=3 "add auth" # iterate-on-fail loop
/rpi --deep "refactor payment module" # force full council ceremony
/rpi --fast-path "fix typo in readme" # force lightweight ceremony
/rpi --no-test-first "add auth" # opt out of strict-quality
/rpi <goal | epic-id> [--from=<phase>] [--interactive] [--deep|--fast-path]
│
├── Step 0: Setup + complexity classification
│
├── Phase 1: /discovery <goal>
│ └── brainstorm → ao search → research → plan → pre-mortem (gate)
│ └── Outputs: epic-id, execution-packet.json
│
├── Phase 2: /crank <epic-id>
│ └── wave-based implementation + validation + rework
│ └── Gate: DONE → proceed, BLOCKED/PARTIAL → retry (max 3)
│
└── Phase 3: /validation <epic-id>
└── vibe → post-mortem → retro → forge
└── Gate: PASS/WARN → finish, FAIL → re-crank (max 3)
Phase orchestrators own all sub-skill sequencing, retry gates, and phase budgets.
/rpi owns only: setup, complexity classification, phase routing, implementation gate, validation-fail-to-crank loop, and final report.
mkdir -p .agents/rpi
Determine starting phase:
discovery--from=implementation (aliases: crank) → skip to Phase 2--from=validation (aliases: vibe, post-mortem) → skip to Phase 3research, plan, pre-mortem, brainstorm map to discoveryag-*) and --from is not set, start at implementation.Classify complexity:
| Level | Criteria | Behavior |
|---|---|---|
fast | Goal <=30 chars, no complex/scope keywords | Discovery → crank only. Skip validation. |
standard | Goal 31-120 chars, or 1 scope keyword | Full 3-phase. Gates use --quick. |
full | Complex-operation keyword, 2+ scope keywords, or >120 chars | Full 3-phase. Gates use full council. |
Complex-operation keywords: refactor, migrate, migration, rewrite, redesign, rearchitect, overhaul, restructure, reorganize, decouple, deprecate, split, extract module, port
Scope keywords: all, entire, across, everywhere, every file, every module, system-wide, global, throughout, codebase
Overrides: --deep forces full. --fast-path forces fast.
Log:
RPI mode: rpi-phased (complexity: <level>)
Initialize state:
rpi_state = {
goal: "<goal string>",
epic_id: null,
phase: "<discovery|implementation|validation>",
complexity: "<fast|standard|full>",
test_first: <true by default; false only when --no-test-first>,
cycle: 1,
max_cycles: <3 when --loop; overridden by --max-cycles>,
verdicts: {}
}
Delegate to /discovery:
Skill(skill="discovery", args="<goal> [--interactive] --complexity=<level>")
After /discovery completes:
<promise>DONE</promise> or <promise>BLOCKED</promise>.agents/rpi/execution-packet.jsonrpi_state.epic_id and rpi_state.verdicts.pre_mortemRequires rpi_state.epic_id.
Skill(skill="crank", args="<epic-id> [--test-first] [--no-test-first]")
Implementation gate (max 3 attempts):
<promise>DONE</promise>: proceed to validation<promise>BLOCKED</promise>: retry with block context (max 2 retries)
/crank with epic-id + block reason<promise>PARTIAL</promise>: retry remaining (max 2 retries)
/crank with epic-id (picks up unclosed issues)Record:
ao ratchet record implement 2>/dev/null || true
Skip if: complexity == fast (fast-path runs discovery + crank only).
Skill(skill="validation", args="<epic-id> --complexity=<level>")
Validation-to-crank loop (max 3 total attempts):
<promise>DONE</promise>: finish RPI<promise>FAIL</promise>: vibe found defects
/crank with epic-id + findings context (preserve --test-first / --no-test-first from original invocation)/validationRecord:
ao ratchet record vibe 2>/dev/null || true
Report: Summarize all phase verdicts and epic status.
Optional loop (--loop): If validation verdict is FAIL and cycle < max_cycles:
rpi_state.cycle/rpi from discovery with a tightened goalOptional spawn-next (--spawn-next): After PASS/WARN finish:
.agents/rpi/next-work.jsonl for harvested follow-up items/rpi commandRead references/report-template.md for full output format.
Read references/error-handling.md for failure semantics.
| Flag | Default | Description |
|---|---|---|
--from=<phase> | discovery | Start from discovery, implementation, or validation |
--interactive | off | Human gates in discovery |
--loop | off | Post-mortem FAIL triggers new cycle |
--max-cycles=<n> | 3 | Max cycles when --loop enabled (default 3) |
--spawn-next | off | Surface follow-up work after completion |
--test-first | on | Strict-quality (passed to /crank) |
--no-test-first | off | Opt out of strict-quality |
--fast-path | auto | Force fast complexity |
--deep | auto | Force full complexity |
--dry-run | off | Report without mutating queue |
--no-budget | off | Disable phase time budgets (passed to phase skills) |
All transitions use filesystem artifacts (no in-memory coupling). The execution packet (.agents/rpi/execution-packet.json) carries contract_surfaces (repo execution profile), done_criteria, and queue claim/finalize metadata between phases. Sub-skills include /plan, /vibe, /post-mortem, and /pre-mortem. For detailed contract schemas, read references/phase-data-contracts.md.
Read references/examples.md for full lifecycle, resume, and interactive examples.
Read references/troubleshooting.md for common problems and solutions.
See also: discovery, crank, validation
references/complexity-scaling.md (opens in a new tab)references/context-windowing.md (opens in a new tab)references/error-handling.md (opens in a new tab)references/examples.md (opens in a new tab)references/gate-retry-logic.md (opens in a new tab)references/gate4-loop-and-spawn.md (opens in a new tab)references/phase-budgets.md (opens in a new tab)references/phase-data-contracts.md (opens in a new tab)references/report-template.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/validate.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin boshu250 skills in this plugin
/beadsGit-backed issue tracker for multi-session work with dependencies and persistent memory across conversation compaction. Use when work spans sessions, has blockers, or needs context recovery after compaction.
/brainstormCollaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding./bug-huntInvestigate suspected bugs or run proactive code audits. Triggers: "bug", "broken", "doesn't work", "failing", "investigate bug", "debug", "find the bug", "troubleshoot", "audit code", "find bugs in", "code audit", "hunt bugs".Other plugins' skills for the same job