universal-dev-standards 5.0.0-rc.9 → 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 +239 -23
- 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,326 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/update.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
description: [UDS] Update development standards to latest version
|
|
10
|
+
allowed-tools: Read, Bash(uds update:*), Bash(uds check:*), Bash(uds configure:*), Bash(npx:*), Bash(cat .standards/*), Bash(ls .claude/*), Bash(ls .opencode/*), Bash(ls .github/*)
|
|
11
|
+
argument-hint: "[--yes] [--offline] [--beta]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 更新標準
|
|
15
|
+
|
|
16
|
+
> **Language**: [English](../../../../skills/commands/update.md) | 繁體中文
|
|
17
|
+
|
|
18
|
+
將 Universal Development Standards 更新至最新版本。
|
|
19
|
+
|
|
20
|
+
## 互動模式(預設)
|
|
21
|
+
|
|
22
|
+
當不帶 `--yes` 執行時,使用 AskUserQuestion 確認更新偏好。
|
|
23
|
+
|
|
24
|
+
### 步驟 1:檢查目前狀態
|
|
25
|
+
|
|
26
|
+
首先,執行 `uds check --summary` 顯示精簡安裝狀態。
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
uds check --summary
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
顯示:版本(含更新指示器)、等級、檔案狀態、Skills 狀態和 Commands 狀態。
|
|
33
|
+
|
|
34
|
+
### 步驟 2:詢問更新偏好
|
|
35
|
+
|
|
36
|
+
如果有可用更新,根據版本類型顯示對應選項。
|
|
37
|
+
|
|
38
|
+
#### Pre-release 版本類型
|
|
39
|
+
|
|
40
|
+
Pre-release 版本按穩定度排序(由低到高):
|
|
41
|
+
|
|
42
|
+
| 類型 | 穩定度 | 說明 |
|
|
43
|
+
|------|--------|------|
|
|
44
|
+
| alpha | 🔴 早期 | 功能可能不完整,供內部測試 |
|
|
45
|
+
| beta | 🟡 測試中 | 功能大致完成,可能有 bug,供早期採用者 |
|
|
46
|
+
| rc | 🟢 接近穩定 | 候選發布版,接近正式版,供 beta 測試者 |
|
|
47
|
+
|
|
48
|
+
版本比較:`alpha < beta < rc < stable`
|
|
49
|
+
|
|
50
|
+
詳細版本規範請參見 [core/versioning.md](../../core/versioning.md)。
|
|
51
|
+
|
|
52
|
+
#### 更新選項
|
|
53
|
+
|
|
54
|
+
**如果有穩定版本可用(例如 3.5.1):**
|
|
55
|
+
|
|
56
|
+
| 選項 | 說明 |
|
|
57
|
+
|------|------|
|
|
58
|
+
| **立即更新** | 更新標準至最新穩定版本 X.Y.Z(建議) |
|
|
59
|
+
| **檢查 Beta** | 檢查 beta 版本更新 |
|
|
60
|
+
| **跳過** | 暫不更新 |
|
|
61
|
+
|
|
62
|
+
**如果僅有 pre-release 版本可用,顯示特定類型:**
|
|
63
|
+
|
|
64
|
+
從 `uds check` 輸出偵測版本類型並顯示特定類型名稱:
|
|
65
|
+
|
|
66
|
+
| 偵測到的類型 | 選項標籤 | 說明 |
|
|
67
|
+
|-------------|---------|------|
|
|
68
|
+
| `X.Y.Z-alpha.N` | **更新至 Alpha** | 更新至 alpha 版本 X.Y.Z-alpha.N(🔴 早期測試) |
|
|
69
|
+
| `X.Y.Z-beta.N` | **更新至 Beta** | 更新至 beta 版本 X.Y.Z-beta.N(🟡 功能大致完成) |
|
|
70
|
+
| `X.Y.Z-rc.N` | **更新至 RC** | 更新至 RC 版本 X.Y.Z-rc.N(🟢 接近穩定) |
|
|
71
|
+
|
|
72
|
+
一律包含**跳過**選項:暫不更新。
|
|
73
|
+
|
|
74
|
+
**Beta 版本的 AskUserQuestion 範例:**
|
|
75
|
+
- 問題:"有新的 beta 版本可用:3.5.1-beta.3 → 3.5.1-beta.15。您想如何處理?"
|
|
76
|
+
- 選項 1:"更新至 Beta (建議)" - "更新標準至 3.5.1-beta.15 版本(🟡 功能大致完成)"
|
|
77
|
+
- 選項 2:"暫時跳過" - "目前不進行更新,維持現有版本"
|
|
78
|
+
|
|
79
|
+
### 步驟 3:執行更新
|
|
80
|
+
|
|
81
|
+
**如果選擇立即更新:**
|
|
82
|
+
```bash
|
|
83
|
+
uds update --yes
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**如果選擇檢查 Beta:**
|
|
87
|
+
```bash
|
|
88
|
+
uds update --beta --yes
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 步驟 4:檢查 Skills/Commands 狀態
|
|
92
|
+
|
|
93
|
+
更新完成後,使用多階段 AskUserQuestion 檢查缺少或過時的 Skills/Commands。
|
|
94
|
+
|
|
95
|
+
**重要:** 由於 AskUserQuestion 選項有限(最多 4 個),使用多階段方式處理不同 AI 工具和安裝偏好。
|
|
96
|
+
|
|
97
|
+
#### 步驟 4a:偵測缺少的 Skills
|
|
98
|
+
|
|
99
|
+
首先讀取 manifest 來識別已配置的 AI 工具及其 Skills 狀態:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# 讀取 manifest 取得已配置的 AI 工具
|
|
103
|
+
cat .standards/manifest.json
|
|
104
|
+
# 檢查現有的 Skills 安裝
|
|
105
|
+
ls .claude/skills/ 2>/dev/null || echo "Not installed"
|
|
106
|
+
ls .opencode/skill/ 2>/dev/null || echo "Not installed"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
針對每個支援 Skills 的已配置 AI 工具,檢查 Skills 是否已安裝。
|
|
110
|
+
|
|
111
|
+
#### 步驟 4b/4c:詢問 Skills 安裝(整合)
|
|
112
|
+
|
|
113
|
+
如果有已配置的 AI 工具缺少 Skills,使用**智能分組**策略。
|
|
114
|
+
|
|
115
|
+
**重要:AskUserQuestion 最多只能有 4 個選項。** 使用智能分組來處理。
|
|
116
|
+
|
|
117
|
+
**步驟 4b-1:檢查 Marketplace 狀態(僅 Claude Code)**
|
|
118
|
+
|
|
119
|
+
首先檢查 Plugin Marketplace 是否已安裝:
|
|
120
|
+
```bash
|
|
121
|
+
ls ~/.claude/plugins/universal-dev-standards@asia-ostrich 2>/dev/null && echo "Marketplace installed"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
- 如果 Marketplace 已安裝 → 顯示 "Claude Code: ✓ 已透過 Marketplace 安裝" 並跳過 Claude Code 選項
|
|
125
|
+
- 如果 Marketplace 未安裝 → 包含 Marketplace 選項
|
|
126
|
+
|
|
127
|
+
**步驟 4b-2:套用智能分組策略**
|
|
128
|
+
|
|
129
|
+
#### 策略 A:1-2 個工具 → 合併詢問
|
|
130
|
+
|
|
131
|
+
**範例(僅 Claude Code,Marketplace 未安裝):**
|
|
132
|
+
```
|
|
133
|
+
問題:"Skills 要安裝到哪裡?"
|
|
134
|
+
選項:
|
|
135
|
+
1. Plugin Marketplace (建議) - 自動更新,易於管理
|
|
136
|
+
2. User Level (~/.claude/skills/) - 所有專案共用
|
|
137
|
+
3. Project Level (.claude/skills/) - 僅此專案
|
|
138
|
+
4. 跳過 - 不安裝 Skills
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**範例(OpenCode + Copilot,Claude Code 已透過 Marketplace 安裝):**
|
|
142
|
+
```
|
|
143
|
+
問題:"Skills 要安裝到哪裡?(Claude Code: ✓ 已透過 Marketplace 安裝)"
|
|
144
|
+
選項:
|
|
145
|
+
1. 全部 User Level - 所有專案共用
|
|
146
|
+
2. 全部 Project Level (建議) - 僅此專案
|
|
147
|
+
3. 跳過 - 不安裝額外 Skills
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### 策略 B:3+ 個工具 → 兩階段詢問
|
|
151
|
+
|
|
152
|
+
**第一階段:詢問統一或個別**
|
|
153
|
+
```
|
|
154
|
+
問題:"有多個 AI 工具需要安裝 Skills,安裝層級要如何設定?"
|
|
155
|
+
選項:
|
|
156
|
+
1. 統一層級 (建議) - 所有工具使用相同層級
|
|
157
|
+
2. 個別設定 - 為每個工具分別選擇層級
|
|
158
|
+
3. 跳過 - 不安裝 Skills
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
**第二階段 a:若統一 → 詢問層級一次**
|
|
162
|
+
```
|
|
163
|
+
問題:"所有 Skills 要安裝到哪個層級?"
|
|
164
|
+
選項:
|
|
165
|
+
1. User Level - 所有專案共用
|
|
166
|
+
2. Project Level (建議) - 僅此專案
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**第二階段 b:若個別 → 逐工具詢問**
|
|
170
|
+
|
|
171
|
+
**執行安裝:**
|
|
172
|
+
```bash
|
|
173
|
+
uds configure --type skills --ai-tool opencode --skills-location project
|
|
174
|
+
uds configure --type skills --ai-tool cursor --skills-location user
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**注意:** 如果用戶選擇統一層級,使用 `--skills-location` 選項。如果選擇個別設定,不帶此選項執行以觸發互動提示。
|
|
178
|
+
|
|
179
|
+
#### 步驟 4d:偵測缺少的 Commands
|
|
180
|
+
|
|
181
|
+
檢查已配置但尚未安裝 Commands 的 AI 工具:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# 檢查現有的 Commands 安裝
|
|
185
|
+
ls .opencode/commands/ 2>/dev/null || echo "Not installed"
|
|
186
|
+
ls .github/commands/ 2>/dev/null || echo "Not installed"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**注意:** 並非所有 AI 工具都支援 Commands。支援 Commands 的工具:
|
|
190
|
+
- OpenCode (.opencode/commands/)
|
|
191
|
+
- GitHub Copilot (.github/commands/)
|
|
192
|
+
- Roo Code (.roo/commands/)
|
|
193
|
+
- Gemini CLI (.gemini/commands/)
|
|
194
|
+
|
|
195
|
+
#### 步驟 4e:詢問 Commands 安裝
|
|
196
|
+
|
|
197
|
+
如果有已配置的 AI 工具缺少 Commands,使用**智能分組**策略。
|
|
198
|
+
|
|
199
|
+
**重要:AskUserQuestion 最多只能有 4 個選項。** 使用智能分組來處理。
|
|
200
|
+
|
|
201
|
+
#### 策略 A:1-2 個工具 → 合併詢問
|
|
202
|
+
|
|
203
|
+
**範例(僅 OpenCode):**
|
|
204
|
+
```
|
|
205
|
+
問題:"Commands 要安裝到哪裡?"
|
|
206
|
+
選項:
|
|
207
|
+
1. User Level (~/.config/opencode/command/) - 所有專案共用
|
|
208
|
+
2. Project Level (.opencode/command/) - 僅此專案 (建議)
|
|
209
|
+
3. 跳過 - 使用 Skills 即可
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**範例(OpenCode + Copilot):**
|
|
213
|
+
```
|
|
214
|
+
問題:"Commands 要安裝到哪裡?"
|
|
215
|
+
選項:
|
|
216
|
+
1. 全部 User Level - 所有專案共用
|
|
217
|
+
2. 全部 Project Level (建議) - 僅此專案
|
|
218
|
+
3. 跳過 - 使用 Skills 即可
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
#### 策略 B:3+ 個工具 → 兩階段詢問
|
|
222
|
+
|
|
223
|
+
**第一階段:詢問統一或個別**
|
|
224
|
+
```
|
|
225
|
+
問題:"有多個 AI 工具需要安裝 Commands,安裝層級要如何設定?"
|
|
226
|
+
選項:
|
|
227
|
+
1. 統一層級 (建議) - 所有工具使用相同層級
|
|
228
|
+
2. 個別設定 - 為每個工具分別選擇層級
|
|
229
|
+
3. 跳過 - 不安裝 Commands
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**第二階段 a:若統一 → 詢問層級一次**
|
|
233
|
+
```
|
|
234
|
+
問題:"所有 Commands 要安裝到哪個層級?"
|
|
235
|
+
選項:
|
|
236
|
+
1. User Level - 所有專案共用
|
|
237
|
+
2. Project Level (建議) - 僅此專案
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**第二階段 b:若個別 → 逐工具詢問**
|
|
241
|
+
|
|
242
|
+
**執行安裝:**
|
|
243
|
+
```bash
|
|
244
|
+
# CLI 會互動詢問安裝層級
|
|
245
|
+
uds configure --type commands --ai-tool opencode
|
|
246
|
+
uds configure --type commands --ai-tool copilot
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**注意:** 指定 `--ai-tool` 時,CLI 會互動詢問安裝層級(project 或 user)。
|
|
250
|
+
|
|
251
|
+
#### 拒絕功能處理
|
|
252
|
+
|
|
253
|
+
**重要:** CLI 會在 `manifest.declinedFeatures` 中追蹤用戶拒絕的選項。
|
|
254
|
+
|
|
255
|
+
- 用戶之前拒絕的工具不會在後續提示中顯示
|
|
256
|
+
- 可透過 `/config skills` 或 `/config commands` 重新安裝
|
|
257
|
+
- 拒絕是按工具記錄的(例如拒絕 OpenCode 的 Skills 不影響 Claude Code)
|
|
258
|
+
|
|
259
|
+
### 步驟 5:說明結果
|
|
260
|
+
|
|
261
|
+
所有操作完成後,說明:
|
|
262
|
+
1. 已更新的內容(標準版本、檔案數量)
|
|
263
|
+
2. Skills/Commands 安裝結果
|
|
264
|
+
3. 遇到的任何錯誤
|
|
265
|
+
4. 後續步驟(若安裝了 Skills 則重新啟動 AI 工具)
|
|
266
|
+
|
|
267
|
+
## 快速模式
|
|
268
|
+
|
|
269
|
+
帶 `--yes` 或特定選項執行時,跳過互動問題:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
/update --yes # 不確認直接更新
|
|
273
|
+
/update --beta --yes # 更新至 beta 版本
|
|
274
|
+
/update --offline # 跳過 npm registry 檢查
|
|
275
|
+
/update --skills # 僅更新 Skills
|
|
276
|
+
/update --commands # 僅更新 Commands
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**注意:** 在 `--yes` 模式下,CLI 會顯示可用 Skills/Commands 的提示,但不會自動安裝(保守行為)。
|
|
280
|
+
|
|
281
|
+
## 選項參考
|
|
282
|
+
|
|
283
|
+
| 選項 | 說明 |
|
|
284
|
+
|------|------|
|
|
285
|
+
| `--yes`, `-y` | 跳過確認提示 |
|
|
286
|
+
| `--offline` | 跳過 npm registry 檢查 |
|
|
287
|
+
| `--beta` | 檢查 beta 版本更新 |
|
|
288
|
+
| `--skills` | 僅更新 Skills |
|
|
289
|
+
| `--commands` | 僅更新 Commands |
|
|
290
|
+
| `--integrations-only` | 僅重新產生整合檔案 |
|
|
291
|
+
| `--sync-refs` | 同步整合檔案參考 |
|
|
292
|
+
| `--standards-only` | 僅更新標準,不更新整合 |
|
|
293
|
+
|
|
294
|
+
## 更新內容
|
|
295
|
+
|
|
296
|
+
- `.standards/` 目錄中的標準檔案
|
|
297
|
+
- 擴充檔案(語言、框架、地區)
|
|
298
|
+
- 整合檔案(`.cursorrules`、`CLAUDE.md` 等)
|
|
299
|
+
- `manifest.json` 中的版本資訊
|
|
300
|
+
|
|
301
|
+
## Skills 更新
|
|
302
|
+
|
|
303
|
+
Skills 單獨管理:
|
|
304
|
+
|
|
305
|
+
| 安裝方式 | 更新方法 |
|
|
306
|
+
|---------|---------|
|
|
307
|
+
| Plugin Marketplace | 重啟 Claude Code 自動更新 |
|
|
308
|
+
| User-level | `cd ~/.claude/skills && git pull` |
|
|
309
|
+
| Project-level | `cd .claude/skills && git pull` |
|
|
310
|
+
|
|
311
|
+
## 疑難排解
|
|
312
|
+
|
|
313
|
+
**"Standards not initialized"**
|
|
314
|
+
- 先執行 `/init` 初始化標準
|
|
315
|
+
|
|
316
|
+
**"Already up to date"**
|
|
317
|
+
- 無需操作;標準已是最新
|
|
318
|
+
|
|
319
|
+
**"Skills previously declined"**
|
|
320
|
+
- 執行 `/config skills` 重新安裝已拒絕的 Skills
|
|
321
|
+
|
|
322
|
+
## 參考
|
|
323
|
+
|
|
324
|
+
- CLI 文件:`uds update --help`
|
|
325
|
+
- 檢查指令:[/check](./check.md)
|
|
326
|
+
- 配置指令:[/config](./config.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
|
-
根據 Conventional Commits 規範產生格式正確的 commit message。
|
|
9
|
-
使用時機:提交程式碼、撰寫 commit message、檢查提交格式。
|
|
10
|
-
關鍵字:commit, conventional commits, 提交, 訊息, feat, fix, refactor。
|
|
7
|
+
description: "[UDS] 根據 Conventional Commits 規範產生格式正確的 commit message"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# Commit Message 助手
|
|
@@ -60,9 +57,8 @@ description: |
|
|
|
60
57
|
`/commit` 完成後,AI 助手應建議:
|
|
61
58
|
|
|
62
59
|
> **提交完成。建議下一步:**
|
|
63
|
-
> - 執行 `/changelog` 更新變更日誌
|
|
64
60
|
> - 執行 `git push` 推送到遠端
|
|
65
|
-
> - 執行 `/release
|
|
61
|
+
> - 準備發布時 → 執行 `/changelog` + `/release`
|
|
66
62
|
> - 發現重複模式或規範摩擦 → 執行 `/audit --report` 回報
|
|
67
63
|
|
|
68
64
|
## 參考
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/database-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] 引導資料庫設計、遷移規劃和查詢最佳化"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 資料庫助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/database-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導資料庫設計、遷移規劃和查詢最佳化。
|
|
15
|
+
|
|
16
|
+
## 核心原則
|
|
17
|
+
|
|
18
|
+
| 原則 | 說明 |
|
|
19
|
+
|------|------|
|
|
20
|
+
| 正規化 | 消除冗餘(至少 3NF) |
|
|
21
|
+
| 參照完整性 | 強制外鍵約束 |
|
|
22
|
+
| 索引策略 | 依查詢模式建立索引 |
|
|
23
|
+
| 遷移安全 | 可逆、零停機 |
|
|
24
|
+
| 資料保護 | 加密敏感欄位、稽核存取 |
|
|
25
|
+
|
|
26
|
+
## Schema 設計檢查清單
|
|
27
|
+
|
|
28
|
+
- [ ] 主鍵已定義(建議 UUID 或 BIGINT)
|
|
29
|
+
- [ ] 外鍵含適當的 ON DELETE/UPDATE 策略
|
|
30
|
+
- [ ] 必填欄位加 NOT NULL 約束
|
|
31
|
+
- [ ] 常查詢欄位建立索引
|
|
32
|
+
- [ ] 所有表加建立/更新時間戳
|
|
33
|
+
- [ ] 敏感資料靜態加密
|
|
34
|
+
- [ ] 命名慣例一致(snake_case)
|
|
35
|
+
|
|
36
|
+
## 正規化快速參考
|
|
37
|
+
|
|
38
|
+
| 正規形式 | 規則 |
|
|
39
|
+
|----------|------|
|
|
40
|
+
| **1NF** | 原子值、無重複群組 |
|
|
41
|
+
| **2NF** | 1NF + 無部分相依 |
|
|
42
|
+
| **3NF** | 2NF + 無遞移相依 |
|
|
43
|
+
| **反正規化** | 僅針對已證實的讀取效能需求 |
|
|
44
|
+
|
|
45
|
+
## 遷移工作流程
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 1. Plan — 評估影響
|
|
52
|
+
識別受影響的表、估算資料量、規劃回滾策略。
|
|
53
|
+
|
|
54
|
+
### 2. Write — 撰寫遷移
|
|
55
|
+
撰寫正向和回滾腳本。使用遞增編號的遷移。
|
|
56
|
+
|
|
57
|
+
### 3. Test — 驗證遷移
|
|
58
|
+
在 staging 環境使用類生產資料執行。驗證遷移後資料完整性。
|
|
59
|
+
|
|
60
|
+
### 4. Deploy — 執行遷移
|
|
61
|
+
在維護窗口執行,或使用線上 Schema 變更工具。
|
|
62
|
+
|
|
63
|
+
### 5. Verify — 確認成功
|
|
64
|
+
檢查列數、約束有效性、應用程式功能。
|
|
65
|
+
|
|
66
|
+
## 索引策略
|
|
67
|
+
|
|
68
|
+
| 類型 | 使用場景 |
|
|
69
|
+
|------|----------|
|
|
70
|
+
| B-tree | 等值、範圍查詢(預設) |
|
|
71
|
+
| Hash | 僅精確匹配 |
|
|
72
|
+
| GIN | 全文搜尋、JSONB |
|
|
73
|
+
| Partial | 過濾子集 |
|
|
74
|
+
| Composite | 多欄位查詢 |
|
|
75
|
+
|
|
76
|
+
## 使用方式
|
|
77
|
+
|
|
78
|
+
- `/database` - 互動式資料庫設計引導
|
|
79
|
+
- `/database schema` - 審查 Schema 設計
|
|
80
|
+
- `/database --migration` - 遷移規劃助手
|
|
81
|
+
|
|
82
|
+
## 下一步引導
|
|
83
|
+
|
|
84
|
+
`/database` 完成後,AI 助手應建議:
|
|
85
|
+
|
|
86
|
+
> **資料庫設計完成。建議下一步:**
|
|
87
|
+
> - 執行 `/security` 檢查資料保護措施
|
|
88
|
+
> - 執行 `/testing` 規劃資料庫測試策略
|
|
89
|
+
> - 執行 `/checkin` 確認遷移符合提交規範
|
|
90
|
+
> - 產生 API 端點 → 執行 `/api-design`
|
|
91
|
+
|
|
92
|
+
## 參考
|
|
93
|
+
|
|
94
|
+
- 核心規範:[database-standards.md](../../../../core/database-standards.md)
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/dev-workflow-guide/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] 將軟體開發階段對應到 UDS 指令與功能的指南"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 開發工作流程指南
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/dev-workflow-guide/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
將你目前的軟體開發階段對應到正確的 UDS 指令與技能。即時了解在開發的每個階段應該使用哪些工具。
|
|
15
|
+
|
|
16
|
+
> **相關**:如需選擇或切換開發方法論(SDD、BDD、TDD),請改用 `/methodology`。
|
|
17
|
+
|
|
18
|
+
## 軟體開發階段總覽
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
I. 規劃設計 ──► II. 測試驅動開發 ──► III. 程式碼開發 ──► IV. 品質保證
|
|
22
|
+
|
|
23
|
+
V. 版本提交 ──► VI. 文件與架構 ──► VII. 工具與標準 ──► VIII. 進階分析
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 快速對照表
|
|
27
|
+
|
|
28
|
+
| 階段 | UDS 指令 | 用途 |
|
|
29
|
+
|------|----------|------|
|
|
30
|
+
| **I. 規劃與設計** | `/brainstorm` `/requirement` `/sdd` `/reverse` | 需求、規格、逆向工程 |
|
|
31
|
+
| **II. 測試驅動開發** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` | 先寫測試再寫程式 |
|
|
32
|
+
| **III. 實作** | `/refactor` `/reverse` | 撰寫與改善程式碼 |
|
|
33
|
+
| **IV. 品質關卡** | `/checkin` `/review` | 提交前檢查與程式碼審查 |
|
|
34
|
+
| **V. 發布與提交** | `/commit` `/changelog` `/release` | 版本、提交、發布 |
|
|
35
|
+
| **VI. 文件** | `/docs` `/docgen` `/struct` | 文件與專案結構 |
|
|
36
|
+
| **VII. 工具與標準** | `/discover` `/testing` `/guide` `/git` | 參考指南 |
|
|
37
|
+
| **VIII. 進階分析** | `/methodology` | 跨方法論工作流程 |
|
|
38
|
+
|
|
39
|
+
## 常見場景
|
|
40
|
+
|
|
41
|
+
### 場景 1:新功能開發
|
|
42
|
+
|
|
43
|
+
從零開始建立新功能的推薦流程:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
/brainstorm → /requirement → /sdd → /derive → /tdd → /checkin → /commit
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
| 步驟 | 指令 | 做什麼 |
|
|
50
|
+
|------|------|--------|
|
|
51
|
+
| 1 | `/brainstorm` | 探索想法與方法 |
|
|
52
|
+
| 2 | `/requirement` | 撰寫使用者故事(INVEST 準則) |
|
|
53
|
+
| 3 | `/sdd` | 建立規格文件 |
|
|
54
|
+
| 4 | `/derive` | 從規格產生測試骨架 |
|
|
55
|
+
| 5 | `/tdd` | 用紅綠重構循環實作 |
|
|
56
|
+
| 6 | `/checkin` | 驗證品質關卡 |
|
|
57
|
+
| 7 | `/commit` | 建立規範化提交 |
|
|
58
|
+
|
|
59
|
+
### 場景 2:修復錯誤
|
|
60
|
+
|
|
61
|
+
修復既有程式碼錯誤的推薦流程:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
/discover → /reverse → /tdd → /checkin → /commit
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
| 步驟 | 指令 | 做什麼 |
|
|
68
|
+
|------|------|--------|
|
|
69
|
+
| 1 | `/discover` | 評估受影響區域健康度 |
|
|
70
|
+
| 2 | `/reverse` | 理解現有程式碼結構 |
|
|
71
|
+
| 3 | `/tdd` | 先寫失敗測試,再修復 |
|
|
72
|
+
| 4 | `/checkin` | 驗證品質關卡 |
|
|
73
|
+
| 5 | `/commit` | 建立規範化提交 |
|
|
74
|
+
|
|
75
|
+
### 場景 3:重構
|
|
76
|
+
|
|
77
|
+
程式碼重構的推薦流程:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
/discover → /reverse → /coverage → /refactor → /checkin → /commit
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
| 步驟 | 指令 | 做什麼 |
|
|
84
|
+
|------|------|--------|
|
|
85
|
+
| 1 | `/discover` | 評估專案健康度與風險 |
|
|
86
|
+
| 2 | `/reverse` | 記錄目前行為 |
|
|
87
|
+
| 3 | `/coverage` | 確保測試安全網存在 |
|
|
88
|
+
| 4 | `/refactor` | 套用重構策略 |
|
|
89
|
+
| 5 | `/checkin` | 驗證品質關卡 |
|
|
90
|
+
| 6 | `/commit` | 建立規範化提交 |
|
|
91
|
+
|
|
92
|
+
## 使用方式
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
/dev-workflow # 顯示完整階段總覽
|
|
96
|
+
/dev-workflow planning # 取得第 I 階段指引
|
|
97
|
+
/dev-workflow testing # 取得第 II 階段指引
|
|
98
|
+
/dev-workflow new-feature # 取得新功能工作流程
|
|
99
|
+
/dev-workflow bug-fix # 取得修復錯誤工作流程
|
|
100
|
+
/dev-workflow refactoring # 取得重構工作流程
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 支援的參數
|
|
104
|
+
|
|
105
|
+
| 參數 | 說明 |
|
|
106
|
+
|------|------|
|
|
107
|
+
| `planning` | 第 I 階段:規劃與設計 |
|
|
108
|
+
| `testing` | 第 II 階段:測試驅動開發 |
|
|
109
|
+
| `implementation` | 第 III 階段:程式碼開發 |
|
|
110
|
+
| `quality` | 第 IV 階段:品質保證 |
|
|
111
|
+
| `release` | 第 V 階段:版本與提交 |
|
|
112
|
+
| `docs` | 第 VI 階段:文件與架構 |
|
|
113
|
+
| `standards` | 第 VII 階段:工具與標準 |
|
|
114
|
+
| `advanced` | 第 VIII 階段:進階系統分析 |
|
|
115
|
+
| `new-feature` | 場景:新功能開發 |
|
|
116
|
+
| `bug-fix` | 場景:修復錯誤 |
|
|
117
|
+
| `refactoring` | 場景:重構 |
|
|
118
|
+
|
|
119
|
+
## 工作流程行為
|
|
120
|
+
|
|
121
|
+
呼叫時:
|
|
122
|
+
|
|
123
|
+
1. **無參數**:顯示完整的階段總覽表,詢問使用者目前在哪個階段
|
|
124
|
+
2. **階段參數**:顯示該階段的詳細指引,包含所有相關指令與範例
|
|
125
|
+
3. **場景參數**:顯示該場景的推薦逐步工作流程
|
|
126
|
+
|
|
127
|
+
## 下一步引導
|
|
128
|
+
|
|
129
|
+
`/dev-workflow` 完成後,AI 助手應根據使用者情況建議:
|
|
130
|
+
|
|
131
|
+
> **工作流程已顯示。建議下一步:**
|
|
132
|
+
> - 新功能開發 → 執行 `/brainstorm` 探索想法
|
|
133
|
+
> - 修復錯誤 → 執行 `/discover` 評估受影響區域
|
|
134
|
+
> - 重構程式碼 → 執行 `/discover` 評估健康度
|
|
135
|
+
> - 遺留系統 → 執行 `/reverse` 進行系統考古
|
|
136
|
+
|
|
137
|
+
## 參考
|
|
138
|
+
|
|
139
|
+
- 詳細階段指引:[workflow-phases.md](../../../../skills/dev-workflow-guide/workflow-phases.md)
|
|
140
|
+
- 每日工作流程指南:[DAILY-WORKFLOW-GUIDE.md](../../../../adoption/DAILY-WORKFLOW-GUIDE.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
|
-
從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)。
|
|
9
|
-
使用時機:產生文件、建立速查表、產生參考手冊。
|
|
10
|
-
關鍵字:docgen, documentation, cheatsheet, reference, 文件產生, 速查表, 參考手冊。
|
|
7
|
+
description: "[UDS] 從專案原始檔案產生使用文件(速查表、參考手冊、使用指南)"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 文件產生器
|
|
@@ -4,10 +4,7 @@ source_version: 2.1.0
|
|
|
4
4
|
translation_version: 2.1.0
|
|
5
5
|
last_synced: 2026-03-17
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
引導文件結構、內容需求和專案文件最佳實踐。
|
|
9
|
-
使用時機:建立 README、文件、docs 目錄、專案設定、技術文件。
|
|
10
|
-
關鍵字:README, docs, documentation, CONTRIBUTING, CHANGELOG, ARCHITECTURE, API docs, 文件, 說明文件, 技術文件.
|
|
7
|
+
description: "[UDS] 引導文件結構、內容需求和專案文件最佳實踐"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 文件指南
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/durable-execution-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] 引導工作流程故障恢復,包含檢查點、重試與回滾策略"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 持久執行助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/durable-execution-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導容錯工作流程設計,包含自動恢復、檢查點與重試策略。
|
|
15
|
+
|
|
16
|
+
## 使用方式
|
|
17
|
+
|
|
18
|
+
| 命令 | 用途 |
|
|
19
|
+
|------|------|
|
|
20
|
+
| `/durable` | 啟動互動式故障恢復引導 |
|
|
21
|
+
| `/durable --checkpoint` | 設計檢查點策略 |
|
|
22
|
+
| `/durable --retry` | 配置重試策略 |
|
|
23
|
+
| `/durable --rollback` | 規劃回滾程序 |
|
|
24
|
+
| `/durable <workflow>` | 分析特定工作流的持久性 |
|
|
25
|
+
|
|
26
|
+
## 核心概念
|
|
27
|
+
|
|
28
|
+
| 概念 | 定義 |
|
|
29
|
+
|------|------|
|
|
30
|
+
| **檢查點** | 在已知正確的位置儲存執行狀態 |
|
|
31
|
+
| **重試** | 自動重新嘗試失敗的操作 |
|
|
32
|
+
| **回滾** | 失敗時回復到上一個已知正確狀態 |
|
|
33
|
+
| **冪等性** | 操作重新執行時產生相同結果 |
|
|
34
|
+
| **斷路器** | 失敗率超過閾值時停止重試 |
|
|
35
|
+
|
|
36
|
+
## 故障恢復決策樹
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
偵測到故障
|
|
40
|
+
├── 是否為暫時性?(網路、逾時)
|
|
41
|
+
│ ├── 是 → 帶退避的重試
|
|
42
|
+
│ └── 否 → 狀態是否損壞?
|
|
43
|
+
│ ├── 是 → 回滾至檢查點
|
|
44
|
+
│ └── 否 → 是否為邏輯錯誤?
|
|
45
|
+
│ ├── 是 → 停止、回報、修復程式碼
|
|
46
|
+
│ └── 否 → 帶診斷資訊升級處理
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 重試策略指南
|
|
50
|
+
|
|
51
|
+
| 策略 | 使用時機 | 配置 |
|
|
52
|
+
|------|---------|------|
|
|
53
|
+
| **立即重試** | 罕見故障、快速操作 | 最多 2 次重試 |
|
|
54
|
+
| **指數退避** | 網路/API 呼叫 | 基底 1s、最大 30s |
|
|
55
|
+
| **斷路器** | 下游服務問題 | 閾值 50%、視窗 60s |
|
|
56
|
+
| **死信佇列** | 重試後仍不可恢復 | 最多 5 次重試後排入佇列 |
|
|
57
|
+
|
|
58
|
+
## 檢查點粒度
|
|
59
|
+
|
|
60
|
+
| 粒度 | 使用場景 |
|
|
61
|
+
|------|---------|
|
|
62
|
+
| **每步驟** | 長管線(> 5 步驟) |
|
|
63
|
+
| **每批次** | 批量資料處理 |
|
|
64
|
+
| **每階段** | 多階段工作流程 |
|
|
65
|
+
| **起始/結束** | 短暫的原子操作 |
|
|
66
|
+
|
|
67
|
+
## 工作流程
|
|
68
|
+
|
|
69
|
+
1. **偵測** - 識別故障類型與範圍
|
|
70
|
+
2. **診斷** - 判定根本原因類別
|
|
71
|
+
3. **恢復** - 套用適當的恢復策略
|
|
72
|
+
4. **驗證** - 確認系統狀態一致
|
|
73
|
+
5. **繼續** - 從上一個檢查點繼續
|
|
74
|
+
|
|
75
|
+
## 下一步引導
|
|
76
|
+
|
|
77
|
+
`/durable` 完成後,AI 助手應建議:
|
|
78
|
+
|
|
79
|
+
> **持久性分析完成。建議下一步:**
|
|
80
|
+
> - 執行 `/methodology` 選擇適合的開發方法論
|
|
81
|
+
> - 執行 `/commit` 提交持久化設計變更
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: errors
|
|
3
|
-
description:
|
|
4
|
-
設計一致的錯誤碼,遵循 PREFIX_CATEGORY_NUMBER 格式。
|
|
5
|
-
使用時機:定義錯誤碼、建立錯誤處理、設計 API。
|
|
6
|
-
關鍵字:error code, error handling, error format, API errors, 錯誤碼, 錯誤處理。
|
|
3
|
+
description: "[UDS] 設計一致的錯誤碼,遵循 PREFIX_CATEGORY_NUMBER 格式"
|
|
7
4
|
source: ../../../../skills/error-code-guide/SKILL.md
|
|
8
5
|
source_version: 1.0.0
|
|
9
6
|
translation_version: 1.0.0
|