Production Readiness (Meta-Skill)
Coordinates all operational concerns into a single readiness review. Instead of duplicating domain expertise, this skill routes to specialized skills and agents for each area, then synthesizes results into a unified go/no-go assessment.
Installation
OpenClaw / Moltbot / Clawbot
npx clawhub@latest install production-readiness
Purpose
Ensure a service is production-ready by systematically checking every operational concern — logging, error handling, performance, security, deployment, testing, and documentation — before traffic hits it.
A production-ready service:
- Fails gracefully under load and partial outages
- Observes itself with structured logs, metrics, and traces
- Recovers automatically from transient failures
- Communicates health to orchestrators and operators
- Documents operations so on-call engineers can respond without tribal knowledge
When to Use
| Trigger |
Context |
| Before first deploy |
New service going to production for the first time |
| Before major release |
Significant feature or architectural change shipping |
| Quarterly production review |
Scheduled audit of existing services |
| After incident |
Post-incident hardening to prevent recurrence |
| Dependency upgrade |
Major framework, runtime, or infrastructure change |
| Team handoff |
Transferring ownership of a service to another team |
Orchestration Flow
Run each area sequentially or in parallel. Each step delegates to a specialized skill or agent — this skill does not re-implement their logic.
┌─────────────────────────────────────────────────┐
│ Production Readiness Review │
├─────────────────────────────────────────────────┤
│ │
│ 1. Logging & Observability ──► logging-observability skill
│ 2. Error Handling ───────────► error-handling-patterns skill
│ 3. Performance ──────────────► performance-agent
│ 4. Security ─────────────────► security-review meta-skill
│ 5. Deployment ───────────────► deployment-agent + docker-expert skill
│ 6. Testing ──────────────────► testing-workflow meta-skill
│ 7. Documentation ────────────► /generate-docs command
│ │
│ ──► Synthesize results into go/no-go report │
└─────────────────────────────────────────────────┘
Step Details
- Logging & Observability — Structured logging, log levels, correlation IDs, metrics endpoints, distributed tracing, alerting rules
- Error Handling — Global error boundaries, retry policies, dead-letter queues, error classification, user-facing error messages
- Performance — Load testing results, P95/P99 latency baselines, memory/CPU profiling, database query analysis, caching strategy
- Security — Auth/authz verification, input validation, dependency audit, secrets management, OWASP top-10 review
- Deployment — Container hardening, rollback strategy, blue-green/canary configuration, infrastructure-as-code review
- Testing — Unit/integration/e2e coverage, contract tests, chaos/failure injection, smoke tests in staging
- Documentation — API docs, runbooks, architecture diagrams, on-call playbooks, ADRs for key decisions
Skill Routing Table
| Concern |
Skill / Agent |
Path |
| Logging & Observability |
logging-observability |
ai/skills/tools/logging-observability/SKILL.md |
| Error Handling |
error-handling-patterns |
ai/skills/backend/error-handling-patterns/SKILL.md |
| Performance |
performance-agent |
ai/agents/performance/ |
| Security |
security-review |
ai/skills/meta/security-review/SKILL.md |
| Deployment (containers) |
docker-expert |
ai/skills/devops/docker/SKILL.md |
| Deployment (pipelines) |
deployment-agent |
ai/agents/deployment/ |
| Testing |
testing-workflow |
ai/skills/testing/testing-workflow/SKILL.md |
| Rate Limiting |
rate-limiting-patterns |
ai/skills/backend/rate-limiting-patterns/SKILL.md |
| Documentation |
/generate-docs |
ai/commands/documentation/ |
Routing rule: Read the target skill first, follow its instructions, then return results here for synthesis.
Production Readiness Checklist
Health & Lifecycle
Resilience
Configuration & Secrets
Data Safety
Operational Readiness
Maturity Levels
| Level |
Name |
Requirements |
| L1 |
MVP |
Health check, basic logging, error handling, manual deploy, unit tests, README |
| L2 |
Stable |
Structured logging, metrics, graceful shutdown, CI/CD pipeline, integration tests, runbooks |
| L3 |
Resilient |
Distributed tracing, circuit breakers, auto-scaling, chaos testing, SLOs, on-call rotation |
| L4 |
Optimized |
Adaptive rate limiting, predictive alerting, canary deploys, full observability, error budgets, postmortem culture |
Progression Guidance
- L1 → L2: Add structured logging, metrics endpoint, and a CI/CD pipeline. Write runbooks for known failure modes.
- L2 → L3: Instrument distributed tracing. Add circuit breakers to external calls. Define SLOs and set up on-call.
- L3 → L4: Implement canary deployments. Adopt error budgets. Run regular game days. Build predictive alerting.
Incident Response
On-Call Rotation
- Minimum two engineers per rotation (primary + secondary)
- Handoff includes review of recent deploys, open issues, and known risks
- Escalation targets defined: primary → secondary → engineering lead → VP Eng
Escalation Matrix
| Severity |
Response Time |
Escalation After |
Stakeholder Notification |
| SEV-1 (outage) |
15 min |
30 min |
Immediate — exec + customers |
| SEV-2 (degraded) |
30 min |
1 hour |
Within 1 hour — eng lead |
| SEV-3 (minor) |
4 hours |
Next business day |
Daily standup |
| SEV-4 (cosmetic) |
Next sprint |
N/A |
Backlog |
Postmortem Template
## Incident: [Title]
**Date:** YYYY-MM-DD | **Duration:** X hours | **Severity:** SEV-N
### Summary
One-paragraph description of what happened and impact.
### Timeline
- HH:MM — First alert fired
- HH:MM — Engineer paged, investigation started
- HH:MM — Root cause identified
- HH:MM — Mitigation applied
- HH:MM — Full resolution confirmed
### Root Cause
What broke and why. Link to code/config change if applicable.
### Impact
- Users affected: N
- Revenue impact: $X (if applicable)
- SLO budget consumed: X%
### Action Items
| Action | Owner | Due Date | Status |
|--------|-------|----------|--------|
| Fix X | @eng | YYYY-MM-DD | Open |
### Lessons Learned
- What went well
- What went poorly
- Where we got lucky
NEVER Do
- NEVER skip health checks — every service must expose health endpoints; no exceptions for "simple" services
- NEVER store secrets in code or container images — use a secrets manager; never default env vars with real values
- NEVER deploy without a rollback plan — if you cannot roll back in under 5 minutes, you are not ready to deploy
- NEVER ignore error budget violations — when the error budget is exhausted, freeze feature work and fix reliability
- NEVER treat logging as optional — a service without structured logging is a service you cannot debug at 3 AM
- NEVER go to production without runbooks — if on-call cannot resolve the top 5 failure modes without the original author, the service is not production-ready
1---
2name: production-readiness
3model: reasoning
4description: Meta-skill that orchestrates logging, monitoring, error handling, performance, security, deployment, and testing skills to ensure a service is fully production-ready before launch. Use before first deploy, major releases, quarterly reviews, or after incidents.
5metadata:
6 source: https://skillmd.com/skills/modbender/production-readiness
7---
8
9# Production Readiness (Meta-Skill)
10
11Coordinates all operational concerns into a single readiness review. Instead of duplicating domain expertise, this skill routes to specialized skills and agents for each area, then synthesizes results into a unified go/no-go assessment.
12
13
14## Installation
15
16### OpenClaw / Moltbot / Clawbot
17
18```bash
19npx clawhub@latest install production-readiness
20```
21
22
23---
24
25## Purpose
26
27Ensure a service is production-ready by systematically checking every operational concern — logging, error handling, performance, security, deployment, testing, and documentation — before traffic hits it.
28
29A production-ready service:
30
31- **Fails gracefully** under load and partial outages
32- **Observes itself** with structured logs, metrics, and traces
33- **Recovers automatically** from transient failures
34- **Communicates health** to orchestrators and operators
35- **Documents operations** so on-call engineers can respond without tribal knowledge
36
37---
38
39## When to Use
40
41| Trigger | Context |
42|---------|---------|
43| **Before first deploy** | New service going to production for the first time |
44| **Before major release** | Significant feature or architectural change shipping |
45| **Quarterly production review** | Scheduled audit of existing services |
46| **After incident** | Post-incident hardening to prevent recurrence |
47| **Dependency upgrade** | Major framework, runtime, or infrastructure change |
48| **Team handoff** | Transferring ownership of a service to another team |
49
50---
51
52## Orchestration Flow
53
54Run each area sequentially or in parallel. Each step delegates to a specialized skill or agent — this skill does not re-implement their logic.
55
56```
57┌─────────────────────────────────────────────────┐
58│ Production Readiness Review │
59├─────────────────────────────────────────────────┤
60│ │
61│ 1. Logging & Observability ──► logging-observability skill
62│ 2. Error Handling ───────────► error-handling-patterns skill
63│ 3. Performance ──────────────► performance-agent
64│ 4. Security ─────────────────► security-review meta-skill
65│ 5. Deployment ───────────────► deployment-agent + docker-expert skill
66│ 6. Testing ──────────────────► testing-workflow meta-skill
67│ 7. Documentation ────────────► /generate-docs command
68│ │
69│ ──► Synthesize results into go/no-go report │
70└─────────────────────────────────────────────────┘
71```
72
73### Step Details
74
751. **Logging & Observability** — Structured logging, log levels, correlation IDs, metrics endpoints, distributed tracing, alerting rules
762. **Error Handling** — Global error boundaries, retry policies, dead-letter queues, error classification, user-facing error messages
773. **Performance** — Load testing results, P95/P99 latency baselines, memory/CPU profiling, database query analysis, caching strategy
784. **Security** — Auth/authz verification, input validation, dependency audit, secrets management, OWASP top-10 review
795. **Deployment** — Container hardening, rollback strategy, blue-green/canary configuration, infrastructure-as-code review
806. **Testing** — Unit/integration/e2e coverage, contract tests, chaos/failure injection, smoke tests in staging
817. **Documentation** — API docs, runbooks, architecture diagrams, on-call playbooks, ADRs for key decisions
82
83---
84
85## Skill Routing Table
86
87| Concern | Skill / Agent | Path |
88|---------|--------------|------|
89| Logging & Observability | `logging-observability` | `ai/skills/tools/logging-observability/SKILL.md` |
90| Error Handling | `error-handling-patterns` | `ai/skills/backend/error-handling-patterns/SKILL.md` |
91| Performance | `performance-agent` | `ai/agents/performance/` |
92| Security | `security-review` | `ai/skills/meta/security-review/SKILL.md` |
93| Deployment (containers) | `docker-expert` | `ai/skills/devops/docker/SKILL.md` |
94| Deployment (pipelines) | `deployment-agent` | `ai/agents/deployment/` |
95| Testing | `testing-workflow` | `ai/skills/testing/testing-workflow/SKILL.md` |
96| Rate Limiting | `rate-limiting-patterns` | `ai/skills/backend/rate-limiting-patterns/SKILL.md` |
97| Documentation | `/generate-docs` | `ai/commands/documentation/` |
98
99> **Routing rule:** Read the target skill first, follow its instructions, then return results here for synthesis.
100
101---
102
103## Production Readiness Checklist
104
105### Health & Lifecycle
106
107- [ ] Health check endpoint (`/healthz` or `/health`) returns dependency status
108- [ ] Readiness probe distinguishes "starting" from "ready to serve"
109- [ ] Liveness probe detects deadlocks and unrecoverable states
110- [ ] Graceful shutdown drains in-flight requests before exit
111- [ ] Startup probe allows for slow initialization without false restarts
112
113### Resilience
114
115- [ ] Circuit breakers on all external service calls
116- [ ] Retry with exponential backoff and jitter on transient failures
117- [ ] Rate limiting configured per endpoint and per client
118- [ ] Backpressure mechanisms prevent cascade failures under load
119- [ ] Timeouts set on every outbound call (HTTP, DB, queue)
120- [ ] Bulkhead isolation separates critical from non-critical paths
121
122### Configuration & Secrets
123
124- [ ] All configuration externalized (env vars, config service, or feature flags)
125- [ ] No secrets in code, images, or environment variable defaults
126- [ ] Secrets loaded from a vault (e.g., AWS Secrets Manager, HashiCorp Vault)
127- [ ] Configuration changes do not require redeployment
128- [ ] Feature flags in place for high-risk changes
129
130### Data Safety
131
132- [ ] Backup strategy defined and tested (RPO/RTO documented)
133- [ ] Restore procedure verified in a non-production environment
134- [ ] Database migrations are backward-compatible and reversible
135- [ ] Data retention policies implemented and enforced
136
137### Operational Readiness
138
139- [ ] Runbooks exist for top 5 most likely failure scenarios
140- [ ] SLOs defined (availability, latency, error rate) with error budgets
141- [ ] SLAs communicated to dependent teams or customers
142- [ ] On-call rotation staffed and escalation path documented
143- [ ] Dashboards show golden signals (latency, traffic, errors, saturation)
144- [ ] Alerting rules configured with appropriate thresholds and severity
145
146---
147
148## Maturity Levels
149
150| Level | Name | Requirements |
151|-------|------|-------------|
152| **L1** | **MVP** | Health check, basic logging, error handling, manual deploy, unit tests, README |
153| **L2** | **Stable** | Structured logging, metrics, graceful shutdown, CI/CD pipeline, integration tests, runbooks |
154| **L3** | **Resilient** | Distributed tracing, circuit breakers, auto-scaling, chaos testing, SLOs, on-call rotation |
155| **L4** | **Optimized** | Adaptive rate limiting, predictive alerting, canary deploys, full observability, error budgets, postmortem culture |
156
157### Progression Guidance
158
159- **L1 → L2:** Add structured logging, metrics endpoint, and a CI/CD pipeline. Write runbooks for known failure modes.
160- **L2 → L3:** Instrument distributed tracing. Add circuit breakers to external calls. Define SLOs and set up on-call.
161- **L3 → L4:** Implement canary deployments. Adopt error budgets. Run regular game days. Build predictive alerting.
162
163---
164
165## Incident Response
166
167### On-Call Rotation
168
169- Minimum two engineers per rotation (primary + secondary)
170- Handoff includes review of recent deploys, open issues, and known risks
171- Escalation targets defined: primary → secondary → engineering lead → VP Eng
172
173### Escalation Matrix
174
175| Severity | Response Time | Escalation After | Stakeholder Notification |
176|----------|--------------|-------------------|--------------------------|
177| **SEV-1** (outage) | 15 min | 30 min | Immediate — exec + customers |
178| **SEV-2** (degraded) | 30 min | 1 hour | Within 1 hour — eng lead |
179| **SEV-3** (minor) | 4 hours | Next business day | Daily standup |
180| **SEV-4** (cosmetic) | Next sprint | N/A | Backlog |
181
182### Postmortem Template
183
184```markdown
185## Incident: [Title]
186**Date:** YYYY-MM-DD | **Duration:** X hours | **Severity:** SEV-N
187
188### Summary
189One-paragraph description of what happened and impact.
190
191### Timeline
192- HH:MM — First alert fired
193- HH:MM — Engineer paged, investigation started
194- HH:MM — Root cause identified
195- HH:MM — Mitigation applied
196- HH:MM — Full resolution confirmed
197
198### Root Cause
199What broke and why. Link to code/config change if applicable.
200
201### Impact
202- Users affected: N
203- Revenue impact: $X (if applicable)
204- SLO budget consumed: X%
205
206### Action Items
207| Action | Owner | Due Date | Status |
208|--------|-------|----------|--------|
209| Fix X | @eng | YYYY-MM-DD | Open |
210
211### Lessons Learned
212- What went well
213- What went poorly
214- Where we got lucky
215```
216
217---
218
219## NEVER Do
220
2211. **NEVER skip health checks** — every service must expose health endpoints; no exceptions for "simple" services
2222. **NEVER store secrets in code or container images** — use a secrets manager; never default env vars with real values
2233. **NEVER deploy without a rollback plan** — if you cannot roll back in under 5 minutes, you are not ready to deploy
2244. **NEVER ignore error budget violations** — when the error budget is exhausted, freeze feature work and fix reliability
2255. **NEVER treat logging as optional** — a service without structured logging is a service you cannot debug at 3 AM
2266. **NEVER go to production without runbooks** — if on-call cannot resolve the top 5 failure modes without the original author, the service is not production-ready