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
|
@@ -30,6 +30,7 @@ Verify pre-commit quality gates before committing code to ensure codebase stabil
|
|
|
30
30
|
| **Build** | Code compiles with zero errors | 編譯零錯誤 |
|
|
31
31
|
| **Tests** | All existing tests pass (100%) | 所有測試通過 |
|
|
32
32
|
| **Coverage** | Test coverage not decreased | 覆蓋率未下降 |
|
|
33
|
+
| **AC Coverage** | AC-to-test coverage ≥ 80% ([`/ac-coverage`](./ac-coverage.md)) | AC 覆蓋率 ≥ 80% |
|
|
33
34
|
| **Code Quality** | Follows coding standards, no code smells | 符合編碼規範 |
|
|
34
35
|
| **Security** | No hardcoded secrets or vulnerabilities | 無硬編碼密鑰 |
|
|
35
36
|
| **Documentation** | API docs and CHANGELOG updated if needed | 文件已更新 |
|
|
@@ -47,7 +48,52 @@ Verify pre-commit quality gates before committing code to ensure codebase stabil
|
|
|
47
48
|
|
|
48
49
|
After verification passes, proceed with `/commit` to create the commit message.
|
|
49
50
|
|
|
51
|
+
## AI Agent Behavior | AI 代理行為
|
|
52
|
+
|
|
53
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
54
|
+
|
|
55
|
+
### Entry Router | 進入路由
|
|
56
|
+
|
|
57
|
+
| Input | AI Action |
|
|
58
|
+
|-------|-----------|
|
|
59
|
+
| `/checkin` | 自動執行所有品質關卡檢查 |
|
|
60
|
+
|
|
61
|
+
### Interaction Script | 互動腳本
|
|
62
|
+
|
|
63
|
+
1. 執行 `git status` 確認有待提交的變更
|
|
64
|
+
2. 依序檢查每個品質關卡:
|
|
65
|
+
- Build → Tests → Coverage → Code Quality → Security → Documentation → Workflow
|
|
66
|
+
3. 為每個關卡標記 ✅ PASS / ❌ FAIL
|
|
67
|
+
4. 生成摘要報告
|
|
68
|
+
|
|
69
|
+
**Decision: 測試指令偵測**
|
|
70
|
+
- IF 專案有 `package.json` → 使用 `npm test`
|
|
71
|
+
- IF 專案有 `pyproject.toml` → 使用 `pytest`
|
|
72
|
+
- IF 無法偵測 → 詢問使用者
|
|
73
|
+
|
|
74
|
+
**Decision: 檢查結果**
|
|
75
|
+
- IF 全部通過 → 建議執行 `/commit`
|
|
76
|
+
- IF 有 FAIL → 列出失敗項目和修復建議,不建議 commit
|
|
77
|
+
|
|
78
|
+
🛑 **STOP**: 報告展示後等待使用者決定(修復 or 強制 commit)
|
|
79
|
+
|
|
80
|
+
### Stop Points | 停止點
|
|
81
|
+
|
|
82
|
+
| Stop Point | 等待內容 |
|
|
83
|
+
|-----------|---------|
|
|
84
|
+
| 品質報告展示後 | 使用者決定修復或 commit |
|
|
85
|
+
|
|
86
|
+
### Error Handling | 錯誤處理
|
|
87
|
+
|
|
88
|
+
| Error Condition | AI Action |
|
|
89
|
+
|-----------------|-----------|
|
|
90
|
+
| 無待提交變更 | 告知無變更可檢查 |
|
|
91
|
+
| 測試指令執行失敗 | 報告錯誤,建議檢查測試環境 |
|
|
92
|
+
| lint 工具未安裝 | 跳過該關卡,標記 ⚠️ SKIP |
|
|
93
|
+
|
|
50
94
|
## References | 參考
|
|
51
95
|
|
|
52
96
|
* [Check-in Assistant Skill](../checkin-assistant/SKILL.md)
|
|
53
97
|
* [Core Standard](../../core/checkin-standards.md)
|
|
98
|
+
* [AC Coverage Command](./ac-coverage.md) — AC-to-test traceability analysis
|
|
99
|
+
* [AC Traceability Standard](../../core/acceptance-criteria-traceability.md)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[UDS] Guide CI/CD pipeline design, configuration and optimization"
|
|
3
|
+
allowed-tools: Read, Grep, Glob
|
|
4
|
+
argument-hint: "[pipeline config or stage | Pipeline 配置或階段]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# CI/CD Assistant | CI/CD 助手
|
|
8
|
+
|
|
9
|
+
Guide CI/CD pipeline design, configuration and optimization.
|
|
10
|
+
|
|
11
|
+
引導 CI/CD 管線設計、配置和優化。
|
|
12
|
+
|
|
13
|
+
## Workflow | 工作流程
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
BUILD ──► TEST ──► ANALYZE ──► DEPLOY ──► VERIFY
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage | 使用方式
|
|
20
|
+
|
|
21
|
+
- `/ci-cd` - Start interactive pipeline design
|
|
22
|
+
- `/ci-cd github-actions` - Design for specific platform
|
|
23
|
+
- `/ci-cd --optimize` - Optimize existing pipeline
|
|
24
|
+
- `/ci-cd build` - Focus on build stage
|
|
25
|
+
|
|
26
|
+
## AI Agent Behavior | AI 代理行為
|
|
27
|
+
|
|
28
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
29
|
+
|
|
30
|
+
### Entry Router | 進入路由
|
|
31
|
+
|
|
32
|
+
| Input | AI Action |
|
|
33
|
+
|-------|-----------|
|
|
34
|
+
| `/ci-cd` | 偵測現有 CI 配置(`.github/workflows/`、`.gitlab-ci.yml` 等),展示狀態或開始設計 |
|
|
35
|
+
| `/ci-cd <platform>` | 為指定平台設計管線 |
|
|
36
|
+
| `/ci-cd --optimize` | 分析現有管線,提出優化建議 |
|
|
37
|
+
| `/ci-cd <stage>` | 聚焦特定階段(build/test/deploy) |
|
|
38
|
+
|
|
39
|
+
### Interaction Script | 互動腳本
|
|
40
|
+
|
|
41
|
+
1. 偵測專案技術棧和現有 CI 配置
|
|
42
|
+
2. 依據需求設計或優化管線
|
|
43
|
+
|
|
44
|
+
**Decision: 現有配置**
|
|
45
|
+
- IF 已有 CI 配置 → 分析現狀,建議優化
|
|
46
|
+
- IF 無 CI 配置 → 引導從頭設計
|
|
47
|
+
- IF `--optimize` → 直接進入優化分析
|
|
48
|
+
|
|
49
|
+
3. 逐階段設計(BUILD→TEST→ANALYZE→DEPLOY→VERIFY)
|
|
50
|
+
4. 展示完整管線配置
|
|
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
|
+
| 無法偵測 CI 平台 | 列出支援的平台供選擇 |
|
|
65
|
+
| 現有配置語法錯誤 | 報告錯誤位置,建議修正 |
|
|
66
|
+
|
|
67
|
+
## Reference | 參考
|
|
68
|
+
|
|
69
|
+
- Full standard: [ci-cd-assistant](../ci-cd-assistant/SKILL.md)
|
|
@@ -10,6 +10,35 @@ Generate well-formatted commit messages following the Conventional Commits stand
|
|
|
10
10
|
|
|
11
11
|
根據 staged 的變更,產生符合 Conventional Commits 格式的 commit message。
|
|
12
12
|
|
|
13
|
+
## Pre-Flight Checks | 前置檢查
|
|
14
|
+
|
|
15
|
+
Before generating a commit, the AI assistant MUST run these checks:
|
|
16
|
+
|
|
17
|
+
在產生 commit 前,AI 助手必須執行以下檢查:
|
|
18
|
+
|
|
19
|
+
| Check | Command | On Failure |
|
|
20
|
+
|-------|---------|------------|
|
|
21
|
+
| Staged changes exist | `git diff --cached --stat` | → Guide user to `git add` |
|
|
22
|
+
| No merge conflicts | `grep -r "<<<<<<< " --include="*.{js,ts,md,yaml}" .` | → Resolve conflicts first |
|
|
23
|
+
| Tests pass (if feat/fix) | `cd cli && npm run test:unit` (or project test cmd) | → Fix tests before committing |
|
|
24
|
+
| Spec reference (feat/fix) | Check `docs/specs/SPEC-*.md` for active specs | → Suggest `Refs: SPEC-XXX` in footer |
|
|
25
|
+
|
|
26
|
+
### Spec Tracking Gate | Spec 追蹤閘門
|
|
27
|
+
|
|
28
|
+
For `feat` and `fix` type commits:
|
|
29
|
+
1. **Check**: `ls docs/specs/SPEC-*.md 2>/dev/null` — any active specs?
|
|
30
|
+
2. **If specs exist**: Suggest adding `Refs: SPEC-XXX` to commit footer
|
|
31
|
+
3. **If no specs and change is significant** (>3 files or new API): Suggest creating a spec via `/sdd`
|
|
32
|
+
4. **Mode**: This is advisory (non-blocking) — user can always proceed without a spec reference
|
|
33
|
+
|
|
34
|
+
對於 `feat` 和 `fix` 類型的提交:
|
|
35
|
+
1. **檢查**:是否有活躍的規格?
|
|
36
|
+
2. **如果有規格**:建議在 footer 加入 `Refs: SPEC-XXX`
|
|
37
|
+
3. **如果沒有規格且變更顯著**:建議透過 `/sdd` 建立規格
|
|
38
|
+
4. **模式**:這是建議性的(非阻斷)— 使用者可以不引用規格
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
13
42
|
## Workflow | 工作流程
|
|
14
43
|
|
|
15
44
|
1. **Check status** - Run `git status` and `git diff --staged` to understand changes
|
|
@@ -49,6 +78,56 @@ If a spec is linked, add `Refs: SPEC-XXX` to the commit footer. This is advisory
|
|
|
49
78
|
- `/commit` - Auto-analyze changes and suggest commit message
|
|
50
79
|
- `/commit fix login bug` - Generate message based on provided description
|
|
51
80
|
|
|
81
|
+
## AI Agent Behavior | AI 代理行為
|
|
82
|
+
|
|
83
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
84
|
+
|
|
85
|
+
### Entry Router | 進入路由
|
|
86
|
+
|
|
87
|
+
| Input | AI Action | AI 行為 |
|
|
88
|
+
|-------|-----------|--------|
|
|
89
|
+
| `/commit` | 執行 Pre-Flight Checks → 分析 staged 變更 → 產生 commit message → 等待確認 | Run checks, analyze, generate, confirm |
|
|
90
|
+
| `/commit <description>` | 以描述為基礎,結合 staged diff 產生 commit message → 等待確認 | Use description + diff to generate message |
|
|
91
|
+
|
|
92
|
+
### Interaction Script | 互動腳本
|
|
93
|
+
|
|
94
|
+
1. 執行 `git diff --cached --stat` 確認有 staged 變更
|
|
95
|
+
2. 執行 `git status` 和 `git diff --staged` 了解變更內容
|
|
96
|
+
3. 判斷 commit 類型(feat/fix/refactor/docs/...)和範圍
|
|
97
|
+
|
|
98
|
+
**Decision: Pre-Flight Check 結果**
|
|
99
|
+
- IF 無 staged 變更 → 引導使用者 `git add`,停止
|
|
100
|
+
- IF 有合併衝突標記 → 提示先解決衝突,停止
|
|
101
|
+
- IF 類型為 feat/fix → 執行測試 + Spec 追蹤評估
|
|
102
|
+
|
|
103
|
+
4. 產生 commit message(subject + body + footer)
|
|
104
|
+
5. 展示完整 message 供使用者確認
|
|
105
|
+
|
|
106
|
+
**Decision: Spec 追蹤(僅 feat/fix)**
|
|
107
|
+
- IF 有活躍 spec → 建議在 footer 加 `Refs: SPEC-XXX`
|
|
108
|
+
- IF 無 spec 且變更顯著(>3 檔案或新 API) → 建議 `/sdd`
|
|
109
|
+
- 此為建議性(non-blocking),使用者可忽略
|
|
110
|
+
|
|
111
|
+
🛑 **STOP**: 展示 commit message 後等待使用者確認或修改
|
|
112
|
+
|
|
113
|
+
6. 使用者確認後執行 `git commit`
|
|
114
|
+
|
|
115
|
+
### Stop Points | 停止點
|
|
116
|
+
|
|
117
|
+
| Stop Point | 等待內容 |
|
|
118
|
+
|-----------|---------|
|
|
119
|
+
| Pre-Flight 失敗 | 使用者修復問題後重新執行 |
|
|
120
|
+
| Message 展示後 | 確認 message 正確,或要求修改 |
|
|
121
|
+
|
|
122
|
+
### Error Handling | 錯誤處理
|
|
123
|
+
|
|
124
|
+
| Error Condition | AI Action |
|
|
125
|
+
|-----------------|-----------|
|
|
126
|
+
| 無 staged 變更 | 顯示 `git add` 指引,不嘗試 commit |
|
|
127
|
+
| 合併衝突存在 | 提示解決衝突,列出衝突檔案 |
|
|
128
|
+
| 測試失敗(feat/fix) | 顯示失敗摘要,建議修復後再 commit |
|
|
129
|
+
| commit 執行失敗 | 顯示 git 錯誤訊息,不重試 |
|
|
130
|
+
|
|
52
131
|
## Reference | 參考
|
|
53
132
|
|
|
54
133
|
- Full standard: [commit-standards](../commit-standards/SKILL.md)
|
|
@@ -206,6 +206,54 @@ CLI 在 `manifest.declinedFeatures` 中追蹤拒絕的 Skills/Commands:
|
|
|
206
206
|
| `--yes`, `-y` | Skip confirmation prompt | 跳過確認提示 |
|
|
207
207
|
| `-E`, `--experimental` | Enable experimental features | 啟用實驗性功能 |
|
|
208
208
|
|
|
209
|
+
## AI Agent Behavior | AI 代理行為
|
|
210
|
+
|
|
211
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
212
|
+
|
|
213
|
+
### Entry Router | 進入路由
|
|
214
|
+
|
|
215
|
+
| Input | AI Action | AI 行為 |
|
|
216
|
+
|-------|-----------|--------|
|
|
217
|
+
| `/config` | 顯示目前狀態 → 詢問配置類型 → 執行 | Show status, ask type, execute |
|
|
218
|
+
| `/config <type>` | 直接執行指定類型配置(如 `skills`、`ai_tools`) | Execute specific config type |
|
|
219
|
+
| `/config --ai-tool <tool>` | 非互動式為特定工具安裝 Skills/Commands | Non-interactive install for tool |
|
|
220
|
+
|
|
221
|
+
### Interaction Script | 互動腳本
|
|
222
|
+
|
|
223
|
+
1. 執行 `uds check --summary` 顯示目前狀態
|
|
224
|
+
|
|
225
|
+
**Decision: 有無指定 type**
|
|
226
|
+
- IF 指定了 type → 直接執行 `uds configure --type <type>`
|
|
227
|
+
- IF 指定了 `--ai-tool` → 非互動式執行安裝
|
|
228
|
+
- ELSE → 進入互動流程
|
|
229
|
+
|
|
230
|
+
2. 詢問配置類型(AskUserQuestion):
|
|
231
|
+
- Basic Options / AI Tools / Skills / Commands / Advanced / All
|
|
232
|
+
|
|
233
|
+
3. 根據選擇執行對應 CLI 命令
|
|
234
|
+
|
|
235
|
+
**Decision: Skills/Commands 配置**
|
|
236
|
+
- IF 選擇 Skills → 顯示安裝狀態 + 拒絕狀態 → 動作選單
|
|
237
|
+
- IF 選擇 Commands → 同上流程
|
|
238
|
+
|
|
239
|
+
🛑 **STOP**: 顯示目前狀態後等待使用者選擇配置類型
|
|
240
|
+
|
|
241
|
+
### Stop Points | 停止點
|
|
242
|
+
|
|
243
|
+
| Stop Point | 等待內容 |
|
|
244
|
+
|-----------|---------|
|
|
245
|
+
| 狀態顯示後 | 使用者選擇要配置的類型 |
|
|
246
|
+
| Skills/Commands 動作選單 | 使用者選擇安裝/更新/重新安裝 |
|
|
247
|
+
|
|
248
|
+
### Error Handling | 錯誤處理
|
|
249
|
+
|
|
250
|
+
| Error Condition | AI Action |
|
|
251
|
+
|-----------------|-----------|
|
|
252
|
+
| 標準未初始化 | 提示先執行 `/init` |
|
|
253
|
+
| 無效的 config type | 列出可用類型供選擇 |
|
|
254
|
+
| 指定的 AI tool 不支援 | 列出支援的工具清單 |
|
|
255
|
+
| 之前拒絕的 Skills/Commands | 提示可透過此命令重新安裝 |
|
|
256
|
+
|
|
209
257
|
## Reference | 參考
|
|
210
258
|
|
|
211
259
|
- CLI documentation: `uds configure --help`
|
|
@@ -53,7 +53,60 @@ Analyze test coverage across multiple dimensions and provide actionable recommen
|
|
|
53
53
|
- `/coverage src/auth` - Analyze specific module
|
|
54
54
|
- `/coverage --recommend` - Get test recommendations
|
|
55
55
|
|
|
56
|
+
## AC Coverage (Requirement-Level) | AC 覆蓋率(需求層級)
|
|
57
|
+
|
|
58
|
+
This command (`/coverage`) analyzes **code-level** coverage (line/branch/function). For **requirement-level** coverage — tracking which Acceptance Criteria have corresponding tests — use [`/ac-coverage`](./ac-coverage.md).
|
|
59
|
+
|
|
60
|
+
本命令(`/coverage`)分析**程式碼層級**覆蓋率。若需**需求層級**覆蓋率 — 追蹤哪些 AC 有對應測試 — 請使用 [`/ac-coverage`](./ac-coverage.md)。
|
|
61
|
+
|
|
62
|
+
| | `/coverage` | `/ac-coverage` |
|
|
63
|
+
|-|-------------|----------------|
|
|
64
|
+
| **Level** | Code (line/branch/function) | Requirements (AC-to-test) |
|
|
65
|
+
| **Question** | "How much code is tested?" | "Which AC have tests?" |
|
|
66
|
+
|
|
67
|
+
## AI Agent Behavior | AI 代理行為
|
|
68
|
+
|
|
69
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
70
|
+
|
|
71
|
+
### Entry Router | 進入路由
|
|
72
|
+
|
|
73
|
+
| Input | AI Action |
|
|
74
|
+
|-------|-----------|
|
|
75
|
+
| `/coverage` | 偵測測試框架,執行全專案覆蓋率分析 |
|
|
76
|
+
| `/coverage <path>` | 僅分析指定模組/路徑 |
|
|
77
|
+
| `/coverage --recommend` | 分析後重點輸出測試建議 |
|
|
78
|
+
|
|
79
|
+
### Interaction Script | 互動腳本
|
|
80
|
+
|
|
81
|
+
1. 偵測專案測試框架和覆蓋率工具
|
|
82
|
+
2. 執行覆蓋率報告
|
|
83
|
+
3. 解析結果,識別低覆蓋率區域
|
|
84
|
+
4. 依風險和重要性排序
|
|
85
|
+
5. 提出具體測試建議
|
|
86
|
+
|
|
87
|
+
**Decision: 覆蓋率結果**
|
|
88
|
+
- IF 覆蓋率 ≥ 目標 → 展示摘要,標記 ✅
|
|
89
|
+
- IF 覆蓋率 < 目標但 ≥ 60% → 展示差距,建議優先補測試的區域
|
|
90
|
+
- IF 覆蓋率 < 60% → 警告,建議系統性補強計畫
|
|
91
|
+
|
|
92
|
+
🛑 **STOP**: 報告展示後等待使用者決定是否補寫測試
|
|
93
|
+
|
|
94
|
+
### Stop Points | 停止點
|
|
95
|
+
|
|
96
|
+
| Stop Point | 等待內容 |
|
|
97
|
+
|-----------|---------|
|
|
98
|
+
| 覆蓋率報告展示後 | 使用者決定是否補測試 |
|
|
99
|
+
|
|
100
|
+
### Error Handling | 錯誤處理
|
|
101
|
+
|
|
102
|
+
| Error Condition | AI Action |
|
|
103
|
+
|-----------------|-----------|
|
|
104
|
+
| 無測試框架 | 詢問使用者選擇框架 |
|
|
105
|
+
| 覆蓋率工具執行失敗 | 報告錯誤,建議手動檢查配置 |
|
|
106
|
+
| 指定路徑不存在 | 列出可用路徑 |
|
|
107
|
+
|
|
56
108
|
## Reference | 參考
|
|
57
109
|
|
|
58
110
|
- Full standard: [test-coverage-assistant](../test-coverage-assistant/SKILL.md)
|
|
59
111
|
- Core guide: [testing-standards](../../core/testing-standards.md)
|
|
112
|
+
- AC coverage: [/ac-coverage](./ac-coverage.md) — requirement-level traceability
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "[UDS] Guide database design, migration planning and query optimization"
|
|
3
|
+
allowed-tools: Read, Grep, Glob
|
|
4
|
+
argument-hint: "[schema or migration to review | 要審查的 schema 或遷移]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Database Assistant | 資料庫助手
|
|
8
|
+
|
|
9
|
+
Guide database design, migration planning and query optimization.
|
|
10
|
+
|
|
11
|
+
引導資料庫設計、遷移規劃和查詢最佳化。
|
|
12
|
+
|
|
13
|
+
## Workflow | 工作流程
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage | 使用方式
|
|
20
|
+
|
|
21
|
+
- `/database` - Start interactive database design
|
|
22
|
+
- `/database schema` - Review or design schema
|
|
23
|
+
- `/database --migration` - Plan migration
|
|
24
|
+
|
|
25
|
+
## AI Agent Behavior | AI 代理行為
|
|
26
|
+
|
|
27
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
28
|
+
|
|
29
|
+
### Entry Router | 進入路由
|
|
30
|
+
|
|
31
|
+
| Input | AI Action |
|
|
32
|
+
|-------|-----------|
|
|
33
|
+
| `/database` | 詢問任務類型(schema 設計 / 遷移規劃 / 查詢優化) |
|
|
34
|
+
| `/database schema` | 進入 schema 設計/審查模式 |
|
|
35
|
+
| `/database --migration` | 進入遷移規劃模式 |
|
|
36
|
+
|
|
37
|
+
### Interaction Script | 互動腳本
|
|
38
|
+
|
|
39
|
+
1. 確認任務類型和目標
|
|
40
|
+
2. 分析現有 schema 或遷移檔案
|
|
41
|
+
|
|
42
|
+
**Decision: 任務類型**
|
|
43
|
+
- IF schema 設計 → 引導正規化、索引設計、關聯定義
|
|
44
|
+
- IF 遷移規劃 → 評估風險、產生遷移腳本、規劃回滾
|
|
45
|
+
- IF 查詢優化 → 分析慢查詢、建議索引
|
|
46
|
+
|
|
47
|
+
3. 展示設計/計畫結果
|
|
48
|
+
|
|
49
|
+
🛑 **STOP**: 結果展示後等待使用者確認
|
|
50
|
+
|
|
51
|
+
🛑 **STOP**: 遷移腳本寫入前等待使用者確認
|
|
52
|
+
|
|
53
|
+
### Stop Points | 停止點
|
|
54
|
+
|
|
55
|
+
| Stop Point | 等待內容 |
|
|
56
|
+
|-----------|---------|
|
|
57
|
+
| 設計/計畫展示後 | 確認方案 |
|
|
58
|
+
| 遷移腳本生成後 | 確認寫入 |
|
|
59
|
+
|
|
60
|
+
### Error Handling | 錯誤處理
|
|
61
|
+
|
|
62
|
+
| Error Condition | AI Action |
|
|
63
|
+
|-----------------|-----------|
|
|
64
|
+
| 無法偵測資料庫類型 | 詢問使用者(PostgreSQL/MySQL/MongoDB 等) |
|
|
65
|
+
| 遷移存在資料遺失風險 | 明確警告,要求使用者確認 |
|
|
66
|
+
|
|
67
|
+
## Reference | 參考
|
|
68
|
+
|
|
69
|
+
- Full standard: [database-assistant](../database-assistant/SKILL.md)
|
|
70
|
+
- Core guide: [database-standards](../../core/database-standards.md)
|
|
@@ -46,6 +46,46 @@ SPEC-XXX.md ──► /derive-bdd ──► /derive-tdd ──► [/derive-atdd]
|
|
|
46
46
|
# Step 4: Implement — fill [TODO] markers
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
## AI Agent Behavior | AI 代理行為
|
|
50
|
+
|
|
51
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
52
|
+
|
|
53
|
+
### Entry Router | 進入路由
|
|
54
|
+
|
|
55
|
+
| Input | AI Action |
|
|
56
|
+
|-------|-----------|
|
|
57
|
+
| `/derive-all` | 列出 status=Approved 的 spec 供選擇 |
|
|
58
|
+
| `/derive-all <spec-file>` | 直接對指定 spec 執行完整推演 |
|
|
59
|
+
|
|
60
|
+
### Interaction Script | 互動腳本
|
|
61
|
+
|
|
62
|
+
1. 讀取並驗證 spec(status = Approved)
|
|
63
|
+
2. 依序執行:`/derive-bdd` → `/derive-tdd` → 詢問是否需要 `/derive-atdd`
|
|
64
|
+
|
|
65
|
+
**Decision: ATDD 推演**
|
|
66
|
+
- IF 使用者要求 → 執行 `/derive-atdd`
|
|
67
|
+
- ELSE → 跳過 ATDD
|
|
68
|
+
|
|
69
|
+
🛑 **STOP**: BDD + TDD 推演完成後,詢問是否需要 ATDD 推演
|
|
70
|
+
|
|
71
|
+
3. 生成 `DERIVATION-REPORT.md` 彙總所有輸出
|
|
72
|
+
4. 展示報告摘要
|
|
73
|
+
|
|
74
|
+
🛑 **STOP**: 展示所有生成檔案清單後等待使用者確認寫入
|
|
75
|
+
|
|
76
|
+
### Stop Points | 停止點
|
|
77
|
+
|
|
78
|
+
| Stop Point | 等待內容 |
|
|
79
|
+
|-----------|---------|
|
|
80
|
+
| 所有推演完成後 | 確認寫入所有檔案 |
|
|
81
|
+
|
|
82
|
+
### Error Handling | 錯誤處理
|
|
83
|
+
|
|
84
|
+
| Error Condition | AI Action |
|
|
85
|
+
|-----------------|-----------|
|
|
86
|
+
| Spec status ≠ Approved | 引導到 `/sdd approve` |
|
|
87
|
+
| 子命令推演失敗 | 報告哪個推演失敗,已成功的仍保留,詢問是否繼續 |
|
|
88
|
+
|
|
49
89
|
## Reference | 參考
|
|
50
90
|
|
|
51
91
|
- Parent command: [/derive](../forward-derivation/SKILL.md)
|
|
@@ -43,6 +43,39 @@ SPEC-XXX.md ──► Parse AC ──► Generate acceptance.md ──► Review
|
|
|
43
43
|
|
|
44
44
|
> **Note**: BDD scenarios already serve as executable acceptance tests. `/derive-atdd` is for specialized manual testing workflows.
|
|
45
45
|
|
|
46
|
+
## AI Agent Behavior | AI 代理行為
|
|
47
|
+
|
|
48
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
49
|
+
|
|
50
|
+
### Entry Router | 進入路由
|
|
51
|
+
|
|
52
|
+
| Input | AI Action |
|
|
53
|
+
|-------|-----------|
|
|
54
|
+
| `/derive-atdd` | 列出 status=Approved 的 spec 供選擇 |
|
|
55
|
+
| `/derive-atdd <spec-file>` | 直接從指定 spec 推演 ATDD 表格 |
|
|
56
|
+
|
|
57
|
+
### Interaction Script | 互動腳本
|
|
58
|
+
|
|
59
|
+
1. 讀取 spec,擷取所有 AC
|
|
60
|
+
2. 將每個 AC 映射為驗收測試表格(Given-When-Then 欄位)
|
|
61
|
+
3. 為每個 AC 生成多筆測試資料(正向 + 反向 + 邊界值)
|
|
62
|
+
4. 展示生成的 `acceptance.md` 內容
|
|
63
|
+
|
|
64
|
+
🛑 **STOP**: 展示表格後等待使用者確認寫入
|
|
65
|
+
|
|
66
|
+
### Stop Points | 停止點
|
|
67
|
+
|
|
68
|
+
| Stop Point | 等待內容 |
|
|
69
|
+
|-----------|---------|
|
|
70
|
+
| 驗收測試表格生成後 | 確認內容正確並寫入 |
|
|
71
|
+
|
|
72
|
+
### Error Handling | 錯誤處理
|
|
73
|
+
|
|
74
|
+
| Error Condition | AI Action |
|
|
75
|
+
|-----------------|-----------|
|
|
76
|
+
| AC 缺乏具體的輸入/輸出描述 | 標記 `[TODO: needs test data]`,繼續其餘 AC |
|
|
77
|
+
| Spec 無 AC | 告知並引導修改 spec |
|
|
78
|
+
|
|
46
79
|
## Reference | 參考
|
|
47
80
|
|
|
48
81
|
- Parent command: [/derive](../forward-derivation/SKILL.md)
|
|
@@ -41,6 +41,45 @@ Feature: [Feature Name]
|
|
|
41
41
|
| `/derive-bdd specs/SPEC-001.md` | Derive BDD from specific spec | 從特定規格推演 BDD |
|
|
42
42
|
| `/derive-bdd` | Interactive — ask for spec file | 互動式 — 詢問規格檔案 |
|
|
43
43
|
|
|
44
|
+
## AI Agent Behavior | AI 代理行為
|
|
45
|
+
|
|
46
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
47
|
+
|
|
48
|
+
### Entry Router | 進入路由
|
|
49
|
+
|
|
50
|
+
| Input | AI Action |
|
|
51
|
+
|-------|-----------|
|
|
52
|
+
| `/derive-bdd` | 列出 status=Approved 的 spec 供選擇 |
|
|
53
|
+
| `/derive-bdd <spec-file>` | 直接從指定 spec 推演 BDD 場景 |
|
|
54
|
+
|
|
55
|
+
### Interaction Script | 互動腳本
|
|
56
|
+
|
|
57
|
+
1. 讀取 spec,擷取所有 AC
|
|
58
|
+
2. 將每個 AC 映射為一個 Gherkin Scenario(1:1)
|
|
59
|
+
3. 加入 `@SPEC-XXX` 和 `@AC-N` tags
|
|
60
|
+
4. 展示生成的 `.feature` 內容
|
|
61
|
+
|
|
62
|
+
**Decision: 輸出位置**
|
|
63
|
+
- IF 專案有 `tests/features/` 目錄 → 輸出到該目錄
|
|
64
|
+
- IF 專案有 `features/` 目錄 → 輸出到該目錄
|
|
65
|
+
- ELSE → 詢問使用者輸出位置
|
|
66
|
+
|
|
67
|
+
🛑 **STOP**: 展示 `.feature` 內容後等待使用者確認寫入
|
|
68
|
+
|
|
69
|
+
### Stop Points | 停止點
|
|
70
|
+
|
|
71
|
+
| Stop Point | 等待內容 |
|
|
72
|
+
|-----------|---------|
|
|
73
|
+
| `.feature` 生成後 | 確認內容正確並寫入 |
|
|
74
|
+
|
|
75
|
+
### Error Handling | 錯誤處理
|
|
76
|
+
|
|
77
|
+
| Error Condition | AI Action |
|
|
78
|
+
|-----------------|-----------|
|
|
79
|
+
| AC 非 GWT 格式 | 嘗試轉換並標記 `[Derived]`,展示供確認 |
|
|
80
|
+
| Spec 無 AC | 告知並引導修改 spec |
|
|
81
|
+
| 生成的 Gherkin 語法無效 | 自動修正語法,標記修正處 |
|
|
82
|
+
|
|
44
83
|
## Reference | 參考
|
|
45
84
|
|
|
46
85
|
- Parent command: [/derive](../forward-derivation/SKILL.md)
|
|
@@ -42,6 +42,46 @@ describe('SPEC-001: [Feature Name]', () => {
|
|
|
42
42
|
| `/derive-tdd specs/SPEC-001.md` | Derive TDD from specific spec | 從特定規格推演 TDD |
|
|
43
43
|
| `/derive-tdd` | Interactive — ask for spec file | 互動式 — 詢問規格檔案 |
|
|
44
44
|
|
|
45
|
+
## AI Agent Behavior | AI 代理行為
|
|
46
|
+
|
|
47
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
48
|
+
|
|
49
|
+
### Entry Router | 進入路由
|
|
50
|
+
|
|
51
|
+
| Input | AI Action |
|
|
52
|
+
|-------|-----------|
|
|
53
|
+
| `/derive-tdd` | 列出 status=Approved 的 spec 供選擇 |
|
|
54
|
+
| `/derive-tdd <spec-file>` | 直接從指定 spec 推演 TDD 骨架 |
|
|
55
|
+
|
|
56
|
+
### Interaction Script | 互動腳本
|
|
57
|
+
|
|
58
|
+
1. 讀取 spec,擷取所有 AC
|
|
59
|
+
2. 偵測專案語言和測試框架
|
|
60
|
+
|
|
61
|
+
**Decision: 語言/框架偵測**
|
|
62
|
+
- IF 找到 `vitest.config` / `jest.config` → 使用對應框架
|
|
63
|
+
- IF 找到 `pytest.ini` / `pyproject.toml` → 使用 pytest
|
|
64
|
+
- IF 無法偵測 → 詢問使用者
|
|
65
|
+
|
|
66
|
+
3. 將每個 AC 映射為 `describe`/`it` block(含 AAA 註解和 `[TODO]` 標記)
|
|
67
|
+
4. 展示生成的測試檔案內容
|
|
68
|
+
|
|
69
|
+
🛑 **STOP**: 展示測試骨架後等待使用者確認寫入
|
|
70
|
+
|
|
71
|
+
### Stop Points | 停止點
|
|
72
|
+
|
|
73
|
+
| Stop Point | 等待內容 |
|
|
74
|
+
|-----------|---------|
|
|
75
|
+
| 測試骨架生成後 | 確認內容正確並寫入 |
|
|
76
|
+
|
|
77
|
+
### Error Handling | 錯誤處理
|
|
78
|
+
|
|
79
|
+
| Error Condition | AI Action |
|
|
80
|
+
|-----------------|-----------|
|
|
81
|
+
| AC 過於抽象無法轉為測試 | 標記 `[TODO: AC needs refinement]`,繼續其餘 AC |
|
|
82
|
+
| 無法偵測語言/框架 | 詢問使用者指定 |
|
|
83
|
+
| Spec 無 AC | 告知並引導修改 spec |
|
|
84
|
+
|
|
45
85
|
## Reference | 參考
|
|
46
86
|
|
|
47
87
|
- Parent command: [/derive](../forward-derivation/SKILL.md)
|
|
@@ -66,6 +66,53 @@ Generate derived artifacts (BDD scenarios, TDD skeletons, ATDD tables) from appr
|
|
|
66
66
|
/derive atdd specs/SPEC-001.md
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
+
## AI Agent Behavior | AI 代理行為
|
|
70
|
+
|
|
71
|
+
> Follows [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
72
|
+
|
|
73
|
+
### Entry Router | 進入路由
|
|
74
|
+
|
|
75
|
+
| Input | AI Action |
|
|
76
|
+
|-------|-----------|
|
|
77
|
+
| `/derive` | 列出 `docs/specs/` 中 status=Approved 的 spec,問使用者選擇 spec 和子命令 |
|
|
78
|
+
| `/derive <subcommand> <spec-file>` | 直接對指定 spec 執行指定子命令 |
|
|
79
|
+
| `/derive <subcommand>` | 執行指定子命令,列出可用 spec 供選擇 |
|
|
80
|
+
| `/derive <spec-file>` | 對指定 spec 執行 `all`(預設子命令) |
|
|
81
|
+
|
|
82
|
+
### Interaction Script | 互動腳本
|
|
83
|
+
|
|
84
|
+
1. 讀取 spec 檔案,驗證 status = Approved
|
|
85
|
+
2. 擷取所有 AC,確認使用 GWT 格式
|
|
86
|
+
|
|
87
|
+
**Decision: AC 格式**
|
|
88
|
+
- IF AC 使用 GWT 格式 → 直接推演
|
|
89
|
+
- IF AC 不是 GWT 格式 → 嘗試轉換,標記 `[Derived]`,展示轉換結果
|
|
90
|
+
- IF AC 無法轉換 → 🛑 STOP,請使用者先修改 spec 中的 AC 格式
|
|
91
|
+
|
|
92
|
+
🛑 **STOP**: AC 格式轉換後展示結果,等待使用者確認轉換正確再繼續
|
|
93
|
+
|
|
94
|
+
3. 依子命令分派到 `/derive-bdd`、`/derive-tdd`、`/derive-atdd`
|
|
95
|
+
4. 驗證 1:1 對應(每個 AC 恰好一個測試/場景)
|
|
96
|
+
5. 展示推演摘要
|
|
97
|
+
|
|
98
|
+
🛑 **STOP**: 展示生成的測試工件後等待使用者確認寫入
|
|
99
|
+
|
|
100
|
+
### Stop Points | 停止點
|
|
101
|
+
|
|
102
|
+
| Stop Point | 等待內容 |
|
|
103
|
+
|-----------|---------|
|
|
104
|
+
| AC 格式轉換後 | 確認轉換結果 |
|
|
105
|
+
| 測試工件生成後 | 確認寫入檔案 |
|
|
106
|
+
|
|
107
|
+
### Error Handling | 錯誤處理
|
|
108
|
+
|
|
109
|
+
| Error Condition | AI Action |
|
|
110
|
+
|-----------------|-----------|
|
|
111
|
+
| Spec status ≠ Approved | 告知當前 status,引導到 `/sdd approve` |
|
|
112
|
+
| Spec 檔案不存在 | 列出可用 spec,或引導到 `/sdd create` |
|
|
113
|
+
| AC 數量為 0 | 告知 spec 無 AC,引導修改 spec |
|
|
114
|
+
| 1:1 對應驗證失敗 | 列出不對應項目,停止並報告 |
|
|
115
|
+
|
|
69
116
|
## References | 參考
|
|
70
117
|
|
|
71
118
|
* [Forward Derivation Standard](../forward-derivation/SKILL.md)
|