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,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[UDS] Generate AC-to-test traceability matrix and coverage report"
|
|
3
|
+
allowed-tools: Read, Grep, Glob
|
|
4
|
+
argument-hint: "[spec file path | 規格檔案路徑]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# AC Coverage | AC 覆蓋率
|
|
8
|
+
|
|
9
|
+
Generate an Acceptance Criteria (AC) to test traceability matrix and coverage report from a specification file.
|
|
10
|
+
|
|
11
|
+
從規格檔案產生驗收條件(AC)與測試的追蹤矩陣及覆蓋率報告。
|
|
12
|
+
|
|
13
|
+
## Usage | 用法
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
/ac-coverage specs/SPEC-001.md # Analyze specific SPEC
|
|
17
|
+
/ac-coverage specs/SPEC-001.md --threshold 90 # Custom threshold
|
|
18
|
+
/ac-coverage specs/SPEC-001.md --test-dir tests/ # Specify test directory
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Workflow | 工作流程
|
|
22
|
+
|
|
23
|
+
1. **Parse SPEC** — Read the specification file and extract all AC definitions (AC-1, AC-2, ...)
|
|
24
|
+
2. **Scan tests** — Search test files for `@AC` and `@SPEC` annotations
|
|
25
|
+
3. **Build matrix** — Map each AC to its corresponding test references
|
|
26
|
+
4. **Classify status** — ✅ covered | ⚠️ partial | ❌ uncovered
|
|
27
|
+
5. **Calculate coverage** — `Coverage % = (covered + partial × 0.5) / total × 100`
|
|
28
|
+
6. **Generate report** — Output standardized Markdown report
|
|
29
|
+
|
|
30
|
+
## How This Differs from `/coverage` | 與 `/coverage` 的區別
|
|
31
|
+
|
|
32
|
+
| | `/coverage` | `/ac-coverage` |
|
|
33
|
+
|-|-------------|----------------|
|
|
34
|
+
| **Level** | Code (line/branch/function) | Requirements (AC-to-test) |
|
|
35
|
+
| **Question** | "How much code is tested?" | "Which AC have tests?" |
|
|
36
|
+
| **Input** | Source code + test runner | SPEC file + test annotations |
|
|
37
|
+
|
|
38
|
+
Both are complementary — use `/coverage` for code quality, `/ac-coverage` for requirement verification.
|
|
39
|
+
|
|
40
|
+
兩者互補 — 使用 `/coverage` 確保程式碼品質,使用 `/ac-coverage` 確保需求驗證。
|
|
41
|
+
|
|
42
|
+
## Quality Thresholds | 品質門檻
|
|
43
|
+
|
|
44
|
+
| Context | Default Threshold | Configurable |
|
|
45
|
+
|---------|-------------------|--------------|
|
|
46
|
+
| **Check-in** | 80% | `--threshold N` |
|
|
47
|
+
| **Release** | 100% | `--threshold N` |
|
|
48
|
+
| **Warning** | 60% | `--threshold N` |
|
|
49
|
+
|
|
50
|
+
## Output Format | 輸出格式
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
# AC Coverage Report
|
|
54
|
+
|
|
55
|
+
**Specification**: SPEC-001 — Feature Name
|
|
56
|
+
**Generated**: 2026-03-18
|
|
57
|
+
**Coverage**: 75% (6/8 AC)
|
|
58
|
+
|
|
59
|
+
## Summary
|
|
60
|
+
|
|
61
|
+
| Status | Count | Percentage |
|
|
62
|
+
|--------|-------|------------|
|
|
63
|
+
| ✅ Covered | 5 | 62.5% |
|
|
64
|
+
| ⚠️ Partial | 2 | 25.0% |
|
|
65
|
+
| ❌ Uncovered | 1 | 12.5% |
|
|
66
|
+
|
|
67
|
+
## Traceability Matrix
|
|
68
|
+
|
|
69
|
+
| AC-ID | Description | Status | Test Reference |
|
|
70
|
+
|-------|-------------|--------|----------------|
|
|
71
|
+
| AC-1 | ... | ✅ | test-file.ts:15 |
|
|
72
|
+
|
|
73
|
+
## Gaps
|
|
74
|
+
- **AC-8**: Blocked by external dependency
|
|
75
|
+
|
|
76
|
+
## Action Items
|
|
77
|
+
1. [ ] AC-8: Resolve blocker
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Next Steps Guidance | 下一步引導
|
|
81
|
+
|
|
82
|
+
After `/ac-coverage` completes, the AI assistant should suggest:
|
|
83
|
+
|
|
84
|
+
> **AC 覆蓋率分析完成。建議下一步 / AC coverage analysis complete. Suggested next steps:**
|
|
85
|
+
> - 覆蓋率達標 → 執行 `/checkin` 品質關卡 — Coverage meets threshold → Run `/checkin` quality gates
|
|
86
|
+
> - 有未覆蓋 AC → 執行 `/derive-tdd` 補齊測試 — Uncovered AC found → Run `/derive-tdd` to add tests
|
|
87
|
+
> - 有部分覆蓋 AC → 檢查缺少的邊界情況 — Partial AC → Review missing edge cases
|
|
88
|
+
|
|
89
|
+
## AI Agent Behavior | AI 代理行為
|
|
90
|
+
|
|
91
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
92
|
+
|
|
93
|
+
### Entry Router | 進入路由
|
|
94
|
+
|
|
95
|
+
| Input | AI Action |
|
|
96
|
+
|-------|-----------|
|
|
97
|
+
| `/ac-coverage` | 列出可用的 spec 檔案供選擇 |
|
|
98
|
+
| `/ac-coverage <spec-file>` | 直接分析指定 spec 的 AC 覆蓋率 |
|
|
99
|
+
| `/ac-coverage <spec-file> --threshold N` | 使用自訂門檻 |
|
|
100
|
+
|
|
101
|
+
### Interaction Script | 互動腳本
|
|
102
|
+
|
|
103
|
+
1. 讀取 spec 檔案,擷取所有 AC
|
|
104
|
+
2. 掃描測試檔案中的 `@AC` 和 `@SPEC` 註解
|
|
105
|
+
3. 建立 AC → Test 追蹤矩陣
|
|
106
|
+
4. 計算覆蓋率
|
|
107
|
+
5. 生成報告
|
|
108
|
+
|
|
109
|
+
**Decision: 覆蓋率結果**
|
|
110
|
+
- IF 覆蓋率 ≥ 門檻 → 標記 ✅,建議 `/checkin`
|
|
111
|
+
- IF 有未覆蓋 AC → 列出並建議 `/derive-tdd` 補測試
|
|
112
|
+
- IF 有部分覆蓋 AC → 建議檢查缺少的邊界情況
|
|
113
|
+
|
|
114
|
+
🛑 **STOP**: 報告展示後等待使用者決定下一步
|
|
115
|
+
|
|
116
|
+
### Stop Points | 停止點
|
|
117
|
+
|
|
118
|
+
| Stop Point | 等待內容 |
|
|
119
|
+
|-----------|---------|
|
|
120
|
+
| 報告展示後 | 使用者決定補測試或繼續 |
|
|
121
|
+
|
|
122
|
+
### Error Handling | 錯誤處理
|
|
123
|
+
|
|
124
|
+
| Error Condition | AI Action |
|
|
125
|
+
|-----------------|-----------|
|
|
126
|
+
| Spec 檔案不存在 | 列出可用的 spec 檔案 |
|
|
127
|
+
| Spec 無 AC 定義 | 告知並引導修改 spec |
|
|
128
|
+
| 測試檔案無 `@AC` 註解 | 嘗試以命名慣例匹配,標記 `[Inferred]` |
|
|
129
|
+
|
|
130
|
+
## References | 參考
|
|
131
|
+
|
|
132
|
+
- [AC Coverage Assistant Skill](../ac-coverage-assistant/SKILL.md)
|
|
133
|
+
- [Core Standard: Acceptance Criteria Traceability](../../core/acceptance-criteria-traceability.md)
|
|
134
|
+
- Related: [/coverage](./coverage.md) (code-level coverage)
|
|
135
|
+
- Related: [/checkin](./checkin.md) (quality gates)
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[UDS] Guide API design following REST, GraphQL and gRPC best practices"
|
|
3
|
+
allowed-tools: Read, Grep, Glob
|
|
4
|
+
argument-hint: "[API endpoint or module | API 端點或模組]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# API Design Assistant | API 設計助手
|
|
8
|
+
|
|
9
|
+
Guide API design following REST, GraphQL and gRPC best practices.
|
|
10
|
+
|
|
11
|
+
引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐。
|
|
12
|
+
|
|
13
|
+
## Workflow | 工作流程
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
DEFINE ──► DESIGN ──► VALIDATE ──► DOCUMENT
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
1. **Define** — Gather requirements, identify resources and operations
|
|
20
|
+
2. **Design** — Design endpoints, request/response schemas, error codes
|
|
21
|
+
3. **Validate** — Check consistency, naming conventions, versioning
|
|
22
|
+
4. **Document** — Generate API documentation
|
|
23
|
+
|
|
24
|
+
## Usage | 使用方式
|
|
25
|
+
|
|
26
|
+
- `/api-design` - Start interactive API design session
|
|
27
|
+
- `/api-design /users` - Design API for specific resource
|
|
28
|
+
- `/api-design --graphql` - Design using GraphQL approach
|
|
29
|
+
|
|
30
|
+
## AI Agent Behavior | AI 代理行為
|
|
31
|
+
|
|
32
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
33
|
+
|
|
34
|
+
### Entry Router | 進入路由
|
|
35
|
+
|
|
36
|
+
| Input | AI Action |
|
|
37
|
+
|-------|-----------|
|
|
38
|
+
| `/api-design` | 詢問 API 需求和目標資源,進入 DEFINE 階段 |
|
|
39
|
+
| `/api-design <resource>` | 以指定資源為目標,進入 DEFINE |
|
|
40
|
+
| `/api-design --graphql` | 使用 GraphQL 方法設計 |
|
|
41
|
+
|
|
42
|
+
### Interaction Script | 互動腳本
|
|
43
|
+
|
|
44
|
+
#### DEFINE Phase
|
|
45
|
+
1. 收集 API 需求(目標使用者、資源、操作)
|
|
46
|
+
2. 確認 API 風格(REST / GraphQL / gRPC)
|
|
47
|
+
|
|
48
|
+
🛑 **STOP**: 需求確認後等待使用者確認進入 DESIGN
|
|
49
|
+
|
|
50
|
+
#### DESIGN Phase
|
|
51
|
+
1. 設計端點/schema
|
|
52
|
+
2. 定義 request/response 格式
|
|
53
|
+
3. 設計錯誤碼和狀態碼
|
|
54
|
+
4. 展示設計結果
|
|
55
|
+
|
|
56
|
+
🛑 **STOP**: 設計展示後等待使用者確認
|
|
57
|
+
|
|
58
|
+
#### VALIDATE Phase
|
|
59
|
+
1. 檢查命名一致性、RESTful 慣例
|
|
60
|
+
2. 驗證版本策略
|
|
61
|
+
3. 展示驗證報告
|
|
62
|
+
|
|
63
|
+
#### DOCUMENT Phase
|
|
64
|
+
1. 生成 API 文件(OpenAPI / GraphQL Schema)
|
|
65
|
+
|
|
66
|
+
🛑 **STOP**: 文件生成後等待使用者確認寫入
|
|
67
|
+
|
|
68
|
+
### Stop Points | 停止點
|
|
69
|
+
|
|
70
|
+
| Phase | Stop Point | 等待內容 |
|
|
71
|
+
|-------|-----------|---------|
|
|
72
|
+
| DEFINE | 需求確認後 | 確認進入 DESIGN |
|
|
73
|
+
| DESIGN | 設計展示後 | 確認設計方案 |
|
|
74
|
+
| DOCUMENT | 文件生成後 | 確認寫入 |
|
|
75
|
+
|
|
76
|
+
### Error Handling | 錯誤處理
|
|
77
|
+
|
|
78
|
+
| Error Condition | AI Action |
|
|
79
|
+
|-----------------|-----------|
|
|
80
|
+
| 無法判斷 API 風格 | 列出選項(REST/GraphQL/gRPC),請使用者選擇 |
|
|
81
|
+
| 資源命名不符慣例 | 建議修正,展示命名規則 |
|
|
82
|
+
|
|
83
|
+
## Reference | 參考
|
|
84
|
+
|
|
85
|
+
- Full standard: [api-design-assistant](../api-design-assistant/SKILL.md)
|
|
86
|
+
- Core guide: [api-design-standards](../../core/api-design-standards.md)
|
|
@@ -155,6 +155,75 @@ ATDD Level (Business Acceptance)
|
|
|
155
155
|
- [ ] Tests shown passing
|
|
156
156
|
- [ ] PO formally accepts
|
|
157
157
|
|
|
158
|
+
## AI Agent Behavior | AI 代理行為
|
|
159
|
+
|
|
160
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
161
|
+
|
|
162
|
+
### Entry Router | 進入路由
|
|
163
|
+
|
|
164
|
+
| Input | AI Action |
|
|
165
|
+
|-------|-----------|
|
|
166
|
+
| `/atdd` | 詢問使用者故事,進入 🤝 WORKSHOP |
|
|
167
|
+
| `/atdd "user story"` | 以指定故事為目標,進入 🤝 WORKSHOP |
|
|
168
|
+
| `/atdd <story-id>` | 載入現有故事,判斷進入哪個階段 |
|
|
169
|
+
|
|
170
|
+
### Interaction Script | 互動腳本
|
|
171
|
+
|
|
172
|
+
#### 🤝 WORKSHOP Phase
|
|
173
|
+
|
|
174
|
+
1. 請使用者描述使用者故事(As a / I want / So that)
|
|
175
|
+
2. 引導定義驗收條件(Given-When-Then)
|
|
176
|
+
3. 記錄 Out of Scope 項目
|
|
177
|
+
|
|
178
|
+
**Decision: PO 角色**
|
|
179
|
+
- IF 使用者是 PO → 直接收集 AC
|
|
180
|
+
- IF 使用者是開發者 → AI 模擬 PO 視角提出質疑和補充
|
|
181
|
+
- ELSE → 建議邀請 PO 參與,或由 AI 輔助
|
|
182
|
+
|
|
183
|
+
🛑 **STOP**: AC 定義完成後展示使用者故事文件,等待確認
|
|
184
|
+
|
|
185
|
+
#### 🧪 DISTILLATION Phase
|
|
186
|
+
|
|
187
|
+
1. 將 AC 轉換為可執行的測試格式
|
|
188
|
+
2. 消除歧義
|
|
189
|
+
3. 展示可執行測試
|
|
190
|
+
|
|
191
|
+
🛑 **STOP**: 展示測試後等待使用者(或 PO)簽核
|
|
192
|
+
|
|
193
|
+
#### 💻 DEVELOPMENT Phase
|
|
194
|
+
|
|
195
|
+
1. 執行驗收測試(預期失敗)
|
|
196
|
+
2. 使用 BDD/TDD 實作功能
|
|
197
|
+
3. 迭代直到所有測試通過
|
|
198
|
+
|
|
199
|
+
🛑 **STOP**: 所有測試通過後等待使用者確認進入 DEMO
|
|
200
|
+
|
|
201
|
+
#### 🎬 DEMO Phase
|
|
202
|
+
|
|
203
|
+
1. 展示通過的測試結果
|
|
204
|
+
2. 展示可運作的功能
|
|
205
|
+
3. 等待 PO 正式驗收
|
|
206
|
+
|
|
207
|
+
🛑 **STOP**: 等待使用者確認 PO 已驗收
|
|
208
|
+
|
|
209
|
+
### Stop Points | 停止點
|
|
210
|
+
|
|
211
|
+
| Phase | Stop Point | 等待內容 |
|
|
212
|
+
|-------|-----------|---------|
|
|
213
|
+
| WORKSHOP | AC 定義後 | 確認使用者故事 |
|
|
214
|
+
| DISTILLATION | 測試轉換後 | PO 簽核 |
|
|
215
|
+
| DEVELOPMENT | 所有測試通過後 | 確認進入 DEMO |
|
|
216
|
+
| DEMO | 功能展示後 | PO 正式驗收 |
|
|
217
|
+
|
|
218
|
+
### Error Handling | 錯誤處理
|
|
219
|
+
|
|
220
|
+
| Error Condition | AI Action |
|
|
221
|
+
|-----------------|-----------|
|
|
222
|
+
| 使用者故事不符合 INVEST 準則 | 指出哪些準則未滿足,建議修改 |
|
|
223
|
+
| PO 不在場 | AI 模擬 PO 視角提問,標記 `[Needs PO Confirmation]` |
|
|
224
|
+
| 驗收測試無法自動化 | 建議手動測試替代方案,產出測試檢查清單 |
|
|
225
|
+
| DEVELOPMENT 階段反覆失敗 | 回到 WORKSHOP 重新審視 AC 是否合理 |
|
|
226
|
+
|
|
158
227
|
## Reference | 參考
|
|
159
228
|
|
|
160
229
|
- Core Standard: [acceptance-test-driven-development.md](../../core/acceptance-test-driven-development.md)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[UDS] UDS health check and feedback system, diagnose installation integrity and detect development patterns"
|
|
3
|
+
allowed-tools: Read, Grep, Glob, Bash(git log:*, uds audit:*)
|
|
4
|
+
argument-hint: "[--health | --patterns | --friction | --report]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Audit Assistant | 審計助手
|
|
8
|
+
|
|
9
|
+
UDS health check and feedback system — diagnose installation integrity and detect development patterns.
|
|
10
|
+
|
|
11
|
+
UDS 健康檢查與回饋系統——診斷安裝完整性與偵測開發模式。
|
|
12
|
+
|
|
13
|
+
## Workflow | 工作流程
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
DIAGNOSE ──► ANALYZE ──► REPORT
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage | 使用方式
|
|
20
|
+
|
|
21
|
+
- `/audit` - Run full audit
|
|
22
|
+
- `/audit --health` - Installation health check
|
|
23
|
+
- `/audit --patterns` - Detect development patterns
|
|
24
|
+
- `/audit --friction` - Identify friction points
|
|
25
|
+
- `/audit --report` - Generate comprehensive report
|
|
26
|
+
|
|
27
|
+
## AI Agent Behavior | AI 代理行為
|
|
28
|
+
|
|
29
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
30
|
+
|
|
31
|
+
### Entry Router | 進入路由
|
|
32
|
+
|
|
33
|
+
| Input | AI Action |
|
|
34
|
+
|-------|-----------|
|
|
35
|
+
| `/audit` | 執行完整審計(health + patterns + friction) |
|
|
36
|
+
| `/audit --health` | 僅檢查 UDS 安裝完整性 |
|
|
37
|
+
| `/audit --patterns` | 僅偵測開發模式 |
|
|
38
|
+
| `/audit --friction` | 僅識別摩擦點 |
|
|
39
|
+
| `/audit --report` | 生成完整報告(含建議) |
|
|
40
|
+
|
|
41
|
+
### Interaction Script | 互動腳本
|
|
42
|
+
|
|
43
|
+
1. 依模式執行對應的診斷
|
|
44
|
+
2. 收集分析結果
|
|
45
|
+
3. 生成報告
|
|
46
|
+
|
|
47
|
+
**Decision: 健康狀態**
|
|
48
|
+
- IF ERROR 級問題 → 建議執行 `uds init` 或 `uds check --restore`
|
|
49
|
+
- IF WARNING 級問題 → 列出建議,使用者自行決定
|
|
50
|
+
- IF 全部 OK → 展示健康摘要
|
|
51
|
+
|
|
52
|
+
🛑 **STOP**: 報告展示後等待使用者決定
|
|
53
|
+
|
|
54
|
+
### Stop Points | 停止點
|
|
55
|
+
|
|
56
|
+
| Stop Point | 等待內容 |
|
|
57
|
+
|-----------|---------|
|
|
58
|
+
| 報告展示後 | 使用者決定採取行動 |
|
|
59
|
+
|
|
60
|
+
### Error Handling | 錯誤處理
|
|
61
|
+
|
|
62
|
+
| Error Condition | AI Action |
|
|
63
|
+
|-----------------|-----------|
|
|
64
|
+
| UDS 未安裝 | 建議執行 `uds init` |
|
|
65
|
+
| `.standards/` 目錄不存在 | 告知 UDS 標準未安裝 |
|
|
66
|
+
|
|
67
|
+
## Reference | 參考
|
|
68
|
+
|
|
69
|
+
- Full standard: [audit-assistant](../audit-assistant/SKILL.md)
|
|
@@ -17,6 +17,43 @@ Guide through the Behavior-Driven Development (BDD) workflow using Given-When-Th
|
|
|
17
17
|
|
|
18
18
|
引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式。
|
|
19
19
|
|
|
20
|
+
## Pre-Flight Checks | 前置檢查
|
|
21
|
+
|
|
22
|
+
Before executing BDD phases, the AI assistant MUST verify prerequisites. If a check fails, STOP and guide the user.
|
|
23
|
+
|
|
24
|
+
在執行 BDD 階段前,AI 助手必須驗證前置條件。如果檢查失敗,停止並引導使用者。
|
|
25
|
+
|
|
26
|
+
### Phase Gate Matrix | 階段閘門矩陣
|
|
27
|
+
|
|
28
|
+
| Target Phase | Pre-Flight Check | On Failure |
|
|
29
|
+
|-------------|-----------------|------------|
|
|
30
|
+
| `DISCOVERY` | 1. Feature/behavior clearly identified | → Ask user to describe the desired behavior |
|
|
31
|
+
| | 2. If SDD project: spec exists | → Guide to `/sdd` |
|
|
32
|
+
| `FORMULATION` | 1. Discovery output exists (examples, edge cases) | → Guide back to DISCOVERY |
|
|
33
|
+
| | 2. At least one concrete example collected | → Collect examples first |
|
|
34
|
+
| `AUTOMATION` | 1. `.feature` file exists with scenarios | → Guide to FORMULATION |
|
|
35
|
+
| | 2. Scenarios follow Given-When-Then format | → Fix scenario format |
|
|
36
|
+
| `LIVING DOCS` | 1. Step definitions implemented | → Guide to AUTOMATION |
|
|
37
|
+
| | 2. All scenarios passing | → Fix failing scenarios first |
|
|
38
|
+
|
|
39
|
+
### Feature-Before-Step Enforcement | 功能檔優先強制
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
🔍 DISCOVERY: Collect examples → identify edge cases
|
|
43
|
+
↓ (only proceed with concrete examples)
|
|
44
|
+
📝 FORMULATION: Write .feature file → Given/When/Then
|
|
45
|
+
↓ (only proceed with valid Gherkin scenarios)
|
|
46
|
+
🤖 AUTOMATION: Implement step definitions → run
|
|
47
|
+
↓ (only proceed when all scenarios pass)
|
|
48
|
+
📚 LIVING DOCS: Maintain and share
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Critical Rule**: The AI MUST NOT write step definitions before `.feature` files with Gherkin scenarios exist. Discovery must produce concrete examples before formulation begins.
|
|
52
|
+
|
|
53
|
+
**關鍵規則**:AI 不得在 `.feature` 檔案存在前撰寫步驟定義。探索階段必須產出具體範例才能進入制定階段。
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
20
57
|
## Methodology Integration | 方法論整合
|
|
21
58
|
|
|
22
59
|
When `/bdd` is invoked:
|
|
@@ -136,6 +173,70 @@ BDD works best with collaboration:
|
|
|
136
173
|
- [ ] Documentation is accessible
|
|
137
174
|
- [ ] Stakeholders can read and understand
|
|
138
175
|
|
|
176
|
+
## AI Agent Behavior | AI 代理行為
|
|
177
|
+
|
|
178
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
179
|
+
|
|
180
|
+
### Entry Router | 進入路由
|
|
181
|
+
|
|
182
|
+
| Input | AI Action |
|
|
183
|
+
|-------|-----------|
|
|
184
|
+
| `/bdd` | 詢問要探索的行為,進入 🔍 DISCOVERY |
|
|
185
|
+
| `/bdd "feature description"` | 以指定功能為目標,進入 🔍 DISCOVERY |
|
|
186
|
+
| `/bdd <feature-file>` | 載入現有 `.feature` 檔案,判斷進入哪個階段 |
|
|
187
|
+
|
|
188
|
+
### Interaction Script | 互動腳本
|
|
189
|
+
|
|
190
|
+
#### 🔍 DISCOVERY Phase
|
|
191
|
+
|
|
192
|
+
1. 與使用者討論功能行為
|
|
193
|
+
2. 收集具體範例和邊界案例
|
|
194
|
+
3. 以 Three Amigos 視角提問(Business / Dev / Testing)
|
|
195
|
+
|
|
196
|
+
🛑 **STOP**: 收集足夠範例後展示摘要,等待確認進入 FORMULATION
|
|
197
|
+
|
|
198
|
+
#### 📝 FORMULATION Phase
|
|
199
|
+
|
|
200
|
+
1. 將範例轉為 Gherkin 場景(Given-When-Then)
|
|
201
|
+
2. 使用領域語言(ubiquitous language)
|
|
202
|
+
3. 展示生成的 `.feature` 內容
|
|
203
|
+
|
|
204
|
+
**Decision: 場景品質**
|
|
205
|
+
- IF 場景包含實作細節 → 自動抽離,改用業務語言
|
|
206
|
+
- IF 場景過於模糊 → 要求更具體的範例
|
|
207
|
+
|
|
208
|
+
🛑 **STOP**: 展示 `.feature` 後等待使用者確認寫入
|
|
209
|
+
|
|
210
|
+
#### 🤖 AUTOMATION Phase
|
|
211
|
+
|
|
212
|
+
1. 為每個場景實作 step definitions
|
|
213
|
+
2. 執行場景,確認結果
|
|
214
|
+
3. 場景內部使用 TDD 循環實作
|
|
215
|
+
|
|
216
|
+
🛑 **STOP**: 所有場景通過後等待使用者確認
|
|
217
|
+
|
|
218
|
+
#### 📚 LIVING DOCS Phase
|
|
219
|
+
|
|
220
|
+
1. 確認所有場景是最新狀態
|
|
221
|
+
2. 建議文件可分享給利害關係人
|
|
222
|
+
|
|
223
|
+
### Stop Points | 停止點
|
|
224
|
+
|
|
225
|
+
| Phase | Stop Point | 等待內容 |
|
|
226
|
+
|-------|-----------|---------|
|
|
227
|
+
| DISCOVERY | 範例收集完成後 | 確認進入 FORMULATION |
|
|
228
|
+
| FORMULATION | `.feature` 生成後 | 確認寫入 |
|
|
229
|
+
| AUTOMATION | 所有場景通過後 | 確認進入 LIVING DOCS |
|
|
230
|
+
|
|
231
|
+
### Error Handling | 錯誤處理
|
|
232
|
+
|
|
233
|
+
| Error Condition | AI Action |
|
|
234
|
+
|-----------------|-----------|
|
|
235
|
+
| 使用者要求跳過 DISCOVERY 直接寫場景 | 提醒需要具體範例,但允許 override |
|
|
236
|
+
| `.feature` 語法無效 | 自動修正 Gherkin 語法 |
|
|
237
|
+
| Step definition 實作失敗 | 報告哪個 step 失敗,嘗試修復,3 次後 STOP |
|
|
238
|
+
| 無 BDD 測試框架(Cucumber 等) | 建議安裝,或改用 TDD 方式實作場景邏輯 |
|
|
239
|
+
|
|
139
240
|
## Reference | 參考
|
|
140
241
|
|
|
141
242
|
- Methodology: [bdd.methodology.yaml](../../methodologies/bdd.methodology.yaml)
|
|
@@ -75,6 +75,51 @@ After brainstorming, the typical workflow is:
|
|
|
75
75
|
3. `/sdd` - Create specification documents
|
|
76
76
|
4. `/derive-all` or `/tdd` - Implement with test protection
|
|
77
77
|
|
|
78
|
+
## AI Agent Behavior | AI 代理行為
|
|
79
|
+
|
|
80
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
81
|
+
|
|
82
|
+
### Entry Router | 進入路由
|
|
83
|
+
|
|
84
|
+
| Input | AI Action |
|
|
85
|
+
|-------|-----------|
|
|
86
|
+
| `/brainstorm` | 詢問要探討的主題或問題,進入 FRAME 階段 |
|
|
87
|
+
| `/brainstorm "topic"` | 以指定主題開始,進入 FRAME 階段 |
|
|
88
|
+
| `/brainstorm --technique <name>` | 使用指定技法開始 DIVERGE 階段 |
|
|
89
|
+
|
|
90
|
+
### Interaction Script | 互動腳本
|
|
91
|
+
|
|
92
|
+
#### FRAME Phase
|
|
93
|
+
1. 釐清問題陳述(使用 5 Whys 或 HMW)
|
|
94
|
+
2. 確認問題定義
|
|
95
|
+
|
|
96
|
+
🛑 **STOP**: 問題定義後等待使用者確認
|
|
97
|
+
|
|
98
|
+
#### DIVERGE Phase
|
|
99
|
+
1. 使用選定技法生成想法
|
|
100
|
+
2. 鼓勵數量優先於品質
|
|
101
|
+
3. 列出所有想法
|
|
102
|
+
|
|
103
|
+
#### CONVERGE Phase
|
|
104
|
+
1. 以評估矩陣(可行性、影響力、成本)評分
|
|
105
|
+
2. 排序前 3 名
|
|
106
|
+
|
|
107
|
+
🛑 **STOP**: 展示 Brainstorm Report 後等待使用者決定下一步
|
|
108
|
+
|
|
109
|
+
### Stop Points | 停止點
|
|
110
|
+
|
|
111
|
+
| Stop Point | 等待內容 |
|
|
112
|
+
|-----------|---------|
|
|
113
|
+
| 問題定義後 | 確認問題正確 |
|
|
114
|
+
| 報告展示後 | 決定進入 `/requirement` 或 `/sdd` |
|
|
115
|
+
|
|
116
|
+
### Error Handling | 錯誤處理
|
|
117
|
+
|
|
118
|
+
| Error Condition | AI Action |
|
|
119
|
+
|-----------------|-----------|
|
|
120
|
+
| 主題太廣泛 | 引導縮小範圍 |
|
|
121
|
+
| 指定的技法不存在 | 列出可用技法供選擇 |
|
|
122
|
+
|
|
78
123
|
## References | 參考
|
|
79
124
|
|
|
80
125
|
* [Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md)
|
|
@@ -52,6 +52,40 @@ Generate and maintain CHANGELOG.md entries following the Keep a Changelog format
|
|
|
52
52
|
- Include issue/PR references | 附上 issue/PR 編號
|
|
53
53
|
- Mark breaking changes with **BREAKING** prefix | 用 **BREAKING** 標記破壞性變更
|
|
54
54
|
|
|
55
|
+
## AI Agent Behavior | AI 代理行為
|
|
56
|
+
|
|
57
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
58
|
+
|
|
59
|
+
### Entry Router | 進入路由
|
|
60
|
+
|
|
61
|
+
| Input | AI Action |
|
|
62
|
+
|-------|-----------|
|
|
63
|
+
| `/changelog` | 分析 git log 自上次 release 以來的 commits,生成 changelog 條目 |
|
|
64
|
+
|
|
65
|
+
### Interaction Script | 互動腳本
|
|
66
|
+
|
|
67
|
+
1. 找到最近的 git tag(上次 release)
|
|
68
|
+
2. 讀取從上次 tag 至今的所有 commits
|
|
69
|
+
3. 依類型分類(Added / Changed / Fixed / Security 等)
|
|
70
|
+
4. 轉寫為使用者導向的描述(非開發者語言)
|
|
71
|
+
5. 展示生成的 changelog 條目
|
|
72
|
+
|
|
73
|
+
🛑 **STOP**: 展示條目後等待使用者確認更新 CHANGELOG.md
|
|
74
|
+
|
|
75
|
+
### Stop Points | 停止點
|
|
76
|
+
|
|
77
|
+
| Stop Point | 等待內容 |
|
|
78
|
+
|-----------|---------|
|
|
79
|
+
| Changelog 條目展示後 | 確認內容正確並寫入 |
|
|
80
|
+
|
|
81
|
+
### Error Handling | 錯誤處理
|
|
82
|
+
|
|
83
|
+
| Error Condition | AI Action |
|
|
84
|
+
|-----------------|-----------|
|
|
85
|
+
| 無 git tag(首次 release) | 分析所有 commits |
|
|
86
|
+
| CHANGELOG.md 不存在 | 建立新檔案 |
|
|
87
|
+
| Commit message 格式不規範 | 盡力分類,標記 `[Manual Review]` |
|
|
88
|
+
|
|
55
89
|
## References | 參考
|
|
56
90
|
|
|
57
91
|
* [Changelog Guide Skill](../changelog-guide/SKILL.md)
|
|
@@ -65,7 +65,7 @@ When issues are detected (modified/missing files), CLI automatically enters inte
|
|
|
65
65
|
|
|
66
66
|
```
|
|
67
67
|
──────────────────────────────────────────────────
|
|
68
|
-
⚠ Modified: .standards/commit-message
|
|
68
|
+
⚠ Modified: .standards/commit-message.ai.yaml
|
|
69
69
|
|
|
70
70
|
? What would you like to do?
|
|
71
71
|
❯ View diff
|
|
@@ -210,6 +210,57 @@ Shows standards coverage:
|
|
|
210
210
|
/check --migrate # Upgrade manifest format
|
|
211
211
|
```
|
|
212
212
|
|
|
213
|
+
## AI Agent Behavior | AI 代理行為
|
|
214
|
+
|
|
215
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
216
|
+
|
|
217
|
+
### Entry Router | 進入路由
|
|
218
|
+
|
|
219
|
+
| Input | AI Action | AI 行為 |
|
|
220
|
+
|-------|-----------|--------|
|
|
221
|
+
| `/check` | 執行 `uds check`,偵測問題時進入互動修復模式 | Run full check, enter interactive mode on issues |
|
|
222
|
+
| `/check --summary` | 執行 `uds check --summary`,顯示精簡狀態 | Show compact status |
|
|
223
|
+
| `/check --restore` | 執行 `uds check --restore`,還原所有修改/遺失檔案 | Restore all files |
|
|
224
|
+
| `/check --offline` | 執行 `uds check --offline`,跳過 npm registry 檢查 | Skip network check |
|
|
225
|
+
| `/check --migrate` | 執行 `uds check --migrate`,升級 manifest 格式 | Migrate legacy manifest |
|
|
226
|
+
|
|
227
|
+
### Interaction Script | 互動腳本
|
|
228
|
+
|
|
229
|
+
1. 執行 `uds check` 並解析輸出
|
|
230
|
+
2. 展示狀態摘要(版本、層級、檔案、Skills、Commands)
|
|
231
|
+
|
|
232
|
+
**Decision: 檢查結果**
|
|
233
|
+
- IF 全部正常 → 顯示綠色摘要,結束
|
|
234
|
+
- IF 有修改/遺失檔案 → 進入互動修復迴圈
|
|
235
|
+
|
|
236
|
+
3. 互動修復迴圈(每個問題檔案):
|
|
237
|
+
|
|
238
|
+
**Decision: 檔案已修改**
|
|
239
|
+
- 使用者可選:View diff → Restore original → Keep current → Skip
|
|
240
|
+
|
|
241
|
+
**Decision: 檔案遺失**
|
|
242
|
+
- 使用者可選:Restore → Remove from tracking → Skip
|
|
243
|
+
|
|
244
|
+
🛑 **STOP**: 每個問題檔案逐一詢問使用者處理方式
|
|
245
|
+
|
|
246
|
+
4. 所有檔案處理完畢,顯示最終狀態
|
|
247
|
+
|
|
248
|
+
### Stop Points | 停止點
|
|
249
|
+
|
|
250
|
+
| Stop Point | 等待內容 |
|
|
251
|
+
|-----------|---------|
|
|
252
|
+
| 每個問題檔案 | 使用者選擇處理方式 |
|
|
253
|
+
| restore 操作前 | 確認還原(批次模式除外) |
|
|
254
|
+
|
|
255
|
+
### Error Handling | 錯誤處理
|
|
256
|
+
|
|
257
|
+
| Error Condition | AI Action |
|
|
258
|
+
|-----------------|-----------|
|
|
259
|
+
| 標準未初始化 | 提示執行 `/init` |
|
|
260
|
+
| npm registry 無法連線 | 建議加 `--offline` 重試 |
|
|
261
|
+
| manifest 格式過舊 | 建議執行 `--migrate` |
|
|
262
|
+
| Skills 未安裝 | 建議執行 `/update` 或 `/config skills` |
|
|
263
|
+
|
|
213
264
|
## Reference | 參考
|
|
214
265
|
|
|
215
266
|
- CLI documentation: `uds check --help`
|