/deploy — Deploy to Environment
Deploy the project to a target environment.
Steps
1. Determine Target
- •
/deploy stagingor/deploy→ staging (default) - •
/deploy production→ production (requires confirmation)
2. Pre-Deploy Checks
MANDATORY before any deployment:
- •Run
make check(build + test + lint + typecheck) - •Verify all checks pass — abort if any fail
- •For production: verify quality score >= 90 (
make score) - •Check for uncommitted changes — warn if present
3. Deploy
Staging:
bash
make deploy-staging
Production:
code
⚠️ PRODUCTION DEPLOYMENT Are you sure you want to deploy to production? Current version: [version/commit] Last staging deploy: [date/commit] Type "yes" to confirm.
Then: make deploy-production
4. Post-Deploy Verification
- •Verify the deployment succeeded (health check, smoke test)
- •Report the deployed version/commit
5. Rollback Information
- •Show how to rollback if needed
- •Record the deployment in the session log
Rules
- •NEVER deploy to production without explicit user confirmation
- •NEVER deploy with failing checks
- •ALWAYS record deployments in session log