Skip to content

Structured feature workflow that takes a topic from requirements through design, planning, parallel implementation, and validation.

CCM score
58 of 100
version
1.8.1
GitHub stars
25
View on GitHub

Own this plugin? Claim it

What it does

  • Adds 8 commands (/rpi, /requirements, /problem, /design, /plan, /implement, /validate, /arch) plus 6 agents for requirements, design, planning, and review
  • Covers six phases with artifacts saved under .claude/specs/ and .claude/plans/, each feeding the next
  • Enforces EARS-format requirements and a review skill after each stage to catch coverage gaps and ambiguity
  • Designed for medium and large features where plans are split into sub-plans and implemented one phase at a time

Feature development workflow: arch → plan → implement → review → fix

Add marketplace

/plugin marketplace add CaptainCrouton89/crouton-kit

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install rpi@crouton-kit

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Review Design

Input: $ARGUMENTS

Parse input to extract design path and requirements path. Expected format: {design-path} {requirements-path} or just {design-path} (infer requirements from same topic directory).

Phase 1: Requirements Coverage

Designs that skip requirements produce elegant architectures that solve the wrong problem.

Spawn a Task agent to verify the design addresses all requirements:

Task tool parameters: subagent_type: general-purpose model: sonnet description: Design-requirements coverage check prompt: | Check that the design covers all requirements.

Input: $ARGUMENTS
- Design: the design.md file
- Requirements: the requirements.md file (same topic directory, or provided explicitly)

## Process

1. Read requirements file — extract every user story and acceptance criterion
2. Read design file
3. Map each acceptance criterion to design coverage: covered, partial, or missing
4. A criterion is "covered" if the design's architecture, components, data models, or error handling would enable an implementer to satisfy it without guessing

## Output

If all covered: `PASS`

