From rpi
Generates technical design document from requirements (topic or path), with architecture diagrams, components, data models, error handling. Investigates codebase, creates frontend mockups if needed, saves to .claude/specs/{topic}/design.md
npx claudepluginhub crouton-labs/crouton-kit --plugin rpi<topic or requirements-path># Technical Design
**Input:** $ARGUMENTS
Parse the input. It may be:
- A topic name (look in `.claude/specs/{topic}/requirements.md`)
- A direct path to a requirements file
- A description with additional context or constraints
Extract the reference and any guidance.
## Objective
Create a technical design that addresses all requirements. The design defines *how* the system will be built—schema, services, components, contracts, data flow.
## Inputs
1. **Read the requirements** — Required. Located at `.claude/specs/{topic}/requirements.md`
2. **Read problem document** (if any) — `.clau.../designDesigns system architecture, APIs, components, and databases producing specifications, diagrams, or code. Accepts target and optional --type (architecture|api|component|database) and --format flags.
/designGuides interactive frontend design workflow: project discovery, trend research, moodboard creation, color/typography selection, and production-ready code generation.
/designCreates comprehensive feature design documents with research and architecture for a given feature name or idea.
/designGenerates Markdown technical design document framework for a feature (doc mode, default). Also supports checklist mode for S-Tier SaaS design quality checks.
/designEnforces SwiftUI design rules for uniform constants, flexible accessible layouts, system styling, and inclusive practices across devices.
/designDesigns system architecture with mandatory C4 (Mermaid) diagrams and tech stack recommendations, consulting prior requirements and flagging contradictions.
Input: $ARGUMENTS
Parse the input. It may be:
.claude/specs/{topic}/requirements.md)Extract the reference and any guidance.
Create a technical design that addresses all requirements. The design defines how the system will be built—schema, services, components, contracts, data flow.
.claude/specs/{topic}/requirements.md.claude/specs/{topic}/problem.md provides goals and UX context.claude/pipeline/{topic}.state.md has investigation findingsExplore areas relevant to the requirements:
Share findings and propose a design:
Iterate through conversation to resolve ambiguity.
If the feature has a frontend or visual component:
Before saving, simulate the design end-to-end:
Save to {cwd}/.claude/specs/{topic}/design.md
Format:
Design captures technical decisions. All trade-offs resolved before saving. If it narrows the solution space to one reasonable approach, it belongs. If it prescribes exact code paths, it doesn't.
Run /rpi:review-design {design-path} {requirements-path} to validate.
If validation fails, address issues and re-validate.
Append a Design Phase section to .claude/pipeline/{topic}.state.md:
## Design Phase
### Alternatives Considered
- [Approach]: [Why chosen or rejected — 1 line each]
### Key Discoveries
- [Codebase patterns, constraints, or gotchas found during investigation]
### Handoff Notes
- [What the planning phase needs to know beyond the design]
Small features (touches ~10 or fewer files):
/rpi:plan {topic}."Large features (touches 10+ files across multiple domains):
Explore agents per domain, save to .claude/context/{topic}-{domain}.context.md/rpi:plan {topic}."