Skip to main content Inicio Creadores tomevault-io skills-registry production-readiness
production-readiness Comprehensive pre-deployment validation ensuring code is production-ready. Runs complete audit pipeline, performance benchmarks, security scan, documentation check, and generates deployment checklist. Use when this capability is needed.
Ir a la instalación Skills Marketplace Descubre y explora habilidades de IA creadas por la comunidad.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Copiar promptMostrar detalles del prompt Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.
npx skills add https://github.com/tomevault-io/skills-registry --skill production-readinessEl comando permanece en una sola línea. Desplázate horizontalmente para revisarlo antes de copiarlo.
¿Prefieres una copia local? Descarga los archivos que SkillsMP tiene disponibles ahora.
Descargar Zip Descargando... Explorador de archivos
2 archivos Ocupaciones relacionadas SOC
Basado en la clasificación ocupacional SOC
name production-readiness description Comprehensive pre-deployment validation ensuring code is production-ready. Runs complete audit pipeline, performance benchmarks, security scan, documentation check, and generates deployment checklist. Use when this capability is needed. metadata {"author":"dnyoussef"}
Production Readiness
Purpose
Comprehensive pre-deployment validation to ensure code is production-ready.
Specialist Agent
I am a production readiness specialist ensuring deployment safety.
Methodology (Deployment Gate Pattern):
Complete quality audit (theater → functionality → style)
Security deep-dive (vulnerabilities, secrets, unsafe patterns)
Performance benchmarking (load testing, bottlenecks)
Documentation validation (README, API docs, deployment docs)
Dependency audit (outdated, vulnerable packages)
Configuration check (environment variables, secrets management)
Monitoring setup (logging, metrics, alerts)
Rollback plan verification
Generate deployment checklist
Final go/no-go decision
Quality Gates (all must pass):
✅ All tests passing (100%)
✅ Code quality ≥ 85/100
✅ Test coverage ≥ 80%
✅ Zero critical security issues
✅ Zero high-severity bugs
✅ Performance within SLAs
✅ Documentation complete
✅ Rollback plan documented
Input Contract
input:
target_path: string (directory to validate, required)
environment: enum[staging, production] (default: production)
skip_performance: boolean (default: false )
strict_mode: boolean (default: true )
Output Contract
output:
ready_for_deployment: boolean
quality_gates: object
tests_passing: boolean
code_quality: number
test_coverage: number
security_clean: boolean
performance_ok: boolean
docs_complete: boolean
blocking_issues: array[issue]
warnings: array[warning]
deployment_checklist: array[task]
rollback_plan: markdown
Execution Flow
#!/bin/bash
set -e
TARGET_PATH="${1:-./} "
ENVIRONMENT="${2:-production} "
SKIP_PERFORMANCE="${3:-false} "
READINESS_DIR="production-readiness-$(date +%s) "
mkdir -p "$READINESS_DIR "
echo "================================================================"
echo "Production Readiness Check"
echo "Environment: $ENVIRONMENT "
echo "================================================================"
declare -A GATES
GATES[tests]=0
GATES[quality]=0
GATES[coverage]=0
GATES[security]=0
GATES[performance]=0
GATES[docs]=0
echo "[1/10] Running complete quality audit..."
npx claude-flow audit-pipeline "$TARGET_PATH " \
--phase all \
--model codex-auto \
--output "$READINESS_DIR /quality-audit.json"
TESTS_PASSED=$(cat "$READINESS_DIR /quality-audit.json" | jq '.functionality_audit.all_passed' )
if [ "$TESTS_PASSED " = "true" ]; then
GATES[tests]=1
echo "✅ GATE 1: Tests passing"
else
echo "❌ GATE 1: Tests failing"
QUALITY_SCORE=$( | jq )
[ -ge 85 ];
GATES[quality]=1
TEST_COVERAGE=$( | jq )
[ -ge 80 ];
GATES[coverage]=1
npx claude-flow security-scan \
--deep \
--check-secrets \
--check-dependencies \
--output
CRITICAL_SECURITY=$( | jq )
HIGH_SECURITY=$( | jq )
[ -eq 0 ] && [ -eq 0 ];
GATES[security]=1
[ != ];
npx claude-flow analysis performance-report \
--detailed \
--
npx claude-flow bottleneck detect \
--threshold 10 \
--
AVG_RESPONSE_TIME=$( | jq )
P95_RESPONSE_TIME=$( | jq )
[ -lt 200 ] && [ -lt 500 ];
GATES[performance]=1
GATES[performance]=1
DOCS_COMPLETE=
[ ! -f ];
DOCS_COMPLETE=
[ ! -f ] && [ ! -f ];
DOCS_COMPLETE=
[ = ];
[ ! -f ] && [ ! -f ];
DOCS_COMPLETE=
[ = ];
GATES[docs]=1
-v npm &> /dev/null && [ -f ];
npm audit --json > 2>&1 ||
VULNERABLE_DEPS=$( | jq )
[ -gt 0 ];
[ ! -f ] && [ -f ];
grep -r --include= --include= \
| grep -v | grep -v ||
grep -r --include= --include= > /dev/null;
TRYCATCH_COUNT=$(grep -r --include= --include= | -l)
[ != ] && [ = ];
> <<
GATES_PASSED=$(( + + + + + ))
TOTAL_GATES=6
READY_FOR_DEPLOYMENT=
[ -eq ];
READY_FOR_DEPLOYMENT=
[ = ];
1
Integration Points
Cascades
Final stage in /feature-dev-complete cascade
Part of /release-preparation cascade
Used by /deploy-to-production cascade
Commands
Uses: /audit-pipeline, /security-scan, /performance-report
Uses: /bottleneck-detect, /test-coverage
Other Skills
Invokes: quick-quality-check, code-review-assistant
Output to: deployment-automation, rollback-planner
Usage Example
production-readiness . production
production-readiness ./dist staging
production-readiness . production --skip-performance
Failure Modes
Tests failing : Block deployment, fix tests
Security issues : Block deployment, fix vulnerabilities
Poor quality : Block deployment, improve code
Missing docs : Warning, but can proceed with approval
Performance issues : Warning for staging, blocking for production
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
fi
cat
"$READINESS_DIR /quality-audit.json"
'.style_audit.quality_score'
if
"$QUALITY_SCORE "
then
echo
"✅ GATE 2: Code quality $QUALITY_SCORE /100"
else
echo
"❌ GATE 2: Code quality too low: $QUALITY_SCORE /100 (need ≥85)"
fi
cat
"$READINESS_DIR /quality-audit.json"
'.functionality_audit.coverage_percent'
if
"$TEST_COVERAGE "
then
echo
"✅ GATE 3: Test coverage $TEST_COVERAGE %"
else
echo
"❌ GATE 3: Test coverage too low: $TEST_COVERAGE % (need ≥80%)"
fi
echo
"[2/10] Running security deep-dive..."
"$TARGET_PATH "
true
true
true
"$READINESS_DIR /security-scan.json"
cat
"$READINESS_DIR /security-scan.json"
'.critical_issues'
cat
"$READINESS_DIR /security-scan.json"
'.high_issues'
if
"$CRITICAL_SECURITY "
"$HIGH_SECURITY "
then
echo
"✅ GATE 4: Security scan clean"
else
echo
"❌ GATE 4: Security issues found (Critical: $CRITICAL_SECURITY , High: $HIGH_SECURITY )"
fi
if
"$SKIP_PERFORMANCE "
"true"
then
echo
"[3/10] Running performance benchmarks..."
true
export
"$READINESS_DIR /performance-baseline.json"
export
"$READINESS_DIR /bottlenecks.json"
cat
"$READINESS_DIR /performance-baseline.json"
'.avg_response_time'
cat
"$READINESS_DIR /performance-baseline.json"
'.p95_response_time'
if
"$AVG_RESPONSE_TIME "
"$P95_RESPONSE_TIME "
then
echo
"✅ GATE 5: Performance within SLAs"
else
echo
"❌ GATE 5: Performance exceeds SLAs (avg: ${AVG_RESPONSE_TIME} ms, p95: ${P95_RESPONSE_TIME} ms)"
fi
else
echo
"[3/10] Skipping performance benchmarks (--skip-performance)"
fi
echo
"[4/10] Validating documentation..."
true
if
"README.md"
then
echo
"⚠️ Missing README.md"
false
fi
if
"docs/deployment.md"
"DEPLOYMENT.md"
then
echo
"⚠️ Missing deployment documentation"
false
fi
if
"$ENVIRONMENT "
"production"
then
if
"docs/rollback.md"
"ROLLBACK.md"
then
echo
"⚠️ Missing rollback plan"
false
fi
fi
if
"$DOCS_COMPLETE "
"true"
then
echo
"✅ GATE 6: Documentation complete"
else
echo
"❌ GATE 6: Documentation incomplete"
fi
echo
"[5/10] Auditing dependencies..."
if
command
"package.json"
then
"$READINESS_DIR /npm-audit.json"
true
cat
"$READINESS_DIR /npm-audit.json"
'.metadata.vulnerabilities.high + .metadata.vulnerabilities.critical'
if
"$VULNERABLE_DEPS "
then
echo
"⚠️ Found $VULNERABLE_DEPS vulnerable dependencies"
else
echo
"✅ No vulnerable dependencies"
fi
fi
echo
"[6/10] Checking configuration..."
if
".env.example"
".env"
then
echo
"⚠️ Missing .env.example file"
fi
echo
"Scanning for hardcoded secrets..."
"api_key\|password\|secret\|token"
"$TARGET_PATH "
"*.js"
"*.ts"
"test"
"example"
echo
"✅ No obvious hardcoded secrets"
echo
"[7/10] Validating monitoring setup..."
if
"logger\|console.log\|winston\|pino"
"$TARGET_PATH "
"*.js"
"*.ts"
then
echo
"✅ Logging detected"
else
echo
"⚠️ No logging framework detected"
fi
echo
"[8/10] Checking error handling..."
"try {"
"$TARGET_PATH "
"*.js"
"*.ts"
wc
echo
"Found $TRYCATCH_COUNT try-catch blocks"
if
"$SKIP_PERFORMANCE "
"true"
"$ENVIRONMENT "
"production"
then
echo
"[9/10] Running load tests..."
echo
"⚠️ Manual load testing required"
else
echo
"[9/10] Skipping load tests"
fi
echo
"[10/10] Generating deployment checklist..."
cat
"$READINESS_DIR /DEPLOYMENT-CHECKLIST.md"
EOF
# Deployment Checklist: $ENVIRONMENT
**Generated**: $(date -Iseconds)
## Quality Gates Status
| Gate | Status | Score/Details |
|------|--------|---------------|
| Tests Passing | $([ ${GATES[tests]} -eq 1 ] && echo "✅" || echo "❌") | $([ "$TESTS_PASSED" = "true" ] && echo "All tests passing" || echo "Tests failing") |
| Code Quality | $([ ${GATES[quality]} -eq 1 ] && echo "✅" || echo "❌") | $QUALITY_SCORE/100 (need ≥85) |
| Test Coverage | $([ ${GATES[coverage]} -eq 1 ] && echo "✅" || echo "❌") | $TEST_COVERAGE% (need ≥80%) |
| Security | $([ ${GATES[security]} -eq 1 ] && echo "✅" || echo "❌") | Critical: $CRITICAL_SECURITY, High: $HIGH_SECURITY |
| Performance | $([ ${GATES[performance]} -eq 1 ] && echo "✅" || echo "❌") | SLA compliance |
| Documentation | $([ ${GATES[docs]} -eq 1 ] && echo "✅" || echo "❌") | All required docs present |
## Pre-Deployment Checklist
### Code Quality
- [ ] All tests passing (100%)
- [ ] Code quality ≥ 85/100
- [ ] Test coverage ≥ 80%
- [ ] No linting errors
- [ ] No TypeScript errors
### Security
- [ ] No critical or high-severity vulnerabilities
- [ ] Dependencies up to date
- [ ] Secrets in environment variables (not hardcoded)
- [ ] Security headers configured
- [ ] Authentication/authorization tested
### Performance
- [ ] Response times within SLAs
- [ ] No performance bottlenecks
- [ ] Database queries optimized
- [ ] Caching configured
- [ ] Load tested
### Documentation
- [ ] README.md up to date
- [ ] API documentation complete
- [ ] Deployment guide available
- [ ] Rollback plan documented
- [ ] Environment variables documented
### Monitoring & Observability
- [ ] Logging configured
- [ ] Error tracking setup
- [ ] Metrics collection enabled
- [ ] Alerts configured
- [ ] Dashboard created
### Infrastructure
- [ ] Environment variables configured
- [ ] Database migrations ready
- [ ] Backup strategy verified
- [ ] Scaling configuration reviewed
- [ ] SSL certificates valid
### Rollback Plan
- [ ] Rollback procedure documented
- [ ] Previous version backed up
- [ ] Rollback tested
- [ ] Rollback SLA defined
## Deployment Steps
1. **Pre-deployment**
- Create deployment branch
- Final code review
- Merge to main/master
2. **Staging Deployment**
- Deploy to staging
- Run smoke tests
- Verify functionality
3. **Production Deployment**
- Create database backup
- Deploy to production
- Run health checks
- Monitor for errors
4. **Post-deployment**
- Verify functionality
- Monitor metrics
- Check error rates
- Document any issues
## Rollback Procedure
If deployment fails:
1. Stop deployment immediately
2. Execute rollback: \`./scripts/rollback.sh\`
3. Verify previous version restored
4. Investigate root cause
5. Fix issues before retry
## Sign-off
- [ ] **Development Lead**: Code review approved
- [ ] **QA Lead**: Testing complete
- [ ] **Security Team**: Security review approved
- [ ] **DevOps**: Infrastructure ready
- [ ] **Product Owner**: Features approved
---
🤖 Generated by Claude Code Production Readiness Check
EOF
${GATES[tests]}
${GATES[quality]}
${GATES[coverage]}
${GATES[security]}
${GATES[performance]}
${GATES[docs]}
"false"
if
"$GATES_PASSED "
"$TOTAL_GATES "
then
"true"
fi
echo
""
echo
"================================================================"
echo
"Production Readiness Assessment"
echo
"================================================================"
echo
""
echo
"Environment: $ENVIRONMENT "
echo
"Gates Passed: $GATES_PASSED /$TOTAL_GATES "
echo
""
echo
"Quality Gates:"
echo
" Tests: $([ ${GATES[tests]} -eq 1 ] && echo "✅" || echo "❌" ) "
echo
" Quality: $([ ${GATES[quality]} -eq 1 ] && echo "✅" || echo "❌" ) ($QUALITY_SCORE /100)"
echo
" Coverage: $([ ${GATES[coverage]} -eq 1 ] && echo "✅" || echo "❌" ) ($TEST_COVERAGE %)"
echo
" Security: $([ ${GATES[security]} -eq 1 ] && echo "✅" || echo "❌" ) (Critical: $CRITICAL_SECURITY , High: $HIGH_SECURITY )"
echo
" Performance: $([ ${GATES[performance]} -eq 1 ] && echo "✅" || echo "❌" ) "
echo
" Documentation: $([ ${GATES[docs]} -eq 1 ] && echo "✅" || echo "❌" ) "
echo
""
if
"$READY_FOR_DEPLOYMENT "
"true"
then
echo
"🚀 READY FOR DEPLOYMENT!"
echo
""
echo
"Next steps:"
echo
"1. Review deployment checklist: $READINESS_DIR /DEPLOYMENT-CHECKLIST.md"
echo
"2. Get required sign-offs"
echo
"3. Schedule deployment window"
echo
"4. Execute deployment"
else
echo
"🚫 NOT READY FOR DEPLOYMENT"
echo
""
echo
"Blocking issues must be resolved before deployment."
echo
"See detailed reports in: $READINESS_DIR /"
exit
fi