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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../integrations/openspec/AGENTS.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -100,11 +100,25 @@ openspec list # 列出活躍變更
|
|
|
100
100
|
openspec list --specs # 列出規格
|
|
101
101
|
openspec show [item] # 顯示變更或規格
|
|
102
102
|
openspec validate [item] # 驗證變更或規格
|
|
103
|
-
openspec archive <change-id> [--yes|-y] #
|
|
103
|
+
openspec archive <change-id> [--yes|-y] # 部署後封存
|
|
104
|
+
|
|
105
|
+
# 瀏覽與狀態
|
|
106
|
+
openspec view # 互動式儀表板
|
|
107
|
+
openspec status # 顯示產物完成進度
|
|
108
|
+
openspec instructions # 取得建立產物的增強指引
|
|
109
|
+
openspec templates # 顯示已解析的範本路徑
|
|
110
|
+
|
|
111
|
+
# Schema 管理
|
|
112
|
+
openspec schemas # 列出可用的工作流程 schema
|
|
113
|
+
openspec schema init # 初始化新 schema
|
|
114
|
+
openspec schema fork # 分叉現有 schema
|
|
115
|
+
openspec schema validate # 驗證 schema
|
|
116
|
+
openspec schema which # 顯示使用中的 schema
|
|
104
117
|
|
|
105
118
|
# 專案管理
|
|
106
119
|
openspec init [path] # 初始化 OpenSpec
|
|
107
120
|
openspec update [path] # 更新指令檔案
|
|
121
|
+
openspec config # 管理設定
|
|
108
122
|
|
|
109
123
|
# 互動模式
|
|
110
124
|
openspec show # 提示選擇
|
|
@@ -113,6 +127,10 @@ openspec validate # 批量驗證模式
|
|
|
113
127
|
# 除錯
|
|
114
128
|
openspec show [change] --json --deltas-only
|
|
115
129
|
openspec validate [change] --strict
|
|
130
|
+
|
|
131
|
+
# 工具
|
|
132
|
+
openspec completion # Shell 整合支援
|
|
133
|
+
openspec feedback # 透過 GitHub 提交回饋
|
|
116
134
|
```
|
|
117
135
|
|
|
118
136
|
### 指令標誌
|
|
@@ -123,6 +141,13 @@ openspec validate [change] --strict
|
|
|
123
141
|
- `--no-interactive` - 停用提示
|
|
124
142
|
- `--skip-specs` - 封存時不更新規格
|
|
125
143
|
- `--yes`/`-y` - 跳過確認提示(非互動封存)
|
|
144
|
+
- `--no-validate` - 封存時不執行驗證
|
|
145
|
+
- `--sort` - 列表輸出排序
|
|
146
|
+
- `--profile` - 指定初始化設定檔
|
|
147
|
+
- `--requirements` / `--no-scenarios` / `-r` - 過濾 show 輸出
|
|
148
|
+
- `--all` / `--changes` / `--specs` - 過濾驗證範圍
|
|
149
|
+
- `--concurrency` - 平行驗證並發數
|
|
150
|
+
- `--schema` - 指定 status/instructions/templates 的 schema
|
|
126
151
|
|
|
127
152
|
## 目錄結構
|
|
128
153
|
|
|
@@ -1,47 +1,75 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../integrations/spec-kit/AGENTS.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Spec Kit 指令
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
> **語言**: [English](../../../../integrations/spec-kit/AGENTS.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.1.0
|
|
14
|
+
**最後更新**: 2026-03-23
|
|
15
|
+
|
|
16
|
+
為使用 Spec Kit 進行規格驅動開發的 AI 程式助手提供指引。
|
|
12
17
|
|
|
13
18
|
## 使用方式
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
將此檔案複製到您的專案中,或納入您的 AI 助手系統指令。
|
|
16
21
|
|
|
17
22
|
---
|
|
18
23
|
|
|
19
24
|
## 使用 Spec Kit 進行規格驅動開發
|
|
20
25
|
|
|
21
|
-
|
|
26
|
+
當 Spec Kit 在此專案中啟用時,您必須遵循**規格驅動開發 (SDD)** 方法論。
|
|
22
27
|
|
|
23
|
-
###
|
|
28
|
+
### 核心原則:先規格,後程式碼
|
|
24
29
|
|
|
25
|
-
|
|
30
|
+
**規則**:在沒有對應已核准規格的情況下,不得進行任何功能性程式碼變更。
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
32
|
+
**例外**:
|
|
33
|
+
- 緊急修復(立即恢復服務,事後補文件)
|
|
34
|
+
- 微小變更(錯字、註解、格式調整)
|
|
30
35
|
|
|
31
36
|
---
|
|
32
37
|
|
|
33
38
|
## Spec Kit 指令
|
|
34
39
|
|
|
35
|
-
|
|
40
|
+
### CLI 指令
|
|
36
41
|
|
|
37
42
|
| 指令 | 說明 |
|
|
38
43
|
|------|------|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
|
44
|
+
| `specify init <project-name>` | 初始化新的 SDD 專案 |
|
|
45
|
+
| `specify check` | 驗證已安裝的工具(git、AI agents) |
|
|
46
|
+
|
|
47
|
+
**Init 選項:**
|
|
48
|
+
|
|
49
|
+
| 旗標 | 說明 |
|
|
50
|
+
|------|------|
|
|
51
|
+
| `--ai <agent>` | 選擇 AI 助手(claude、gemini、copilot、cursor-agent、windsurf 等) |
|
|
52
|
+
| `--ai-skills` | 以 agent skills 而非斜線指令安裝 |
|
|
53
|
+
| `--here` | 在目前目錄中初始化 |
|
|
54
|
+
| `--force` | 合併時跳過確認 |
|
|
55
|
+
| `--script ps` | PowerShell 腳本(Windows/跨平台) |
|
|
56
|
+
| `--no-git` | 跳過 git 儲存庫初始化 |
|
|
57
|
+
| `--debug` | 啟用詳細輸出 |
|
|
58
|
+
| `--branch-numbering timestamp` | 使用時間戳記式分支命名 |
|
|
59
|
+
|
|
60
|
+
### 斜線指令(工作流程)
|
|
61
|
+
|
|
62
|
+
當 Spec Kit 可用時,使用以下斜線指令進行 SDD 工作流程:
|
|
63
|
+
|
|
64
|
+
| 指令 | 階段 | 說明 |
|
|
65
|
+
|------|------|------|
|
|
66
|
+
| `/constitution` | 設定 | 建立專案治理原則 |
|
|
67
|
+
| `/specify` | 提案 | 定義需求與使用者故事 |
|
|
68
|
+
| `/clarify` | 討論 | 透過結構化問題解決規格歧義 |
|
|
69
|
+
| `/plan` | 設計 | 建立技術實作計畫 |
|
|
70
|
+
| `/tasks` | 規劃 | 產生可執行的任務分解 |
|
|
71
|
+
| `/analyze` | 審查 | 檢查跨產物的一致性 |
|
|
72
|
+
| `/implement` | 實作 | 執行任務以建構功能 |
|
|
45
73
|
|
|
46
74
|
### 指令優先順序
|
|
47
75
|
|
|
@@ -49,7 +77,7 @@ status: current
|
|
|
49
77
|
|
|
50
78
|
**理由**:
|
|
51
79
|
- **一致性**:確保規格結構遵循 schema
|
|
52
|
-
- **可追溯性**:自動產生 ID
|
|
80
|
+
- **可追溯性**:自動產生 ID 與建立連結
|
|
53
81
|
- **驗證**:內建檢查防止無效狀態
|
|
54
82
|
|
|
55
83
|
---
|
|
@@ -57,118 +85,160 @@ status: current
|
|
|
57
85
|
## SDD 工作流程
|
|
58
86
|
|
|
59
87
|
```
|
|
60
|
-
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
61
|
-
│
|
|
62
|
-
└──────────────┘ └──────────────┘ └──────────────┘
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
88
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
89
|
+
│ Constitution │───▶│ Specify │───▶│ Clarify │
|
|
90
|
+
└──────────────┘ └──────────────┘ └──────────────┘
|
|
91
|
+
│
|
|
92
|
+
┌──────────────┐ ┌───────▼──────┐
|
|
93
|
+
│ Implement │◀───│ Plan/Tasks │
|
|
94
|
+
└──────────────┘ └──────────────┘
|
|
95
|
+
│
|
|
96
|
+
┌──────▼───────┐
|
|
97
|
+
│ Analyze │
|
|
98
|
+
└──────────────┘
|
|
68
99
|
```
|
|
69
100
|
|
|
70
101
|
### 工作流程階段
|
|
71
102
|
|
|
72
|
-
| 階段 | 說明 |
|
|
103
|
+
| 階段 | 說明 | 指令 |
|
|
73
104
|
|------|------|------|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
105
|
+
| **Constitution** | 定義專案治理原則 | `/constitution` |
|
|
106
|
+
| **Specify** | 定義需求與使用者故事 | `/specify` |
|
|
107
|
+
| **Clarify** | 透過結構化問題解決歧義 | `/clarify` |
|
|
108
|
+
| **Plan** | 建立技術實作計畫 | `/plan` |
|
|
109
|
+
| **Tasks** | 產生可執行的任務分解 | `/tasks` |
|
|
110
|
+
| **Implement** | 執行任務以建構功能 | `/implement` |
|
|
111
|
+
| **Analyze** | 檢查跨產物的一致性 | `/analyze` |
|
|
80
112
|
|
|
81
113
|
---
|
|
82
114
|
|
|
83
|
-
##
|
|
115
|
+
## 工作流程強制閘門
|
|
116
|
+
|
|
117
|
+
**重要**:在執行任何工作流程階段之前,你**必須**檢查先決條件。
|
|
118
|
+
|
|
119
|
+
### 階段閘門
|
|
120
|
+
|
|
121
|
+
| 階段 | 先決條件 | 失敗時 |
|
|
122
|
+
|------|----------|--------|
|
|
123
|
+
| Specify | Constitution 已建立(首次時) | → 先執行 `/constitution` |
|
|
124
|
+
| Plan | 需求已透過 `/specify` 定義 | → 先執行 `/specify` |
|
|
125
|
+
| Implement | 計畫已核准、任務已產生 | → 先執行 `/plan` 再執行 `/tasks` |
|
|
126
|
+
| Commit (feat/fix) | 檢查作用中的規格 | → 建議加上 `Refs: SPEC-XXX` |
|
|
127
|
+
|
|
128
|
+
### 會話啟動協定
|
|
129
|
+
在會話開始時,檢查是否有作用中的工作流程:尋找 `.specify/` 目錄或作用中的規格檔案。
|
|
130
|
+
若發現作用中的工作流程 → 告知使用者並提供繼續的選項。
|
|
84
131
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
132
|
+
參考:`.standards/workflow-enforcement.ai.yaml`
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 執行任何任務之前
|
|
137
|
+
|
|
138
|
+
**情境檢查清單**:
|
|
139
|
+
- [ ] 檢查作用中的規格:尋找 `.specify/` 目錄
|
|
140
|
+
- [ ] 在進行變更前審查相關規格
|
|
141
|
+
- [ ] 確認沒有衝突的規格存在
|
|
142
|
+
- [ ] 若變更非微小則建立規格
|
|
90
143
|
|
|
91
144
|
**可跳過規格的情況**:
|
|
92
|
-
-
|
|
145
|
+
- Bug 修復(恢復預期行為)
|
|
93
146
|
- 錯字、格式、註解
|
|
94
|
-
-
|
|
95
|
-
-
|
|
147
|
+
- 相依性更新(非破壞性)
|
|
148
|
+
- 設定檔變更
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 目錄結構
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
.specify/
|
|
156
|
+
├── templates/ # 核心 spec-kit 範本
|
|
157
|
+
├── extensions/
|
|
158
|
+
│ └── <ext-id>/templates/ # 擴充套件範本
|
|
159
|
+
├── presets/
|
|
160
|
+
│ └── <preset-id>/templates/ # 預設客製化
|
|
161
|
+
└── templates/overrides/ # 專案本地覆寫(最高優先)
|
|
162
|
+
```
|
|
96
163
|
|
|
97
164
|
---
|
|
98
165
|
|
|
99
166
|
## 規格文件範本
|
|
100
167
|
|
|
101
|
-
|
|
168
|
+
手動建立規格時,請使用以下結構:
|
|
102
169
|
|
|
103
170
|
```markdown
|
|
104
171
|
# [SPEC-ID] 功能標題
|
|
105
172
|
|
|
106
173
|
## 摘要
|
|
107
|
-
|
|
174
|
+
簡要描述提議的變更。
|
|
108
175
|
|
|
109
176
|
## 動機
|
|
110
|
-
|
|
177
|
+
為何需要此變更?它解決什麼問題?
|
|
111
178
|
|
|
112
179
|
## 詳細設計
|
|
113
|
-
|
|
180
|
+
技術方案、受影響的元件、資料流。
|
|
114
181
|
|
|
115
182
|
## 驗收標準
|
|
116
183
|
- [ ] 標準 1
|
|
117
184
|
- [ ] 標準 2
|
|
118
185
|
|
|
119
|
-
##
|
|
120
|
-
|
|
186
|
+
## 相依性
|
|
187
|
+
列出對其他規格或外部系統的相依性。
|
|
121
188
|
|
|
122
189
|
## 風險
|
|
123
|
-
|
|
190
|
+
潛在風險與緩解策略。
|
|
124
191
|
```
|
|
125
192
|
|
|
126
193
|
---
|
|
127
194
|
|
|
128
|
-
##
|
|
195
|
+
## 與 Universal Dev Standards 整合
|
|
129
196
|
|
|
130
|
-
###
|
|
197
|
+
### 提交訊息
|
|
131
198
|
|
|
132
|
-
|
|
199
|
+
在提交訊息中引用規格 ID:
|
|
133
200
|
|
|
134
201
|
```
|
|
135
|
-
feat(auth):
|
|
202
|
+
feat(auth): implement login feature
|
|
136
203
|
|
|
137
|
-
|
|
204
|
+
Implements SPEC-001 login functionality with OAuth2 support.
|
|
138
205
|
|
|
139
206
|
Refs: SPEC-001
|
|
140
207
|
```
|
|
141
208
|
|
|
142
209
|
### 程式碼審查
|
|
143
210
|
|
|
144
|
-
|
|
145
|
-
- [ ]
|
|
146
|
-
- [ ]
|
|
211
|
+
審查者應驗證:
|
|
212
|
+
- [ ] 變更符合已核准的規格
|
|
213
|
+
- [ ] 未超出規格範圍
|
|
147
214
|
- [ ] 規格驗收標準已達成
|
|
148
215
|
|
|
149
216
|
---
|
|
150
217
|
|
|
151
218
|
## 最佳實踐
|
|
152
219
|
|
|
153
|
-
###
|
|
154
|
-
|
|
155
|
-
-
|
|
220
|
+
### 應做
|
|
221
|
+
|
|
222
|
+
- 保持規格聚焦且原子化(每個規格一個變更)
|
|
223
|
+
- 包含明確的驗收標準
|
|
156
224
|
- 將規格連結到實作 PR
|
|
225
|
+
- 使用 `/analyze` 驗證一致性
|
|
157
226
|
- 完成後封存規格
|
|
158
227
|
|
|
159
|
-
###
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
228
|
+
### 不應做
|
|
229
|
+
|
|
230
|
+
- 在規格核准前開始寫程式
|
|
231
|
+
- 在實作期間修改範圍卻未更新規格
|
|
232
|
+
- 讓規格處於未決狀態(應始終關閉或封存)
|
|
233
|
+
- 在需求模糊時跳過 `/clarify` 步驟
|
|
164
234
|
|
|
165
235
|
---
|
|
166
236
|
|
|
167
237
|
## 相關標準
|
|
168
238
|
|
|
169
|
-
- [規格驅動開發](
|
|
170
|
-
- [
|
|
171
|
-
- [程式碼簽入標準](
|
|
239
|
+
- [規格驅動開發](../../../../core/spec-driven-development.md) - SDD 方法論
|
|
240
|
+
- [提交訊息指南](../../../../core/commit-message-guide.md) - 提交慣例
|
|
241
|
+
- [程式碼簽入標準](../../../../core/checkin-standards.md) - 簽入要求
|
|
172
242
|
|
|
173
243
|
---
|
|
174
244
|
|
|
@@ -176,10 +246,11 @@ Refs: SPEC-001
|
|
|
176
246
|
|
|
177
247
|
| 版本 | 日期 | 變更 |
|
|
178
248
|
|------|------|------|
|
|
249
|
+
| 1.1.0 | 2026-03-23 | 更新以反映 Spec Kit v0.4.0 實際的 CLI 指令與斜線指令 |
|
|
179
250
|
| 1.0.0 | 2025-12-30 | 初始 Spec Kit 整合 |
|
|
180
251
|
|
|
181
252
|
---
|
|
182
253
|
|
|
183
|
-
##
|
|
254
|
+
## 授權條款
|
|
184
255
|
|
|
185
|
-
|
|
256
|
+
本文件依 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權釋出。
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/ac-coverage-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: "[UDS] 分析 AC 與測試的追蹤關係及覆蓋率"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# AC 覆蓋率助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/ac-coverage-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
分析驗收條件(AC)與測試之間的追蹤關係,並產生覆蓋率報告。
|
|
15
|
+
|
|
16
|
+
## 與 `/coverage` 的區別
|
|
17
|
+
|
|
18
|
+
| 面向 | `/coverage` | `/ac-coverage` |
|
|
19
|
+
|------|-------------|----------------|
|
|
20
|
+
| **範圍** | 程式碼層級(行/分支/函式) | 需求層級(AC 對測試) |
|
|
21
|
+
| **輸入** | 原始碼 + 測試執行器 | SPEC 檔案 + 測試標註 |
|
|
22
|
+
| **問題** | 「有多少程式碼被測試?」 | 「哪些 AC 有測試?」 |
|
|
23
|
+
| **輸出** | 覆蓋率百分比 | 追蹤矩陣 + 缺口報告 |
|
|
24
|
+
|
|
25
|
+
## 工作流程
|
|
26
|
+
|
|
27
|
+
1. **解析 SPEC** — 從規格檔案中擷取 AC 定義(AC-1、AC-2、...)
|
|
28
|
+
2. **掃描測試** — 使用標準連結慣例搜尋測試檔案中的 `@AC` 和 `@SPEC` 標註
|
|
29
|
+
3. **建立矩陣** — 將每個 AC 對應到其測試參考(檔案、測試名稱、行號)
|
|
30
|
+
4. **分類狀態** — 將每個 AC 標記為 ✅ 已覆蓋、⚠️ 部分覆蓋 或 ❌ 未覆蓋
|
|
31
|
+
5. **計算覆蓋率** — 套用公式:`覆蓋率 % = (已覆蓋 + 部分 × 0.5) / 總計 × 100`
|
|
32
|
+
6. **產生報告** — 輸出標準化 Markdown 報告
|
|
33
|
+
|
|
34
|
+
## 標註慣例
|
|
35
|
+
|
|
36
|
+
測試必須使用標準標註來參考其來源 AC:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
// TypeScript/JavaScript
|
|
40
|
+
describe('AC-1: 使用有效憑證登入', () => {
|
|
41
|
+
// @AC AC-1
|
|
42
|
+
// @SPEC SPEC-001
|
|
43
|
+
it('成功登入後應重導至儀表板', () => { ... });
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
# Python
|
|
49
|
+
class TestAC1_UserLogin:
|
|
50
|
+
"""AC-1: 使用有效憑證登入
|
|
51
|
+
@AC AC-1
|
|
52
|
+
@SPEC SPEC-001
|
|
53
|
+
"""
|
|
54
|
+
def test_redirect_to_dashboard(self): ...
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```gherkin
|
|
58
|
+
# BDD Feature
|
|
59
|
+
@SPEC-001 @AC-1
|
|
60
|
+
Scenario: 使用有效憑證登入
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## 覆蓋率門檻
|
|
64
|
+
|
|
65
|
+
| 門檻 | 預設值 | 強制執行 |
|
|
66
|
+
|------|--------|----------|
|
|
67
|
+
| **提交時** | 80% | 功能分支合併必要條件 |
|
|
68
|
+
| **發布時** | 100% | 正式發布必要條件 |
|
|
69
|
+
| **警告** | 60% | 觸發覆蓋率警告 |
|
|
70
|
+
|
|
71
|
+
門檻可透過 `--threshold` 參數或專案設定進行配置。
|
|
72
|
+
|
|
73
|
+
## 報告格式
|
|
74
|
+
|
|
75
|
+
產生的報告遵循 `core/acceptance-criteria-traceability.md` 中的標準格式:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
# AC 覆蓋率報告
|
|
79
|
+
|
|
80
|
+
**規格**: SPEC-001 — 功能名稱
|
|
81
|
+
**產生日期**: 2026-03-24
|
|
82
|
+
**覆蓋率**: 75% (6/8 AC)
|
|
83
|
+
|
|
84
|
+
## 摘要
|
|
85
|
+
|
|
86
|
+
| 狀態 | 數量 | 百分比 |
|
|
87
|
+
|------|------|--------|
|
|
88
|
+
| ✅ 已覆蓋 | 5 | 62.5% |
|
|
89
|
+
| ⚠️ 部分覆蓋 | 2 | 25.0% |
|
|
90
|
+
| ❌ 未覆蓋 | 1 | 12.5% |
|
|
91
|
+
|
|
92
|
+
## 追蹤矩陣
|
|
93
|
+
|
|
94
|
+
| AC-ID | 描述 | 狀態 | 測試參考 |
|
|
95
|
+
|-------|------|------|----------|
|
|
96
|
+
| AC-1 | 使用有效憑證登入 | ✅ | auth.test.ts:15 |
|
|
97
|
+
| AC-2 | 拒絕無效憑證 | ✅ | auth.test.ts:32 |
|
|
98
|
+
| ... | ... | ... | ... |
|
|
99
|
+
|
|
100
|
+
## 缺口
|
|
101
|
+
|
|
102
|
+
- **AC-8**: 社群登入 — 受 OAuth 沙盒環境限制
|
|
103
|
+
|
|
104
|
+
## 待辦事項
|
|
105
|
+
|
|
106
|
+
1. [ ] AC-8: 建立 OAuth 沙盒環境(預計完成:待定)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## 使用方式
|
|
110
|
+
|
|
111
|
+
- `/ac-coverage` - 分析當前專案的 AC 覆蓋率
|
|
112
|
+
- `/ac-coverage path/to/SPEC.md` - 分析特定規格檔案的 AC 覆蓋率
|
|
113
|
+
|
|
114
|
+
## 下一步引導
|
|
115
|
+
|
|
116
|
+
`/ac-coverage` 完成後,AI 助手應建議:
|
|
117
|
+
|
|
118
|
+
> **AC 覆蓋率分析完成。建議下一步:**
|
|
119
|
+
> - 覆蓋率達標 → 執行 `/checkin` 通過品質關卡
|
|
120
|
+
> - 有未覆蓋 AC → 執行 `/derive-tdd` 補齊測試
|
|
121
|
+
> - 有部分覆蓋 AC → 檢查缺少的邊界情況
|
|
122
|
+
|
|
123
|
+
## 參考
|
|
124
|
+
|
|
125
|
+
- 核心規範:[acceptance-criteria-traceability.md](../../../../core/acceptance-criteria-traceability.md)
|
|
126
|
+
- 相關:[test-coverage-assistant](../test-coverage-assistant/SKILL.md)(程式碼層級覆蓋率)
|
|
127
|
+
- 相關:[checkin-assistant](../checkin-assistant/SKILL.md)(品質關卡)
|
|
@@ -5,10 +5,7 @@ translation_version: 1.0.0
|
|
|
5
5
|
last_synced: 2026-02-05
|
|
6
6
|
status: current
|
|
7
7
|
scope: uds-specific
|
|
8
|
-
description:
|
|
9
|
-
設計 AI 友善架構,包含明確模式、分層文件和語義邊界。
|
|
10
|
-
使用時機:為 AI 協作規劃專案結構、優化程式碼庫以利 AI 分析、設定 AI 上下文。
|
|
11
|
-
關鍵字:architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml, 架構, AI 友善, 上下文.
|
|
8
|
+
description: "[UDS] 設計 AI 友善架構,包含明確模式、分層文件和語義邊界"
|
|
12
9
|
---
|
|
13
10
|
|
|
14
11
|
# AI 友善架構指南
|
|
@@ -5,10 +5,7 @@ translation_version: 1.0.0
|
|
|
5
5
|
last_synced: 2026-02-05
|
|
6
6
|
status: current
|
|
7
7
|
scope: partial
|
|
8
|
-
description:
|
|
9
|
-
建立和維護 AI 指令檔案(CLAUDE.md、.cursorrules 等)並採用適當結構。
|
|
10
|
-
使用時機:建立 AI 指令檔案、區分通用與專案特定規則、配置 AI 工具。
|
|
11
|
-
關鍵字:CLAUDE.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt, 指令檔案, AI 設定.
|
|
8
|
+
description: "[UDS] 建立和維護 AI 指令檔案(CLAUDE.md、.cursorrules 等)並採用適當結構"
|
|
12
9
|
---
|
|
13
10
|
|
|
14
11
|
# AI 指令檔案標準指南
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/api-design-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
description: "[UDS] 引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# API 設計助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/api-design-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐。
|
|
15
|
+
|
|
16
|
+
## 快速參考 — REST 慣例
|
|
17
|
+
|
|
18
|
+
### HTTP 方法
|
|
19
|
+
|
|
20
|
+
| 方法 | 用途 | 冪等性 |
|
|
21
|
+
|------|------|--------|
|
|
22
|
+
| GET | 讀取資源 | 是 |
|
|
23
|
+
| POST | 建立資源 | 否 |
|
|
24
|
+
| PUT | 替換資源 | 是 |
|
|
25
|
+
| PATCH | 部分更新 | 否 |
|
|
26
|
+
| DELETE | 刪除資源 | 是 |
|
|
27
|
+
|
|
28
|
+
### 狀態碼
|
|
29
|
+
|
|
30
|
+
| 代碼 | 說明 |
|
|
31
|
+
|------|------|
|
|
32
|
+
| 200 | 成功 |
|
|
33
|
+
| 201 | 已建立 |
|
|
34
|
+
| 204 | 無內容(刪除成功) |
|
|
35
|
+
| 400 | 請求格式錯誤 |
|
|
36
|
+
| 401 | 未認證 |
|
|
37
|
+
| 403 | 無權限 |
|
|
38
|
+
| 404 | 資源不存在 |
|
|
39
|
+
| 409 | 資源衝突 |
|
|
40
|
+
| 422 | 驗證失敗 |
|
|
41
|
+
| 429 | 請求過多(限流) |
|
|
42
|
+
| 500 | 伺服器內部錯誤 |
|
|
43
|
+
|
|
44
|
+
### URL 命名規則
|
|
45
|
+
|
|
46
|
+
| 模式 | 範例 | 說明 |
|
|
47
|
+
|------|------|------|
|
|
48
|
+
| 集合 | `/users` | 資源集合 |
|
|
49
|
+
| 單一資源 | `/users/{id}` | 單一資源 |
|
|
50
|
+
| 子資源 | `/users/{id}/orders` | 子資源 |
|
|
51
|
+
| 動作 | `/users/{id}/activate` | 動作(僅限 POST) |
|
|
52
|
+
|
|
53
|
+
## 設計工作流程
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
DEFINE ──► DESIGN ──► VALIDATE ──► DOCUMENT
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 1. Define — 定義需求
|
|
60
|
+
釐清使用者、使用情境、資料模型和非功能性需求。
|
|
61
|
+
|
|
62
|
+
### 2. Design — 設計端點
|
|
63
|
+
套用 RESTful 慣例、定義請求/回應 Schema、規劃版本策略。
|
|
64
|
+
|
|
65
|
+
### 3. Validate — 驗證一致性
|
|
66
|
+
檢查命名一致性、錯誤格式統一、分頁模式。
|
|
67
|
+
|
|
68
|
+
### 4. Document — 產生文件
|
|
69
|
+
產出 OpenAPI/Swagger 規格或 GraphQL Schema 文件。
|
|
70
|
+
|
|
71
|
+
## 版本策略
|
|
72
|
+
|
|
73
|
+
| 策略 | 範例 | 優點 |
|
|
74
|
+
|------|------|------|
|
|
75
|
+
| URL 路徑 | `/v1/users` | 簡單、明確 |
|
|
76
|
+
| Header | `Accept: application/vnd.api+json;v=1` | URL 乾淨 |
|
|
77
|
+
| Query | `/users?version=1` | 容易測試 |
|
|
78
|
+
|
|
79
|
+
## 使用方式
|
|
80
|
+
|
|
81
|
+
- `/api-design` - 互動式 API 設計引導
|
|
82
|
+
- `/api-design /users` - 審查特定端點設計
|
|
83
|
+
- `/api-design --graphql` - GraphQL Schema 設計引導
|
|
84
|
+
|
|
85
|
+
## 下一步引導
|
|
86
|
+
|
|
87
|
+
`/api-design` 完成後,AI 助手應建議:
|
|
88
|
+
|
|
89
|
+
> **API 設計完成。建議下一步:**
|
|
90
|
+
> - 執行 `/sdd` 建立正式規格文件
|
|
91
|
+
> - 執行 `/testing` 規劃 API 測試策略
|
|
92
|
+
> - 執行 `/docs` 產生 API 文件
|
|
93
|
+
> - 審查安全性 → 執行 `/security`
|
|
94
|
+
|
|
95
|
+
## 參考
|
|
96
|
+
|
|
97
|
+
- 核心規範:[api-design-standards.md](../../../../core/api-design-standards.md)
|
|
@@ -4,10 +4,7 @@ source_version: 1.0.0
|
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
引導驗收測試驅動開發(ATDD)流程,用於定義和驗證使用者故事。
|
|
9
|
-
使用時機:定義驗收條件、使用者故事驗證、ATDD 流程。
|
|
10
|
-
關鍵字:atdd, acceptance, user story, INVEST, 驗收測試, 使用者故事, 驗收條件。
|
|
7
|
+
description: "[UDS] 引導驗收測試驅動開發(ATDD)流程,用於定義和驗證使用者故事"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# ATDD 助手
|
|
@@ -4,10 +4,7 @@ source_version: 1.0.0
|
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2026-03-04
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
UDS 健康檢查與回饋系統。診斷安裝完整性、偵測開發模式、識別摩擦點。
|
|
9
|
-
使用時機:檢查 UDS 安裝、回報問題、發現規範化機會。
|
|
10
|
-
關鍵字:audit, health, pattern, friction, feedback, 審計, 健康, 模式, 摩擦, 回饋。
|
|
7
|
+
description: "[UDS] UDS 健康檢查與回饋系統,診斷安裝完整性與偵測開發模式"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 審計助手
|
|
@@ -4,10 +4,7 @@ source_version: 1.0.0
|
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景。
|
|
9
|
-
使用時機:定義行為場景、撰寫 Gherkin、三劍客會議、BDD 流程。
|
|
10
|
-
關鍵字:bdd, gherkin, given-when-then, scenario, feature, 行為驅動, 場景, 驗收。
|
|
7
|
+
description: "[UDS] 引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式撰寫場景"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# BDD 助手
|