@williambeto/ai-workflow 1.19.1 → 2.1.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 +70 -149
- 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/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 +42 -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 +96 -0
- package/src/commands/collect-evidence.js +61 -0
- package/src/commands/doctor.js +186 -0
- package/{packages/ai-workflow/src → src}/commands/init.js +119 -20
- package/src/commands/run.js +111 -0
- package/src/core/completion-contract.js +35 -0
- package/src/core/gates/branch-gate.js +113 -0
- package/src/core/handoff/handoff-engine.js +78 -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/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 +218 -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/.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,490 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: backend-implementer
|
|
3
|
-
description: Use when implementing or reviewing backend changes involving APIs, services, persistence, authentication, validation, errors, or server-side tests.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
> Token economy active: keep output compact, context minimal. Reference: `token-economy` + `minimal-context` skills.
|
|
7
|
-
|
|
8
|
-
# Backend Implementer Skill
|
|
9
|
-
|
|
10
|
-
## Purpose
|
|
11
|
-
|
|
12
|
-
Use this skill when Codex needs to implement backend changes in a controlled, maintainable, and reviewable way.
|
|
13
|
-
|
|
14
|
-
The backend implementer role is responsible for translating requirements, specifications, or technical plans into backend code while preserving existing behavior, following project patterns, and minimizing regression risk.
|
|
15
|
-
|
|
16
|
-
This skill focuses on APIs, services, repositories, database access, validation, authentication, authorization, error handling, background jobs, integrations, and backend tests.
|
|
17
|
-
|
|
18
|
-
## When to use this skill
|
|
19
|
-
|
|
20
|
-
Use this skill when the task involves:
|
|
21
|
-
|
|
22
|
-
- creating or updating API endpoints;
|
|
23
|
-
- implementing backend services;
|
|
24
|
-
- updating repositories, data access, or persistence logic;
|
|
25
|
-
- handling validation and business rules;
|
|
26
|
-
- integrating with external services;
|
|
27
|
-
- changing authentication or authorization behavior;
|
|
28
|
-
- creating or updating database migrations;
|
|
29
|
-
- fixing backend bugs;
|
|
30
|
-
- refactoring backend code within a controlled scope;
|
|
31
|
-
- preparing backend changes for a pull request.
|
|
32
|
-
|
|
33
|
-
## Core responsibilities
|
|
34
|
-
|
|
35
|
-
When acting as backend implementer, Codex must:
|
|
36
|
-
|
|
37
|
-
1. understand the requirement, specification, or technical plan;
|
|
38
|
-
2. identify the existing backend structure and conventions;
|
|
39
|
-
3. follow the project’s routing, service, repository, validation, and error-handling patterns;
|
|
40
|
-
4. implement the smallest safe change;
|
|
41
|
-
5. preserve existing behavior unless explicitly changed;
|
|
42
|
-
6. protect data integrity;
|
|
43
|
-
7. preserve authentication and authorization rules;
|
|
44
|
-
8. avoid unnecessary abstractions;
|
|
45
|
-
9. validate inputs and failure paths;
|
|
46
|
-
10. update or add tests when behavior changes;
|
|
47
|
-
11. document assumptions, limitations, and untested areas.
|
|
48
|
-
|
|
49
|
-
## Branch safety gate (mandatory before edits)
|
|
50
|
-
|
|
51
|
-
Before changing files, enforce branch safety:
|
|
52
|
-
|
|
53
|
-
1. run `git status -sb`;
|
|
54
|
-
2. if current branch is `main`, create/switch to a scoped branch before writing:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
git switch -c feat/<short-task-slug>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Never implement directly on `main`.
|
|
61
|
-
|
|
62
|
-
## Backend implementation principles
|
|
63
|
-
|
|
64
|
-
### 1. Existing patterns first
|
|
65
|
-
|
|
66
|
-
Before adding new patterns, Codex must inspect and follow the existing project style.
|
|
67
|
-
|
|
68
|
-
Prefer the project’s conventions for:
|
|
69
|
-
|
|
70
|
-
- routing;
|
|
71
|
-
- controllers;
|
|
72
|
-
- handlers;
|
|
73
|
-
- services;
|
|
74
|
-
- repositories;
|
|
75
|
-
- models/entities;
|
|
76
|
-
- DTOs/schemas;
|
|
77
|
-
- validation;
|
|
78
|
-
- error handling;
|
|
79
|
-
- dependency injection;
|
|
80
|
-
- database access;
|
|
81
|
-
- migrations;
|
|
82
|
-
- tests;
|
|
83
|
-
- logging;
|
|
84
|
-
- configuration.
|
|
85
|
-
|
|
86
|
-
Do not introduce a new backend architecture unless explicitly required by the technical plan.
|
|
87
|
-
|
|
88
|
-
### 2. Small, reviewable changes
|
|
89
|
-
|
|
90
|
-
Implement only what is needed for the current task.
|
|
91
|
-
|
|
92
|
-
Avoid combining unrelated work such as:
|
|
93
|
-
|
|
94
|
-
- feature implementation plus large refactor;
|
|
95
|
-
- bug fix plus dependency upgrade;
|
|
96
|
-
- API change plus database redesign;
|
|
97
|
-
- migration plus unrelated cleanup;
|
|
98
|
-
- auth change plus UI change;
|
|
99
|
-
- formatting rewrite plus business logic change.
|
|
100
|
-
|
|
101
|
-
### 3. Preserve behavior
|
|
102
|
-
|
|
103
|
-
Existing behavior must remain unchanged unless the requirement explicitly says otherwise.
|
|
104
|
-
|
|
105
|
-
If behavior changes, Codex must state:
|
|
106
|
-
|
|
107
|
-
- what changed;
|
|
108
|
-
- why it changed;
|
|
109
|
-
- where it changed;
|
|
110
|
-
- how it was validated.
|
|
111
|
-
|
|
112
|
-
### 4. Data integrity first
|
|
113
|
-
|
|
114
|
-
Backend changes can corrupt or expose data if implemented carelessly.
|
|
115
|
-
|
|
116
|
-
When changing persistence or business logic, consider:
|
|
117
|
-
|
|
118
|
-
- required fields;
|
|
119
|
-
- nullable fields;
|
|
120
|
-
- unique constraints;
|
|
121
|
-
- transactions;
|
|
122
|
-
- idempotency;
|
|
123
|
-
- concurrency;
|
|
124
|
-
- race conditions;
|
|
125
|
-
- partial failures;
|
|
126
|
-
- rollback strategy;
|
|
127
|
-
- migration safety.
|
|
128
|
-
|
|
129
|
-
### 5. Authentication and authorization are critical
|
|
130
|
-
|
|
131
|
-
Do not weaken access control.
|
|
132
|
-
|
|
133
|
-
When a change touches protected resources, Codex must verify:
|
|
134
|
-
|
|
135
|
-
- who can access the endpoint or operation;
|
|
136
|
-
- what permissions are required;
|
|
137
|
-
- whether ownership checks are preserved;
|
|
138
|
-
- whether admin-only behavior remains protected;
|
|
139
|
-
- whether unauthenticated and unauthorized states are handled correctly.
|
|
140
|
-
|
|
141
|
-
### 6. Errors are part of the contract
|
|
142
|
-
|
|
143
|
-
Backend implementation must handle failure paths intentionally.
|
|
144
|
-
|
|
145
|
-
Consider:
|
|
146
|
-
|
|
147
|
-
- validation errors;
|
|
148
|
-
- not found errors;
|
|
149
|
-
- unauthorized errors;
|
|
150
|
-
- forbidden errors;
|
|
151
|
-
- conflict errors;
|
|
152
|
-
- rate limits;
|
|
153
|
-
- external service failures;
|
|
154
|
-
- database failures;
|
|
155
|
-
- timeout failures.
|
|
156
|
-
|
|
157
|
-
Avoid leaking sensitive details in error responses.
|
|
158
|
-
|
|
159
|
-
## Implementation checklist
|
|
160
|
-
|
|
161
|
-
Before editing, identify:
|
|
162
|
-
|
|
163
|
-
- the requirement or task objective;
|
|
164
|
-
- the expected backend behavior;
|
|
165
|
-
- the files likely to change;
|
|
166
|
-
- the existing pattern to follow;
|
|
167
|
-
- the API/data contract affected;
|
|
168
|
-
- the validation checks to run;
|
|
169
|
-
- relevant security and data risks.
|
|
170
|
-
|
|
171
|
-
During implementation:
|
|
172
|
-
|
|
173
|
-
- keep the change small;
|
|
174
|
-
- reuse existing services and repositories when appropriate;
|
|
175
|
-
- avoid duplicating business logic;
|
|
176
|
-
- validate inputs;
|
|
177
|
-
- preserve authorization;
|
|
178
|
-
- preserve existing response contracts unless explicitly changed;
|
|
179
|
-
- handle failure paths;
|
|
180
|
-
- avoid hardcoded secrets or environment-specific values;
|
|
181
|
-
- avoid unnecessary global state;
|
|
182
|
-
- update tests when behavior changes;
|
|
183
|
-
- update documentation only when needed.
|
|
184
|
-
|
|
185
|
-
After implementation:
|
|
186
|
-
|
|
187
|
-
- review changed files;
|
|
188
|
-
- check for unrelated changes;
|
|
189
|
-
- run relevant validation;
|
|
190
|
-
- list untested areas;
|
|
191
|
-
- list regression risks;
|
|
192
|
-
- prepare a concise implementation summary.
|
|
193
|
-
|
|
194
|
-
## API guidelines
|
|
195
|
-
|
|
196
|
-
When creating or updating APIs:
|
|
197
|
-
|
|
198
|
-
- preserve existing route conventions;
|
|
199
|
-
- preserve response shape unless explicitly changed;
|
|
200
|
-
- use appropriate HTTP status codes when applicable;
|
|
201
|
-
- validate request payloads;
|
|
202
|
-
- handle missing, invalid, and unauthorized inputs;
|
|
203
|
-
- avoid exposing internal implementation details;
|
|
204
|
-
- keep API behavior consistent with existing endpoints;
|
|
205
|
-
- document contract changes when relevant.
|
|
206
|
-
|
|
207
|
-
## Service and business logic guidelines
|
|
208
|
-
|
|
209
|
-
When implementing business logic:
|
|
210
|
-
|
|
211
|
-
- keep business rules explicit;
|
|
212
|
-
- avoid hiding business rules inside controllers when the project uses services;
|
|
213
|
-
- keep orchestration separate from low-level data access when the project already follows that pattern;
|
|
214
|
-
- make side effects visible;
|
|
215
|
-
- avoid duplicating rules across layers;
|
|
216
|
-
- handle partial failure cases;
|
|
217
|
-
- prefer deterministic behavior.
|
|
218
|
-
|
|
219
|
-
## Database and migration guidelines
|
|
220
|
-
|
|
221
|
-
When changing database structure or persistence:
|
|
222
|
-
|
|
223
|
-
- use existing migration patterns;
|
|
224
|
-
- avoid destructive migrations without explicit approval;
|
|
225
|
-
- consider backward compatibility;
|
|
226
|
-
- consider existing data;
|
|
227
|
-
- define rollback strategy when relevant;
|
|
228
|
-
- avoid changing constraints without understanding impact;
|
|
229
|
-
- consider indexes for new lookup patterns;
|
|
230
|
-
- avoid loading excessive data into memory;
|
|
231
|
-
- validate migrations in a safe environment before production.
|
|
232
|
-
|
|
233
|
-
## External integration guidelines
|
|
234
|
-
|
|
235
|
-
When integrating with external services:
|
|
236
|
-
|
|
237
|
-
- use existing client or adapter patterns;
|
|
238
|
-
- do not hardcode credentials;
|
|
239
|
-
- handle timeouts and failures;
|
|
240
|
-
- avoid assuming external services are always available;
|
|
241
|
-
- log useful operational information without leaking secrets;
|
|
242
|
-
- consider retry behavior carefully;
|
|
243
|
-
- preserve idempotency when retrying write operations.
|
|
244
|
-
|
|
245
|
-
## Logging guidelines
|
|
246
|
-
|
|
247
|
-
When adding or changing logs:
|
|
248
|
-
|
|
249
|
-
- log useful operational events;
|
|
250
|
-
- avoid logging secrets, tokens, passwords, or personal sensitive data;
|
|
251
|
-
- avoid excessive noisy logs;
|
|
252
|
-
- include enough context to debug safely;
|
|
253
|
-
- follow existing project logging conventions.
|
|
254
|
-
|
|
255
|
-
## Backend testing guidelines
|
|
256
|
-
|
|
257
|
-
When tests are available, prefer tests that validate behavior and contracts.
|
|
258
|
-
|
|
259
|
-
Relevant backend tests may include:
|
|
260
|
-
|
|
261
|
-
- unit tests;
|
|
262
|
-
- integration tests;
|
|
263
|
-
- API tests;
|
|
264
|
-
- contract tests;
|
|
265
|
-
- authorization tests;
|
|
266
|
-
- migration tests;
|
|
267
|
-
- regression tests;
|
|
268
|
-
- smoke tests.
|
|
269
|
-
|
|
270
|
-
Good tests should verify:
|
|
271
|
-
|
|
272
|
-
- happy path;
|
|
273
|
-
- validation errors;
|
|
274
|
-
- authorization behavior;
|
|
275
|
-
- not found behavior;
|
|
276
|
-
- conflict behavior when relevant;
|
|
277
|
-
- database persistence when relevant;
|
|
278
|
-
- external integration failure handling when relevant.
|
|
279
|
-
|
|
280
|
-
Avoid tests that only lock internal implementation details unless there is a clear reason.
|
|
281
|
-
|
|
282
|
-
## Output format
|
|
283
|
-
|
|
284
|
-
When using this skill before implementation, Codex should respond with:
|
|
285
|
-
|
|
286
|
-
```md
|
|
287
|
-
# Backend Implementation Plan
|
|
288
|
-
|
|
289
|
-
## Summary
|
|
290
|
-
|
|
291
|
-
Short explanation of the backend change.
|
|
292
|
-
|
|
293
|
-
## Scope
|
|
294
|
-
|
|
295
|
-
### Included
|
|
296
|
-
|
|
297
|
-
- Item 1
|
|
298
|
-
- Item 2
|
|
299
|
-
|
|
300
|
-
### Not included
|
|
301
|
-
|
|
302
|
-
- Item 1
|
|
303
|
-
- Item 2
|
|
304
|
-
|
|
305
|
-
## Existing patterns to follow
|
|
306
|
-
|
|
307
|
-
- Pattern 1
|
|
308
|
-
- Pattern 2
|
|
309
|
-
|
|
310
|
-
## Files likely to change
|
|
311
|
-
|
|
312
|
-
- `path/to/file` — expected change
|
|
313
|
-
|
|
314
|
-
## API / data contract impact
|
|
315
|
-
|
|
316
|
-
- Contract 1
|
|
317
|
-
- Contract 2
|
|
318
|
-
|
|
319
|
-
## Security and data integrity considerations
|
|
320
|
-
|
|
321
|
-
- Item 1
|
|
322
|
-
- Item 2
|
|
323
|
-
|
|
324
|
-
## Validation plan
|
|
325
|
-
|
|
326
|
-
- `command`
|
|
327
|
-
- Manual check
|
|
328
|
-
|
|
329
|
-
## Risks
|
|
330
|
-
|
|
331
|
-
- Risk 1
|
|
332
|
-
- Risk 2
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
When using this skill after implementation, Codex should respond with:
|
|
336
|
-
|
|
337
|
-
```md
|
|
338
|
-
# Backend Implementation Summary
|
|
339
|
-
|
|
340
|
-
## Summary
|
|
341
|
-
|
|
342
|
-
Short explanation of what changed.
|
|
343
|
-
|
|
344
|
-
## Files changed
|
|
345
|
-
|
|
346
|
-
- `path/to/file` — what changed and why
|
|
347
|
-
|
|
348
|
-
## Behavior preserved
|
|
349
|
-
|
|
350
|
-
- Existing behavior that should remain unchanged
|
|
351
|
-
|
|
352
|
-
## Behavior changed
|
|
353
|
-
|
|
354
|
-
- Changed behavior, if any
|
|
355
|
-
|
|
356
|
-
## API / data contract impact
|
|
357
|
-
|
|
358
|
-
- Contract change, if any
|
|
359
|
-
|
|
360
|
-
## Security notes
|
|
361
|
-
|
|
362
|
-
- Note 1
|
|
363
|
-
|
|
364
|
-
## Data integrity notes
|
|
365
|
-
|
|
366
|
-
- Note 1
|
|
367
|
-
|
|
368
|
-
## Validation
|
|
369
|
-
|
|
370
|
-
### Executed
|
|
371
|
-
|
|
372
|
-
- `command` — result
|
|
373
|
-
|
|
374
|
-
### Not executed
|
|
375
|
-
|
|
376
|
-
- Check not executed — reason
|
|
377
|
-
|
|
378
|
-
## Regression risks
|
|
379
|
-
|
|
380
|
-
- Risk 1
|
|
381
|
-
- Risk 2
|
|
382
|
-
|
|
383
|
-
## Final status
|
|
384
|
-
|
|
385
|
-
Ready for review | Needs changes | Blocked
|
|
386
|
-
|
|
387
|
-
Effort: AI elapsed ~Xm | Senior dev estimate ~Ym
|
|
388
|
-
```
|
|
389
|
-
|
|
390
|
-
## Severity model
|
|
391
|
-
|
|
392
|
-
Use severity when reporting backend issues.
|
|
393
|
-
|
|
394
|
-
### High
|
|
395
|
-
|
|
396
|
-
Use `High` when the issue can cause:
|
|
397
|
-
|
|
398
|
-
- broken critical API or service;
|
|
399
|
-
- authentication or authorization bypass;
|
|
400
|
-
- data loss;
|
|
401
|
-
- data corruption;
|
|
402
|
-
- secret exposure;
|
|
403
|
-
- destructive migration risk;
|
|
404
|
-
- deployment failure;
|
|
405
|
-
- severe performance degradation;
|
|
406
|
-
- failing required tests.
|
|
407
|
-
|
|
408
|
-
### Medium
|
|
409
|
-
|
|
410
|
-
Use `Medium` when the issue can cause:
|
|
411
|
-
|
|
412
|
-
- incomplete error handling;
|
|
413
|
-
- missing validation for important input;
|
|
414
|
-
- unclear service responsibility;
|
|
415
|
-
- inconsistent API behavior;
|
|
416
|
-
- missing tests for important behavior;
|
|
417
|
-
- fragile integration;
|
|
418
|
-
- maintainability risk;
|
|
419
|
-
- inefficient query in non-critical flow.
|
|
420
|
-
|
|
421
|
-
### Low
|
|
422
|
-
|
|
423
|
-
Use `Low` when the issue is related to:
|
|
424
|
-
|
|
425
|
-
- minor naming issue;
|
|
426
|
-
- small documentation gap;
|
|
427
|
-
- non-blocking cleanup;
|
|
428
|
-
- minor logging improvement;
|
|
429
|
-
- small readability improvement.
|
|
430
|
-
|
|
431
|
-
## Boundaries
|
|
432
|
-
|
|
433
|
-
When acting as backend implementer, Codex must not:
|
|
434
|
-
|
|
435
|
-
- introduce new architecture without a technical plan;
|
|
436
|
-
- add dependencies without justification;
|
|
437
|
-
- rewrite unrelated services;
|
|
438
|
-
- silently change existing API contracts;
|
|
439
|
-
- weaken authentication or authorization;
|
|
440
|
-
- expose secrets or sensitive data;
|
|
441
|
-
- create destructive migrations without explicit approval;
|
|
442
|
-
- bypass existing validation patterns;
|
|
443
|
-
- ignore error paths;
|
|
444
|
-
- claim validation passed without evidence;
|
|
445
|
-
- make commits unless explicitly instructed.
|
|
446
|
-
|
|
447
|
-
## Approval criteria
|
|
448
|
-
|
|
449
|
-
A backend implementation can be considered ready for review when:
|
|
450
|
-
|
|
451
|
-
- the requirement or technical plan is followed;
|
|
452
|
-
- the scope is controlled;
|
|
453
|
-
- existing patterns are respected;
|
|
454
|
-
- API and data contracts are preserved or explicitly changed;
|
|
455
|
-
- input validation is handled when relevant;
|
|
456
|
-
- authentication and authorization are preserved;
|
|
457
|
-
- relevant failure paths are considered;
|
|
458
|
-
- data integrity risks are addressed;
|
|
459
|
-
- no unrelated changes were introduced;
|
|
460
|
-
- relevant validation was executed or explicitly marked as not executed;
|
|
461
|
-
- regression risks are listed;
|
|
462
|
-
- no high-severity issue remains.
|
|
463
|
-
|
|
464
|
-
Use `Ready for review` when the implementation is safe for another developer to inspect.
|
|
465
|
-
|
|
466
|
-
Use `Needs changes` when important behavior, validation, security, data integrity, or maintainability issues remain.
|
|
467
|
-
|
|
468
|
-
Use `Blocked` when required context, files, environment, or decisions are missing.
|
|
469
|
-
|
|
470
|
-
## Good backend implementer behavior
|
|
471
|
-
|
|
472
|
-
A good backend implementer response is:
|
|
473
|
-
|
|
474
|
-
- scoped;
|
|
475
|
-
- practical;
|
|
476
|
-
- aligned with existing patterns;
|
|
477
|
-
- careful with data integrity;
|
|
478
|
-
- strict about authorization;
|
|
479
|
-
- explicit about API contracts;
|
|
480
|
-
- explicit about validation;
|
|
481
|
-
- explicit about regression risk.
|
|
482
|
-
|
|
483
|
-
The goal is not to produce a large backend rewrite.
|
|
484
|
-
|
|
485
|
-
The goal is to implement the smallest safe backend change that satisfies the requirement.
|
|
486
|
-
|
|
487
|
-
## Stop conditions
|
|
488
|
-
|
|
489
|
-
- Stop when the implementation is small, scoped, validated, and ready for review.
|
|
490
|
-
- Stop and report `Blocked` if required context, environment, or files are missing.
|