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
How this command is triggered — by the user, by Claude, or both
Slash command
/rpi:design <topic or requirements-path>The summary Claude sees in its command listing — used to decide when to auto-load this command
# 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...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}."npx claudepluginhub crouton-labs/crouton-kit --plugin rpi/kairo-designGenerates a technical design document from approved requirements — including data-flow diagrams, TypeScript interfaces, database schemas, and API endpoints. Supports full, lightweight, or custom scope selection and reads existing specs, rules, and codebase context.
/design-creationCreates detailed design documents via parallel sub-agents that research architecture, best practices, BDD scenarios, and synthesize requirements from prior discovery phases.
/designGenerates an architecture and technical specification document from a Phase 1 definition file, covering high-level design, inline ADRs, file manifest, and testing strategy as Phase 2 of the AgentSpec workflow.
/designGuides the user through creating a Technical Design Document following a structured skill chain, with mandatory approval gates at each step.
/specGenerates feature specs via step-by-step dialogue: requirements.md (EARS notation), design.md (diagrams/TS interfaces), tasks.md (tasks/best practices).
/designDesigns system architecture, APIs, components, and databases producing specifications, diagrams, or code. Accepts target and optional --type (architecture|api|component|database) and --format flags.