Production Readiness Workflow
Overview
Workflow for preparing a CODITECT project for production deployment. Ensures all standards are met and the project achieves Grade B (80+) or higher.
Prerequisites
- Project repository exists
- Basic structure in place
- Git repository initialized
Workflow Phases
Phase 1: Audit (30-60 min)
Objective: Assess current production readiness.
Steps
-
Run Production Audit
/production-audit
# Or
python scripts/production-readiness-check.py --report -
Document Current State
- Current score
- Grade
- Blocking issues
- High priority items
-
Categorize Issues
Priority Fix Within Impact Critical Immediately Blocking deployment High Same day Major deficiency Medium This sprint Should fix Low When convenient Nice to have -
Create Remediation Plan
- Order by priority
- Estimate time per fix
- Identify dependencies
Deliverables
- Audit report saved
- Issues categorized
- Remediation plan created
- Time estimates documented
Phase 2: Remediation (1-2 hours)
Objective: Fix issues to achieve production readiness.
Steps
-
Fix Critical Issues
Missing CLAUDE.md:
# Create from template
cp .coditect/CODITECT-CORE-STANDARDS/templates/CLAUDE-MD-TEMPLATE.md CLAUDE.md
# Customize for projectExposed Secrets:
# Remove from repository
git rm --cached secrets.json
# Add to .gitignore
echo "secrets.json" >> .gitignoreNo CI/CD:
mkdir -p .github/workflows
# Create basic workflow -
Fix High Priority Issues
Missing README:
/readme-gen --template comprehensiveNo Tests Directory:
mkdir tests
touch tests/__init__.py
touch tests/test_example.py -
Fix Documentation Issues
# Generate missing READMEs
/readme-gen --missing --recursive
# Fix CLAUDE.md if too long
# (Manually edit to under 200 lines) -
Fix Organization Issues
# Move stray files
/organize --execute
# Fix naming
/naming-check --fix -
Commit Fixes
git add -A
git commit -m "chore: Fix production readiness issues
- Created CLAUDE.md
- Added missing READMEs
- Fixed naming conventions
- Added CI/CD workflow"
Deliverables
- All critical issues fixed
- High priority issues fixed
- Medium priority issues addressed
- Changes committed
Phase 3: Verification (30 min)
Objective: Confirm production readiness achieved.
Steps
-
Re-run Production Audit
/production-audit --report -
Verify Success Criteria
Criteria Required Actual Score ≥80 ___ Blocking Issues 0 ___ README Coverage ≥80% ___ -
Final Approval
- Review audit report
- Confirm no blocking issues
- Sign off on production readiness
Deliverables
- Final audit score ≥80
- No blocking issues remain
- Production readiness confirmed
Quick Fixes Reference
Missing CLAUDE.md
# Project Name
## Quick Reference
| Action | Command |
|--------|---------|
| Run | `npm start` |
| Test | `npm test` |
## Key Files
- `src/index.ts` - Entry point
---
Last Updated: YYYY-MM-DD
Missing .gitignore
# Dependencies
node_modules/
.venv/
__pycache__/
# Environment
.env
.env.local
# Build
dist/
build/
# IDE
.idea/
.vscode/
# OS
.DS_Store
Thumbs.db
# Logs
*.log
Basic CI/CD Workflow
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
run: npm install
- name: Test
run: npm test
- name: Build
run: npm run build
Scoring Guide
How to Improve Score
| From | To | Actions |
|---|---|---|
| F (<60) | D (60-69) | Add README, LICENSE, .gitignore |
| D | C (70-79) | Add CLAUDE.md, docs/, basic structure |
| C | B (80-84) | Full README coverage, no stray files |
| B | A (90+) | CI/CD, tests, linting, full compliance |
Agents Used
| Agent | Purpose |
|---|---|
production-readiness-auditor | Run audit |
readme-generator | Create READMEs |
naming-convention-enforcer | Fix naming |
file-reorganization-orchestrator | Move files |
Related Workflows
Version: 1.0.0 Created: 2026-01-02 Author: CODITECT Core Team