rpi

Run discovery, crank, validation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rpi" with this command: npx skills add boshu2/agentops/boshu2-agentops-rpi

/rpi - Full Lifecycle Orchestrator

Quick ref: /discovery -> /crank -> /validation, then report.

Execute this workflow. Do not only describe it. RPI is autonomous unless --interactive is set. The user touchpoint is after validation, or after a real blocked state exhausts retries. Read references/autonomous-execution.md when you need the full autonomy contract.

Core Contract

RPI delegates via Skill(skill="discovery", ...), Skill(skill="crank", ...), and Skill(skill="validation", ...) as separate tool invocations. Keep strict delegation on by default; do not compress phases, replace phase skills with direct agent spawns, or skip validation. Read ../shared/references/strict-delegation-contract.md for the full anti-compression contract.

RPI owns one lifecycle objective across all phases. Preserve the discovered epic_id when present; otherwise preserve the original goal and execution packet objective. A child bead or one ready slice is context, not a replacement objective. <promise>PARTIAL</promise> from /crank means retry Phase 2 on the same objective.

Route And Classify

  1. Create .agents/rpi/.
  2. Resolve --from:
    • default, research, plan, pre-mortem, brainstorm -> discovery
    • implementation or crank -> implementation
    • validation, vibe, or post-mortem -> validation
  3. If the input is a bead and --from is absent, resolve it with bd show:
    • epic -> implementation with that epic
    • child with parent -> implementation with the parent epic
  4. Classify complexity:
    • fast: short/simple goal or --fast-path
    • standard: medium goal or one scope keyword
    • full: --deep, complex-operation keyword, 2+ scope keywords, or >120 chars
  5. Log RPI mode: rpi-phased (complexity: <level>).

Track state compactly:

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,
  verdicts: {}
}

Complex-operation keywords include refactor, migrate, rewrite, redesign, rearchitect, overhaul, decouple, deprecate, split, extract module, and port. Scope keywords include all, entire, across, everywhere, every file, system-wide, global, and codebase.

Phase DAG

Enter at the routed phase and run every phase after it.

  1. Discovery: invoke /discovery <goal> [--interactive] --complexity=<level>. On DONE, read .agents/rpi/execution-packet.json or the run archive and preserve its objective spine. On BLOCKED, stop with the discovery verdict.
  2. Implementation: invoke /crank <epic-id> when the packet has epic_id; otherwise invoke /crank .agents/rpi/execution-packet.json. Pass --test-first or --no-test-first through. On DONE, record ao ratchet record implement 2>/dev/null || true and continue. On PARTIAL or BLOCKED, retry the same objective up to 3 total attempts.
  3. Validation: invoke /validation <epic-id> --complexity=<level> when an epic exists; otherwise invoke /validation --complexity=<level>. Add --strict-surfaces when --quality is set. On FAIL, extract findings, re-run /crank on the same objective, then re-run /validation, up to 3 total validation attempts. On DONE, record ao ratchet record vibe 2>/dev/null || true.
  4. Report: summarize phase verdicts and epic status using references/report-template.md. With --loop, restart from discovery on FAIL while cycle < max_cycles. With --spawn-next, read .agents/rpi/next-work.jsonl and suggest the next command without invoking it.

Phase Data Contract

The execution packet carries the repo execution profile through contract_surfaces, done_criteria, and queue claim/finalize metadata. Keep the latest alias at .agents/rpi/execution-packet.json and read references/phase-data-contracts.md for schemas and archive paths.

Complexity-Scaled Gates

Pre-mortem

  • complexity == "low" or "fast": inline review, no spawning (--quick)
  • complexity == "medium" or "standard": inline fast default (--quick)
  • complexity == "high" or "full": full council, 2-judge minimum; max 3 total attempts

Final Vibe

  • complexity == "low" or "fast": inline review, no spawning (--quick)
  • complexity == "medium" or "standard": inline fast default (--quick)
  • complexity == "high" or "full": full council, 2-judge minimum; max 3 total attempts

Post-mortem (STEP 2)

  • complexity == "low" or "fast": inline review, no spawning (--quick)
  • complexity == "medium" or "standard": inline fast default (--quick)
  • complexity == "high" or "full": full council, 2-judge minimum; max 3 total attempts

Flags

FlagDefaultPurpose
--from=<phase>discoveryStart at discovery, implementation, or validation
--discovery-artifact=<path>unsetWith implementation start, convert an existing artifact into the handoff packet
--interactiveoffHuman gates in discovery/validation
--autoonFully autonomous default
--loop --max-cycles=<n>off / 3Iterate when validation fails
--spawn-nextoffSurface follow-up work after reporting
--test-firstonPass strict-quality preference to /crank
--no-test-firstoffExplicitly opt out of strict-quality
--fast-path / --deepautoForce fast or full complexity
--qualityoffMake validation strict surfaces blocking
--dry-run / --no-budgetoffReport only, or disable phase time budgets

Examples

User says: /rpi "add user authentication" Run discovery, implementation, validation, then report.

User says: /rpi --from=implementation ag-23k Resolve the bead scope, run implementation and validation, then report.

User says: /rpi --deep "refactor payment module" Use full council gates across the lifecycle.

Read references/examples.md for resume, interactive, loop, and artifact-mode examples.

Troubleshooting

ProblemResponse
Discovery BLOCKEDStop and report discovery's manual-intervention reason
/crank returns PARTIALRetry /crank on the same objective; do not narrow to a child slice
Validation FAILRe-crank with findings, then re-validate, up to 3 total attempts
Packet shape unclearRead references/phase-data-contracts.md

Reference Documents

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

council

No summary provided by upstream source.

Repository SourceNeeds Review
1.8K-boshu2
Automation

swarm

No summary provided by upstream source.

Repository SourceNeeds Review
538-boshu2
Automation

bug-hunt

No summary provided by upstream source.

Repository SourceNeeds Review
535-boshu2
Automation

readme

No summary provided by upstream source.

Repository SourceNeeds Review
515-boshu2