| name | elevate-code |
| description | Elevate projects to production quality using proven patterns. Use when starting a project, reviewing architecture, auditing code, or when user mentions "elevate-code", "production ready", "patterns", "make it production grade". |
Elevate Code
Transform any project into production-quality software using proven patterns.
The Problem: Most projects fail in predictable ways—users can't set them up, accidents cause data loss, crashes waste hours of progress, code becomes unmaintainable, errors are cryptic. These aren't bugs; they're missing patterns.
The Solution: Elevate systematically applies 12 battle-tested patterns that distinguish amateur code from production software.
Quick Start
| Mode | When to Use | What Happens |
|---|
| New Project | Starting from scratch | Detect type → Generate scaffold with all patterns |
| Audit | Reviewing existing code | Detect type → Scan → Gap report |
| Transform | Elevating existing project | Audit + Propose + Generate missing pieces |
The 12 Patterns
The Foundation: The Triad (Patterns 1-3)
Three non-negotiable properties. If your project lacks any of these, fix them first.
Setup should verify. Mistakes should undo. Crashes should resume.
The Complete Set (Patterns 4-12)
Elevation Workflow
Step 1: Detect Project Type
Scan for file markers to identify project type and load the appropriate checklist:
Step 2: Scan for Existing Patterns
For each of the 12 patterns, grep for indicators and score as Present, Partial, or Missing:
grep -rE "(doctor|check|verify|preflight)" .
grep -rE "(undo|restore|trash|dry-run)" .
grep -rE "(checkpoint|resume|state\.json)" .
grep -rE "(@dataclass|interface |TypedDict)" .
grep -rE "(pytest|vitest|conftest|\.test\.)" .
grep -rE "(retry|backoff|graceful)" .
Step 3: Generate Gap Report
## Gap Analysis: <project-name>
**Project Type**: <detected-type>
**Patterns Detected**: X/12
### Present
- [x] Pattern Name - evidence found
### Partial
- [~] Pattern Name - what exists, what's missing
### Missing
- [ ] Pattern Name - why it matters
Step 4: Propose Transformations
For each gap, propose specific changes. Prioritize by impact:
- Triad first (Doctor, Safety, Statekeeper)
- Data Models (foundation for everything else)
- Error Handling (user experience)
- Testing (confidence to change)
- Everything else
Step 5: Generate Scaffold
For missing patterns, generate files from templates/<project-type>/:
- Customize with project name
- Show diff preview before writing
Success Criteria
A fully elevated project passes:
Elevate: Because production-quality isn't about perfection—it's about patterns.