A structured, stage-gated development pipeline for Claude Code (and other AI assistants) that enforces design-before-code discipline and a virtual panel of senior engineer personas.
Instead of asking an AI to "just build it", this kit enforces a structured pipeline where every task goes through analysis, proposal, design review, and implementation — with explicit human approval at each gate.
The result: AI-generated code that is traceable to a written design, reviewed by multiple specialist perspectives, and shipped with consistent quality.
/analyze → [ Linear tasks created ] → per task:
/shape → /propose → /design → /implement → /review → /ship
| Stage | Output | Gate |
|---|---|---|
/analyze |
.ai/spec.md + Linear issues |
User approves spec |
/shape |
Shared mental model (chat only) | User says "ready to propose" |
/propose |
.ai/proposal.md |
User approves |
/design |
.ai/design.md |
User approves |
/implement |
Code, following design.md exactly |
— |
/review |
Code review vs artifacts | — |
/ship |
Final checklist + commit | — |
/analyze runs once per project. All other stages repeat per Linear task.
At each stage, a relevant subset of these personas is active and their perspectives are surfaced explicitly in the output:
| Agent | Expertise | Active during |
|---|---|---|
| Principal System Architect | Distributed systems, OpenSpec contracts, ADRs | /shape, /propose, /design |
| Senior Backend Engineer | Node.js, TypeScript, TDD, clean API design | /implement, /review |
| Cybersecurity Specialist | Input validation, rate limiting, cheat prevention | /design, /implement, /review |
| DevOps Engineer | Docker, Kubernetes, AWS | /design, /ship |
| Observability Engineer | Structured logging, metrics, tracing, alerting | /design, /implement, /review |
| Principal Code Reviewer | Cross-cutting correctness and design fidelity | /review |
Add any combination of .md, .pdf, .txt, .png, .jpg, or .yaml files that describe what you're building.
context/
my-brief.md
architecture-diagram.png
api-requirements.yaml
/analyze
The AI reads every file in context/, writes .ai/spec.md, presents a task breakdown, and — on your approval — creates Linear issues for each task.
Pick a Linear issue and run the pipeline stages in order:
/shape ← understand the task, surface unknowns
/propose ← lock the problem and approach
/design ← lock the technical design
/implement ← code it
/review ← review against the artifacts
/ship ← final checklist and commit
.
├── context/ ← Drop brief files here before /analyze
├── .ai/ ← Generated artifacts (spec, proposal, design)
│ ├── spec.md
│ ├── proposal.md
│ └── design.md
├── docs/
│ ├── openspec.yaml ← API contract (generated during /design)
│ └── adr/ ← Architecture decision records
├── .claude/
│ ├── commands/ ← Slash command definitions
│ └── agents/ ← Agent persona definitions
├── CLAUDE.md ← Rules for Claude Code
└── AGENTS.md ← Rules for other AI assistants (Cursor, Copilot, etc.)
- No code without a design. The AI will refuse to write implementation code if
.ai/design.mddoesn't exist and isn't approved. - One stage at a time. Each stage has a hard gate. The AI waits for explicit approval before moving forward.
- No silent deviations. If implementation needs to diverge from
design.md, the conflict is surfaced and requires approval. - Gate commits are mandatory. Approving
/proposetriggers a commit ofproposal.md. Approving/designtriggers a commit ofdesign.md. These commits prove structured thinking happened.
The pipeline is designed for Claude Code (CLAUDE.md) but the guardrails in AGENTS.md apply to any AI assistant that respects agent instruction files — including Cursor and GitHub Copilot.