@williambeto/ai-workflow 1.19.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -838
- package/PUBLISH_MANIFEST.json +34 -0
- package/README.md +78 -148
- package/{packages/ai-workflow/bin → bin}/ai-workflow.js +0 -0
- package/dist-assets/AGENTS.md +27 -0
- package/dist-assets/agents/astra.md +63 -0
- package/dist-assets/agents/atlas.md +169 -0
- package/dist-assets/agents/nexus.md +42 -0
- package/dist-assets/agents/orion.md +44 -0
- package/dist-assets/agents/phoenix.md +42 -0
- package/dist-assets/agents/sage.md +54 -0
- package/dist-assets/commands/README.md +14 -0
- package/dist-assets/commands/atlas.md +12 -0
- package/dist-assets/commands/audit.md +10 -0
- package/dist-assets/commands/deploy.md +12 -0
- package/dist-assets/commands/discover.md +10 -0
- package/dist-assets/commands/implement.md +28 -0
- package/dist-assets/commands/optimize-tokens.md +10 -0
- package/dist-assets/commands/plan.md +10 -0
- package/dist-assets/commands/release.md +12 -0
- package/dist-assets/commands/run.md +26 -0
- package/dist-assets/commands/spec-create.md +10 -0
- package/dist-assets/commands/spec-implement.md +10 -0
- package/dist-assets/commands/spec-review.md +10 -0
- package/dist-assets/commands/update-memory.md +10 -0
- package/dist-assets/commands/validate.md +12 -0
- package/dist-assets/docs/INDEX.md +21 -0
- package/dist-assets/docs/QUICKSTART.md +23 -0
- package/dist-assets/docs/adr/ADR-0000.md +19 -0
- package/dist-assets/docs/adr/ADR-0001.md +45 -0
- package/dist-assets/docs/adr/ADR-0002.md +62 -0
- package/dist-assets/docs/adr/ADR-0003.md +60 -0
- package/dist-assets/docs/adr/ADR-0004.md +71 -0
- package/dist-assets/docs/adr/ADR-0005.md +22 -0
- package/dist-assets/docs/adr/ADR-0006.md +82 -0
- package/dist-assets/docs/adr/ADR-0007.md +78 -0
- package/dist-assets/docs/api-engine-reference.md +7 -0
- package/{docs → dist-assets/docs}/architecture-policy.md +1 -1
- package/dist-assets/docs/cli-reference.md +27 -0
- package/dist-assets/docs/compatibility/provider-usage.md +38 -0
- package/dist-assets/docs/compatibility/runtime-matrix.md +30 -0
- package/dist-assets/docs/consumer-onboarding.md +17 -0
- package/dist-assets/docs/contributing-guide.md +11 -0
- package/{docs → dist-assets/docs}/design-patterns-policy.md +2 -2
- package/dist-assets/docs/full-documentation.md +113 -0
- package/{docs → dist-assets/docs}/npm-consumer-quickstart.md +18 -46
- package/dist-assets/docs/opencode-readme.md +8 -0
- package/dist-assets/docs/policies/01-BRANCH_GATE.md +63 -0
- package/dist-assets/docs/policies/02-SDD_METHODOLOGY.md +95 -0
- package/dist-assets/docs/policies/03-QUALITY_GATE.md +22 -0
- package/dist-assets/docs/policies/05-AGENT_CONTRACT.md +7 -0
- package/dist-assets/docs/policies/06-FINAL_EVIDENCE_CONTRACT.md +31 -0
- package/dist-assets/docs/policies/07-RELEASE_GATE.md +47 -0
- package/dist-assets/docs/policies/08-PRODUCT_TRUTHFULNESS_AND_PROJECT_DOCS.md +18 -0
- package/dist-assets/docs/policies/09-SPEC_VISIBILITY_AND_PUBLICATION.md +28 -0
- package/dist-assets/docs/policies/10-BEHAVIORAL_CONTRACT_HARDENING.md +9 -0
- package/dist-assets/docs/policies/11-EXECUTABLE_DELEGATION_AND_TRUTHFULNESS.md +7 -0
- package/dist-assets/docs/policies/ORCHESTRATION_PROTOCOL.md +15 -0
- package/dist-assets/docs/policies/PROCEDURE_DELIVERY_ARTIFACTS.md +21 -0
- package/dist-assets/docs/policies/PROCEDURE_DOCUMENTATION_CHECKLIST.md +24 -0
- package/dist-assets/docs/policies/PROCEDURE_UI_CHECKLIST.md +54 -0
- package/dist-assets/docs/profiles/README.md +19 -0
- package/dist-assets/docs/profiles/backend-api.md +5 -0
- package/dist-assets/docs/profiles/documentation.md +3 -0
- package/dist-assets/docs/profiles/frontend-product.md +19 -0
- package/dist-assets/docs/profiles/frontend-utility.md +19 -0
- package/dist-assets/docs/profiles/refactor.md +3 -0
- package/dist-assets/docs/profiles/security-review.md +3 -0
- package/dist-assets/docs/references/frontend-quality/landing-page-quality-checklist.md +11 -0
- package/dist-assets/docs/references/frontend-quality/product-copy-truthfulness.md +7 -0
- package/dist-assets/docs/references/frontend-quality/quality-failure-examples.md +20 -0
- package/dist-assets/docs/references/frontend-quality/visual-composition-patterns.md +10 -0
- package/dist-assets/docs/specs/runtime-operational-contract.md +39 -0
- package/dist-assets/docs/troubleshooting-guide.md +21 -0
- package/dist-assets/docs/visual-validation-guide.md +76 -0
- package/dist-assets/examples/README.md +10 -0
- package/dist-assets/examples/autopilot-cycle/00-CONTEXT.md +3 -0
- package/dist-assets/examples/autopilot-cycle/01-requirement.md +16 -0
- package/dist-assets/examples/autopilot-cycle/02-gate-a-check.md +23 -0
- package/dist-assets/examples/autopilot-cycle/03-orion-planning.md +20 -0
- package/dist-assets/examples/autopilot-cycle/04-astra-implementation.md +17 -0
- package/dist-assets/examples/autopilot-cycle/05-sage-validation.md +15 -0
- package/dist-assets/examples/autopilot-cycle/06-phoenix-healing.md +12 -0
- package/dist-assets/examples/autopilot-cycle/07-orchestration-report.md +18 -0
- package/dist-assets/examples/backend-api/00-CONTEXT.md +12 -0
- package/dist-assets/examples/backend-api/01-requirement.md +19 -0
- package/dist-assets/examples/backend-api/02-functional-spec.md +20 -0
- package/dist-assets/examples/backend-api/03-technical-plan.md +15 -0
- package/dist-assets/examples/backend-api/04-pr-breakdown.md +10 -0
- package/dist-assets/examples/backend-api/05-execution-handoff.md +13 -0
- package/dist-assets/examples/backend-api/06-validation-report.md +11 -0
- package/dist-assets/examples/backend-api/07-orchestration-report.md +7 -0
- package/dist-assets/examples/blocked-scenarios/00-CONTEXT.md +9 -0
- package/dist-assets/examples/blocked-scenarios/01-branch-gate-block.md +12 -0
- package/dist-assets/examples/blocked-scenarios/02-quality-gate-block.md +13 -0
- package/dist-assets/examples/blocked-scenarios/03-scope-creep-block.md +13 -0
- package/dist-assets/examples/blocked-scenarios/04-unblock-resolution.md +9 -0
- package/dist-assets/examples/blocked-scenarios/05-orchestration-decision-log.md +11 -0
- package/dist-assets/examples/bugfix-critical/00-CONTEXT.md +12 -0
- package/dist-assets/examples/bugfix-critical/01-bug-report.md +11 -0
- package/dist-assets/examples/bugfix-critical/02-diagnosis-hypothesis.md +11 -0
- package/dist-assets/examples/bugfix-critical/03-technical-plan.md +12 -0
- package/dist-assets/examples/bugfix-critical/04-implementation-handoff.md +8 -0
- package/dist-assets/examples/bugfix-critical/05-validation-report.md +10 -0
- package/dist-assets/examples/bugfix-critical/06-orchestration-report.md +7 -0
- package/dist-assets/examples/cli-package/00-CONTEXT.md +9 -0
- package/dist-assets/examples/cli-package/01-requirement.md +14 -0
- package/dist-assets/examples/cli-package/02-technical-spec.md +16 -0
- package/dist-assets/examples/cli-package/03-technical-plan.md +12 -0
- package/dist-assets/examples/cli-package/04-pr-breakdown.md +9 -0
- package/dist-assets/examples/cli-package/05-release-report.md +15 -0
- package/dist-assets/examples/docs-only-repo/01-requirement.md +31 -0
- package/dist-assets/examples/docs-only-repo/02-functional-spec.md +25 -0
- package/dist-assets/examples/docs-only-repo/03-technical-plan.md +21 -0
- package/dist-assets/examples/docs-only-repo/04-pr-breakdown.md +13 -0
- package/dist-assets/examples/docs-only-repo/05-execution-handoff.md +17 -0
- package/dist-assets/examples/docs-only-repo/06-validation-report.md +16 -0
- package/dist-assets/examples/docs-only-repo/README.md +26 -0
- package/dist-assets/examples/full-stack-checkout/00-CONTEXT.md +9 -0
- package/dist-assets/examples/full-stack-checkout/01-requirement.md +12 -0
- package/dist-assets/examples/full-stack-checkout/02-functional-spec.md +15 -0
- package/dist-assets/examples/full-stack-checkout/03-technical-plan.md +15 -0
- package/dist-assets/examples/full-stack-checkout/04-pr-breakdown.md +8 -0
- package/dist-assets/examples/full-stack-checkout/05-execution-handoff.md +14 -0
- package/dist-assets/examples/full-stack-checkout/06-validation-report.md +12 -0
- package/dist-assets/examples/healing-cycle/00-CONTEXT.md +15 -0
- package/dist-assets/examples/healing-cycle/01-broken-implementation.md +10 -0
- package/dist-assets/examples/healing-cycle/02-sage-fails.md +14 -0
- package/dist-assets/examples/healing-cycle/03-phoenix-diagnosis.md +17 -0
- package/dist-assets/examples/healing-cycle/04-phoenix-fix.md +18 -0
- package/dist-assets/examples/healing-cycle/05-sage-revalidation.md +12 -0
- package/dist-assets/examples/healing-cycle/06-orchestration-log.md +14 -0
- package/dist-assets/examples/infra-deploy/00-CONTEXT.md +9 -0
- package/dist-assets/examples/infra-deploy/01-operational-goal.md +12 -0
- package/dist-assets/examples/infra-deploy/02-architecture-specs.md +15 -0
- package/dist-assets/examples/infra-deploy/03-implementation-plan.md +14 -0
- package/dist-assets/examples/infra-deploy/04-step-breakdown.md +9 -0
- package/dist-assets/examples/infra-deploy/05-execution-handoff.md +13 -0
- package/dist-assets/examples/infra-deploy/06-operational-report.md +11 -0
- package/dist-assets/examples/multi-pr-release/00-CONTEXT.md +9 -0
- package/dist-assets/examples/multi-pr-release/01-requirement.md +13 -0
- package/dist-assets/examples/multi-pr-release/02-strategic-plan.md +13 -0
- package/dist-assets/examples/multi-pr-release/03-pr-breakdown.md +14 -0
- package/dist-assets/examples/multi-pr-release/04-release-plan.md +12 -0
- package/dist-assets/examples/multi-pr-release/05-orchestration-report.md +7 -0
- package/dist-assets/examples/nuxt-dashboard/01-requirement.md +81 -0
- package/dist-assets/examples/nuxt-dashboard/02-functional-spec.md +88 -0
- package/dist-assets/examples/nuxt-dashboard/03-technical-plan.md +76 -0
- package/dist-assets/examples/nuxt-dashboard/04-pr-breakdown.md +219 -0
- package/dist-assets/examples/nuxt-dashboard/05-execution-handoff.md +88 -0
- package/dist-assets/examples/nuxt-dashboard/06-validation-report.md +56 -0
- package/dist-assets/examples/nuxt-dashboard/07-orchestration-report.md +79 -0
- package/dist-assets/examples/nuxt-dashboard/README.md +52 -0
- package/dist-assets/examples/react-dashboard/01-requirement.md +84 -0
- package/dist-assets/examples/react-dashboard/02-functional-spec.md +88 -0
- package/dist-assets/examples/react-dashboard/03-technical-plan.md +76 -0
- package/dist-assets/examples/react-dashboard/04-pr-breakdown.md +218 -0
- package/dist-assets/examples/react-dashboard/05-execution-handoff.md +13 -0
- package/dist-assets/examples/react-dashboard/06-validation-report.md +12 -0
- package/dist-assets/examples/react-dashboard/07-orchestration-report.md +7 -0
- package/dist-assets/examples/react-dashboard/README.md +70 -0
- package/dist-assets/examples/refactoring-service/00-CONTEXT.md +9 -0
- package/dist-assets/examples/refactoring-service/01-debt-report.md +12 -0
- package/dist-assets/examples/refactoring-service/02-behavior-spec.md +11 -0
- package/dist-assets/examples/refactoring-service/03-technical-plan.md +13 -0
- package/dist-assets/examples/refactoring-service/04-pr-breakdown.md +9 -0
- package/dist-assets/examples/refactoring-service/05-execution-handoff.md +14 -0
- package/dist-assets/examples/refactoring-service/06-stability-report.md +12 -0
- package/dist-assets/examples/sdd-cycle/00-CONTEXT.md +12 -0
- package/dist-assets/examples/sdd-cycle/01-raw-request.md +13 -0
- package/dist-assets/examples/sdd-cycle/02-spec-creation.md +18 -0
- package/dist-assets/examples/sdd-cycle/03-spec-review.md +12 -0
- package/dist-assets/examples/sdd-cycle/04-technical-plan.md +16 -0
- package/dist-assets/examples/sdd-cycle/05-pr-breakdown.md +9 -0
- package/dist-assets/examples/sdd-cycle/06-spec-implement.md +13 -0
- package/dist-assets/examples/sdd-cycle/07-validation-against-spec.md +13 -0
- package/dist-assets/examples/wordpress-theme/01-requirement.md +29 -0
- package/dist-assets/examples/wordpress-theme/02-functional-spec.md +22 -0
- package/dist-assets/examples/wordpress-theme/03-technical-plan.md +22 -0
- package/dist-assets/examples/wordpress-theme/04-pr-breakdown.md +14 -0
- package/dist-assets/examples/wordpress-theme/05-execution-handoff.md +17 -0
- package/dist-assets/examples/wordpress-theme/06-validation-report.md +16 -0
- package/dist-assets/examples/wordpress-theme/README.md +32 -0
- package/{harness → dist-assets/harness}/handoffs/HANDOFF.template.md +2 -2
- package/{harness → dist-assets/harness}/workflows/agent-evaluation-checklist.md +5 -5
- package/{harness → dist-assets/harness}/workflows/implement-review-validate.md +24 -0
- package/{harness → dist-assets/harness}/workflows/multi-agent-handoff.md +4 -4
- package/{harness → dist-assets/harness}/workflows/planner-executor-workflow.md +5 -5
- package/{harness → dist-assets/harness}/workflows/requirement-to-pr.md +1 -1
- package/dist-assets/runbooks/agent-delegation-workflow.md +50 -0
- package/dist-assets/runbooks/apply-starter-to-real-project.md +45 -0
- package/dist-assets/runbooks/commands-cheatsheet.md +44 -0
- package/dist-assets/runbooks/how-to-use-skills.md +44 -0
- package/dist-assets/runbooks/private-spec-publication-safety.md +35 -0
- package/{runbooks → dist-assets/runbooks}/spec-driven-development.md +3 -6
- package/dist-assets/runbooks/tutorial-walkthroughs.md +23 -0
- package/dist-assets/runbooks/use-linear-for-operational-planning.md +45 -0
- package/dist-assets/runbooks/use-napkin-project-memory.md +33 -0
- package/dist-assets/skills/architecture/SKILL.md +166 -0
- package/dist-assets/skills/backend-development/SKILL.md +166 -0
- package/dist-assets/skills/deployment/SKILL.md +166 -0
- package/dist-assets/skills/design-principles/SKILL.md +166 -0
- package/dist-assets/skills/documentation/SKILL.md +171 -0
- package/dist-assets/skills/frontend-development/SKILL.md +225 -0
- package/dist-assets/skills/full-stack-development/SKILL.md +166 -0
- package/dist-assets/skills/optimize-tokens/SKILL.md +166 -0
- package/dist-assets/skills/pr-workflow/SKILL.md +166 -0
- package/dist-assets/skills/product-discovery/SKILL.md +166 -0
- package/dist-assets/skills/product-planning/SKILL.md +166 -0
- package/dist-assets/skills/project-memory/SKILL.md +166 -0
- package/dist-assets/skills/prompt-engineer/SKILL.md +166 -0
- package/dist-assets/skills/qa-workflow/SKILL.md +186 -0
- package/dist-assets/skills/refactoring/SKILL.md +166 -0
- package/dist-assets/skills/release-workflow/SKILL.md +166 -0
- package/dist-assets/skills/spec-driven-development/SKILL.md +166 -0
- package/dist-assets/skills/technical-leadership/SKILL.md +166 -0
- package/dist-assets/skills/ui-ux-design/SKILL.md +202 -0
- package/dist-assets/templates/.geminiignore.template +8 -0
- package/dist-assets/templates/CLAUDE.md.template +20 -0
- package/dist-assets/templates/CODEX.md.template +20 -0
- package/dist-assets/templates/GEMINI.md.template +20 -0
- package/dist-assets/templates/HANDOFF.template.md +45 -0
- package/dist-assets/templates/SPEC.template.md +38 -0
- package/dist-assets/templates/change-proposal.template.md +14 -0
- package/dist-assets/templates/owner-evidence/astra-implementation.json +10 -0
- package/dist-assets/templates/owner-evidence/phoenix-remediation.json +8 -0
- package/dist-assets/templates/owner-evidence/sage-revalidation.json +8 -0
- package/dist-assets/templates/owner-evidence/sage-validation.json +8 -0
- package/dist-assets/templates/specs/deep.md +48 -0
- package/dist-assets/templates/specs/standard.md +38 -0
- package/dist-assets/templates/specs/tiny.md +19 -0
- package/package.json +43 -47
- package/src/adapters/index.js +3 -0
- package/src/adapters/platforms/claude.js +126 -0
- package/src/adapters/platforms/codex.js +100 -0
- package/src/adapters/platforms/gemini.js +232 -0
- package/src/cli.js +114 -0
- package/src/commands/collect-evidence.js +61 -0
- package/src/commands/doctor.js +186 -0
- package/src/commands/execute.js +172 -0
- package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
- package/src/commands/run.js +112 -0
- package/src/core/completion-contract.js +35 -0
- package/src/core/execution-planner.js +59 -0
- package/src/core/gates/branch-gate.js +146 -0
- package/src/core/handoff/handoff-engine.js +104 -0
- package/src/core/healing/cli-remediation-executor.js +151 -0
- package/src/core/healing/healer-engine.js +179 -0
- package/src/core/identity.js +43 -0
- package/{packages/ai-workflow/src → src}/core/install-plan.js +3 -3
- package/src/core/opencode-merge.js +149 -0
- package/{packages/ai-workflow/src → src}/core/package-assets.js +29 -10
- package/src/core/request-classifier.js +58 -0
- package/src/core/runtime/opencode-adapter.js +94 -0
- package/src/core/sdd/validator.js +67 -0
- package/src/core/statuses.js +29 -0
- package/src/core/symlink-layout.js +93 -0
- package/src/core/templates.js +221 -0
- package/src/core/validation/canonical-finalization.js +43 -0
- package/src/core/validation/evidence-collector.js +109 -0
- package/src/core/validation/quality-guard.js +243 -0
- package/src/core/workflow-profiles.js +107 -0
- package/src/core/workflow-state-machine.js +46 -0
- package/.agents/napkin.md +0 -89
- package/.agents/skills/backend-implementer/SKILL.md +0 -490
- package/.agents/skills/build-and-validate/SKILL.md +0 -442
- package/.agents/skills/deploy-engineer/SKILL.md +0 -541
- package/.agents/skills/docs-writer/SKILL.md +0 -430
- package/.agents/skills/frontend-implementer/SKILL.md +0 -488
- package/.agents/skills/interface-design/SKILL.md +0 -428
- package/.agents/skills/interface-design/references/critique.md +0 -67
- package/.agents/skills/interface-design/references/example.md +0 -86
- package/.agents/skills/interface-design/references/principles.md +0 -235
- package/.agents/skills/interface-design/references/validation.md +0 -48
- package/.agents/skills/minimal-context/SKILL.md +0 -177
- package/.agents/skills/napkin/SKILL.md +0 -84
- package/.agents/skills/opencode-agent-design/SKILL.md +0 -77
- package/.agents/skills/playwright-cli/SKILL.md +0 -62
- package/.agents/skills/pr-orchestrator/SKILL.md +0 -366
- package/.agents/skills/product-manager/SKILL.md +0 -519
- package/.agents/skills/seo-audit/SKILL.md +0 -176
- package/.agents/skills/stack-variant-creator/SKILL.md +0 -265
- package/.agents/skills/tech-lead/SKILL.md +0 -453
- package/.agents/skills/tester/SKILL.md +0 -399
- package/.agents/skills/token-economy/SKILL.md +0 -137
- package/.agents/skills/vue-nuxt/SKILL.md +0 -102
- package/.agents/skills/wordpress-engineer/SKILL.md +0 -75
- package/.codex/prompts/README.md +0 -44
- package/.codex/prompts/autopilot.md +0 -50
- package/.codex/prompts/deploy.md +0 -33
- package/.codex/prompts/execute-selected-pr.md +0 -35
- package/.codex/prompts/fix-issue.md +0 -34
- package/.codex/prompts/minimal-context-mode.md +0 -55
- package/.codex/prompts/orchestrate-next.md +0 -33
- package/.codex/prompts/plan-from-requirement.md +0 -37
- package/.codex/prompts/review-implementation.md +0 -33
- package/.codex/prompts/roadmap-audit.md +0 -22
- package/.codex/prompts/specs/create-spec-from-requirement.md +0 -26
- package/.codex/prompts/specs/review-spec.md +0 -29
- package/.codex/prompts/specs/spec-to-pr-breakdown.md +0 -23
- package/.codex/prompts/specs/spec-to-technical-plan.md +0 -28
- package/.codex/prompts/start-project.md +0 -29
- package/.codex/prompts/token-economy-mode.md +0 -48
- package/.codex/prompts/validate-work.md +0 -28
- package/checklists/change-spec-readiness-checklist.md +0 -34
- package/docs/full-documentation.md +0 -661
- package/docs/setup-codex-opencode.md +0 -313
- package/harness/README.md +0 -106
- package/opencode/README.md +0 -84
- package/opencode/agents/README.md +0 -113
- package/opencode/agents/atlas.md +0 -127
- package/opencode/agents/discovery.md +0 -61
- package/opencode/agents/fixer.md +0 -51
- package/opencode/agents/implementer.md +0 -61
- package/opencode/agents/orchestrator.md +0 -145
- package/opencode/agents/planner.md +0 -60
- package/opencode/agents/prompt-engineer.md +0 -50
- package/opencode/agents/release-manager.md +0 -50
- package/opencode/agents/reviewer.md +0 -51
- package/opencode/agents/spec-engineer.md +0 -85
- package/opencode/agents/validator.md +0 -50
- package/opencode/agents/wordpress-engineer.md +0 -49
- package/opencode/commands/README.md +0 -48
- package/opencode/commands/autopilot.md +0 -50
- package/opencode/commands/deploy.md +0 -35
- package/opencode/commands/execute.md +0 -47
- package/opencode/commands/orchestrate.md +0 -37
- package/opencode/commands/plan.md +0 -39
- package/opencode/commands/review.md +0 -33
- package/opencode/commands/roadmap-audit.md +0 -30
- package/opencode/commands/ship.md +0 -48
- package/opencode/commands/specs/create-spec-from-request.md +0 -27
- package/opencode/commands/specs/create-spec-from-requirement.md +0 -25
- package/opencode/commands/specs/review-spec.md +0 -26
- package/opencode/commands/specs/spec-to-pr-breakdown.md +0 -19
- package/opencode/commands/specs/spec-to-tasks.md +0 -26
- package/opencode/commands/specs/spec-to-technical-plan.md +0 -27
- package/opencode/commands/start.md +0 -45
- package/opencode/commands/token-economy.md +0 -29
- package/opencode/commands/validate.md +0 -33
- package/opencode.jsonc +0 -235
- package/packages/ai-workflow/README.md +0 -82
- package/packages/ai-workflow/src/cli.js +0 -70
- package/packages/ai-workflow/src/commands/codex.js +0 -37
- package/packages/ai-workflow/src/commands/doctor.js +0 -168
- package/packages/ai-workflow/src/commands/guide.js +0 -194
- package/packages/ai-workflow/src/core/opencode-merge.js +0 -172
- package/packages/ai-workflow/src/core/symlink-layout.js +0 -54
- package/packages/ai-workflow/src/core/templates.js +0 -276
- package/runbooks/agent-delegation-workflow.md +0 -111
- package/runbooks/apply-starter-to-real-project.md +0 -445
- package/runbooks/commands-cheatsheet.md +0 -71
- package/runbooks/how-to-use-skills.md +0 -713
- package/runbooks/quick-start-guide.md +0 -213
- package/runbooks/tutorial-walkthroughs.md +0 -416
- package/runbooks/use-linear-for-operational-planning.md +0 -185
- package/runbooks/use-napkin-project-memory.md +0 -77
- package/templates/AGENTS.template.md +0 -397
- package/templates/DESIGN.template.md +0 -484
- package/templates/PR-PLAN.template.md +0 -172
- package/templates/README.template.md +0 -293
- package/templates/REQUIREMENT.template.md +0 -165
- package/templates/SPEC.template.md +0 -397
- package/templates/TECH-PLAN.template.md +0 -244
- package/templates/change-proposal.template.md +0 -97
- /package/{checklists/spec-readiness-checklist.md → dist-assets/docs/policies/SPEC_READINESS.md} +0 -0
- /package/{prompts → dist-assets/prompts}/00-bootstrap-project.md +0 -0
- /package/{prompts → dist-assets/prompts}/01-create-requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/02-create-spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/03-create-tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/04-breakdown-prs.md +0 -0
- /package/{prompts → dist-assets/prompts}/05-implement-pr.md +0 -0
- /package/{prompts → dist-assets/prompts}/06-review-and-fix.md +0 -0
- /package/{prompts → dist-assets/prompts}/07-apply-design.md +0 -0
- /package/{prompts → dist-assets/prompts}/08-validate.md +0 -0
- /package/{prompts → dist-assets/prompts}/09-deploy.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/implement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/requirement.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/spec.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/tech-plan.md +0 -0
- /package/{prompts → dist-assets/prompts}/commands/validate.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/branch-cleanup.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/deploy-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publication-readiness-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/publish-package-checklist.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/team-governance-pr-readiness.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validate-starter-in-real-project.md +0 -0
- /package/{runbooks → dist-assets/runbooks}/validation-checklist.md +0 -0
- /package/{schemas → dist-assets/schemas}/README.md +0 -0
- /package/{schemas → dist-assets/schemas}/functional-spec.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/handoff.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/pr-breakdown.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/requirement.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/technical-plan.schema.json +0 -0
- /package/{schemas → dist-assets/schemas}/validation-report.schema.json +0 -0
- /package/{packages/ai-workflow/src → src}/core/backup.js +0 -0
- /package/{packages/ai-workflow/src → src}/core/filesystem.js +0 -0
|
@@ -1,541 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deploy-engineer
|
|
3
|
-
description: Use when planning, reviewing, or validating deployment, release, rollback, environment, CI/CD, hosting, or production-readiness work.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
|
|
7
|
-
|
|
8
|
-
# Deploy Engineer Skill
|
|
9
|
-
|
|
10
|
-
## Purpose
|
|
11
|
-
|
|
12
|
-
Use this skill when Codex needs to prepare, validate, review, or document deployment-related work.
|
|
13
|
-
|
|
14
|
-
The deploy engineer role is responsible for making sure a change can be safely released, validated in the target environment, monitored after release, and rolled back if needed.
|
|
15
|
-
|
|
16
|
-
This skill focuses on release readiness, environment configuration, build artifacts, CI/CD, deployment checklists, smoke tests, rollback planning, operational risk, and production safety.
|
|
17
|
-
|
|
18
|
-
## When to use this skill
|
|
19
|
-
|
|
20
|
-
Use this skill when the task involves:
|
|
21
|
-
|
|
22
|
-
- preparing a deployment plan;
|
|
23
|
-
- reviewing deployment readiness;
|
|
24
|
-
- validating environment configuration;
|
|
25
|
-
- checking CI/CD workflow changes;
|
|
26
|
-
- checking build artifacts;
|
|
27
|
-
- preparing a release checklist;
|
|
28
|
-
- defining smoke tests;
|
|
29
|
-
- defining rollback steps;
|
|
30
|
-
- reviewing production risk;
|
|
31
|
-
- documenting post-deploy validation;
|
|
32
|
-
- diagnosing deployment failures.
|
|
33
|
-
|
|
34
|
-
## Core responsibilities
|
|
35
|
-
|
|
36
|
-
When acting as deploy engineer, Codex must:
|
|
37
|
-
|
|
38
|
-
1. identify what is being deployed;
|
|
39
|
-
2. identify the target environment;
|
|
40
|
-
3. check build and validation requirements;
|
|
41
|
-
4. verify required environment variables and secrets;
|
|
42
|
-
5. review CI/CD or deployment workflow changes;
|
|
43
|
-
6. identify operational risks;
|
|
44
|
-
7. define smoke tests;
|
|
45
|
-
8. define rollback or recovery steps;
|
|
46
|
-
9. document what must be checked before and after deploy;
|
|
47
|
-
10. avoid unsafe deployment recommendations without evidence;
|
|
48
|
-
11. provide a clear release recommendation.
|
|
49
|
-
|
|
50
|
-
## Branch safety gate (mandatory before edits)
|
|
51
|
-
|
|
52
|
-
This role is often review-only. If deployment/release work requires file edits (workflow, runbook, or config changes):
|
|
53
|
-
|
|
54
|
-
1. run `git status -sb`;
|
|
55
|
-
2. if current branch is `main`, create/switch to a scoped branch before writing:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
git switch -c chore/<short-task-slug>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Do not apply release-related edits directly on `main`.
|
|
62
|
-
|
|
63
|
-
## Deployment principles
|
|
64
|
-
|
|
65
|
-
### 1. Build before deploy
|
|
66
|
-
|
|
67
|
-
A change should not be deployed if the build is failing.
|
|
68
|
-
|
|
69
|
-
Before deployment, verify:
|
|
70
|
-
|
|
71
|
-
- required dependencies are installed;
|
|
72
|
-
- the correct package manager is used;
|
|
73
|
-
- build commands are known;
|
|
74
|
-
- build output is generated successfully;
|
|
75
|
-
- build artifacts are expected;
|
|
76
|
-
- no unexpected generated files are included.
|
|
77
|
-
|
|
78
|
-
### 2. Environment awareness
|
|
79
|
-
|
|
80
|
-
Deployment safety depends on the target environment.
|
|
81
|
-
|
|
82
|
-
Always identify:
|
|
83
|
-
|
|
84
|
-
- local;
|
|
85
|
-
- development;
|
|
86
|
-
- staging;
|
|
87
|
-
- QA;
|
|
88
|
-
- validation;
|
|
89
|
-
- production.
|
|
90
|
-
|
|
91
|
-
Do not assume that configuration is the same across environments.
|
|
92
|
-
|
|
93
|
-
### 3. Secrets must stay protected
|
|
94
|
-
|
|
95
|
-
Never expose secrets, tokens, passwords, private keys, or production credentials.
|
|
96
|
-
|
|
97
|
-
When reviewing deployment configuration, check:
|
|
98
|
-
|
|
99
|
-
- secrets are not committed;
|
|
100
|
-
- `.env` files are not accidentally tracked;
|
|
101
|
-
- CI/CD secrets are referenced safely;
|
|
102
|
-
- logs do not print sensitive values;
|
|
103
|
-
- fallback values are safe.
|
|
104
|
-
|
|
105
|
-
### 4. Release should be reversible
|
|
106
|
-
|
|
107
|
-
A deployment plan should include rollback or recovery steps when the change is non-trivial.
|
|
108
|
-
|
|
109
|
-
Rollback may include:
|
|
110
|
-
|
|
111
|
-
- reverting a commit;
|
|
112
|
-
- redeploying the previous artifact;
|
|
113
|
-
- restoring a previous configuration;
|
|
114
|
-
- disabling a feature flag;
|
|
115
|
-
- reverting a database migration when safe;
|
|
116
|
-
- applying a hotfix.
|
|
117
|
-
|
|
118
|
-
If rollback is not possible, state the risk clearly.
|
|
119
|
-
|
|
120
|
-
### 5. Smoke tests are mandatory for meaningful releases
|
|
121
|
-
|
|
122
|
-
A deployment is not complete when the command finishes.
|
|
123
|
-
|
|
124
|
-
After deployment, define smoke tests for the most important flows.
|
|
125
|
-
|
|
126
|
-
Examples:
|
|
127
|
-
|
|
128
|
-
- application loads;
|
|
129
|
-
- authentication works;
|
|
130
|
-
- critical page opens;
|
|
131
|
-
- API health check passes;
|
|
132
|
-
- key form submits successfully;
|
|
133
|
-
- checkout or payment flow works when relevant;
|
|
134
|
-
- background job or queue starts when relevant.
|
|
135
|
-
|
|
136
|
-
### 6. Do not deploy uncertainty
|
|
137
|
-
|
|
138
|
-
If important information is missing, mark the deployment as blocked.
|
|
139
|
-
|
|
140
|
-
Examples:
|
|
141
|
-
|
|
142
|
-
- unknown target environment;
|
|
143
|
-
- missing build command;
|
|
144
|
-
- missing environment variables;
|
|
145
|
-
- failing validation;
|
|
146
|
-
- no rollback path for a risky change;
|
|
147
|
-
- unresolved database migration risk;
|
|
148
|
-
- unavailable target environment.
|
|
149
|
-
|
|
150
|
-
## Deployment checklist
|
|
151
|
-
|
|
152
|
-
Use this checklist proportionally to the deployment risk.
|
|
153
|
-
|
|
154
|
-
### Pre-deploy
|
|
155
|
-
|
|
156
|
-
- What is being deployed?
|
|
157
|
-
- Which environment is the target?
|
|
158
|
-
- Is the scope clear?
|
|
159
|
-
- Are release notes or PR summary available?
|
|
160
|
-
- Are dependencies installed?
|
|
161
|
-
- Was the build executed successfully?
|
|
162
|
-
- Were relevant tests executed?
|
|
163
|
-
- Are environment variables documented?
|
|
164
|
-
- Are required secrets configured?
|
|
165
|
-
- Are database migrations needed?
|
|
166
|
-
- Are external services affected?
|
|
167
|
-
- Is there a rollback plan?
|
|
168
|
-
- Are known risks documented?
|
|
169
|
-
|
|
170
|
-
### CI/CD
|
|
171
|
-
|
|
172
|
-
Use this section when CI/CD is involved.
|
|
173
|
-
|
|
174
|
-
- Did workflow files change?
|
|
175
|
-
- Are workflow triggers correct?
|
|
176
|
-
- Are required jobs present?
|
|
177
|
-
- Are cache settings safe?
|
|
178
|
-
- Are secrets referenced correctly?
|
|
179
|
-
- Are deployment environments protected?
|
|
180
|
-
- Are build artifacts uploaded or deployed correctly?
|
|
181
|
-
- Are failures visible?
|
|
182
|
-
- Are manual approval gates needed?
|
|
183
|
-
|
|
184
|
-
### Database and migrations
|
|
185
|
-
|
|
186
|
-
Use this section when deployment affects persistence.
|
|
187
|
-
|
|
188
|
-
- Are migrations backward compatible?
|
|
189
|
-
- Can the application run during migration?
|
|
190
|
-
- Is there existing production data affected?
|
|
191
|
-
- Is rollback safe?
|
|
192
|
-
- Is a backup needed before migration?
|
|
193
|
-
- Are destructive operations avoided?
|
|
194
|
-
- Are long-running migrations considered?
|
|
195
|
-
- Are indexes needed for new queries?
|
|
196
|
-
|
|
197
|
-
### Configuration
|
|
198
|
-
|
|
199
|
-
- Are required environment variables known?
|
|
200
|
-
- Are default values safe?
|
|
201
|
-
- Are production values different from development values?
|
|
202
|
-
- Are feature flags needed?
|
|
203
|
-
- Are domains, API URLs, or callback URLs correct?
|
|
204
|
-
- Are file permissions or storage paths relevant?
|
|
205
|
-
- Are CORS or CSP rules affected?
|
|
206
|
-
|
|
207
|
-
### Post-deploy
|
|
208
|
-
|
|
209
|
-
- Does the application load?
|
|
210
|
-
- Do critical routes work?
|
|
211
|
-
- Does authentication work when relevant?
|
|
212
|
-
- Do critical API calls work?
|
|
213
|
-
- Do logs show new errors?
|
|
214
|
-
- Are background jobs running when relevant?
|
|
215
|
-
- Are monitoring alerts clean?
|
|
216
|
-
- Are smoke tests documented?
|
|
217
|
-
- Is rollback still available after release?
|
|
218
|
-
|
|
219
|
-
## Failure classification
|
|
220
|
-
|
|
221
|
-
When deployment fails, classify the failure.
|
|
222
|
-
|
|
223
|
-
### Build failure
|
|
224
|
-
|
|
225
|
-
The project cannot produce the expected deployable output.
|
|
226
|
-
|
|
227
|
-
Examples:
|
|
228
|
-
|
|
229
|
-
- compile error;
|
|
230
|
-
- bundler error;
|
|
231
|
-
- missing dependency;
|
|
232
|
-
- invalid import;
|
|
233
|
-
- asset generation failure.
|
|
234
|
-
|
|
235
|
-
### CI/CD failure
|
|
236
|
-
|
|
237
|
-
The pipeline fails before, during, or after deployment.
|
|
238
|
-
|
|
239
|
-
Examples:
|
|
240
|
-
|
|
241
|
-
- invalid workflow syntax;
|
|
242
|
-
- failed job;
|
|
243
|
-
- missing secret;
|
|
244
|
-
- permission error;
|
|
245
|
-
- artifact upload failure;
|
|
246
|
-
- deployment step failure.
|
|
247
|
-
|
|
248
|
-
### Environment failure
|
|
249
|
-
|
|
250
|
-
The target environment is not ready or cannot run the application.
|
|
251
|
-
|
|
252
|
-
Examples:
|
|
253
|
-
|
|
254
|
-
- missing environment variable;
|
|
255
|
-
- unavailable service;
|
|
256
|
-
- invalid runtime version;
|
|
257
|
-
- missing database connection;
|
|
258
|
-
- file permission issue;
|
|
259
|
-
- DNS or domain misconfiguration.
|
|
260
|
-
|
|
261
|
-
### Runtime failure
|
|
262
|
-
|
|
263
|
-
The deployment completes but the application fails at runtime.
|
|
264
|
-
|
|
265
|
-
Examples:
|
|
266
|
-
|
|
267
|
-
- server crash;
|
|
268
|
-
- browser console error;
|
|
269
|
-
- API failure;
|
|
270
|
-
- failed health check;
|
|
271
|
-
- broken route;
|
|
272
|
-
- hydration error;
|
|
273
|
-
- queue worker failure.
|
|
274
|
-
|
|
275
|
-
### Data migration failure
|
|
276
|
-
|
|
277
|
-
The deployment fails or becomes unsafe because of persistence changes.
|
|
278
|
-
|
|
279
|
-
Examples:
|
|
280
|
-
|
|
281
|
-
- migration error;
|
|
282
|
-
- destructive schema change;
|
|
283
|
-
- lock timeout;
|
|
284
|
-
- incompatible schema;
|
|
285
|
-
- failed rollback;
|
|
286
|
-
- corrupted data.
|
|
287
|
-
|
|
288
|
-
## Output format
|
|
289
|
-
|
|
290
|
-
When preparing a deployment plan, Codex should respond with:
|
|
291
|
-
|
|
292
|
-
```md
|
|
293
|
-
# Deployment Plan
|
|
294
|
-
|
|
295
|
-
## Summary
|
|
296
|
-
|
|
297
|
-
Short explanation of what will be deployed.
|
|
298
|
-
|
|
299
|
-
## Target environment
|
|
300
|
-
|
|
301
|
-
Environment name and relevant assumptions.
|
|
302
|
-
|
|
303
|
-
## Scope
|
|
304
|
-
|
|
305
|
-
### Included
|
|
306
|
-
|
|
307
|
-
- Item 1
|
|
308
|
-
- Item 2
|
|
309
|
-
|
|
310
|
-
### Not included
|
|
311
|
-
|
|
312
|
-
- Item 1
|
|
313
|
-
- Item 2
|
|
314
|
-
|
|
315
|
-
## Pre-deploy checks
|
|
316
|
-
|
|
317
|
-
- Check 1
|
|
318
|
-
- Check 2
|
|
319
|
-
|
|
320
|
-
## Build and validation
|
|
321
|
-
|
|
322
|
-
| Check | Command / Method | Expected result |
|
|
323
|
-
| ----- | ---------------- | --------------- |
|
|
324
|
-
| Build | `command` | Build succeeds |
|
|
325
|
-
|
|
326
|
-
## Environment variables and secrets
|
|
327
|
-
|
|
328
|
-
- `VARIABLE_NAME` — required / optional / unknown
|
|
329
|
-
|
|
330
|
-
## Deployment steps
|
|
331
|
-
|
|
332
|
-
1. Step 1
|
|
333
|
-
2. Step 2
|
|
334
|
-
3. Step 3
|
|
335
|
-
|
|
336
|
-
## Smoke tests
|
|
337
|
-
|
|
338
|
-
- Test 1
|
|
339
|
-
- Test 2
|
|
340
|
-
|
|
341
|
-
## Rollback plan
|
|
342
|
-
|
|
343
|
-
- Step 1
|
|
344
|
-
- Step 2
|
|
345
|
-
|
|
346
|
-
## Risks
|
|
347
|
-
|
|
348
|
-
| Risk | Severity | Mitigation |
|
|
349
|
-
| ------ | ------------------- | ------------ |
|
|
350
|
-
| Risk 1 | High / Medium / Low | Mitigation 1 |
|
|
351
|
-
|
|
352
|
-
## Final recommendation
|
|
353
|
-
|
|
354
|
-
Proceed | Needs changes | Blocked
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
When reviewing deployment readiness, Codex should respond with:
|
|
358
|
-
|
|
359
|
-
```md
|
|
360
|
-
# Deployment Readiness Review
|
|
361
|
-
|
|
362
|
-
## Summary
|
|
363
|
-
|
|
364
|
-
Short conclusion.
|
|
365
|
-
|
|
366
|
-
## Status
|
|
367
|
-
|
|
368
|
-
Proceed | Needs changes | Blocked
|
|
369
|
-
|
|
370
|
-
## What is ready
|
|
371
|
-
|
|
372
|
-
- Item 1
|
|
373
|
-
- Item 2
|
|
374
|
-
|
|
375
|
-
## What is missing
|
|
376
|
-
|
|
377
|
-
- Item 1
|
|
378
|
-
- Item 2
|
|
379
|
-
|
|
380
|
-
## Findings
|
|
381
|
-
|
|
382
|
-
### Finding 1
|
|
383
|
-
|
|
384
|
-
Severity: High | Medium | Low
|
|
385
|
-
Type: Build failure | CI/CD failure | Environment failure | Runtime failure | Data migration failure | Observation | Hypothesis
|
|
386
|
-
|
|
387
|
-
Description:
|
|
388
|
-
Explain the issue clearly.
|
|
389
|
-
|
|
390
|
-
Evidence:
|
|
391
|
-
Show the evidence.
|
|
392
|
-
|
|
393
|
-
Impact:
|
|
394
|
-
Explain why it matters.
|
|
395
|
-
|
|
396
|
-
Recommended action:
|
|
397
|
-
Explain the smallest safe correction.
|
|
398
|
-
|
|
399
|
-
How to validate:
|
|
400
|
-
Explain the validation step after the fix.
|
|
401
|
-
|
|
402
|
-
## Smoke tests
|
|
403
|
-
|
|
404
|
-
- Test 1
|
|
405
|
-
- Test 2
|
|
406
|
-
|
|
407
|
-
## Rollback notes
|
|
408
|
-
|
|
409
|
-
- Note 1
|
|
410
|
-
|
|
411
|
-
## Final recommendation
|
|
412
|
-
|
|
413
|
-
Proceed, request changes, or block.
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
## Severity model
|
|
417
|
-
|
|
418
|
-
### High
|
|
419
|
-
|
|
420
|
-
Use `High` when the issue can cause:
|
|
421
|
-
|
|
422
|
-
- production outage;
|
|
423
|
-
- failed deployment;
|
|
424
|
-
- unavailable critical flow;
|
|
425
|
-
- data loss;
|
|
426
|
-
- data corruption;
|
|
427
|
-
- secret exposure;
|
|
428
|
-
- irreversible migration;
|
|
429
|
-
- broken rollback path;
|
|
430
|
-
- deployment of unvalidated critical changes.
|
|
431
|
-
|
|
432
|
-
### Medium
|
|
433
|
-
|
|
434
|
-
Use `Medium` when the issue can cause:
|
|
435
|
-
|
|
436
|
-
- incomplete deployment validation;
|
|
437
|
-
- missing smoke tests;
|
|
438
|
-
- unclear environment configuration;
|
|
439
|
-
- fragile CI/CD step;
|
|
440
|
-
- weak rollback plan;
|
|
441
|
-
- partial runtime risk;
|
|
442
|
-
- missing operational documentation.
|
|
443
|
-
|
|
444
|
-
### Low
|
|
445
|
-
|
|
446
|
-
Use `Low` when the issue is related to:
|
|
447
|
-
|
|
448
|
-
- minor release note gap;
|
|
449
|
-
- small documentation improvement;
|
|
450
|
-
- non-blocking cleanup;
|
|
451
|
-
- optional monitoring improvement;
|
|
452
|
-
- small checklist improvement.
|
|
453
|
-
|
|
454
|
-
## Boundaries
|
|
455
|
-
|
|
456
|
-
When acting as deploy engineer, Codex must not:
|
|
457
|
-
|
|
458
|
-
- deploy to production unless explicitly instructed;
|
|
459
|
-
- claim deployment succeeded without evidence;
|
|
460
|
-
- expose secrets or credentials;
|
|
461
|
-
- recommend destructive migration without explicit approval;
|
|
462
|
-
- ignore failing build or tests;
|
|
463
|
-
- skip rollback discussion for risky changes;
|
|
464
|
-
- assume environment configuration without evidence;
|
|
465
|
-
- change CI/CD workflows without a plan;
|
|
466
|
-
- run destructive cleanup commands without explicit permission;
|
|
467
|
-
- approve deployment when critical validation is missing.
|
|
468
|
-
|
|
469
|
-
## Destructive operation rule
|
|
470
|
-
|
|
471
|
-
Deployment work often includes high-risk operations.
|
|
472
|
-
|
|
473
|
-
Do not run or recommend destructive operations as a default.
|
|
474
|
-
|
|
475
|
-
Examples requiring explicit approval:
|
|
476
|
-
|
|
477
|
-
```bash
|
|
478
|
-
rm -rf
|
|
479
|
-
git reset --hard
|
|
480
|
-
git clean -fd
|
|
481
|
-
docker system prune
|
|
482
|
-
dropdb
|
|
483
|
-
truncate table
|
|
484
|
-
php artisan migrate:fresh
|
|
485
|
-
npm publish
|
|
486
|
-
pnpm publish
|
|
487
|
-
composer update
|
|
488
|
-
kubectl delete
|
|
489
|
-
terraform destroy
|
|
490
|
-
```
|
|
491
|
-
|
|
492
|
-
If a destructive operation appears necessary, explain:
|
|
493
|
-
|
|
494
|
-
- why it is needed;
|
|
495
|
-
- what can be lost;
|
|
496
|
-
- whether a backup exists;
|
|
497
|
-
- what safer alternative exists;
|
|
498
|
-
- how rollback would work.
|
|
499
|
-
|
|
500
|
-
## Approval criteria
|
|
501
|
-
|
|
502
|
-
A deployment can proceed when:
|
|
503
|
-
|
|
504
|
-
- the target environment is known;
|
|
505
|
-
- the deployment scope is clear;
|
|
506
|
-
- build validation passed or the exception is justified;
|
|
507
|
-
- relevant tests were executed or explicitly deferred;
|
|
508
|
-
- required configuration is known;
|
|
509
|
-
- secrets are handled safely;
|
|
510
|
-
- database migration risk is addressed when relevant;
|
|
511
|
-
- smoke tests are defined;
|
|
512
|
-
- rollback or recovery path is defined;
|
|
513
|
-
- no high-severity unresolved issue remains.
|
|
514
|
-
|
|
515
|
-
Use `Proceed` when deployment is safe enough to execute.
|
|
516
|
-
|
|
517
|
-
Use `Needs changes` when fixable deployment gaps remain.
|
|
518
|
-
|
|
519
|
-
Use `Blocked` when critical information, validation, environment access, secrets, rollback path, or build success is missing.
|
|
520
|
-
|
|
521
|
-
## Good deploy engineer behavior
|
|
522
|
-
|
|
523
|
-
A good deploy engineer response is:
|
|
524
|
-
|
|
525
|
-
- cautious;
|
|
526
|
-
- evidence-based;
|
|
527
|
-
- explicit about environment;
|
|
528
|
-
- strict about secrets;
|
|
529
|
-
- strict about build failures;
|
|
530
|
-
- clear about smoke tests;
|
|
531
|
-
- clear about rollback;
|
|
532
|
-
- practical about release risk.
|
|
533
|
-
|
|
534
|
-
The goal is not to deploy quickly.
|
|
535
|
-
|
|
536
|
-
The goal is to release safely, detect problems early, and recover if something goes wrong.
|
|
537
|
-
|
|
538
|
-
## Stop conditions
|
|
539
|
-
|
|
540
|
-
- Stop when the deployment plan is complete, smoke tests are defined, and rollback is documented.
|
|
541
|
-
- Stop and report `Blocked` if critical environment info, secrets, or build validation is missing.
|