universal-dev-standards 5.0.0-rc.8 → 5.0.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/bin/uds.js +5 -3
- package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +178 -0
- package/bundled/ai/standards/agent-dispatch.ai.yaml +69 -0
- package/bundled/ai/standards/ai-command-behavior.ai.yaml +45 -0
- package/bundled/ai/standards/api-design-standards.ai.yaml +192 -0
- package/bundled/ai/standards/branch-completion.ai.yaml +82 -0
- package/bundled/ai/standards/change-batching-standards.ai.yaml +195 -0
- package/bundled/ai/standards/database-standards.ai.yaml +220 -0
- package/bundled/ai/standards/error-codes.ai.yaml +37 -2
- package/bundled/ai/standards/git-worktree.ai.yaml +77 -0
- package/bundled/ai/standards/logging.ai.yaml +21 -2
- package/bundled/ai/standards/model-selection.ai.yaml +81 -0
- package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +184 -0
- package/bundled/ai/standards/systematic-debugging.ai.yaml +73 -0
- package/bundled/ai/standards/verification-evidence.ai.yaml +84 -0
- package/bundled/ai/standards/workflow-enforcement.ai.yaml +253 -0
- package/bundled/core/acceptance-criteria-traceability.md +293 -0
- package/bundled/core/agent-dispatch.md +149 -0
- package/bundled/core/ai-command-behavior.md +239 -0
- package/bundled/core/api-design-standards.md +938 -0
- package/bundled/core/branch-completion.md +158 -0
- package/bundled/core/change-batching-standards.md +257 -0
- package/bundled/core/checkin-standards.md +43 -6
- package/bundled/core/database-standards.md +828 -0
- package/bundled/core/error-code-standards.md +228 -2
- package/bundled/core/forward-derivation-standards.md +54 -2
- package/bundled/core/git-worktree.md +131 -0
- package/bundled/core/model-selection.md +153 -0
- package/bundled/core/pipeline-integration-standards.md +230 -0
- package/bundled/core/systematic-debugging.md +156 -0
- package/bundled/core/testing-standards.md +49 -39
- package/bundled/core/verification-evidence.md +172 -0
- package/bundled/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-CN/CLAUDE.md +2 -2
- package/bundled/locales/zh-CN/README.md +4 -4
- package/bundled/locales/zh-CN/SECURITY.md +92 -0
- package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +301 -0
- package/bundled/locales/zh-CN/core/acceptance-test-driven-development.md +47 -0
- package/bundled/locales/zh-CN/core/accessibility-standards.md +124 -0
- package/bundled/locales/zh-CN/core/agent-dispatch.md +113 -0
- package/bundled/locales/zh-CN/core/ai-agreement-standards.md +103 -0
- package/bundled/locales/zh-CN/core/ai-command-behavior.md +247 -0
- package/bundled/locales/zh-CN/core/api-design-standards.md +946 -0
- package/bundled/locales/zh-CN/core/behavior-driven-development.md +48 -0
- package/bundled/locales/zh-CN/core/branch-completion.md +112 -0
- package/bundled/locales/zh-CN/core/change-batching-standards.md +265 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +43 -5
- package/bundled/locales/zh-CN/core/context-aware-loading.md +106 -0
- package/bundled/locales/zh-CN/core/database-standards.md +836 -0
- package/bundled/locales/zh-CN/core/deployment-standards.md +80 -0
- package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-CN/core/forward-derivation-standards.md +493 -0
- package/bundled/locales/zh-CN/core/git-worktree.md +101 -0
- package/bundled/locales/zh-CN/core/model-selection.md +112 -0
- package/bundled/locales/zh-CN/core/performance-standards.md +104 -0
- package/bundled/locales/zh-CN/core/pipeline-integration-standards.md +238 -0
- package/bundled/locales/zh-CN/core/project-context-memory.md +124 -0
- package/bundled/locales/zh-CN/core/requirement-engineering.md +49 -0
- package/bundled/locales/zh-CN/core/security-standards.md +100 -0
- package/bundled/locales/zh-CN/core/systematic-debugging.md +106 -0
- package/bundled/locales/zh-CN/core/test-governance.md +116 -0
- package/bundled/locales/zh-CN/core/testing-standards.md +392 -156
- package/bundled/locales/zh-CN/core/verification-evidence.md +118 -0
- package/bundled/locales/zh-CN/core/virtual-organization-standards.md +104 -0
- package/bundled/locales/zh-CN/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +27 -1
- package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +9 -1
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +37 -9
- package/bundled/locales/zh-CN/docs/USER-MANUAL.md +652 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +1 -1
- package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +29 -4
- package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +143 -72
- package/bundled/locales/zh-CN/skills/ac-coverage-assistant/SKILL.md +126 -0
- package/bundled/locales/zh-CN/skills/api-design-assistant/SKILL.md +100 -0
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +119 -0
- package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +82 -0
- package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +97 -0
- package/bundled/locales/zh-CN/skills/commands/api-design.md +94 -0
- package/bundled/locales/zh-CN/skills/commands/atdd.md +163 -0
- package/bundled/locales/zh-CN/skills/commands/audit.md +77 -0
- package/bundled/locales/zh-CN/skills/commands/bdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/brainstorm.md +87 -0
- package/bundled/locales/zh-CN/skills/commands/changelog.md +63 -0
- package/bundled/locales/zh-CN/skills/commands/check.md +219 -0
- package/bundled/locales/zh-CN/skills/commands/checkin.md +61 -0
- package/bundled/locales/zh-CN/skills/commands/ci-cd.md +77 -0
- package/bundled/locales/zh-CN/skills/commands/commit.md +81 -0
- package/bundled/locales/zh-CN/skills/commands/config.md +207 -0
- package/bundled/locales/zh-CN/skills/commands/coverage.md +74 -0
- package/bundled/locales/zh-CN/skills/commands/database.md +78 -0
- package/bundled/locales/zh-CN/skills/commands/derive-all.md +58 -0
- package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +53 -0
- package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/derive.md +78 -0
- package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +119 -0
- package/bundled/locales/zh-CN/skills/commands/discover.md +86 -0
- package/bundled/locales/zh-CN/skills/commands/docgen.md +67 -0
- package/bundled/locales/zh-CN/skills/commands/docs.md +65 -0
- package/bundled/locales/zh-CN/skills/commands/durable.md +87 -0
- package/bundled/locales/zh-CN/skills/commands/guide.md +52 -0
- package/bundled/locales/zh-CN/skills/commands/incident.md +92 -0
- package/bundled/locales/zh-CN/skills/commands/init.md +272 -0
- package/bundled/locales/zh-CN/skills/commands/methodology.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/metrics.md +73 -0
- package/bundled/locales/zh-CN/skills/commands/migrate.md +92 -0
- package/bundled/locales/zh-CN/skills/commands/pr.md +80 -0
- package/bundled/locales/zh-CN/skills/commands/refactor.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/release.md +62 -0
- package/bundled/locales/zh-CN/skills/commands/requirement.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-bdd.md +47 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-sdd.md +51 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-tdd.md +51 -0
- package/bundled/locales/zh-CN/skills/commands/reverse.md +63 -0
- package/bundled/locales/zh-CN/skills/commands/review.md +50 -0
- package/bundled/locales/zh-CN/skills/commands/scan.md +76 -0
- package/bundled/locales/zh-CN/skills/commands/sdd-retro.md +40 -0
- package/bundled/locales/zh-CN/skills/commands/sdd.md +379 -0
- package/bundled/locales/zh-CN/skills/commands/security.md +75 -0
- package/bundled/locales/zh-CN/skills/commands/tdd.md +111 -0
- package/bundled/locales/zh-CN/skills/commands/update.md +337 -0
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -2
- package/bundled/locales/zh-CN/skills/database-assistant/SKILL.md +97 -0
- package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +145 -0
- package/bundled/locales/zh-CN/skills/durable-execution-assistant/SKILL.md +84 -0
- package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +107 -0
- package/bundled/locales/zh-CN/skills/metrics-dashboard-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +77 -0
- package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +90 -0
- package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +79 -0
- package/bundled/locales/zh-CN/skills/security-scan-assistant/SKILL.md +72 -0
- package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +73 -10
- package/bundled/locales/zh-CN/skills/spec-driven-dev/guide.md +267 -122
- package/bundled/locales/zh-TW/CLAUDE.md +2 -2
- package/bundled/locales/zh-TW/README.md +4 -4
- package/bundled/locales/zh-TW/SECURITY.md +92 -0
- package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +301 -0
- package/bundled/locales/zh-TW/core/acceptance-test-driven-development.md +47 -0
- package/bundled/locales/zh-TW/core/accessibility-standards.md +84 -0
- package/bundled/locales/zh-TW/core/agent-dispatch.md +89 -0
- package/bundled/locales/zh-TW/core/ai-agreement-standards.md +87 -0
- package/bundled/locales/zh-TW/core/ai-command-behavior.md +247 -0
- package/bundled/locales/zh-TW/core/api-design-standards.md +946 -0
- package/bundled/locales/zh-TW/core/behavior-driven-development.md +63 -0
- package/bundled/locales/zh-TW/core/branch-completion.md +76 -0
- package/bundled/locales/zh-TW/core/change-batching-standards.md +265 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +39 -5
- package/bundled/locales/zh-TW/core/context-aware-loading.md +86 -0
- package/bundled/locales/zh-TW/core/database-standards.md +836 -0
- package/bundled/locales/zh-TW/core/deployment-standards.md +66 -0
- package/bundled/locales/zh-TW/core/error-code-standards.md +230 -4
- package/bundled/locales/zh-TW/core/forward-derivation-standards.md +62 -2
- package/bundled/locales/zh-TW/core/git-worktree.md +104 -0
- package/bundled/locales/zh-TW/core/model-selection.md +83 -0
- package/bundled/locales/zh-TW/core/performance-standards.md +84 -0
- package/bundled/locales/zh-TW/core/pipeline-integration-standards.md +238 -0
- package/bundled/locales/zh-TW/core/project-context-memory.md +79 -0
- package/bundled/locales/zh-TW/core/requirement-engineering.md +79 -0
- package/bundled/locales/zh-TW/core/security-standards.md +74 -0
- package/bundled/locales/zh-TW/core/systematic-debugging.md +95 -0
- package/bundled/locales/zh-TW/core/test-governance.md +88 -0
- package/bundled/locales/zh-TW/core/testing-standards.md +309 -86
- package/bundled/locales/zh-TW/core/verification-evidence.md +94 -0
- package/bundled/locales/zh-TW/core/virtual-organization-standards.md +88 -0
- package/bundled/locales/zh-TW/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +27 -1
- package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +9 -1
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +37 -9
- package/bundled/locales/zh-TW/docs/USER-MANUAL.md +652 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +1 -1
- package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +29 -4
- package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +142 -71
- package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +127 -0
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/api-design-assistant/SKILL.md +97 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +79 -0
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +95 -0
- package/bundled/locales/zh-TW/skills/commands/api-design.md +92 -0
- package/bundled/locales/zh-TW/skills/commands/atdd.md +167 -0
- package/bundled/locales/zh-TW/skills/commands/audit.md +75 -0
- package/bundled/locales/zh-TW/skills/commands/bdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -0
- package/bundled/locales/zh-TW/skills/commands/changelog.md +67 -0
- package/bundled/locales/zh-TW/skills/commands/check.md +223 -0
- package/bundled/locales/zh-TW/skills/commands/checkin.md +65 -0
- package/bundled/locales/zh-TW/skills/commands/ci-cd.md +75 -0
- package/bundled/locales/zh-TW/skills/commands/commit.md +85 -0
- package/bundled/locales/zh-TW/skills/commands/config.md +211 -0
- package/bundled/locales/zh-TW/skills/commands/coverage.md +78 -0
- package/bundled/locales/zh-TW/skills/commands/database.md +76 -0
- package/bundled/locales/zh-TW/skills/commands/derive-all.md +62 -0
- package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +54 -0
- package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +55 -0
- package/bundled/locales/zh-TW/skills/commands/derive.md +79 -0
- package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +120 -0
- package/bundled/locales/zh-TW/skills/commands/discover.md +87 -0
- package/bundled/locales/zh-TW/skills/commands/docgen.md +68 -0
- package/bundled/locales/zh-TW/skills/commands/docs.md +66 -0
- package/bundled/locales/zh-TW/skills/commands/durable.md +85 -0
- package/bundled/locales/zh-TW/skills/commands/guide.md +51 -0
- package/bundled/locales/zh-TW/skills/commands/incident.md +90 -0
- package/bundled/locales/zh-TW/skills/commands/init.md +273 -0
- package/bundled/locales/zh-TW/skills/commands/methodology.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/metrics.md +71 -0
- package/bundled/locales/zh-TW/skills/commands/migrate.md +90 -0
- package/bundled/locales/zh-TW/skills/commands/pr.md +78 -0
- package/bundled/locales/zh-TW/skills/commands/refactor.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/release.md +63 -0
- package/bundled/locales/zh-TW/skills/commands/requirement.md +61 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-bdd.md +54 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-sdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-tdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/reverse.md +70 -0
- package/bundled/locales/zh-TW/skills/commands/review.md +57 -0
- package/bundled/locales/zh-TW/skills/commands/scan.md +74 -0
- package/bundled/locales/zh-TW/skills/commands/sdd-retro.md +47 -0
- package/bundled/locales/zh-TW/skills/commands/sdd.md +362 -0
- package/bundled/locales/zh-TW/skills/commands/security.md +73 -0
- package/bundled/locales/zh-TW/skills/commands/tdd.md +115 -0
- package/bundled/locales/zh-TW/skills/commands/update.md +326 -0
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -6
- package/bundled/locales/zh-TW/skills/database-assistant/SKILL.md +94 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +140 -0
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/durable-execution-assistant/SKILL.md +81 -0
- package/bundled/locales/zh-TW/skills/error-code-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/git-workflow-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +104 -0
- package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/metrics-dashboard-assistant/SKILL.md +64 -0
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +74 -0
- package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +87 -0
- package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +76 -0
- package/bundled/locales/zh-TW/skills/security-scan-assistant/SKILL.md +69 -0
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +74 -14
- package/bundled/locales/zh-TW/skills/spec-driven-dev/guide.md +243 -98
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +1 -5
- package/bundled/skills/README.md +11 -0
- package/bundled/skills/ac-coverage-assistant/SKILL.md +127 -0
- package/bundled/skills/ai-collaboration-standards/SKILL.md +10 -0
- package/bundled/skills/ai-friendly-architecture/SKILL.md +10 -0
- package/bundled/skills/ai-instruction-standards/SKILL.md +10 -0
- package/bundled/skills/api-design-assistant/SKILL.md +119 -0
- package/bundled/skills/atdd-assistant/SKILL.md +7 -0
- package/bundled/skills/bdd-assistant/SKILL.md +7 -0
- package/bundled/skills/brainstorm-assistant/SKILL.md +7 -0
- package/bundled/skills/checkin-assistant/SKILL.md +7 -0
- package/bundled/skills/ci-cd-assistant/SKILL.md +97 -0
- package/bundled/skills/code-review-assistant/SKILL.md +7 -0
- package/bundled/skills/commands/README.md +70 -0
- package/bundled/skills/commands/ac-coverage.md +135 -0
- package/bundled/skills/commands/api-design.md +86 -0
- package/bundled/skills/commands/atdd.md +69 -0
- package/bundled/skills/commands/audit.md +69 -0
- package/bundled/skills/commands/bdd.md +101 -0
- package/bundled/skills/commands/brainstorm.md +45 -0
- package/bundled/skills/commands/changelog.md +34 -0
- package/bundled/skills/commands/check.md +52 -1
- package/bundled/skills/commands/checkin.md +46 -0
- package/bundled/skills/commands/ci-cd.md +69 -0
- package/bundled/skills/commands/commit.md +79 -0
- package/bundled/skills/commands/config.md +48 -0
- package/bundled/skills/commands/coverage.md +53 -0
- package/bundled/skills/commands/database.md +70 -0
- package/bundled/skills/commands/derive-all.md +40 -0
- package/bundled/skills/commands/derive-atdd.md +33 -0
- package/bundled/skills/commands/derive-bdd.md +39 -0
- package/bundled/skills/commands/derive-tdd.md +40 -0
- package/bundled/skills/commands/derive.md +47 -0
- package/bundled/skills/commands/dev-workflow.md +104 -7
- package/bundled/skills/commands/discover.md +39 -0
- package/bundled/skills/commands/docgen.md +35 -0
- package/bundled/skills/commands/docs.md +40 -0
- package/bundled/skills/commands/durable.md +79 -0
- package/bundled/skills/commands/incident.md +84 -0
- package/bundled/skills/commands/init.md +55 -0
- package/bundled/skills/commands/methodology.md +72 -0
- package/bundled/skills/commands/metrics.md +65 -0
- package/bundled/skills/commands/migrate.md +84 -0
- package/bundled/skills/commands/pr.md +72 -0
- package/bundled/skills/commands/refactor.md +51 -0
- package/bundled/skills/commands/release.md +60 -0
- package/bundled/skills/commands/requirement.md +38 -0
- package/bundled/skills/commands/reverse-bdd.md +34 -0
- package/bundled/skills/commands/reverse-sdd.md +42 -0
- package/bundled/skills/commands/reverse-tdd.md +40 -0
- package/bundled/skills/commands/reverse.md +41 -0
- package/bundled/skills/commands/review.md +39 -0
- package/bundled/skills/commands/scan.md +68 -0
- package/bundled/skills/commands/sdd-retro.md +48 -0
- package/bundled/skills/commands/sdd.md +220 -0
- package/bundled/skills/commands/security.md +67 -0
- package/bundled/skills/commands/tdd.md +101 -0
- package/bundled/skills/commands/update.md +61 -0
- package/bundled/skills/commit-standards/SKILL.md +8 -2
- package/bundled/skills/database-assistant/SKILL.md +118 -0
- package/bundled/skills/dev-workflow-guide/SKILL.md +53 -7
- package/bundled/skills/dev-workflow-guide/workflow-phases.md +24 -0
- package/bundled/skills/durable-execution-assistant/SKILL.md +116 -0
- package/bundled/skills/forward-derivation/SKILL.md +7 -0
- package/bundled/skills/incident-response-assistant/SKILL.md +132 -0
- package/bundled/skills/methodology-system/SKILL.md +24 -2
- package/bundled/skills/metrics-dashboard-assistant/SKILL.md +109 -0
- package/bundled/skills/migration-assistant/SKILL.md +119 -0
- package/bundled/skills/pr-automation-assistant/SKILL.md +114 -0
- package/bundled/skills/project-discovery/SKILL.md +7 -0
- package/bundled/skills/refactoring-assistant/SKILL.md +7 -0
- package/bundled/skills/release-standards/SKILL.md +7 -0
- package/bundled/skills/requirement-assistant/SKILL.md +7 -0
- package/bundled/skills/reverse-engineer/SKILL.md +7 -0
- package/bundled/skills/security-assistant/SKILL.md +105 -0
- package/bundled/skills/security-scan-assistant/SKILL.md +96 -0
- package/bundled/skills/spec-driven-dev/SKILL.md +84 -4
- package/bundled/skills/spec-driven-dev/guide.md +156 -22
- package/bundled/skills/tdd-assistant/SKILL.md +7 -0
- package/bundled/skills/test-coverage-assistant/SKILL.md +11 -0
- package/bundled/skills/testing-guide/SKILL.md +23 -0
- package/package.json +1 -1
- package/src/commands/check.js +154 -8
- package/src/commands/config.js +231 -104
- package/src/commands/init.js +23 -3
- package/src/commands/update.js +250 -25
- package/src/config/ai-agent-paths.js +16 -0
- package/src/config/workflow-definitions.js +184 -0
- package/src/core/constants.js +6 -0
- package/src/flows/init-flow.js +23 -6
- package/src/i18n/messages.js +51 -3
- package/src/installers/integration-installer.js +67 -2
- package/src/installers/manifest-installer.js +1 -0
- package/src/installers/standards-installer.js +3 -2
- package/src/prompts/init.js +50 -3
- package/src/reconciler/manifest-migrator.js +2 -2
- package/src/reconciler/plan-executor.js +11 -0
- package/src/utils/integration-generator.js +327 -14
- package/src/utils/workflow-gate.js +292 -0
- package/standards-registry.json +160 -5
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Pipeline Integration Standards - AI Optimized
|
|
2
|
+
# Source: core/pipeline-integration-standards.md
|
|
3
|
+
|
|
4
|
+
standard:
|
|
5
|
+
id: pipeline-integration
|
|
6
|
+
name: Pipeline Integration
|
|
7
|
+
description: Configuration contract, stage model, and context classification for automated development pipelines
|
|
8
|
+
|
|
9
|
+
meta:
|
|
10
|
+
version: "1.0.0"
|
|
11
|
+
updated: "2026-03-18"
|
|
12
|
+
source: core/pipeline-integration-standards.md
|
|
13
|
+
references:
|
|
14
|
+
- "ISO/IEC 12207 (Software Lifecycle Processes)"
|
|
15
|
+
- "ISO/IEC 15504 SPICE (Process Assessment)"
|
|
16
|
+
- "Continuous Delivery (Jez Humble)"
|
|
17
|
+
- "DORA Metrics"
|
|
18
|
+
|
|
19
|
+
configuration_contract:
|
|
20
|
+
description: >
|
|
21
|
+
Projects using automated pipelines declare pipeline preferences via standard toggles.
|
|
22
|
+
All toggles default to OFF (manual mode).
|
|
23
|
+
|
|
24
|
+
toggles:
|
|
25
|
+
- name: autoSpecGeneration
|
|
26
|
+
type: boolean
|
|
27
|
+
default: false
|
|
28
|
+
description: Automatically generate SDD specs from PRD/user stories
|
|
29
|
+
when_on: Pipeline generates spec draft, submits for review
|
|
30
|
+
when_off: Manual spec creation required
|
|
31
|
+
|
|
32
|
+
- name: autoDerive
|
|
33
|
+
type: boolean
|
|
34
|
+
default: false
|
|
35
|
+
description: Automatically derive BDD/TDD/ATDD from approved specs
|
|
36
|
+
when_on: Pipeline runs derivation after spec approval
|
|
37
|
+
when_off: Manual derivation via commands
|
|
38
|
+
|
|
39
|
+
- name: autoTDD
|
|
40
|
+
type: boolean
|
|
41
|
+
default: false
|
|
42
|
+
description: Automatically enter TDD RED phase after derivation
|
|
43
|
+
when_on: Pipeline sets RED state and creates test skeleton
|
|
44
|
+
when_off: Developer manually enters TDD
|
|
45
|
+
|
|
46
|
+
- name: autoCheckin
|
|
47
|
+
type: boolean
|
|
48
|
+
default: false
|
|
49
|
+
description: Automatically commit when all quality gates pass
|
|
50
|
+
when_on: Pipeline commits after all gates pass
|
|
51
|
+
when_off: Developer manually commits
|
|
52
|
+
|
|
53
|
+
- name: autoBatch
|
|
54
|
+
type: boolean
|
|
55
|
+
default: false
|
|
56
|
+
description: Automatically batch pending changes before commit
|
|
57
|
+
when_on: Pipeline accumulates changes and merges at threshold
|
|
58
|
+
when_off: Each change committed individually
|
|
59
|
+
|
|
60
|
+
reading_rules:
|
|
61
|
+
- Fail-safe defaults — all toggles default to OFF
|
|
62
|
+
- Explicit declaration — never assume toggle state without reading config
|
|
63
|
+
- Runtime override — CLI flags may override file-based config
|
|
64
|
+
- Validation — validate configuration values before execution
|
|
65
|
+
|
|
66
|
+
pipeline_stages:
|
|
67
|
+
description: Standard 6-stage pipeline model
|
|
68
|
+
stages:
|
|
69
|
+
- stage: PLAN
|
|
70
|
+
input: PRD, user stories, requirements
|
|
71
|
+
output: Structured requirements document
|
|
72
|
+
gate: Requirements reviewed
|
|
73
|
+
|
|
74
|
+
- stage: SPEC
|
|
75
|
+
input: Requirements
|
|
76
|
+
output: SDD specification with AC
|
|
77
|
+
gate: Spec approved
|
|
78
|
+
|
|
79
|
+
- stage: DERIVE
|
|
80
|
+
input: Approved spec
|
|
81
|
+
output: BDD scenarios, TDD skeletons, ATDD tables
|
|
82
|
+
gate: 1:1 AC mapping verified
|
|
83
|
+
|
|
84
|
+
- stage: BUILD
|
|
85
|
+
input: Test skeletons + spec
|
|
86
|
+
output: Implementation code
|
|
87
|
+
gate: Tests pass (RED→GREEN)
|
|
88
|
+
|
|
89
|
+
- stage: REVIEW
|
|
90
|
+
input: Implementation + tests
|
|
91
|
+
output: Review feedback
|
|
92
|
+
gate: Review approved
|
|
93
|
+
|
|
94
|
+
- stage: CHECKIN
|
|
95
|
+
input: Approved changes
|
|
96
|
+
output: Committed code
|
|
97
|
+
gate: All quality gates pass
|
|
98
|
+
|
|
99
|
+
context_classification:
|
|
100
|
+
types:
|
|
101
|
+
- type: greenfield
|
|
102
|
+
description: New project or feature with no existing code
|
|
103
|
+
scenario: Starting a new module, service, or product
|
|
104
|
+
strategy:
|
|
105
|
+
plan: Full requirements
|
|
106
|
+
spec: Complete SDD
|
|
107
|
+
derive: Full derivation
|
|
108
|
+
build: TDD from scratch
|
|
109
|
+
review: Full review
|
|
110
|
+
checkin: Standard checkin
|
|
111
|
+
|
|
112
|
+
- type: brownfield
|
|
113
|
+
description: Existing codebase requiring modification
|
|
114
|
+
scenario: Adding features to legacy code, refactoring
|
|
115
|
+
strategy:
|
|
116
|
+
plan: Impact analysis first
|
|
117
|
+
spec: Delta SDD (changes only)
|
|
118
|
+
derive: Targeted derivation
|
|
119
|
+
build: Modify existing + new tests
|
|
120
|
+
review: Focused review on changes
|
|
121
|
+
checkin: Standard checkin
|
|
122
|
+
|
|
123
|
+
- type: adhoc
|
|
124
|
+
description: Small, isolated changes
|
|
125
|
+
scenario: Bug fixes, configuration changes, hotfixes
|
|
126
|
+
strategy:
|
|
127
|
+
plan: Quick assessment
|
|
128
|
+
spec: Optional (for significant changes)
|
|
129
|
+
derive: Skip (unless complex)
|
|
130
|
+
build: Direct fix
|
|
131
|
+
review: Quick review
|
|
132
|
+
checkin: Standard checkin
|
|
133
|
+
|
|
134
|
+
detection_signals:
|
|
135
|
+
- signal: file_count
|
|
136
|
+
greenfield: 0 or minimal files
|
|
137
|
+
brownfield: Established codebase
|
|
138
|
+
adhoc: N/A
|
|
139
|
+
- signal: change_scope
|
|
140
|
+
greenfield: New directory/module
|
|
141
|
+
brownfield: Modifications to existing files
|
|
142
|
+
adhoc: 1-3 files changed
|
|
143
|
+
- signal: test_coverage
|
|
144
|
+
greenfield: No existing tests
|
|
145
|
+
brownfield: Existing test suite
|
|
146
|
+
adhoc: Existing tests cover area
|
|
147
|
+
|
|
148
|
+
rules:
|
|
149
|
+
- id: read-config-first
|
|
150
|
+
trigger: starting pipeline execution
|
|
151
|
+
instruction: Read all toggles from configuration before executing any stage
|
|
152
|
+
priority: required
|
|
153
|
+
|
|
154
|
+
- id: fail-safe-defaults
|
|
155
|
+
trigger: toggle not found in configuration
|
|
156
|
+
instruction: Default all unset toggles to OFF (manual mode)
|
|
157
|
+
priority: required
|
|
158
|
+
|
|
159
|
+
- id: enforce-stage-gates
|
|
160
|
+
trigger: completing a pipeline stage
|
|
161
|
+
instruction: Verify quality gate passes before progressing to next stage
|
|
162
|
+
priority: required
|
|
163
|
+
|
|
164
|
+
- id: context-awareness
|
|
165
|
+
trigger: starting pipeline execution
|
|
166
|
+
instruction: Detect or read context type and adapt stage strategy accordingly
|
|
167
|
+
priority: required
|
|
168
|
+
|
|
169
|
+
- id: log-decisions
|
|
170
|
+
trigger: skipping or executing a stage
|
|
171
|
+
instruction: Log which stages were executed, skipped, and why
|
|
172
|
+
priority: recommended
|
|
173
|
+
|
|
174
|
+
- id: validate-config
|
|
175
|
+
trigger: reading configuration
|
|
176
|
+
instruction: Validate toggle types (boolean), context enum, and unknown keys
|
|
177
|
+
priority: required
|
|
178
|
+
|
|
179
|
+
related_standards:
|
|
180
|
+
- spec-driven-development.md
|
|
181
|
+
- forward-derivation-standards.md
|
|
182
|
+
- checkin-standards.md
|
|
183
|
+
- change-batching-standards.md
|
|
184
|
+
- acceptance-criteria-traceability.md
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Systematic Debugging Workflow - AI Optimized
|
|
2
|
+
# Source: core/systematic-debugging.md
|
|
3
|
+
# Inspired by Superpowers systematic-debugging (MIT)
|
|
4
|
+
|
|
5
|
+
standard:
|
|
6
|
+
id: systematic-debugging
|
|
7
|
+
name: Systematic Debugging Workflow
|
|
8
|
+
description: 系統化除錯工作流,借鑑 Superpowers 四階段法
|
|
9
|
+
|
|
10
|
+
meta:
|
|
11
|
+
version: "1.0.0"
|
|
12
|
+
updated: "2026-03-20"
|
|
13
|
+
source: core/systematic-debugging.md
|
|
14
|
+
description: 系統化除錯工作流標準
|
|
15
|
+
inspired_by: superpowers/systematic-debugging
|
|
16
|
+
|
|
17
|
+
guidelines:
|
|
18
|
+
- "遵循四階段鐵律:Root Cause → Pattern Analysis → Hypothesis Testing → Fix Implementation"
|
|
19
|
+
- "禁止跳過根因分析直接修復"
|
|
20
|
+
- "連續 3 次修復失敗必須質疑架構設計(3-Strike Rule)"
|
|
21
|
+
- "在元件邊界加診斷觀測定位故障層"
|
|
22
|
+
- "從錯誤症狀反向追蹤到源頭(backward tracing)"
|
|
23
|
+
|
|
24
|
+
phases:
|
|
25
|
+
- name: root_cause
|
|
26
|
+
description: "根因調查 — 分析錯誤訊息 + 變更追蹤"
|
|
27
|
+
actions:
|
|
28
|
+
- "仔細閱讀錯誤訊息,定位精確出錯位置"
|
|
29
|
+
- "追蹤最近變更記錄(git log / git diff)"
|
|
30
|
+
- "在元件邊界加 console.log / 斷點觀測"
|
|
31
|
+
- "記錄觀測結果,形成初步假設"
|
|
32
|
+
- name: pattern_analysis
|
|
33
|
+
description: "模式分析 — 比對同類成功案例"
|
|
34
|
+
actions:
|
|
35
|
+
- "搜尋類似功能的成功實作"
|
|
36
|
+
- "比對差異點"
|
|
37
|
+
- "檢查是否遺漏前置條件"
|
|
38
|
+
- name: hypothesis_testing
|
|
39
|
+
description: "假設測試 — 最小化修改驗證"
|
|
40
|
+
actions:
|
|
41
|
+
- "用最小化修改驗證假設"
|
|
42
|
+
- "每次只改一個變數"
|
|
43
|
+
- "記錄每次嘗試的假設與結果"
|
|
44
|
+
- name: fix_implementation
|
|
45
|
+
description: "修復實作 — 確認根因後再修復"
|
|
46
|
+
actions:
|
|
47
|
+
- "確認根因後才實作修復"
|
|
48
|
+
- "修復後執行完整測試"
|
|
49
|
+
- "確認不引入新問題"
|
|
50
|
+
|
|
51
|
+
rules:
|
|
52
|
+
- id: SD-001
|
|
53
|
+
trigger: "連續修復失敗 3 次"
|
|
54
|
+
action: "停止猜測,質疑架構設計"
|
|
55
|
+
priority: critical
|
|
56
|
+
- id: SD-002
|
|
57
|
+
trigger: "出現 'quick fix'、'just try'、'should work now' 等字眼"
|
|
58
|
+
action: "停止,回到 Phase 1 根因分析"
|
|
59
|
+
priority: high
|
|
60
|
+
- id: SD-003
|
|
61
|
+
trigger: "多元件交互錯誤"
|
|
62
|
+
action: "在每個元件邊界加診斷觀測"
|
|
63
|
+
priority: medium
|
|
64
|
+
|
|
65
|
+
physical_spec:
|
|
66
|
+
type: checklist
|
|
67
|
+
validator:
|
|
68
|
+
type: ai_review
|
|
69
|
+
rule: "檢查除錯過程是否遵循四階段工作流:root_cause → pattern_analysis → hypothesis_testing → fix_implementation"
|
|
70
|
+
checks:
|
|
71
|
+
- "根因分析是否在修復嘗試之前完成"
|
|
72
|
+
- "是否記錄每次假設與驗證結果"
|
|
73
|
+
- "連續失敗 3 次是否觸發架構審查"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Verification Evidence Standard - AI Optimized
|
|
2
|
+
# Source: core/verification-evidence.md
|
|
3
|
+
# Inspired by Superpowers verification-before-completion (MIT)
|
|
4
|
+
|
|
5
|
+
standard:
|
|
6
|
+
id: verification-evidence
|
|
7
|
+
name: Verification Evidence Standard
|
|
8
|
+
description: 驗證證據標準,強化 anti-hallucination
|
|
9
|
+
|
|
10
|
+
meta:
|
|
11
|
+
version: "1.0.0"
|
|
12
|
+
updated: "2026-03-20"
|
|
13
|
+
source: core/verification-evidence.md
|
|
14
|
+
description: 驗證證據標準 — Iron Law: 無驗證證據不可聲稱完成
|
|
15
|
+
inspired_by: superpowers/verification-before-completion
|
|
16
|
+
|
|
17
|
+
guidelines:
|
|
18
|
+
- "Iron Law:無驗證證據 = 不可聲稱完成"
|
|
19
|
+
- "每次驗證必須記錄 command + exitCode + output + timestamp"
|
|
20
|
+
- "回歸測試必須展示 RED → GREEN 循環"
|
|
21
|
+
- "代理報告 success ≠ 實際 success,需獨立驗證"
|
|
22
|
+
- "驗證輸出截斷至合理長度(2000 字元)但保留關鍵資訊"
|
|
23
|
+
|
|
24
|
+
evidence_format:
|
|
25
|
+
fields:
|
|
26
|
+
- name: command
|
|
27
|
+
type: string
|
|
28
|
+
required: true
|
|
29
|
+
description: "實際執行的驗證指令"
|
|
30
|
+
- name: exit_code
|
|
31
|
+
type: number
|
|
32
|
+
required: true
|
|
33
|
+
description: "指令退出碼(0 = 成功)"
|
|
34
|
+
- name: output
|
|
35
|
+
type: string
|
|
36
|
+
required: true
|
|
37
|
+
description: "驗證輸出(截斷至 2000 字元)"
|
|
38
|
+
- name: timestamp
|
|
39
|
+
type: string
|
|
40
|
+
required: true
|
|
41
|
+
description: "執行時間(ISO 8601 格式)"
|
|
42
|
+
|
|
43
|
+
red_green_cycle:
|
|
44
|
+
description: "回歸測試的 RED → GREEN 驗證"
|
|
45
|
+
steps:
|
|
46
|
+
- "RED: 在修復前執行測試,確認測試確實失敗"
|
|
47
|
+
- "修復問題"
|
|
48
|
+
- "GREEN: 再次執行測試,確認測試通過"
|
|
49
|
+
- "記錄 RED 和 GREEN 兩個階段的證據"
|
|
50
|
+
|
|
51
|
+
trust_rules:
|
|
52
|
+
- "代理聲稱「已完成」→ 檢查 verification_evidence 是否存在"
|
|
53
|
+
- "verification_evidence 為空 → 標記為未驗證"
|
|
54
|
+
- "exit_code ≠ 0 → 標記為驗證失敗"
|
|
55
|
+
- "多個驗證步驟 → 所有步驟都必須通過"
|
|
56
|
+
|
|
57
|
+
rules:
|
|
58
|
+
- id: VE-001
|
|
59
|
+
trigger: "代理回報 success 但無 verification_evidence"
|
|
60
|
+
action: "降級為 done_with_concerns"
|
|
61
|
+
priority: critical
|
|
62
|
+
- id: VE-002
|
|
63
|
+
trigger: "exit_code ≠ 0"
|
|
64
|
+
action: "標記驗證失敗,啟動 fix loop"
|
|
65
|
+
priority: high
|
|
66
|
+
- id: VE-003
|
|
67
|
+
trigger: "Bug fix 無 RED-GREEN 循環"
|
|
68
|
+
action: "要求提供 RED 和 GREEN 兩階段證據"
|
|
69
|
+
priority: high
|
|
70
|
+
- id: VE-004
|
|
71
|
+
trigger: "驗證輸出超過 2000 字元"
|
|
72
|
+
action: "截斷但保留錯誤訊息與摘要行"
|
|
73
|
+
priority: medium
|
|
74
|
+
|
|
75
|
+
physical_spec:
|
|
76
|
+
type: checklist
|
|
77
|
+
validator:
|
|
78
|
+
type: ai_review
|
|
79
|
+
rule: "檢查任務完成是否附帶驗證證據(command + exit_code + output + timestamp)"
|
|
80
|
+
checks:
|
|
81
|
+
- "完成聲明是否附帶 verification_evidence"
|
|
82
|
+
- "evidence 是否包含所有必填欄位"
|
|
83
|
+
- "exit_code 是否為 0(成功)"
|
|
84
|
+
- "Bug fix 是否有 RED → GREEN 循環證據"
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Workflow Enforcement Standards - AI Optimized
|
|
2
|
+
# Source: core/workflow-enforcement.md
|
|
3
|
+
|
|
4
|
+
id: workflow-enforcement
|
|
5
|
+
meta:
|
|
6
|
+
version: "1.0.0"
|
|
7
|
+
updated: "2026-03-19"
|
|
8
|
+
source: core/workflow-enforcement.md
|
|
9
|
+
description: Machine-enforceable workflow gates that prevent phase skipping in development methodologies
|
|
10
|
+
|
|
11
|
+
enforcement_modes:
|
|
12
|
+
enforce:
|
|
13
|
+
description: Block phase transition, show guidance to correct phase
|
|
14
|
+
behavior: AI refuses to proceed and explains which prerequisite is missing
|
|
15
|
+
default: true
|
|
16
|
+
|
|
17
|
+
suggest:
|
|
18
|
+
description: Show warning but allow override with user confirmation
|
|
19
|
+
behavior: AI warns about skipped prerequisites but proceeds if user insists
|
|
20
|
+
|
|
21
|
+
off:
|
|
22
|
+
description: No enforcement checks
|
|
23
|
+
behavior: AI follows workflow steps without gate checks
|
|
24
|
+
|
|
25
|
+
config_location: ".uds/config.yaml"
|
|
26
|
+
config_key: "workflow.enforcement_mode"
|
|
27
|
+
|
|
28
|
+
gates:
|
|
29
|
+
sdd:
|
|
30
|
+
description: Spec-Driven Development phase gates
|
|
31
|
+
phases:
|
|
32
|
+
- phase: discuss
|
|
33
|
+
prerequisites: []
|
|
34
|
+
note: Entry point, no prerequisites
|
|
35
|
+
|
|
36
|
+
- phase: create
|
|
37
|
+
prerequisites:
|
|
38
|
+
- check: orphan_specs
|
|
39
|
+
command: "ls docs/specs/SPEC-*.md 2>/dev/null"
|
|
40
|
+
condition: warn_if_non_terminal_specs_exist
|
|
41
|
+
on_fail: warn_and_offer_cleanup
|
|
42
|
+
blocking: false
|
|
43
|
+
|
|
44
|
+
- phase: review
|
|
45
|
+
prerequisites:
|
|
46
|
+
- check: spec_exists
|
|
47
|
+
command: "ls docs/specs/SPEC-*.md"
|
|
48
|
+
condition: at_least_one_spec_exists
|
|
49
|
+
on_fail: guide_to_create
|
|
50
|
+
blocking: true
|
|
51
|
+
- check: spec_status_draft
|
|
52
|
+
command: "grep -m1 '^status:' docs/specs/SPEC-XXX.md"
|
|
53
|
+
condition: status_is_draft
|
|
54
|
+
on_fail: guide_to_create
|
|
55
|
+
blocking: true
|
|
56
|
+
|
|
57
|
+
- phase: approve
|
|
58
|
+
prerequisites:
|
|
59
|
+
- check: spec_in_review
|
|
60
|
+
condition: status_is_review
|
|
61
|
+
on_fail: guide_to_review
|
|
62
|
+
blocking: true
|
|
63
|
+
- check: review_comments_addressed
|
|
64
|
+
condition: no_unresolved_comments
|
|
65
|
+
on_fail: guide_to_resolve_comments
|
|
66
|
+
blocking: true
|
|
67
|
+
|
|
68
|
+
- phase: implement
|
|
69
|
+
prerequisites:
|
|
70
|
+
- check: spec_exists
|
|
71
|
+
command: "ls docs/specs/SPEC-*.md"
|
|
72
|
+
condition: at_least_one_spec_exists
|
|
73
|
+
on_fail: guide_to_create
|
|
74
|
+
blocking: true
|
|
75
|
+
- check: spec_approved
|
|
76
|
+
condition: status_is_approved
|
|
77
|
+
on_fail: guide_to_approve
|
|
78
|
+
blocking: true
|
|
79
|
+
- check: workflow_state
|
|
80
|
+
command: "ls .workflow-state/sdd-*.yaml 2>/dev/null"
|
|
81
|
+
condition: check_for_resumable_state
|
|
82
|
+
on_fail: start_fresh
|
|
83
|
+
blocking: false
|
|
84
|
+
|
|
85
|
+
- phase: verify
|
|
86
|
+
prerequisites:
|
|
87
|
+
- check: implementation_exists
|
|
88
|
+
condition: spec_has_implementation_commits
|
|
89
|
+
on_fail: guide_to_implement
|
|
90
|
+
blocking: true
|
|
91
|
+
- check: ac_coverage
|
|
92
|
+
condition: all_ac_have_code_and_tests
|
|
93
|
+
on_fail: list_incomplete_acs
|
|
94
|
+
blocking: true
|
|
95
|
+
|
|
96
|
+
tdd:
|
|
97
|
+
description: Test-Driven Development phase gates
|
|
98
|
+
phases:
|
|
99
|
+
- phase: red
|
|
100
|
+
prerequisites:
|
|
101
|
+
- check: feature_defined
|
|
102
|
+
condition: user_has_described_behavior
|
|
103
|
+
on_fail: ask_for_behavior_description
|
|
104
|
+
blocking: true
|
|
105
|
+
- check: sdd_spec_if_applicable
|
|
106
|
+
condition: if_sdd_project_spec_exists_and_approved
|
|
107
|
+
on_fail: guide_to_sdd
|
|
108
|
+
blocking: false
|
|
109
|
+
|
|
110
|
+
- phase: green
|
|
111
|
+
prerequisites:
|
|
112
|
+
- check: failing_test_exists
|
|
113
|
+
command: "npm test 2>&1 | grep -E 'FAIL|failing'"
|
|
114
|
+
condition: at_least_one_test_failing
|
|
115
|
+
on_fail: guide_to_red_phase
|
|
116
|
+
blocking: true
|
|
117
|
+
|
|
118
|
+
- phase: refactor
|
|
119
|
+
prerequisites:
|
|
120
|
+
- check: all_tests_passing
|
|
121
|
+
command: "npm test"
|
|
122
|
+
condition: zero_test_failures
|
|
123
|
+
on_fail: guide_to_green_phase
|
|
124
|
+
blocking: true
|
|
125
|
+
|
|
126
|
+
bdd:
|
|
127
|
+
description: Behavior-Driven Development phase gates
|
|
128
|
+
phases:
|
|
129
|
+
- phase: discovery
|
|
130
|
+
prerequisites:
|
|
131
|
+
- check: behavior_identified
|
|
132
|
+
condition: user_has_identified_behavior
|
|
133
|
+
on_fail: ask_for_behavior
|
|
134
|
+
blocking: true
|
|
135
|
+
|
|
136
|
+
- phase: formulation
|
|
137
|
+
prerequisites:
|
|
138
|
+
- check: examples_collected
|
|
139
|
+
condition: discovery_produced_examples
|
|
140
|
+
on_fail: guide_to_discovery
|
|
141
|
+
blocking: true
|
|
142
|
+
|
|
143
|
+
- phase: automation
|
|
144
|
+
prerequisites:
|
|
145
|
+
- check: feature_file_exists
|
|
146
|
+
command: "ls tests/features/*.feature 2>/dev/null"
|
|
147
|
+
condition: at_least_one_feature_file
|
|
148
|
+
on_fail: guide_to_formulation
|
|
149
|
+
blocking: true
|
|
150
|
+
- check: gherkin_format
|
|
151
|
+
condition: scenarios_use_given_when_then
|
|
152
|
+
on_fail: fix_scenario_format
|
|
153
|
+
blocking: true
|
|
154
|
+
|
|
155
|
+
- phase: living_docs
|
|
156
|
+
prerequisites:
|
|
157
|
+
- check: steps_implemented
|
|
158
|
+
condition: step_definitions_exist
|
|
159
|
+
on_fail: guide_to_automation
|
|
160
|
+
blocking: true
|
|
161
|
+
- check: scenarios_passing
|
|
162
|
+
condition: all_scenarios_pass
|
|
163
|
+
on_fail: fix_failing_scenarios
|
|
164
|
+
blocking: true
|
|
165
|
+
|
|
166
|
+
commit:
|
|
167
|
+
description: Commit workflow gates
|
|
168
|
+
phases:
|
|
169
|
+
- phase: commit
|
|
170
|
+
prerequisites:
|
|
171
|
+
- check: staged_changes
|
|
172
|
+
command: "git diff --cached --stat"
|
|
173
|
+
condition: has_staged_changes
|
|
174
|
+
on_fail: guide_to_git_add
|
|
175
|
+
blocking: true
|
|
176
|
+
- check: no_merge_conflicts
|
|
177
|
+
condition: no_conflict_markers_in_staged
|
|
178
|
+
on_fail: resolve_conflicts
|
|
179
|
+
blocking: true
|
|
180
|
+
- check: tests_pass
|
|
181
|
+
condition: tests_passing_for_feat_fix
|
|
182
|
+
on_fail: fix_tests
|
|
183
|
+
blocking: true
|
|
184
|
+
- check: spec_reference
|
|
185
|
+
condition: feat_fix_should_reference_spec
|
|
186
|
+
on_fail: suggest_spec_reference
|
|
187
|
+
blocking: false
|
|
188
|
+
|
|
189
|
+
rules:
|
|
190
|
+
- id: enforce-phase-order
|
|
191
|
+
trigger: AI assistant receives a workflow phase command
|
|
192
|
+
instruction: >
|
|
193
|
+
Before executing any workflow phase (SDD, TDD, BDD), check the
|
|
194
|
+
phase gate prerequisites defined in this standard. If any blocking
|
|
195
|
+
prerequisite fails, STOP execution, explain what is missing, and
|
|
196
|
+
guide the user to the correct prerequisite phase. Non-blocking
|
|
197
|
+
prerequisites generate warnings but allow proceeding.
|
|
198
|
+
priority: required
|
|
199
|
+
|
|
200
|
+
- id: respect-enforcement-mode
|
|
201
|
+
trigger: checking workflow gates
|
|
202
|
+
instruction: >
|
|
203
|
+
Read the project's enforcement mode from .uds/config.yaml
|
|
204
|
+
(workflow.enforcement_mode). If 'enforce' (default), block on
|
|
205
|
+
failed prerequisites. If 'suggest', warn but allow override.
|
|
206
|
+
If 'off', skip all checks.
|
|
207
|
+
priority: required
|
|
208
|
+
|
|
209
|
+
- id: guide-dont-block
|
|
210
|
+
trigger: prerequisite check fails
|
|
211
|
+
instruction: >
|
|
212
|
+
When a prerequisite fails, provide actionable guidance:
|
|
213
|
+
1. Explain WHAT is missing (e.g., "No approved spec found")
|
|
214
|
+
2. Explain WHY it matters (e.g., "SDD requires approved specs before implementation")
|
|
215
|
+
3. Show HOW to fix it (e.g., "Run /sdd approve SPEC-XXX.md first")
|
|
216
|
+
Never just say "blocked" — always provide the path forward.
|
|
217
|
+
priority: required
|
|
218
|
+
|
|
219
|
+
- id: resume-existing-workflow
|
|
220
|
+
trigger: workflow command invoked with existing state
|
|
221
|
+
instruction: >
|
|
222
|
+
Before starting a fresh workflow, check .workflow-state/ for
|
|
223
|
+
existing state files. If an active workflow exists for the same
|
|
224
|
+
spec or feature, offer to resume instead of starting fresh.
|
|
225
|
+
priority: required
|
|
226
|
+
|
|
227
|
+
- id: feat-commit-spec-suggestion
|
|
228
|
+
trigger: committing a feat or fix type change
|
|
229
|
+
instruction: >
|
|
230
|
+
When generating a feat or fix commit message, check if active
|
|
231
|
+
specs exist in docs/specs/. If yes, suggest adding Refs: SPEC-XXX
|
|
232
|
+
to the commit footer. If no specs exist and the change is
|
|
233
|
+
significant (>3 files changed or new API), suggest creating a
|
|
234
|
+
spec via /sdd. This is advisory, not blocking.
|
|
235
|
+
priority: recommended
|
|
236
|
+
|
|
237
|
+
quick_reference:
|
|
238
|
+
enforcement_modes:
|
|
239
|
+
columns: [Mode, Behavior, Config Value]
|
|
240
|
+
rows:
|
|
241
|
+
- [Enforce, "Block + Guide", "enforce"]
|
|
242
|
+
- [Suggest, "Warn + Allow", "suggest"]
|
|
243
|
+
- [Off, "No checks", "off"]
|
|
244
|
+
|
|
245
|
+
phase_gates:
|
|
246
|
+
columns: [Workflow, Phase, Key Prerequisite]
|
|
247
|
+
rows:
|
|
248
|
+
- [SDD, implement, "Spec must be Approved"]
|
|
249
|
+
- [SDD, verify, "All ACs must have code + tests"]
|
|
250
|
+
- [TDD, green, "At least one failing test"]
|
|
251
|
+
- [TDD, refactor, "All tests passing"]
|
|
252
|
+
- [BDD, automation, ".feature file must exist"]
|
|
253
|
+
- [Commit, feat/fix, "Suggest spec reference"]
|