claudegoodies
Command

plan

From shanraisshan

Create comprehensive planning documentation for a feature

Install

/plan

Facts

Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this command runs.

## User Input

```text
$ARGUMENTS
```

You **MUST** parse the user input to extract the feature slug (the folder name in `rpi/`).

## Purpose

This command creates comprehensive planning documentation for a feature request. It generates detailed specifications, technical design, and implementation plans in the feature's RPI folder.

**Prerequisites**:
- Feature folder exists at `rpi/{feature-slug}/`
- Research completed with GO recommendation (`rpi/{feature-slug}/research/RESEARCH.md` exists)

**Output Location**: All files saved to `rpi/{feature-slug}/plan/`

**This is Step 3 of the RPI Workflow** (after Research approves with GO).

## Outline

1. **Load Context**: Read research report and project constitution (if exists)
2. **Understand Requirements**: Parse feature scope and requirements
3. **Analyze Technical Requirements**: Review architecture and dependencies
4. **Design Architecture**: Create high-level architecture and API contracts
5. **Break Down Implementation**: Create phased task breakdown
6. **Generate Documentation**: Create structured documentation files
7. **Validate Output**: Ensure all quality gates pass
8. **Report Completion**: Provide summary and next steps

## Phases

### Phase 0: Load Context

**Prerequisites**: Feature slug provided

**Process**:
1. **Verify research completed**:
   - Check `rpi/{feature-slug}/research/RESEARCH.md` exists
   - Verify GO
View full source on GitHub →

Other slash commands