Harden
Production-harden code for 1M+ users. Adds caching, rate limiting, connection pooling, graceful shutdown.
Domain
Craft — technical reliability and infrastructure patterns.
When to Use
- "harden my code", "prepare for launch", "make it scalable"
- "add caching/rate limiting"
- Production readiness needed
What It Adds
- Connection pooling
- Caching layers
- Rate limiting
- Graceful shutdown (SIGTERM handling)
- Health check endpoints (
/health) - Structured logging
- Error boundaries
- Async I/O optimization
Prerequisite
Codebase must be modular. If messy, use Refactor first.
Workflow
- Audit — scan for scale/reliability gaps
- Plan — list files to modify, patterns to add
- Execute — inject patterns (preserve structure)
- Verify — checklist confirms production readiness
Composability
yaml
domain: craft
composable: true
yields_to: [process]