If gaps exist:
- Missing: [acceptance criterion not addressed by design]
- Partial: [criterion partially covered — what's missing]

If coverage check fails, report issues and stop.

Phase 2: Flow Simulation

You (the main agent) do this phase directly — do not delegate.

This is the highest-signal review activity. Most design gaps hide in the seams between components.

Process

  1. Read the design and requirements.

  2. Read critical related files — just the ones defining runtime contracts the design depends on:

    • Data models (schemas, types) the design creates or reads
    • Services/endpoints the design extends
    • State machines or lifecycle code the design participates in
  3. Construct the step-by-step journey. Write out the flow from trigger to final state — every user action, system reaction, state change. Include happy path and important alternate paths.

  4. At each step, check:

    CheckQuestionExample gap
    PreconditionsWhat must be true for this step? Is it guaranteed by the design?"Design creates a record but doesn't specify what happens if the parent doesn't exist"
    State consistencyDoes the system interpret state correctly at each point?"Component A sets status to PENDING but Component B only handles ACTIVE and COMPLETE"
    FailureWhat happens if this step fails? Is recovery defined?"If the API call fails, the design doesn't say whether to retry or surface the error"
    HandoffDoes this step's output match the next step's expected input?"Service returns a list but the consumer expects a single item"
  5. Report findings. For each gap: what step, what's missing, what would go wrong during implementation.

If no gaps: PASS — flow simulation found no gaps.

Phase 3: Feasibility Review

A design can cover all requirements and flow correctly but still be unbuildable — incompatible with existing patterns, impossible data model, or components that can't actually connect.

Spawn a Task agent to check architectural feasibility:

Task tool parameters: subagent_type: general-purpose model: sonnet description: Design feasibility review prompt: | Review the design for architectural feasibility.

Design path: [from $ARGUMENTS]

## Process

1. Read the design file
2. Read related files listed in the design
3. Read CLAUDE.md and .claude/rules/*.md for project patterns
4. Check:
   - **Pattern compatibility**: Does the design follow or reasonably extend existing patterns? Flag contradictions with established conventions.
   - **Component boundaries**: Are responsibilities clear? Would two teams implementing different components know exactly where one ends and the other begins?
   - **Data model soundness**: Are schemas consistent with existing models? Are relationships, constraints, and validation rules well-defined?
   - **Integration feasibility**: Can the proposed components actually connect as described? Are there missing adapters, transformations, or protocol mismatches?

## Critical Rules

- If the design is sound, report PASS.
- Do NOT fabricate concerns or suggest alternatives that aren't clearly better.
- Do NOT flag: subjective architecture preferences, speculative scaling concerns, things the planner will naturally resolve.
- Threshold: Would an implementer discover that the design can't work as described?

## Output

If no issues: `PASS — design is feasible and compatible with existing patterns.`

If issues exist:
- **{issue}** — {what's wrong or incompatible} → {what would break during implementation}

Phase 4: Aggregate

Multiple phases catching the same gap is signal — those are the issues most likely to cause implementation failure.

Collect results from all phases. Drop PASS results.

If all phases pass: report PASS to the user.

If issues found:

  • Deduplicate (flow simulation and feasibility may flag the same gap)
  • Group by severity: issues found by multiple phases are highest signal
  • Present each issue with: which phase found it, the gap, and the implementation risk
  • Keep the report concise

Readme

rpi

Six-phase feature workflow with collaborative requirements, technical design, iterative planning, and parallel execution.

Commands

  • /rpi:problem <topic> - Explore and frame the problem space (optional)
  • /rpi:requirements <topic> - Define requirements through investigation and conversation
  • /rpi:design <topic> - Create technical design from requirements
  • /rpi:plan <design-path> - Create implementation plan from design
  • /rpi:implement <plan-path> - Execute plan with parallel agents
  • /rpi:validate <topic> - Run validation for a topic or phase

Phase 1a: Requirements (/rpi:requirements)

Input: Topic name or feature description

Process:

  1. Investigates codebase for patterns, constraints, integration points
  2. Proposes concrete requirements with reasoning
  3. Iterates through conversation to resolve ambiguity
  4. Saves requirements in EARS format (non-technical, behavioral only)

Output: .claude/specs/{topic}/requirements.md

Requirements format:

  • Summary - One paragraph feature description
  • Functional Requirements - EARS-format behavioral statements (no technical decisions)
  • Non-functional Requirements - Performance, security, reliability constraints
  • Scope - What's in and out of scope
  • Open Questions - Unresolved design choices deferred to design phase

Optional problem framing (ambiguous domains only):

  • Run /rpi:problem first to explore the problem space
  • Output: .claude/specs/{topic}/problem.md

Phase 1b: Design (/rpi:design)

Input: Topic name or requirements path

Process:

  1. Reads requirements + any context documents from .claude/context/
  2. Investigates codebase for existing patterns and integration points
  3. Proposes technical architecture with trade-offs
  4. Iterates through conversation on architectural decisions
  5. Saves design document

Output: .claude/specs/{topic}/design.md

Design format:

  • Overview - How requirements map to technical approach
  • Architecture - Component boundaries, contracts, data flow
  • Key Abstractions - Core types, interfaces, state machines
  • Integration Points - How new code connects to existing systems
  • Constraints - Technical limitations and boundaries
  • Related Files - Paths to relevant existing code

Optional research phase (large features only):

  • Spawns Explore agents to investigate domains in parallel
  • Creates context documents: .claude/context/{topic}-{domain}.context.md
  • Each context doc covers patterns, utilities, integration points for one domain

Phase 2: Planning (/rpi:plan)

Input: Design path (or topic name to auto-resolve from .claude/specs/{topic}/)

Process:

  1. Reads design + any context documents from .claude/context/
  2. Determines plan complexity:
    • Simple (1-3 files): Single plan document
    • Medium (4-10 files): Spawn Plan agents per domain, synthesize into one document
    • Large (10+ files): Master plan + linked sub-plans (saved separately)
  3. Evaluates plan quality (Goldilocks test: open enough to trust agent judgment, granular enough that path is clear)
  4. Iterative deepening: spawns focused Plan agents for weak sections
  5. Offers optional advisor review (devcore:senior-advisor with distinct perspectives)

Output: .claude/plans/{topic}.plan.md (+ sub-plans if large)

Plan format:

  • Overview - What and why
  • Phases - Logical work breakdown (if multi-phase)
  • Implementation details - File-by-file changes with type definitions, pseudocode for complex logic
  • Integration points - How pieces connect
  • Verification - Actionable tests per phase

Quality constraints:

  • No conditionals or uncertainty (all decisions resolved during planning)
  • No timelines (focus on what, not when)
  • Type definitions and complex logic specified
  • No fallbacks or code smells

Phase 3: Implementation (/rpi:implement)

Input: Plan path (or topic name to auto-resolve from .claude/plans/)

Process:

  1. Reads plan document (if master plan with sub-plans, implements current phase only)
  2. Builds dependency graph from plan tasks
  3. Delegates to agents:
    • haiku subagents for bounded, well-specified tasks
    • devcore:programmer for pattern analysis or multi-file changes
  4. Launches tasks respecting dependencies:
    • All no-dependency tasks launch immediately (parallel batch)
    • As agents complete, newly unblocked tasks launch immediately
    • Continues until phase complete
  5. Monitors progress, surfaces blockers

Output: Implemented code

Notes:

  • Agents do NOT run tests during execution (other agents may be running)
  • Large plans run one phase at a time (user must invoke /rpi:implement per phase)
  • User review expected between phases

Phase 4: Validation (/rpi:validate)

Input: Topic name and optional phase number

Process:

  1. Reads validation plan from .claude/plans/{topic}.validation.plan.md
  2. Runs proof scripts for the specified phase (or all phases if none specified)
  3. Reports pass/fail with evidence for each exit criterion
  4. Failures surface with reproduction steps

Output: Validation report with pass/fail per criterion

File Structure Created

.claude/
├── specs/{topic}/
│   ├── problem.md                    # Problem framing (optional, phase 0)
│   ├── requirements.md               # EARS requirements (phase 1a)
│   └── design.md                     # Technical design (phase 1b)
├── context/                          # Optional, large features only
│   ├── {topic}-{domain1}.context.md
│   └── {topic}-{domain2}.context.md
└── plans/
    ├── {topic}.plan.md               # Master plan (phase 2)
    ├── {topic}.tests.plan.md         # Test plan
    ├── {topic}.validation.plan.md    # Validation plan with exit criteria
    ├── {topic}-{phase1}.plan.md      # Sub-plans (large features)
    └── {topic}-{phase2}.plan.md

Phase Connections

problem → requirements:

  • Requirements-writer reads problem framing from .claude/specs/{topic}/problem.md
  • Problem doc informs scope decisions and known constraints

requirements → design:

  • Design-lead reads requirements from .claude/specs/{topic}/requirements.md
  • Requirements define what the feature must do; design determines how

design → plan:

  • Plan reads design from .claude/specs/{topic}/design.md
  • Design's architecture section defines component breakdown for planning
  • Context documents in .claude/context/ used for large features

plan → implement:

  • Implement reads plan from .claude/plans/{topic}.plan.md
  • Plan's task breakdown defines dependency graph for agent orchestration
  • Context documents passed to agents as needed
  • Sub-plans (if any) linked from master plan, processed one phase at a time

implement → validate:

  • Validate reads plan from .claude/plans/{topic}.validation.plan.md
  • Runs per-phase exit criteria as proof scripts
  • Pass required before advancing to next phase or final testing

Details

Marketplace
CaptainCrouton89/crouton-kit
Source
plugins/rpi
Category
Community
Keywords
workflow, development, planning
Listed since
Apr 7, 2026

Questions

What does the rpi plugin add to Claude Code?

The rpi plugin adds a six-phase feature workflow with the commands /rpi:problem, /rpi:requirements, /rpi:design, /rpi:plan, /rpi:implement and /rpi:validate. It takes a feature from requirements through technical design and iterative planning to parallel execution and validation. Requirements are saved in EARS format under .claude/specs and plans under .claude/plans.

Which plugins lead the Agent Workflow & Planning category that rpi belongs to?

rpi is in the Agent Workflow & Planning category on Claude Marketplaces, alongside superpowers, ecc, mattpocock-skills, discernment-nudge and feature-dev. Its own distinct focus is the arch, plan, implement, review and fix feature workflow with parallel agent execution. Its phases are driven by slash commands that each write a document for the next phase.

How do I install the rpi plugin?

Run /plugin marketplace add CaptainCrouton89/crouton-kit first, then run /plugin install rpi@crouton-kit inside Claude Code. The install adds the /rpi:problem, /rpi:requirements, /rpi:design, /rpi:plan, /rpi:implement and /rpi:validate commands to your session. Run each phase in order, or start with requirements if the feature is clear.

Does rpi run agents in parallel during implementation?

Yes, /rpi:implement builds a dependency graph from plan tasks and launches all no-dependency tasks as one parallel batch. Haiku subagents handle bounded tasks, and devcore:programmer handles pattern analysis or multi-file changes. Agents do not run tests during execution, so /rpi:validate runs the proof scripts afterward.

More from CaptainCrouton89/crouton-kit

All 19