@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,484 +0,0 @@
|
|
|
1
|
-
# [Project Name] Design System
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
This file defines the visual design system for `[Project Name]`.
|
|
6
|
-
|
|
7
|
-
AI coding agents should use this file when creating or updating user interfaces so that screens, components, layouts, and interactions stay visually consistent.
|
|
8
|
-
|
|
9
|
-
This file follows the `DESIGN.md` idea: a single Markdown file in the project root that gives AI coding tools enough design context to build consistent UI using plain text, version-controlled design guidance. DESIGN.md commonly includes colors, typography, spacing, component patterns, elevation, and usage guidelines.
|
|
10
|
-
|
|
11
|
-
## Design principles
|
|
12
|
-
|
|
13
|
-
- **[Principle 1]**: [Short explanation]
|
|
14
|
-
- **[Principle 2]**: [Short explanation]
|
|
15
|
-
- **[Principle 3]**: [Short explanation]
|
|
16
|
-
|
|
17
|
-
Example:
|
|
18
|
-
|
|
19
|
-
- **Clarity first**: Interfaces should make the next action obvious.
|
|
20
|
-
- **Consistency over novelty**: Reuse existing patterns before creating new ones.
|
|
21
|
-
- **Accessible by default**: Color, layout, and interaction states must remain usable for keyboard and assistive technology users.
|
|
22
|
-
|
|
23
|
-
## Brand personality
|
|
24
|
-
|
|
25
|
-
Describe the product’s visual and emotional direction.
|
|
26
|
-
|
|
27
|
-
- **Tone**: [Professional / playful / minimal / bold / calm / technical / premium]
|
|
28
|
-
- **Density**: [Compact / balanced / spacious]
|
|
29
|
-
- **Visual style**: [Flat / soft / elevated / editorial / dashboard-like / app-like]
|
|
30
|
-
- **User feeling**: [What the interface should make users feel]
|
|
31
|
-
|
|
32
|
-
## Color system
|
|
33
|
-
|
|
34
|
-
DESIGN.md files should provide colors with usage guidance, not only raw values. The designmd.ai format describes colors as primary palette, neutrals, and semantic colors with hex values and usage notes.
|
|
35
|
-
|
|
36
|
-
### Brand colors
|
|
37
|
-
|
|
38
|
-
| Token | Hex | Usage |
|
|
39
|
-
| --------------- | -------: | ------------------------------------------------- |
|
|
40
|
-
| `primary` | `#[HEX]` | Main actions, links, active states |
|
|
41
|
-
| `primary-hover` | `#[HEX]` | Hover state for primary actions |
|
|
42
|
-
| `primary-soft` | `#[HEX]` | Subtle backgrounds, selected rows, light emphasis |
|
|
43
|
-
| `secondary` | `#[HEX]` | Secondary brand accent |
|
|
44
|
-
| `accent` | `#[HEX]` | Highlights, badges, decorative emphasis |
|
|
45
|
-
|
|
46
|
-
### Neutral colors
|
|
47
|
-
|
|
48
|
-
| Token | Hex | Usage |
|
|
49
|
-
| ---------------- | -------: | ----------------------------------- |
|
|
50
|
-
| `background` | `#[HEX]` | Main page background |
|
|
51
|
-
| `surface` | `#[HEX]` | Cards, panels, containers |
|
|
52
|
-
| `surface-muted` | `#[HEX]` | Secondary panels, muted areas |
|
|
53
|
-
| `border` | `#[HEX]` | Default borders and dividers |
|
|
54
|
-
| `border-strong` | `#[HEX]` | Stronger separators |
|
|
55
|
-
| `text-primary` | `#[HEX]` | Main readable text |
|
|
56
|
-
| `text-secondary` | `#[HEX]` | Secondary text |
|
|
57
|
-
| `text-muted` | `#[HEX]` | Helper text, metadata, placeholders |
|
|
58
|
-
|
|
59
|
-
### Semantic colors
|
|
60
|
-
|
|
61
|
-
| Token | Hex | Usage |
|
|
62
|
-
| -------------- | -------: | ------------------------------------ |
|
|
63
|
-
| `success` | `#[HEX]` | Success states and positive feedback |
|
|
64
|
-
| `success-soft` | `#[HEX]` | Success backgrounds |
|
|
65
|
-
| `warning` | `#[HEX]` | Warning states |
|
|
66
|
-
| `warning-soft` | `#[HEX]` | Warning backgrounds |
|
|
67
|
-
| `danger` | `#[HEX]` | Error states and destructive actions |
|
|
68
|
-
| `danger-soft` | `#[HEX]` | Error backgrounds |
|
|
69
|
-
| `info` | `#[HEX]` | Informational states |
|
|
70
|
-
| `info-soft` | `#[HEX]` | Informational backgrounds |
|
|
71
|
-
|
|
72
|
-
### Color usage rules
|
|
73
|
-
|
|
74
|
-
- Use `primary` only for the main action in a section or screen.
|
|
75
|
-
- Use semantic colors only for real semantic meaning.
|
|
76
|
-
- Do not use color alone to communicate important information.
|
|
77
|
-
- Keep contrast readable for text, buttons, inputs, and status labels.
|
|
78
|
-
- Do not introduce new hex values unless the design system is updated.
|
|
79
|
-
|
|
80
|
-
## Typography
|
|
81
|
-
|
|
82
|
-
DESIGN.md should define font families, sizes, weights, line heights, and usage guidance.
|
|
83
|
-
|
|
84
|
-
### Font families
|
|
85
|
-
|
|
86
|
-
| Token | Font | Usage |
|
|
87
|
-
| -------------- | ------------------------- | ------------------------------------ |
|
|
88
|
-
| `font-sans` | `[Font name], sans-serif` | Main interface text |
|
|
89
|
-
| `font-display` | `[Font name], sans-serif` | Large headings or marketing sections |
|
|
90
|
-
| `font-mono` | `[Font name], monospace` | Code, IDs, technical values |
|
|
91
|
-
|
|
92
|
-
### Type scale
|
|
93
|
-
|
|
94
|
-
| Token | Size | Line height | Weight | Usage |
|
|
95
|
-
| --------- | ---------: | ----------: | ---------: | ----------------------------- |
|
|
96
|
-
| `display` | `[px/rem]` | `[px/rem]` | `[weight]` | Hero titles |
|
|
97
|
-
| `h1` | `[px/rem]` | `[px/rem]` | `[weight]` | Page titles |
|
|
98
|
-
| `h2` | `[px/rem]` | `[px/rem]` | `[weight]` | Section titles |
|
|
99
|
-
| `h3` | `[px/rem]` | `[px/rem]` | `[weight]` | Card or subsection titles |
|
|
100
|
-
| `body` | `[px/rem]` | `[px/rem]` | `[weight]` | Main content |
|
|
101
|
-
| `body-sm` | `[px/rem]` | `[px/rem]` | `[weight]` | Secondary content |
|
|
102
|
-
| `caption` | `[px/rem]` | `[px/rem]` | `[weight]` | Metadata, labels, helper text |
|
|
103
|
-
|
|
104
|
-
### Typography rules
|
|
105
|
-
|
|
106
|
-
- Use one clear `h1` per page.
|
|
107
|
-
- Do not skip heading hierarchy for visual reasons.
|
|
108
|
-
- Use `text-secondary` for supporting text, not low contrast.
|
|
109
|
-
- Keep line length readable.
|
|
110
|
-
- Use `font-mono` only for technical values, code, IDs, or logs.
|
|
111
|
-
|
|
112
|
-
## Spacing
|
|
113
|
-
|
|
114
|
-
DESIGN.md commonly includes a base spacing unit and scale values for consistent padding, margins, and gaps.
|
|
115
|
-
|
|
116
|
-
### Base unit
|
|
117
|
-
|
|
118
|
-
```txt
|
|
119
|
-
Base spacing unit: [4px / 8px]
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Spacing scale
|
|
123
|
-
|
|
124
|
-
| Token | Value | Usage |
|
|
125
|
-
| ---------- | ---------: | ------------------------- |
|
|
126
|
-
| `space-1` | `[px/rem]` | Tight inline spacing |
|
|
127
|
-
| `space-2` | `[px/rem]` | Small gaps |
|
|
128
|
-
| `space-3` | `[px/rem]` | Form field gaps |
|
|
129
|
-
| `space-4` | `[px/rem]` | Default component padding |
|
|
130
|
-
| `space-6` | `[px/rem]` | Section spacing |
|
|
131
|
-
| `space-8` | `[px/rem]` | Large layout spacing |
|
|
132
|
-
| `space-12` | `[px/rem]` | Page-level spacing |
|
|
133
|
-
|
|
134
|
-
### Spacing rules
|
|
135
|
-
|
|
136
|
-
- Use spacing tokens instead of one-off values.
|
|
137
|
-
- Keep related elements visually grouped.
|
|
138
|
-
- Increase vertical spacing between different sections.
|
|
139
|
-
- Use consistent gaps in forms, cards, lists, and grids.
|
|
140
|
-
- Avoid cramped interactive targets.
|
|
141
|
-
|
|
142
|
-
## Layout
|
|
143
|
-
|
|
144
|
-
### Containers
|
|
145
|
-
|
|
146
|
-
| Token | Value | Usage |
|
|
147
|
-
| -------------- | ---------: | --------------------------- |
|
|
148
|
-
| `container-sm` | `[px/rem]` | Forms, narrow content |
|
|
149
|
-
| `container-md` | `[px/rem]` | Standard content |
|
|
150
|
-
| `container-lg` | `[px/rem]` | Dashboards and wide layouts |
|
|
151
|
-
| `container-xl` | `[px/rem]` | Data-heavy screens |
|
|
152
|
-
|
|
153
|
-
### Grid
|
|
154
|
-
|
|
155
|
-
- Use consistent column gaps.
|
|
156
|
-
- Prefer responsive grids over fixed widths.
|
|
157
|
-
- Avoid horizontal overflow on small screens.
|
|
158
|
-
- Stack content vertically on mobile when needed.
|
|
159
|
-
|
|
160
|
-
### Page structure
|
|
161
|
-
|
|
162
|
-
Recommended order:
|
|
163
|
-
|
|
164
|
-
1. Page header
|
|
165
|
-
2. Primary action or summary
|
|
166
|
-
3. Main content
|
|
167
|
-
4. Supporting content
|
|
168
|
-
5. Secondary actions or footer content
|
|
169
|
-
|
|
170
|
-
## Radius
|
|
171
|
-
|
|
172
|
-
| Token | Value | Usage |
|
|
173
|
-
| ------------- | ---------: | ------------------------ |
|
|
174
|
-
| `radius-sm` | `[px/rem]` | Small controls, badges |
|
|
175
|
-
| `radius-md` | `[px/rem]` | Inputs, buttons |
|
|
176
|
-
| `radius-lg` | `[px/rem]` | Cards, panels |
|
|
177
|
-
| `radius-xl` | `[px/rem]` | Large containers, modals |
|
|
178
|
-
| `radius-full` | `9999px` | Pills, avatars |
|
|
179
|
-
|
|
180
|
-
## Elevation
|
|
181
|
-
|
|
182
|
-
DESIGN.md commonly includes elevation, shadows, glow effects, or depth cues for layered interfaces.
|
|
183
|
-
|
|
184
|
-
| Token | Value | Usage |
|
|
185
|
-
| -------------- | -------------- | ----------------------------- |
|
|
186
|
-
| `shadow-sm` | `[CSS shadow]` | Subtle elevation |
|
|
187
|
-
| `shadow-md` | `[CSS shadow]` | Cards and dropdowns |
|
|
188
|
-
| `shadow-lg` | `[CSS shadow]` | Modals, popovers |
|
|
189
|
-
| `shadow-focus` | `[CSS shadow]` | Focus ring or active emphasis |
|
|
190
|
-
|
|
191
|
-
### Elevation rules
|
|
192
|
-
|
|
193
|
-
- Use elevation to show hierarchy, not decoration.
|
|
194
|
-
- Keep shadows consistent across similar components.
|
|
195
|
-
- Do not combine heavy borders and heavy shadows unless intentional.
|
|
196
|
-
- Modals and popovers should have stronger elevation than cards.
|
|
197
|
-
|
|
198
|
-
## Borders
|
|
199
|
-
|
|
200
|
-
| Token | Value | Usage |
|
|
201
|
-
| ---------------- | ------------------ | ------------------------------- |
|
|
202
|
-
| `border-default` | `1px solid #[HEX]` | Cards, inputs, dividers |
|
|
203
|
-
| `border-strong` | `1px solid #[HEX]` | Active or emphasized containers |
|
|
204
|
-
| `border-focus` | `1px solid #[HEX]` | Focus or selected states |
|
|
205
|
-
|
|
206
|
-
## Components
|
|
207
|
-
|
|
208
|
-
DESIGN.md should describe component patterns such as buttons, inputs, and cards with specific dimensions, colors, radius, padding, and usage rules.
|
|
209
|
-
|
|
210
|
-
### Buttons
|
|
211
|
-
|
|
212
|
-
#### Primary button
|
|
213
|
-
|
|
214
|
-
Use for the main action.
|
|
215
|
-
|
|
216
|
-
```txt
|
|
217
|
-
Background: primary
|
|
218
|
-
Text: white / high contrast
|
|
219
|
-
Border: none
|
|
220
|
-
Radius: radius-md
|
|
221
|
-
Padding: [value]
|
|
222
|
-
Font: body-sm / medium
|
|
223
|
-
Hover: primary-hover
|
|
224
|
-
Focus: visible focus ring
|
|
225
|
-
Disabled: muted background, muted text, not clickable
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
Rules:
|
|
229
|
-
|
|
230
|
-
- Use only one primary button per main section when possible.
|
|
231
|
-
- Button labels must be action-oriented.
|
|
232
|
-
- Do not use primary buttons for destructive actions.
|
|
233
|
-
|
|
234
|
-
#### Secondary button
|
|
235
|
-
|
|
236
|
-
Use for secondary actions.
|
|
237
|
-
|
|
238
|
-
```txt
|
|
239
|
-
Background: surface
|
|
240
|
-
Text: text-primary
|
|
241
|
-
Border: border-default
|
|
242
|
-
Radius: radius-md
|
|
243
|
-
Padding: [value]
|
|
244
|
-
Hover: surface-muted
|
|
245
|
-
Focus: visible focus ring
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
#### Destructive button
|
|
249
|
-
|
|
250
|
-
Use only for destructive actions.
|
|
251
|
-
|
|
252
|
-
```txt
|
|
253
|
-
Background: danger
|
|
254
|
-
Text: high contrast
|
|
255
|
-
Hover: darker danger tone
|
|
256
|
-
Confirmation: required for high-risk actions
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Inputs
|
|
260
|
-
|
|
261
|
-
```txt
|
|
262
|
-
Background: surface
|
|
263
|
-
Text: text-primary
|
|
264
|
-
Placeholder: text-muted
|
|
265
|
-
Border: border-default
|
|
266
|
-
Focus border: primary
|
|
267
|
-
Error border: danger
|
|
268
|
-
Radius: radius-md
|
|
269
|
-
Padding: [value]
|
|
270
|
-
Height: [value]
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
Rules:
|
|
274
|
-
|
|
275
|
-
- Every input must have a visible label or accessible name.
|
|
276
|
-
- Error messages must be specific and placed near the field.
|
|
277
|
-
- Required fields must be clear.
|
|
278
|
-
- Disabled fields must look disabled and remain readable.
|
|
279
|
-
|
|
280
|
-
### Cards
|
|
281
|
-
|
|
282
|
-
```txt
|
|
283
|
-
Background: surface
|
|
284
|
-
Border: border-default
|
|
285
|
-
Radius: radius-lg
|
|
286
|
-
Padding: space-4 / space-6
|
|
287
|
-
Shadow: shadow-sm or none
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
Rules:
|
|
291
|
-
|
|
292
|
-
- Cards should group related content.
|
|
293
|
-
- Do not place unrelated actions in the same card.
|
|
294
|
-
- Card headers should clearly describe the content.
|
|
295
|
-
- Use consistent padding across cards.
|
|
296
|
-
|
|
297
|
-
### Modals
|
|
298
|
-
|
|
299
|
-
```txt
|
|
300
|
-
Background: surface
|
|
301
|
-
Radius: radius-xl
|
|
302
|
-
Shadow: shadow-lg
|
|
303
|
-
Max width: [value]
|
|
304
|
-
Overlay: [color/opacity]
|
|
305
|
-
Padding: space-6
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
Rules:
|
|
309
|
-
|
|
310
|
-
- Modal must have a clear title.
|
|
311
|
-
- Focus should move into the modal when opened.
|
|
312
|
-
- Escape or close behavior should be clear.
|
|
313
|
-
- Destructive modal actions need explicit confirmation.
|
|
314
|
-
- Avoid modals for simple inline feedback.
|
|
315
|
-
|
|
316
|
-
### Navigation
|
|
317
|
-
|
|
318
|
-
Rules:
|
|
319
|
-
|
|
320
|
-
- Active state must be visible.
|
|
321
|
-
- Navigation labels must be short and clear.
|
|
322
|
-
- Do not rely on icons without labels unless the pattern is already established.
|
|
323
|
-
- Keyboard navigation must remain possible.
|
|
324
|
-
|
|
325
|
-
### Tables and lists
|
|
326
|
-
|
|
327
|
-
Rules:
|
|
328
|
-
|
|
329
|
-
- Use clear column labels.
|
|
330
|
-
- Align numbers consistently.
|
|
331
|
-
- Provide empty states.
|
|
332
|
-
- Provide loading states when data is fetched.
|
|
333
|
-
- Avoid dense tables without spacing or hierarchy.
|
|
334
|
-
- Preserve sorting, filtering, and pagination behavior when present.
|
|
335
|
-
|
|
336
|
-
### Badges and status labels
|
|
337
|
-
|
|
338
|
-
Rules:
|
|
339
|
-
|
|
340
|
-
- Use semantic colors consistently.
|
|
341
|
-
- Pair color with text.
|
|
342
|
-
- Keep labels short.
|
|
343
|
-
- Do not invent new status colors without updating the semantic color system.
|
|
344
|
-
|
|
345
|
-
## States
|
|
346
|
-
|
|
347
|
-
### Loading
|
|
348
|
-
|
|
349
|
-
- Show clear progress or skeleton state for async content.
|
|
350
|
-
- Avoid layout jumps where possible.
|
|
351
|
-
- Do not block the whole page when only one section is loading.
|
|
352
|
-
|
|
353
|
-
### Empty
|
|
354
|
-
|
|
355
|
-
- Explain what is missing.
|
|
356
|
-
- Provide the next useful action when available.
|
|
357
|
-
- Keep tone neutral and helpful.
|
|
358
|
-
|
|
359
|
-
### Error
|
|
360
|
-
|
|
361
|
-
- Explain what failed.
|
|
362
|
-
- Provide recovery action when possible.
|
|
363
|
-
- Do not expose technical details to end users unless appropriate.
|
|
364
|
-
|
|
365
|
-
### Success
|
|
366
|
-
|
|
367
|
-
- Confirm what happened.
|
|
368
|
-
- Avoid excessive success messages for routine actions.
|
|
369
|
-
|
|
370
|
-
### Disabled
|
|
371
|
-
|
|
372
|
-
- Disabled controls must have enough contrast.
|
|
373
|
-
- Explain why an action is unavailable when not obvious.
|
|
374
|
-
|
|
375
|
-
## Accessibility
|
|
376
|
-
|
|
377
|
-
### Required baseline
|
|
378
|
-
|
|
379
|
-
- Use semantic HTML when possible.
|
|
380
|
-
- Use buttons for actions and links for navigation.
|
|
381
|
-
- Provide labels for form controls.
|
|
382
|
-
- Keep focus states visible.
|
|
383
|
-
- Preserve keyboard navigation.
|
|
384
|
-
- Do not communicate state by color alone.
|
|
385
|
-
- Keep text contrast readable.
|
|
386
|
-
- Use ARIA only when semantic HTML is insufficient.
|
|
387
|
-
- Modals, dropdowns, and popovers must have reasonable focus behavior.
|
|
388
|
-
|
|
389
|
-
## Responsive behavior
|
|
390
|
-
|
|
391
|
-
### Breakpoints
|
|
392
|
-
|
|
393
|
-
| Token | Width | Usage |
|
|
394
|
-
| ----- | -----: | -------------- |
|
|
395
|
-
| `sm` | `[px]` | Small screens |
|
|
396
|
-
| `md` | `[px]` | Tablets |
|
|
397
|
-
| `lg` | `[px]` | Laptops |
|
|
398
|
-
| `xl` | `[px]` | Large desktops |
|
|
399
|
-
|
|
400
|
-
### Rules
|
|
401
|
-
|
|
402
|
-
- Mobile layout should not require horizontal scrolling.
|
|
403
|
-
- Touch targets should be comfortable.
|
|
404
|
-
- Sidebars should collapse or adapt on small screens.
|
|
405
|
-
- Tables should have a responsive strategy.
|
|
406
|
-
- Long text should wrap safely.
|
|
407
|
-
|
|
408
|
-
## Motion
|
|
409
|
-
|
|
410
|
-
| Token | Value | Usage |
|
|
411
|
-
| --------------- | ---------: | ------------------------ |
|
|
412
|
-
| `duration-fast` | `[ms]` | Hover and small feedback |
|
|
413
|
-
| `duration-base` | `[ms]` | Standard transitions |
|
|
414
|
-
| `duration-slow` | `[ms]` | Large transitions |
|
|
415
|
-
| `ease-standard` | `[easing]` | Default easing |
|
|
416
|
-
|
|
417
|
-
Rules:
|
|
418
|
-
|
|
419
|
-
- Motion should clarify state change.
|
|
420
|
-
- Avoid excessive animation.
|
|
421
|
-
- Respect reduced-motion preferences when possible.
|
|
422
|
-
- Do not animate critical layout in a way that harms usability.
|
|
423
|
-
|
|
424
|
-
## Content style
|
|
425
|
-
|
|
426
|
-
### Voice
|
|
427
|
-
|
|
428
|
-
- [Direct / friendly / technical / calm / premium / concise]
|
|
429
|
-
|
|
430
|
-
### Rules
|
|
431
|
-
|
|
432
|
-
- Use clear action labels.
|
|
433
|
-
- Avoid vague button text like “Submit” when a specific action is possible.
|
|
434
|
-
- Error messages should explain the problem and next step.
|
|
435
|
-
- Empty states should help the user continue.
|
|
436
|
-
- Keep labels consistent across screens.
|
|
437
|
-
|
|
438
|
-
## Do and don't
|
|
439
|
-
|
|
440
|
-
### Do
|
|
441
|
-
|
|
442
|
-
- Use the defined color tokens.
|
|
443
|
-
- Reuse existing components.
|
|
444
|
-
- Keep spacing consistent.
|
|
445
|
-
- Preserve accessibility basics.
|
|
446
|
-
- Keep UI states explicit.
|
|
447
|
-
- Follow the project’s established layout patterns.
|
|
448
|
-
|
|
449
|
-
### Don't
|
|
450
|
-
|
|
451
|
-
- Add random hex values.
|
|
452
|
-
- Introduce a new styling system without approval.
|
|
453
|
-
- Use color alone to indicate status.
|
|
454
|
-
- Hide labels for important form fields.
|
|
455
|
-
- Change product behavior during design cleanup.
|
|
456
|
-
- Create one-off components when an existing pattern works.
|
|
457
|
-
|
|
458
|
-
## Implementation guidance for AI agents
|
|
459
|
-
|
|
460
|
-
When implementing UI:
|
|
461
|
-
|
|
462
|
-
1. Read this file before editing UI code.
|
|
463
|
-
2. Reuse the defined tokens and component patterns.
|
|
464
|
-
3. Follow existing project components and framework conventions.
|
|
465
|
-
4. Preserve behavior unless explicitly asked to change it.
|
|
466
|
-
5. Validate responsive behavior when relevant.
|
|
467
|
-
6. Validate accessibility basics when relevant.
|
|
468
|
-
7. List any design tokens or patterns that are missing.
|
|
469
|
-
8. Do not invent new visual rules silently.
|
|
470
|
-
|
|
471
|
-
## Missing design decisions
|
|
472
|
-
|
|
473
|
-
Use this section to track missing or unresolved design decisions.
|
|
474
|
-
|
|
475
|
-
| Decision | Status | Notes |
|
|
476
|
-
| ------------ | ------ | ------- |
|
|
477
|
-
| [Decision 1] | Open | [Notes] |
|
|
478
|
-
| [Decision 2] | Open | [Notes] |
|
|
479
|
-
|
|
480
|
-
## Final instruction
|
|
481
|
-
|
|
482
|
-
This file is the source of truth for visual implementation guidance.
|
|
483
|
-
|
|
484
|
-
If the design system does not define a needed pattern, follow the closest existing pattern and document the assumption.
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
# Pull Request Plan
|
|
2
|
-
|
|
3
|
-
## Title
|
|
4
|
-
|
|
5
|
-
[Short, clear PR title]
|
|
6
|
-
|
|
7
|
-
## Status
|
|
8
|
-
|
|
9
|
-
Draft | Ready to implement | Needs clarification | Too broad | Blocked
|
|
10
|
-
|
|
11
|
-
## Source inputs
|
|
12
|
-
|
|
13
|
-
### Requirement
|
|
14
|
-
|
|
15
|
-
[Reference the approved requirement]
|
|
16
|
-
|
|
17
|
-
Example:
|
|
18
|
-
|
|
19
|
-
```txt
|
|
20
|
-
requirements/feature-name.md
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Functional specification
|
|
24
|
-
|
|
25
|
-
[Reference the approved functional specification]
|
|
26
|
-
|
|
27
|
-
Example:
|
|
28
|
-
|
|
29
|
-
```txt
|
|
30
|
-
specs/feature-name.md
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Technical plan
|
|
34
|
-
|
|
35
|
-
[Reference the approved technical plan]
|
|
36
|
-
|
|
37
|
-
Example:
|
|
38
|
-
|
|
39
|
-
```txt
|
|
40
|
-
tech-plans/feature-name.md
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Objective
|
|
44
|
-
|
|
45
|
-
[One sentence describing the goal of this PR]
|
|
46
|
-
|
|
47
|
-
## Context
|
|
48
|
-
|
|
49
|
-
[Brief explanation of why this PR is needed]
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
|
|
53
|
-
### Included
|
|
54
|
-
|
|
55
|
-
- [Item included in this PR]
|
|
56
|
-
- [Item included in this PR]
|
|
57
|
-
|
|
58
|
-
### Not included
|
|
59
|
-
|
|
60
|
-
- [Item explicitly out of scope for this PR]
|
|
61
|
-
- [Item explicitly out of scope for this PR]
|
|
62
|
-
|
|
63
|
-
## Expected files
|
|
64
|
-
|
|
65
|
-
- `path/to/file` — [expected change]
|
|
66
|
-
- `path/to/file` — [expected change]
|
|
67
|
-
|
|
68
|
-
## Files that should not change
|
|
69
|
-
|
|
70
|
-
- `path/to/file` — [reason]
|
|
71
|
-
- `path/to/file` — [reason]
|
|
72
|
-
|
|
73
|
-
Use `Not applicable` if there are no specific files that must be protected.
|
|
74
|
-
|
|
75
|
-
## Behavior preserved
|
|
76
|
-
|
|
77
|
-
- [Existing behavior that must remain unchanged]
|
|
78
|
-
- [Existing behavior that must remain unchanged]
|
|
79
|
-
|
|
80
|
-
## Behavior changed
|
|
81
|
-
|
|
82
|
-
- [Behavior intentionally changed by this PR]
|
|
83
|
-
|
|
84
|
-
Use `None expected` if this PR should not change existing behavior.
|
|
85
|
-
|
|
86
|
-
## Acceptance criteria
|
|
87
|
-
|
|
88
|
-
### Criterion 1
|
|
89
|
-
|
|
90
|
-
[Specific, testable criterion]
|
|
91
|
-
|
|
92
|
-
### Criterion 2
|
|
93
|
-
|
|
94
|
-
[Specific, testable criterion]
|
|
95
|
-
|
|
96
|
-
## Implementation notes
|
|
97
|
-
|
|
98
|
-
- [Relevant implementation note]
|
|
99
|
-
- [Relevant implementation note]
|
|
100
|
-
|
|
101
|
-
Keep this section short. Do not include full implementation code.
|
|
102
|
-
|
|
103
|
-
## Validation plan
|
|
104
|
-
|
|
105
|
-
### Automated checks
|
|
106
|
-
|
|
107
|
-
- `command`
|
|
108
|
-
- `command`
|
|
109
|
-
|
|
110
|
-
Examples:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
npm run lint
|
|
114
|
-
npm run typecheck
|
|
115
|
-
npm test
|
|
116
|
-
npm run build
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Use project-specific commands when available.
|
|
120
|
-
|
|
121
|
-
### Manual checks
|
|
122
|
-
|
|
123
|
-
- [Manual check 1]
|
|
124
|
-
- [Manual check 2]
|
|
125
|
-
|
|
126
|
-
### Not covered
|
|
127
|
-
|
|
128
|
-
- [Area not covered] — [reason]
|
|
129
|
-
|
|
130
|
-
Use `None known` if all relevant areas are covered.
|
|
131
|
-
|
|
132
|
-
## Regression risks
|
|
133
|
-
|
|
134
|
-
| Risk | Severity | Impact | Mitigation |
|
|
135
|
-
| -------- | ------------------- | -------- | ------------ |
|
|
136
|
-
| [Risk 1] | High / Medium / Low | [Impact] | [Mitigation] |
|
|
137
|
-
| [Risk 2] | High / Medium / Low | [Impact] | [Mitigation] |
|
|
138
|
-
|
|
139
|
-
## Dependencies
|
|
140
|
-
|
|
141
|
-
- [Previous PR, decision, file, service, environment, or external dependency]
|
|
142
|
-
|
|
143
|
-
Use `None` if there are no dependencies.
|
|
144
|
-
|
|
145
|
-
## Rollback notes
|
|
146
|
-
|
|
147
|
-
- [How this PR can be reverted or recovered from if needed]
|
|
148
|
-
|
|
149
|
-
Use `Not applicable` for documentation-only or low-risk changes.
|
|
150
|
-
|
|
151
|
-
## Assumptions
|
|
152
|
-
|
|
153
|
-
- [Assumption 1]
|
|
154
|
-
- [Assumption 2]
|
|
155
|
-
|
|
156
|
-
Assumptions must not be treated as confirmed facts.
|
|
157
|
-
|
|
158
|
-
## Open questions
|
|
159
|
-
|
|
160
|
-
- [Question 1]
|
|
161
|
-
- [Question 2]
|
|
162
|
-
|
|
163
|
-
Use `None` only when there are no relevant open questions.
|
|
164
|
-
|
|
165
|
-
## Out of scope
|
|
166
|
-
|
|
167
|
-
- [Explicitly excluded item]
|
|
168
|
-
- [Explicitly excluded item]
|
|
169
|
-
|
|
170
|
-
## Final recommendation
|
|
171
|
-
|
|
172
|
-
Ready to implement | Needs clarification | Too broad | Blocked
|