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,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ac-coverage
|
|
3
|
+
scope: universal
|
|
4
|
+
description: "[UDS] Analyze AC-to-test traceability and coverage"
|
|
5
|
+
allowed-tools: Read, Grep, Glob
|
|
6
|
+
argument-hint: "[spec file path | 規格檔案路徑]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# AC Coverage Assistant | AC 覆蓋率助手
|
|
10
|
+
|
|
11
|
+
Analyze Acceptance Criteria (AC) to test traceability and generate coverage reports.
|
|
12
|
+
|
|
13
|
+
分析驗收條件(AC)與測試之間的追蹤關係,並產生覆蓋率報告。
|
|
14
|
+
|
|
15
|
+
## What This Does vs `/coverage` | 與 `/coverage` 的區別
|
|
16
|
+
|
|
17
|
+
| Aspect | `/coverage` | `/ac-coverage` |
|
|
18
|
+
|--------|-------------|----------------|
|
|
19
|
+
| **Scope** | Code-level (line/branch/function) | Requirement-level (AC-to-test) |
|
|
20
|
+
| **Input** | Source code + test runner | SPEC file + test annotations |
|
|
21
|
+
| **Question** | "How much code is tested?" | "Which AC have tests?" |
|
|
22
|
+
| **Output** | Coverage percentages | Traceability matrix + gap report |
|
|
23
|
+
|
|
24
|
+
## Workflow | 工作流程
|
|
25
|
+
|
|
26
|
+
1. **Parse SPEC** — Extract AC definitions (AC-1, AC-2, ...) from the specification file
|
|
27
|
+
2. **Scan Tests** — Search test files for `@AC` and `@SPEC` annotations using standard linking conventions
|
|
28
|
+
3. **Build Matrix** — Map each AC to its test references (file, test name, line)
|
|
29
|
+
4. **Classify Status** — Mark each AC as ✅ covered, ⚠️ partial, or ❌ uncovered
|
|
30
|
+
5. **Calculate Coverage** — Apply formula: `Coverage % = (covered + partial × 0.5) / total × 100`
|
|
31
|
+
6. **Generate Report** — Output standardized Markdown report
|
|
32
|
+
|
|
33
|
+
## Linking Convention | 標註慣例
|
|
34
|
+
|
|
35
|
+
Tests MUST reference their source AC using standard annotations:
|
|
36
|
+
|
|
37
|
+
```typescript
|
|
38
|
+
// TypeScript/JavaScript
|
|
39
|
+
describe('AC-1: User login with valid credentials', () => {
|
|
40
|
+
// @AC AC-1
|
|
41
|
+
// @SPEC SPEC-001
|
|
42
|
+
it('should redirect to dashboard on successful login', () => { ... });
|
|
43
|
+
});
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
# Python
|
|
48
|
+
class TestAC1_UserLogin:
|
|
49
|
+
"""AC-1: User login with valid credentials
|
|
50
|
+
@AC AC-1
|
|
51
|
+
@SPEC SPEC-001
|
|
52
|
+
"""
|
|
53
|
+
def test_redirect_to_dashboard(self): ...
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```gherkin
|
|
57
|
+
# BDD Feature
|
|
58
|
+
@SPEC-001 @AC-1
|
|
59
|
+
Scenario: User login with valid credentials
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Coverage Thresholds | 覆蓋率門檻
|
|
63
|
+
|
|
64
|
+
| Threshold | Default Value | Enforcement |
|
|
65
|
+
|-----------|---------------|-------------|
|
|
66
|
+
| **Check-in** | 80% | Required for feature branch merge |
|
|
67
|
+
| **Release** | 100% | Required for production release |
|
|
68
|
+
| **Warning** | 60% | Triggers coverage warning |
|
|
69
|
+
|
|
70
|
+
Thresholds are configurable via `--threshold` parameter or project configuration.
|
|
71
|
+
|
|
72
|
+
## Report Format | 報告格式
|
|
73
|
+
|
|
74
|
+
The generated report follows the standard format from `core/acceptance-criteria-traceability.md`:
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
# AC Coverage Report
|
|
78
|
+
|
|
79
|
+
**Specification**: SPEC-001 — Feature Name
|
|
80
|
+
**Generated**: 2026-03-18
|
|
81
|
+
**Coverage**: 75% (6/8 AC)
|
|
82
|
+
|
|
83
|
+
## Summary
|
|
84
|
+
|
|
85
|
+
| Status | Count | Percentage |
|
|
86
|
+
|--------|-------|------------|
|
|
87
|
+
| ✅ Covered | 5 | 62.5% |
|
|
88
|
+
| ⚠️ Partial | 2 | 25.0% |
|
|
89
|
+
| ❌ Uncovered | 1 | 12.5% |
|
|
90
|
+
|
|
91
|
+
## Traceability Matrix
|
|
92
|
+
|
|
93
|
+
| AC-ID | Description | Status | Test Reference |
|
|
94
|
+
|-------|-------------|--------|----------------|
|
|
95
|
+
| AC-1 | Login with valid credentials | ✅ | auth.test.ts:15 |
|
|
96
|
+
| AC-2 | Reject invalid credentials | ✅ | auth.test.ts:32 |
|
|
97
|
+
| ... | ... | ... | ... |
|
|
98
|
+
|
|
99
|
+
## Gaps
|
|
100
|
+
- **AC-8**: Social login — Blocked by OAuth sandbox
|
|
101
|
+
|
|
102
|
+
## Action Items
|
|
103
|
+
1. [ ] AC-8: Set up OAuth sandbox (ETA: TBD)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Next Steps Guidance | 下一步引導
|
|
107
|
+
|
|
108
|
+
After `/ac-coverage` completes, the AI assistant should suggest:
|
|
109
|
+
|
|
110
|
+
> **AC 覆蓋率分析完成。建議下一步 / AC coverage analysis complete. Suggested next steps:**
|
|
111
|
+
> - 覆蓋率達標 → 執行 `/checkin` 品質關卡 — Coverage meets threshold → Run `/checkin` quality gates
|
|
112
|
+
> - 有未覆蓋 AC → 執行 `/derive-tdd` 補齊測試 — Uncovered AC found → Run `/derive-tdd` to add tests
|
|
113
|
+
> - 有部分覆蓋 AC → 檢查缺少的邊界情況 — Partial AC → Review missing edge cases
|
|
114
|
+
|
|
115
|
+
## Reference | 參考
|
|
116
|
+
|
|
117
|
+
- Core standard: [acceptance-criteria-traceability.md](../../core/acceptance-criteria-traceability.md)
|
|
118
|
+
- SPEC: [SPEC-AC-COVERAGE.md](../../docs/specs/skills/SPEC-AC-COVERAGE.md)
|
|
119
|
+
- Related: [test-coverage-assistant](../test-coverage-assistant/SKILL.md) (code-level coverage)
|
|
120
|
+
- Related: [checkin-assistant](../checkin-assistant/SKILL.md) (quality gates)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## AI Agent Behavior | AI 代理行為
|
|
124
|
+
|
|
125
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/ac-coverage`](../commands/ac-coverage.md#ai-agent-behavior--ai-代理行為)
|
|
126
|
+
>
|
|
127
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/ac-coverage`](../commands/ac-coverage.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -16,6 +16,16 @@ description: |
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
+
## AI Skills Hierarchy | AI 技能層級
|
|
20
|
+
|
|
21
|
+
This skill is part of a three-layer AI collaboration system:
|
|
22
|
+
|
|
23
|
+
| Layer | Skill | Question it Answers | 回答的問題 |
|
|
24
|
+
|-------|-------|-------------------|-----------|
|
|
25
|
+
| **Behavior** (Immediate) | `/ai-collaboration` (this) | "How should AI respond accurately?" | 「AI 如何準確回應?」 |
|
|
26
|
+
| **Configuration** (Session) | `/ai-instruction-standards` | "What to write in CLAUDE.md?" | 「CLAUDE.md 該寫什麼?」 |
|
|
27
|
+
| **Architecture** (Long-term) | `/ai-friendly-architecture` | "How to structure code for AI?" | 「如何讓專案對 AI 友善?」 |
|
|
28
|
+
|
|
19
29
|
## Purpose
|
|
20
30
|
|
|
21
31
|
This skill ensures AI assistants provide accurate, evidence-based responses without hallucination.
|
|
@@ -18,6 +18,16 @@ description: |
|
|
|
18
18
|
|
|
19
19
|
> **Core Standard**: This skill implements [AI-Friendly Architecture](../../core/ai-friendly-architecture.md). For comprehensive methodology documentation, refer to the core standard.
|
|
20
20
|
|
|
21
|
+
## AI Skills Hierarchy | AI 技能層級
|
|
22
|
+
|
|
23
|
+
This skill is part of a three-layer AI collaboration system:
|
|
24
|
+
|
|
25
|
+
| Layer | Skill | Question it Answers | 回答的問題 |
|
|
26
|
+
|-------|-------|-------------------|-----------|
|
|
27
|
+
| **Behavior** (Immediate) | `/ai-collaboration` | "How should AI respond accurately?" | 「AI 如何準確回應?」 |
|
|
28
|
+
| **Configuration** (Session) | `/ai-instruction-standards` | "What to write in CLAUDE.md?" | 「CLAUDE.md 該寫什麼?」 |
|
|
29
|
+
| **Architecture** (Long-term) | `/ai-friendly-architecture` (this) | "How to structure code for AI?" | 「如何讓專案對 AI 友善?」 |
|
|
30
|
+
|
|
21
31
|
## Purpose
|
|
22
32
|
|
|
23
33
|
This skill helps design project architecture that maximizes AI collaboration effectiveness through explicit patterns, layered documentation, and semantic boundaries.
|
|
@@ -18,6 +18,16 @@ description: |
|
|
|
18
18
|
|
|
19
19
|
> **Core Standard**: This skill implements [AI Instruction File Standards](../../core/ai-instruction-standards.md). For comprehensive methodology documentation, refer to the core standard.
|
|
20
20
|
|
|
21
|
+
## AI Skills Hierarchy | AI 技能層級
|
|
22
|
+
|
|
23
|
+
This skill is part of a three-layer AI collaboration system:
|
|
24
|
+
|
|
25
|
+
| Layer | Skill | Question it Answers | 回答的問題 |
|
|
26
|
+
|-------|-------|-------------------|-----------|
|
|
27
|
+
| **Behavior** (Immediate) | `/ai-collaboration` | "How should AI respond accurately?" | 「AI 如何準確回應?」 |
|
|
28
|
+
| **Configuration** (Session) | `/ai-instruction-standards` (this) | "What to write in CLAUDE.md?" | 「CLAUDE.md 該寫什麼?」 |
|
|
29
|
+
| **Architecture** (Long-term) | `/ai-friendly-architecture` | "How to structure code for AI?" | 「如何讓專案對 AI 友善?」 |
|
|
30
|
+
|
|
21
31
|
## Purpose
|
|
22
32
|
|
|
23
33
|
This skill helps create and maintain AI instruction files with proper separation between universal standards and project-specific configurations.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: api-design
|
|
3
|
+
scope: universal
|
|
4
|
+
description: |
|
|
5
|
+
Guide API design following REST, GraphQL, and gRPC best practices.
|
|
6
|
+
Use when: designing APIs, reviewing endpoints, API versioning decisions.
|
|
7
|
+
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning, 介面設計.
|
|
8
|
+
allowed-tools: Read, Grep, Glob
|
|
9
|
+
argument-hint: "[API endpoint or module | API 端點或模組]"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# API Design Assistant | API 設計助手
|
|
13
|
+
|
|
14
|
+
Guide API design following REST, GraphQL, and gRPC best practices.
|
|
15
|
+
|
|
16
|
+
引導 API 設計,遵循 REST、GraphQL 和 gRPC 最佳實踐。
|
|
17
|
+
|
|
18
|
+
## Quick Reference — REST Conventions | 快速參考
|
|
19
|
+
|
|
20
|
+
### HTTP Methods | HTTP 方法
|
|
21
|
+
|
|
22
|
+
| Method | Purpose | Idempotent | 用途 |
|
|
23
|
+
|--------|---------|------------|------|
|
|
24
|
+
| GET | Read resource | Yes | 讀取資源 |
|
|
25
|
+
| POST | Create resource | No | 建立資源 |
|
|
26
|
+
| PUT | Replace resource | Yes | 替換資源 |
|
|
27
|
+
| PATCH | Partial update | No | 部分更新 |
|
|
28
|
+
| DELETE | Remove resource | Yes | 刪除資源 |
|
|
29
|
+
|
|
30
|
+
### Status Codes | 狀態碼
|
|
31
|
+
|
|
32
|
+
| Code | Meaning | 說明 |
|
|
33
|
+
|------|---------|------|
|
|
34
|
+
| 200 | OK | 成功 |
|
|
35
|
+
| 201 | Created | 已建立 |
|
|
36
|
+
| 204 | No Content | 無內容(刪除成功) |
|
|
37
|
+
| 400 | Bad Request | 請求格式錯誤 |
|
|
38
|
+
| 401 | Unauthorized | 未認證 |
|
|
39
|
+
| 403 | Forbidden | 無權限 |
|
|
40
|
+
| 404 | Not Found | 資源不存在 |
|
|
41
|
+
| 409 | Conflict | 資源衝突 |
|
|
42
|
+
| 422 | Unprocessable Entity | 驗證失敗 |
|
|
43
|
+
| 429 | Too Many Requests | 請求過多(限流) |
|
|
44
|
+
| 500 | Internal Server Error | 伺服器內部錯誤 |
|
|
45
|
+
|
|
46
|
+
### URL Naming | URL 命名規則
|
|
47
|
+
|
|
48
|
+
| Pattern | Example | 說明 |
|
|
49
|
+
|---------|---------|------|
|
|
50
|
+
| Collection | `/users` | 資源集合 |
|
|
51
|
+
| Singleton | `/users/{id}` | 單一資源 |
|
|
52
|
+
| Sub-resource | `/users/{id}/orders` | 子資源 |
|
|
53
|
+
| Action | `/users/{id}/activate` | 動作(僅限 POST) |
|
|
54
|
+
|
|
55
|
+
## Design Workflow | 設計工作流程
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
DEFINE ──► DESIGN ──► VALIDATE ──► DOCUMENT
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 1. Define — Identify Requirements | 定義需求
|
|
62
|
+
Clarify consumers, use cases, data models, and non-functional requirements.
|
|
63
|
+
|
|
64
|
+
釐清使用者、使用情境、資料模型和非功能性需求。
|
|
65
|
+
|
|
66
|
+
### 2. Design — Structure Endpoints | 設計端點
|
|
67
|
+
Apply RESTful conventions, define request/response schemas, plan versioning.
|
|
68
|
+
|
|
69
|
+
套用 RESTful 慣例、定義請求/回應 Schema、規劃版本策略。
|
|
70
|
+
|
|
71
|
+
### 3. Validate — Review Consistency | 驗證一致性
|
|
72
|
+
Check naming consistency, error format uniformity, pagination patterns.
|
|
73
|
+
|
|
74
|
+
檢查命名一致性、錯誤格式統一、分頁模式。
|
|
75
|
+
|
|
76
|
+
### 4. Document — Generate Specs | 產生文件
|
|
77
|
+
Produce OpenAPI/Swagger specs or GraphQL schema documentation.
|
|
78
|
+
|
|
79
|
+
產出 OpenAPI/Swagger 規格或 GraphQL Schema 文件。
|
|
80
|
+
|
|
81
|
+
## Versioning Strategy | 版本策略
|
|
82
|
+
|
|
83
|
+
| Strategy | Example | Pros | 優點 |
|
|
84
|
+
|----------|---------|------|------|
|
|
85
|
+
| URL Path | `/v1/users` | Simple, explicit | 簡單、明確 |
|
|
86
|
+
| Header | `Accept: application/vnd.api+json;v=1` | Clean URLs | URL 乾淨 |
|
|
87
|
+
| Query | `/users?version=1` | Easy to test | 容易測試 |
|
|
88
|
+
|
|
89
|
+
## Usage | 使用方式
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
/api-design - Interactive API design guide | 互動式 API 設計引導
|
|
93
|
+
/api-design /users - Review specific endpoint design | 審查特定端點設計
|
|
94
|
+
/api-design --graphql - GraphQL schema design guide | GraphQL Schema 設計引導
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Next Steps Guidance | 下一步引導
|
|
98
|
+
|
|
99
|
+
After `/api-design` completes, the AI assistant should suggest:
|
|
100
|
+
|
|
101
|
+
> **API 設計完成。建議下一步 / API design complete. Suggested next steps:**
|
|
102
|
+
> - 執行 `/sdd` 建立正式規格文件 — Create formal specification
|
|
103
|
+
> - 執行 `/testing` 規劃 API 測試策略 — Plan API testing strategy
|
|
104
|
+
> - 執行 `/docs` 產生 API 文件 — Generate API documentation
|
|
105
|
+
> - 審查安全性 → 執行 `/security` — Review security → Run `/security`
|
|
106
|
+
|
|
107
|
+
## Reference | 參考
|
|
108
|
+
|
|
109
|
+
- Core standard: [api-design-standards.md](../../core/api-design-standards.md)
|
|
110
|
+
|
|
111
|
+
## Version History | 版本歷史
|
|
112
|
+
|
|
113
|
+
| Version | Date | Changes | 變更說明 |
|
|
114
|
+
|---------|------|---------|----------|
|
|
115
|
+
| 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
|
|
116
|
+
|
|
117
|
+
## License | 授權
|
|
118
|
+
|
|
119
|
+
CC BY 4.0 — Documentation content
|
|
@@ -81,3 +81,10 @@ After `/atdd` completes, the AI assistant should suggest:
|
|
|
81
81
|
|
|
82
82
|
- Detailed guide: [guide.md](./guide.md)
|
|
83
83
|
- Core standard: [acceptance-test-driven-development.md](../../core/acceptance-test-driven-development.md)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## AI Agent Behavior | AI 代理行為
|
|
87
|
+
|
|
88
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/atdd`](../commands/atdd.md#ai-agent-behavior--ai-代理行為)
|
|
89
|
+
>
|
|
90
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/atdd`](../commands/atdd.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -77,3 +77,10 @@ After `/bdd` completes, the AI assistant should suggest:
|
|
|
77
77
|
|
|
78
78
|
- Detailed guide: [guide.md](./guide.md)
|
|
79
79
|
- Core standard: [behavior-driven-development.md](../../core/behavior-driven-development.md)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## AI Agent Behavior | AI 代理行為
|
|
83
|
+
|
|
84
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/bdd`](../commands/bdd.md#ai-agent-behavior--ai-代理行為)
|
|
85
|
+
>
|
|
86
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/bdd`](../commands/bdd.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -123,3 +123,10 @@ After `/brainstorm` completes, the AI assistant should suggest:
|
|
|
123
123
|
## Reference | 參考
|
|
124
124
|
|
|
125
125
|
- Detailed guide: [guide.md](./guide.md)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## AI Agent Behavior | AI 代理行為
|
|
129
|
+
|
|
130
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/brainstorm`](../commands/brainstorm.md#ai-agent-behavior--ai-代理行為)
|
|
131
|
+
>
|
|
132
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/brainstorm`](../commands/brainstorm.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -60,3 +60,10 @@ After `/checkin` completes, the AI assistant should suggest:
|
|
|
60
60
|
|
|
61
61
|
- Detailed guide: [guide.md](./guide.md)
|
|
62
62
|
- Core standard: [checkin-standards.md](../../core/checkin-standards.md)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## AI Agent Behavior | AI 代理行為
|
|
66
|
+
|
|
67
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/checkin`](../commands/checkin.md#ai-agent-behavior--ai-代理行為)
|
|
68
|
+
>
|
|
69
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/checkin`](../commands/checkin.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ci-cd
|
|
3
|
+
scope: universal
|
|
4
|
+
description: |
|
|
5
|
+
Guide CI/CD pipeline design, configuration, and optimization.
|
|
6
|
+
Use when: setting up pipelines, optimizing build times, configuring deployment stages.
|
|
7
|
+
Keywords: CI/CD, pipeline, GitHub Actions, deployment, build, 持續整合, 持續部署.
|
|
8
|
+
allowed-tools: Read, Grep, Glob
|
|
9
|
+
argument-hint: "[pipeline config or stage | Pipeline 配置或階段]"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# CI/CD Pipeline Assistant | CI/CD 管線助手
|
|
13
|
+
|
|
14
|
+
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/ci-cd-assistant/SKILL.md)
|
|
15
|
+
|
|
16
|
+
Guide CI/CD pipeline design following industry best practices and DORA metrics.
|
|
17
|
+
|
|
18
|
+
引導 CI/CD 管線設計,遵循業界最佳實踐與 DORA 指標。
|
|
19
|
+
|
|
20
|
+
## Pipeline Stage Reference | 管線階段參考
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
BUILD ──► TEST ──► ANALYZE ──► DEPLOY ──► VERIFY
|
|
24
|
+
建置 測試 分析 部署 驗證
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
| Stage | Purpose | Key Activities | 關鍵活動 |
|
|
28
|
+
|-------|---------|----------------|----------|
|
|
29
|
+
| **Build** | Compile & package | Dependency install, compilation, artifact creation | 安裝相依、編譯、產出成品 |
|
|
30
|
+
| **Test** | Quality verification | Unit, integration, E2E tests | 單元、整合、端對端測試 |
|
|
31
|
+
| **Analyze** | Code quality | Lint, security scan, coverage report | 程式碼檢查、安全掃描、覆蓋率 |
|
|
32
|
+
| **Deploy** | Release to environment | Staging → Production rollout | 預備環境 → 正式環境部署 |
|
|
33
|
+
| **Verify** | Post-deploy validation | Smoke tests, health checks, monitoring | 冒煙測試、健康檢查、監控 |
|
|
34
|
+
|
|
35
|
+
## DORA Metrics Quick Reference | DORA 指標快速參考
|
|
36
|
+
|
|
37
|
+
| Metric | Elite | High | Medium | Low |
|
|
38
|
+
|--------|-------|------|--------|-----|
|
|
39
|
+
| **Deployment Frequency** 部署頻率 | On-demand (multiple/day) | Weekly–Monthly | Monthly–Biannual | > 6 months |
|
|
40
|
+
| **Lead Time for Changes** 變更前置時間 | < 1 hour | 1 day–1 week | 1–6 months | > 6 months |
|
|
41
|
+
| **MTTR** 平均恢復時間 | < 1 hour | < 1 day | 1 day–1 week | > 6 months |
|
|
42
|
+
| **Change Failure Rate** 變更失敗率 | 0–15% | 16–30% | 16–30% | > 30% |
|
|
43
|
+
|
|
44
|
+
## Best Practices Checklist | 最佳實踐檢查清單
|
|
45
|
+
|
|
46
|
+
- [ ] **Fail fast** — Run fastest checks first (lint → unit → integration → E2E)
|
|
47
|
+
- [ ] **Cache dependencies** — Cache `node_modules`, `.m2`, pip cache between runs
|
|
48
|
+
- [ ] **Parallel jobs** — Split test suites across parallel runners
|
|
49
|
+
- [ ] **Immutable artifacts** — Build once, deploy the same artifact to all environments
|
|
50
|
+
- [ ] **Environment parity** — Keep staging identical to production
|
|
51
|
+
- [ ] **Secrets management** — Never hardcode secrets; use vault/environment variables
|
|
52
|
+
- [ ] **Branch protection** — Require CI pass before merge
|
|
53
|
+
- [ ] **Rollback strategy** — Automate rollback on deploy failure
|
|
54
|
+
|
|
55
|
+
快速失敗、快取相依、平行作業、不可變成品、環境一致、密鑰管理、分支保護、回滾策略。
|
|
56
|
+
|
|
57
|
+
## Platform-Specific Tips | 平台專屬提示
|
|
58
|
+
|
|
59
|
+
| Platform | Cache | Parallelism | Secrets | 備註 |
|
|
60
|
+
|----------|-------|-------------|---------|------|
|
|
61
|
+
| **GitHub Actions** | `actions/cache` | `matrix` strategy | `secrets.*` context | 使用 reusable workflows |
|
|
62
|
+
| **GitLab CI** | `cache:` keyword | `parallel:` keyword | CI/CD Variables | 使用 `include:` 模組化 |
|
|
63
|
+
| **Jenkins** | Stash/unstash | `parallel {}` block | Credentials plugin | 使用 shared libraries |
|
|
64
|
+
|
|
65
|
+
## Usage | 使用方式
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
/ci-cd # Show full pipeline guidance | 顯示完整管線指引
|
|
69
|
+
/ci-cd github-actions # GitHub Actions specific tips | GitHub Actions 專屬提示
|
|
70
|
+
/ci-cd --optimize # Pipeline optimization advice | 管線優化建議
|
|
71
|
+
/ci-cd build # Build stage best practices | 建置階段最佳實踐
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Next Steps Guidance | 下一步引導
|
|
75
|
+
|
|
76
|
+
After `/ci-cd` completes, the AI assistant should suggest:
|
|
77
|
+
|
|
78
|
+
> **管線指引已提供。建議下一步 / Pipeline guidance provided. Suggested next steps:**
|
|
79
|
+
> - 部署配置 → 執行 `/deploy` 設定部署策略 — Configure deployment strategy
|
|
80
|
+
> - 安全掃描 → 執行 `/security` 檢查管線安全 — Check pipeline security
|
|
81
|
+
> - 測試設計 → 執行 `/testing` 設計測試策略 — Design test strategy
|
|
82
|
+
> - 提交規範 → 執行 `/commit` 建立規範化提交 — Create conventional commit
|
|
83
|
+
|
|
84
|
+
## Reference | 參考
|
|
85
|
+
|
|
86
|
+
- Core standard: [pipeline-integration-standards.md](../../core/pipeline-integration-standards.md)
|
|
87
|
+
- Core standard: [deployment-standards.md](../../core/deployment-standards.md)
|
|
88
|
+
|
|
89
|
+
## Version History | 版本歷史
|
|
90
|
+
|
|
91
|
+
| Version | Date | Changes | 變更說明 |
|
|
92
|
+
|---------|------|---------|----------|
|
|
93
|
+
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
|
|
94
|
+
|
|
95
|
+
## License | 授權
|
|
96
|
+
|
|
97
|
+
CC BY 4.0 — Documentation content
|
|
@@ -61,3 +61,10 @@ After `/review` completes, the AI assistant should suggest:
|
|
|
61
61
|
|
|
62
62
|
- Detailed guide: [guide.md](./guide.md)
|
|
63
63
|
- Core standard: [code-review-checklist.md](../../core/code-review-checklist.md)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## AI Agent Behavior | AI 代理行為
|
|
67
|
+
|
|
68
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/review`](../commands/review.md#ai-agent-behavior--ai-代理行為)
|
|
69
|
+
>
|
|
70
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/review`](../commands/review.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -41,6 +41,26 @@ Commands for development workflow automation.
|
|
|
41
41
|
| [`/sdd-retro`](./sdd-retro.md) | Create retroactive specs for untracked commits | 為未追蹤 commits 建立追溯 spec |
|
|
42
42
|
| [`/docs`](./docs.md) | Create/update documentation | 建立/更新文件 |
|
|
43
43
|
| [`/coverage`](./coverage.md) | Analyze test coverage | 分析測試覆蓋率 |
|
|
44
|
+
| [`/ac-coverage`](./ac-coverage.md) | Generate AC traceability matrix and coverage report | AC 追蹤矩陣與覆蓋率報告 |
|
|
45
|
+
| [`/refactor`](./refactor.md) | Guide refactoring decisions and strategy selection | 重構決策與策略選擇 |
|
|
46
|
+
| [`/pr`](./pr.md) | Guide PR creation, review and merge | PR 建立、審查與合併 |
|
|
47
|
+
| [`/checkin`](./checkin.md) | Pre-commit quality gates verification | 提交前品質閘門驗證 |
|
|
48
|
+
| [`/incident`](./incident.md) | Guide incident response and post-mortem | 事故回應與事後檢討 |
|
|
49
|
+
| [`/metrics`](./metrics.md) | Track development metrics and project health | 追蹤開發指標與專案健康 |
|
|
50
|
+
| [`/migrate`](./migrate.md) | Guide code migration and framework upgrades | 程式碼遷移與框架升級 |
|
|
51
|
+
| [`/audit`](./audit.md) | UDS health check and feedback system | UDS 健康檢查與回饋 |
|
|
52
|
+
| [`/docgen`](./docgen.md) | Generate usage documentation from project sources | 從專案原始碼產生使用文件 |
|
|
53
|
+
| [`/discover`](./discover.md) | Assess project health, architecture, and risks | 評估專案健康度、架構與風險 |
|
|
54
|
+
| [`/api-design`](./api-design.md) | Guide API design (REST, GraphQL, gRPC) | API 設計引導 |
|
|
55
|
+
| [`/ci-cd`](./ci-cd.md) | Guide CI/CD pipeline design and optimization | CI/CD 管線設計與優化 |
|
|
56
|
+
| [`/database`](./database.md) | Guide database design and migration | 資料庫設計與遷移 |
|
|
57
|
+
| [`/security`](./security.md) | Guide security review (OWASP) | 安全審查(OWASP) |
|
|
58
|
+
| [`/scan`](./scan.md) | Automated security scanning | 自動化安全掃描 |
|
|
59
|
+
| [`/durable`](./durable.md) | Guide workflow failure recovery | 工作流程故障恢復 |
|
|
60
|
+
| [`/dev-workflow`](./dev-workflow.md) | Map development phases to UDS commands | 開發階段對應 UDS 指令 |
|
|
61
|
+
| [`/guide`](./guide.md) | Access UDS guides and references | 存取 UDS 指南與參考 |
|
|
62
|
+
| [`/reverse`](./reverse.md) | Reverse engineer code to Specs, BDD, or TDD | 反向工程成規格、BDD 或 TDD |
|
|
63
|
+
| [`/derive`](./derive.md) | Derive BDD/TDD/ATDD from specifications | 從規格推演 BDD/TDD/ATDD |
|
|
44
64
|
| [`/reverse-sdd`](./reverse-sdd.md) | Reverse engineer code to SDD spec | 反向工程成 SDD 規格 |
|
|
45
65
|
| [`/reverse-bdd`](./reverse-bdd.md) | Transform SDD AC to BDD scenarios | SDD AC 轉換為 BDD 場景 |
|
|
46
66
|
| [`/reverse-tdd`](./reverse-tdd.md) | Analyze BDD-TDD coverage | BDD-TDD 覆蓋率分析 |
|
|
@@ -60,6 +80,56 @@ Commands for development methodology workflows.
|
|
|
60
80
|
| [`/bdd`](./bdd.md) | Behavior-Driven Development workflow | BDD 開發流程 |
|
|
61
81
|
| [`/atdd`](./atdd.md) | Acceptance Test-Driven Development workflow | ATDD 驗收流程 |
|
|
62
82
|
|
|
83
|
+
## Command → Skill / Standard Mapping | 指令→技能/標準對照表
|
|
84
|
+
|
|
85
|
+
| Command | Skill | Core Standard | Category |
|
|
86
|
+
|---------|-------|---------------|----------|
|
|
87
|
+
| `/init` | — | — | Standards Management |
|
|
88
|
+
| `/update` | — | — | Standards Management |
|
|
89
|
+
| `/check` | — | — | Standards Management |
|
|
90
|
+
| `/config` | — | — | Standards Management |
|
|
91
|
+
| `/commit` | commit-standards | `commit-message-guide.md` | Development Workflow |
|
|
92
|
+
| `/review` | code-review | `code-review-checklist.md` | Development Workflow |
|
|
93
|
+
| `/checkin` | — | `checkin-standards.md` | Development Workflow |
|
|
94
|
+
| `/release` | release-standards | `versioning.md` | Development Workflow |
|
|
95
|
+
| `/changelog` | — | `changelog-standards.md` | Development Workflow |
|
|
96
|
+
| `/requirement` | — | `requirement-engineering.md` | Development Workflow |
|
|
97
|
+
| `/sdd` | spec-driven-development | `spec-driven-development.md` | Development Workflow |
|
|
98
|
+
| `/sdd-retro` | — | `spec-driven-development.md` | Development Workflow |
|
|
99
|
+
| `/brainstorm` | — | — | Development Workflow |
|
|
100
|
+
| `/docs` | documentation | `documentation-writing-standards.md` | Development Workflow |
|
|
101
|
+
| `/docgen` | — | `documentation-writing-standards.md` | Development Workflow |
|
|
102
|
+
| `/coverage` | testing-guide | `testing-standards.md` | Development Workflow |
|
|
103
|
+
| `/ac-coverage` | — | `acceptance-criteria-traceability.md` | Development Workflow |
|
|
104
|
+
| `/refactor` | refactoring | `refactoring-standards.md` | Development Workflow |
|
|
105
|
+
| `/discover` | — | — | Development Workflow |
|
|
106
|
+
| `/dev-workflow` | — | — | Development Workflow |
|
|
107
|
+
| `/guide` | — | — | Development Workflow |
|
|
108
|
+
| `/api-design` | api-design-assistant | `api-design-standards.md` | Development Workflow |
|
|
109
|
+
| `/ci-cd` | ci-cd-assistant | — | Development Workflow |
|
|
110
|
+
| `/database` | database-assistant | `database-standards.md` | Development Workflow |
|
|
111
|
+
| `/incident` | incident-response-assistant | — | Development Workflow |
|
|
112
|
+
| `/metrics` | metrics-dashboard-assistant | — | Development Workflow |
|
|
113
|
+
| `/migrate` | migration-assistant | — | Development Workflow |
|
|
114
|
+
| `/pr` | pr-automation-assistant | — | Development Workflow |
|
|
115
|
+
| `/security` | security-assistant | `security-standards.md` | Development Workflow |
|
|
116
|
+
| `/scan` | security-scan-assistant | — | Development Workflow |
|
|
117
|
+
| `/audit` | audit-assistant | — | Development Workflow |
|
|
118
|
+
| `/durable` | durable-execution-assistant | — | Development Workflow |
|
|
119
|
+
| `/derive` | — | `forward-derivation-standards.md` | Methodology |
|
|
120
|
+
| `/derive-bdd` | — | `behavior-driven-development.md` | Methodology |
|
|
121
|
+
| `/derive-tdd` | — | `test-driven-development.md` | Methodology |
|
|
122
|
+
| `/derive-atdd` | — | `acceptance-test-driven-development.md` | Methodology |
|
|
123
|
+
| `/derive-all` | — | — | Methodology |
|
|
124
|
+
| `/reverse` | — | `reverse-engineering-standards.md` | Methodology |
|
|
125
|
+
| `/reverse-sdd` | — | `reverse-engineering-standards.md` | Methodology |
|
|
126
|
+
| `/reverse-bdd` | — | `reverse-engineering-standards.md` | Methodology |
|
|
127
|
+
| `/reverse-tdd` | — | `reverse-engineering-standards.md` | Methodology |
|
|
128
|
+
| `/methodology` | — | — | Methodology |
|
|
129
|
+
| `/tdd` | — | `test-driven-development.md` | Methodology |
|
|
130
|
+
| `/bdd` | — | `behavior-driven-development.md` | Methodology |
|
|
131
|
+
| `/atdd` | — | `acceptance-test-driven-development.md` | Methodology |
|
|
132
|
+
|
|
63
133
|
## Commands vs Skills | 命令與技能
|
|
64
134
|
|
|
65
135
|
| Aspect | Commands | Skills |
|