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
|
@@ -4,10 +4,7 @@ source_version: 2.0.0
|
|
|
4
4
|
translation_version: 2.0.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
從已批准的 SDD 規格生成衍生工件(BDD 場景、TDD 骨架、ATDD 表格)。
|
|
9
|
-
使用時機:從規格推導測試、產生 BDD/TDD/ATDD 工件。
|
|
10
|
-
關鍵字:derive, forward, BDD, TDD, ATDD, spec, 推演, 衍生, 規格, 場景。
|
|
7
|
+
description: "[UDS] 從已批准的 SDD 規格生成衍生工件(BDD/TDD/ATDD)"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 正向推演
|
|
@@ -5,10 +5,7 @@ translation_version: 1.0.0
|
|
|
5
5
|
last_synced: 2025-12-25
|
|
6
6
|
status: current
|
|
7
7
|
name: git-flow
|
|
8
|
-
description:
|
|
9
|
-
指導 Git 分支策略、分支命名與合併操作。
|
|
10
|
-
使用時機:建立分支、合併、Pull Request、Git 工作流程問題。
|
|
11
|
-
關鍵字:branch, merge, PR, pull request, GitFlow, GitHub Flow, 分支, 合併, 工作流程。
|
|
8
|
+
description: "[UDS] 指導 Git 分支策略、分支命名與合併操作"
|
|
12
9
|
---
|
|
13
10
|
|
|
14
11
|
# Git 工作流程指南
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/incident-response-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/incident-response-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導結構化的事故回應流程,從偵測到事後檢討。
|
|
15
|
+
|
|
16
|
+
## 嚴重程度分類
|
|
17
|
+
|
|
18
|
+
| 等級 | 名稱 | 標準 | 回應時間 |
|
|
19
|
+
|------|------|------|----------|
|
|
20
|
+
| **SEV-1** | 重大 | 全面服務中斷、資料遺失 | 立即(< 15 分鐘) |
|
|
21
|
+
| **SEV-2** | 高 | 主要功能降級、部分中斷 | < 30 分鐘 |
|
|
22
|
+
| **SEV-3** | 中 | 次要功能受影響、有替代方案 | < 4 小時 |
|
|
23
|
+
| **SEV-4** | 低 | 外觀問題、最小用戶影響 | 下一個工作日 |
|
|
24
|
+
|
|
25
|
+
## 回應工作流程
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
DETECT ──► TRIAGE ──► MITIGATE ──► RESOLVE ──► POST-MORTEM
|
|
29
|
+
偵測 分級 緩解 解決 事後檢討
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 1. Detect — 偵測事故
|
|
33
|
+
監控告警、使用者回報、錯誤量飆升。
|
|
34
|
+
|
|
35
|
+
### 2. Triage — 分級嚴重程度
|
|
36
|
+
指定嚴重等級、識別事故指揮官(IC)。
|
|
37
|
+
|
|
38
|
+
### 3. Mitigate — 緩解影響
|
|
39
|
+
套用暫時修復:回滾、功能開關、流量切換。
|
|
40
|
+
|
|
41
|
+
### 4. Resolve — 永久修復
|
|
42
|
+
根因分析、實作正確修復、部署。
|
|
43
|
+
|
|
44
|
+
### 5. Post-Mortem — 事後檢討
|
|
45
|
+
記錄時間軸、影響範圍、根因、行動項目。
|
|
46
|
+
|
|
47
|
+
## 事後檢討模板
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## 事後檢討:[事故標題]
|
|
51
|
+
**日期**: YYYY-MM-DD | **嚴重程度**: SEV-N | **持續時間**: Xh Ym
|
|
52
|
+
|
|
53
|
+
### 時間軸
|
|
54
|
+
| 時間 | 事件 |
|
|
55
|
+
|------|------|
|
|
56
|
+
| HH:MM | 告警觸發 |
|
|
57
|
+
| HH:MM | 指派事故指揮官 |
|
|
58
|
+
| HH:MM | 套用緩解措施 |
|
|
59
|
+
| HH:MM | 解決 |
|
|
60
|
+
|
|
61
|
+
### 影響
|
|
62
|
+
- 受影響用戶數:N
|
|
63
|
+
- 營收影響:$N
|
|
64
|
+
- SLA 違反:是/否
|
|
65
|
+
|
|
66
|
+
### 根本原因
|
|
67
|
+
[根本原因描述]
|
|
68
|
+
|
|
69
|
+
### 行動項目
|
|
70
|
+
| 行動 | 負責人 | 截止日期 | 優先級 |
|
|
71
|
+
|------|--------|----------|--------|
|
|
72
|
+
| [修復] | @name | YYYY-MM-DD | P0 |
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 溝通模板
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
[SEV-N] [服務名稱] — [簡短描述]
|
|
79
|
+
狀態:調查中 / 緩解中 / 已解決
|
|
80
|
+
影響:[誰受到影響及如何影響]
|
|
81
|
+
下次更新:[時間]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 使用方式
|
|
85
|
+
|
|
86
|
+
- `/incident` - 顯示完整事故回應指南
|
|
87
|
+
- `/incident "API 500 errors"` - 特定事故引導回應
|
|
88
|
+
- `/incident --post-mortem` - 產生事後檢討模板
|
|
89
|
+
- `/incident --sev1` - SEV-1 快速回應清單
|
|
90
|
+
|
|
91
|
+
## 下一步引導
|
|
92
|
+
|
|
93
|
+
`/incident` 完成後,AI 助手應建議:
|
|
94
|
+
|
|
95
|
+
> **事故回應指引已提供。建議下一步:**
|
|
96
|
+
> - 執行 `/commit` 建立修復提交
|
|
97
|
+
> - 執行 `/review` 審查修復變更
|
|
98
|
+
> - 執行 `/docs` 更新文件
|
|
99
|
+
> - 執行 `/security` 檢查安全影響
|
|
100
|
+
|
|
101
|
+
## 參考
|
|
102
|
+
|
|
103
|
+
- 核心規範:[deployment-standards.md](../../../../core/deployment-standards.md)
|
|
104
|
+
- 核心規範:[logging.md](../../../../core/logging.md)
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: logging
|
|
3
|
-
description:
|
|
4
|
-
實作結構化日誌,包含正確的日誌層級和敏感資料處理。
|
|
5
|
-
使用時機:新增日誌、除錯、設定可觀測性。
|
|
6
|
-
關鍵字:logging, log level, structured logging, observability, 日誌, 記錄, 結構化日誌。
|
|
3
|
+
description: "[UDS] 實作結構化日誌,包含正確的日誌層級和敏感資料處理"
|
|
7
4
|
source: ../../../../skills/logging-guide/SKILL.md
|
|
8
5
|
source_version: 1.0.0
|
|
9
6
|
translation_version: 1.0.0
|
|
@@ -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
|
-
管理當前專案的開發方法論,支援 SDD 和雙迴圈 TDD 兩個獨立系統。
|
|
9
|
-
使用時機:切換方法論、檢視當前階段、管理開發流程。
|
|
10
|
-
關鍵字:methodology, SDD, TDD, BDD, ATDD, 方法論, 開發流程。
|
|
7
|
+
description: "[UDS] 管理當前專案的開發方法論,支援 SDD 和雙迴圈 TDD 兩個獨立系統"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 方法論系統
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/metrics-dashboard-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/metrics-dashboard-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
追蹤開發指標、程式碼品質指示器,以及專案隨時間的健康狀態。
|
|
15
|
+
|
|
16
|
+
## 使用方式
|
|
17
|
+
|
|
18
|
+
| 命令 | 用途 |
|
|
19
|
+
|------|------|
|
|
20
|
+
| `/metrics` | 執行完整專案健康檢查 |
|
|
21
|
+
| `/metrics --quality` | 僅程式碼品質指標 |
|
|
22
|
+
| `/metrics --debt` | 技術債摘要 |
|
|
23
|
+
| `/metrics --test` | 測試健康指標 |
|
|
24
|
+
| `/metrics src/` | 限定特定模組範圍 |
|
|
25
|
+
|
|
26
|
+
## 指標類別
|
|
27
|
+
|
|
28
|
+
| 類別 | 指標說明 |
|
|
29
|
+
|------|----------|
|
|
30
|
+
| **程式碼品質** | 複雜度、重複率、lint 警告 |
|
|
31
|
+
| **測試健康** | 覆蓋率 %、通過率、不穩定測試數 |
|
|
32
|
+
| **提交品質** | 大小、頻率、格式合規 |
|
|
33
|
+
| **債務追蹤** | TODO/FIXME 數量、問題存在時間 |
|
|
34
|
+
| **依賴健康** | 過時套件、漏洞數量 |
|
|
35
|
+
|
|
36
|
+
## 快速健康分數
|
|
37
|
+
|
|
38
|
+
健康分數為加權組合:
|
|
39
|
+
|
|
40
|
+
| 因素 | 權重 | 理想值 |
|
|
41
|
+
|------|------|--------|
|
|
42
|
+
| 測試覆蓋率 | 30% | >= 80% |
|
|
43
|
+
| Lint 通過率 | 20% | 100% |
|
|
44
|
+
| TODO/FIXME 密度 | 15% | < 每千行 1 個 |
|
|
45
|
+
| 建構成功率 | 20% | 100% |
|
|
46
|
+
| 依賴新鮮度 | 15% | < 3 個月 |
|
|
47
|
+
|
|
48
|
+
**分數 = sum(因素分數 * 權重)**
|
|
49
|
+
|
|
50
|
+
## 工作流程
|
|
51
|
+
|
|
52
|
+
1. **收集** - 從工具與 git 歷史收集原始指標
|
|
53
|
+
2. **分析** - 與閾值及歷史趨勢比較
|
|
54
|
+
3. **報告** - 產生含可行動重點的摘要
|
|
55
|
+
4. **趨勢** - 顯示方向(改善 / 衰退 / 穩定)
|
|
56
|
+
|
|
57
|
+
## 下一步引導
|
|
58
|
+
|
|
59
|
+
`/metrics` 完成後,AI 助手應建議:
|
|
60
|
+
|
|
61
|
+
> **指標分析完成。建議下一步:**
|
|
62
|
+
> - 執行 `/refactor` 處理高複雜度模組
|
|
63
|
+
> - 執行 `/coverage` 改善低覆蓋率區域
|
|
64
|
+
> - 執行 `/audit` 檢視安全與依賴問題
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/migration-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/migration-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導系統性程式碼遷移、框架升級與技術現代化。
|
|
15
|
+
|
|
16
|
+
## 使用方式
|
|
17
|
+
|
|
18
|
+
| 命令 | 用途 |
|
|
19
|
+
|------|------|
|
|
20
|
+
| `/migrate` | 啟動互動式遷移引導 |
|
|
21
|
+
| `/migrate --assess` | 僅風險評估 |
|
|
22
|
+
| `/migrate "Vue 2 to 3"` | 引導特定遷移 |
|
|
23
|
+
| `/migrate --deps` | 依賴升級分析 |
|
|
24
|
+
| `/migrate --rollback` | 規劃回滾策略 |
|
|
25
|
+
|
|
26
|
+
## 遷移類型
|
|
27
|
+
|
|
28
|
+
| 類型 | 範例 | 風險 |
|
|
29
|
+
|------|------|------|
|
|
30
|
+
| **框架升級** | React 17→18, Vue 2→3 | 中高 |
|
|
31
|
+
| **語言遷移** | JS→TS, Python 2→3 | 高 |
|
|
32
|
+
| **API 版本** | REST v1→v2, GraphQL 更新 | 中 |
|
|
33
|
+
| **資料庫遷移** | MySQL→PostgreSQL | 極高 |
|
|
34
|
+
| **建構工具** | Webpack→Vite | 低中 |
|
|
35
|
+
| **套件管理器** | npm→pnpm | 低 |
|
|
36
|
+
|
|
37
|
+
## 風險評估矩陣
|
|
38
|
+
|
|
39
|
+
| | 低影響 | 中影響 | 高影響 |
|
|
40
|
+
|---|--------|--------|--------|
|
|
41
|
+
| **低複雜度** | 安全(直接進行) | 謹慎 | 仔細規劃 |
|
|
42
|
+
| **中複雜度** | 謹慎 | 規劃 + 測試 | 分階段發布 |
|
|
43
|
+
| **高複雜度** | 規劃 + 測試 | 分階段發布 | 完整 SDD 規格 |
|
|
44
|
+
|
|
45
|
+
## 工作流程
|
|
46
|
+
|
|
47
|
+
1. **評估** - 評估現狀、識別破壞性變更
|
|
48
|
+
2. **規劃** - 建立含依賴關係的遷移清單
|
|
49
|
+
3. **準備** - 設定 codemods、相容層、功能旗標
|
|
50
|
+
4. **遷移** - 分階段執行遷移並測試
|
|
51
|
+
5. **驗證** - 執行完整測試套件、檢查回歸
|
|
52
|
+
6. **清理** - 移除相容層、舊依賴
|
|
53
|
+
|
|
54
|
+
## 回滾策略
|
|
55
|
+
|
|
56
|
+
| 方式 | 使用時機 |
|
|
57
|
+
|------|---------|
|
|
58
|
+
| **Git revert** | 小型、原子性變更 |
|
|
59
|
+
| **功能旗標** | 需要逐步發布 |
|
|
60
|
+
| **雙運行** | 關鍵系統、零停機 |
|
|
61
|
+
| **分支凍結** | 一次性完整遷移 |
|
|
62
|
+
|
|
63
|
+
## 下一步引導
|
|
64
|
+
|
|
65
|
+
`/migrate` 完成後,AI 助手應建議:
|
|
66
|
+
|
|
67
|
+
> **遷移分析完成。建議下一步:**
|
|
68
|
+
> - 執行 `/reverse` 深入理解現有程式碼
|
|
69
|
+
> - 執行 `/testing` 確保遷移後測試通過
|
|
70
|
+
> - 執行 `/commit` 提交遷移變更
|
|
71
|
+
|
|
72
|
+
## 參考
|
|
73
|
+
|
|
74
|
+
- 核心規範:[refactoring-standards.md](../../../../core/refactoring-standards.md)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/pr-automation-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] 引導 Pull Request 建立、審查自動化和合併策略"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# PR 自動化助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/pr-automation-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
簡化從建立到合併的 Pull Request 生命週期。
|
|
15
|
+
|
|
16
|
+
## PR 建立檢查清單
|
|
17
|
+
|
|
18
|
+
| 項目 | 規則 |
|
|
19
|
+
|------|------|
|
|
20
|
+
| 標題 | `<type>(<scope>): <summary>`,70 字元內 |
|
|
21
|
+
| 描述 | 使用結構化模板 |
|
|
22
|
+
| 標籤 | 至少一個分類標籤 |
|
|
23
|
+
| 審查者 | 依 CODEOWNERS 或領域指派 |
|
|
24
|
+
| 分支 | 與基礎分支同步 |
|
|
25
|
+
|
|
26
|
+
## PR 描述模板
|
|
27
|
+
|
|
28
|
+
```markdown
|
|
29
|
+
## 摘要
|
|
30
|
+
<1-3 個重點描述變更>
|
|
31
|
+
|
|
32
|
+
## 變更內容
|
|
33
|
+
- 新增 / 修改 / 移除 ...
|
|
34
|
+
|
|
35
|
+
## 測試計畫
|
|
36
|
+
- [ ] 單元測試通過
|
|
37
|
+
- [ ] 手動驗證步驟
|
|
38
|
+
|
|
39
|
+
## 截圖
|
|
40
|
+
(如有 UI 變更)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 合併策略決策
|
|
44
|
+
|
|
45
|
+
| 策略 | 使用時機 |
|
|
46
|
+
|------|----------|
|
|
47
|
+
| **Squash merge** | 功能分支,提交記錄零散 |
|
|
48
|
+
| **Merge commit** | 發布分支,保留完整歷史 |
|
|
49
|
+
| **Rebase** | 線性歷史,小幅變更 |
|
|
50
|
+
|
|
51
|
+
## 自動審查觸發條件
|
|
52
|
+
|
|
53
|
+
| 觸發條件 | 閾值 | 動作 |
|
|
54
|
+
|----------|------|------|
|
|
55
|
+
| PR 大小 | > 400 行變更 | 要求拆分 |
|
|
56
|
+
| 無測試 | 0 個測試檔案變更 | 阻止合併 |
|
|
57
|
+
| CI 失敗 | 任何檢查失敗 | 阻止合併 |
|
|
58
|
+
| 過期 PR | > 7 天無活動 | 通知作者 |
|
|
59
|
+
| 草稿 PR | 標記為草稿 | 跳過審查者指派 |
|
|
60
|
+
|
|
61
|
+
## 工作流程
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## 使用方式
|
|
68
|
+
|
|
69
|
+
- `/pr` - 引導建立當前分支的 PR
|
|
70
|
+
- `/pr create` - 使用模板建立 PR
|
|
71
|
+
- `/pr --template` - 顯示 PR 描述模板
|
|
72
|
+
- `/pr review 123` - 審查特定 PR
|
|
73
|
+
|
|
74
|
+
## 下一步引導
|
|
75
|
+
|
|
76
|
+
`/pr` 完成後,AI 助手應建議:
|
|
77
|
+
|
|
78
|
+
> **PR 操作完成。建議下一步:**
|
|
79
|
+
> - 執行 `/review` 進行詳細程式碼審查
|
|
80
|
+
> - 執行 `/commit` 修正審查發現的問題
|
|
81
|
+
> - 執行 `/changelog` 更新變更日誌
|
|
82
|
+
> - 檢查 CI 狀態 → `gh pr checks`
|
|
83
|
+
|
|
84
|
+
## 參考
|
|
85
|
+
|
|
86
|
+
- 核心規範:[code-review-checklist.md](../../../../core/code-review-checklist.md)
|
|
87
|
+
- 核心規範:[git-workflow.md](../../../../core/git-workflow.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
|
-
在既有程式碼庫新增功能前的 Phase 0 評估,評估專案健康度、架構與風險。
|
|
9
|
-
使用時機:新增功能前、專案健康度檢查、風險評估。
|
|
10
|
-
關鍵字:discover, assessment, health, risk, 評估, 健康度, 風險, 架構。
|
|
7
|
+
description: "[UDS] 在既有程式碼庫新增功能前的 Phase 0 評估,評估專案健康度與風險"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 專案現況評估
|
|
@@ -4,10 +4,7 @@ source_version: 2.0.0
|
|
|
4
4
|
translation_version: 2.0.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
引導重構決策、推薦策略,並提供逐步執行工作流程。
|
|
9
|
-
使用時機:重構程式碼、評估重構 vs 重寫、處理遺留程式碼。
|
|
10
|
-
關鍵字:refactor, strategy, legacy, technical debt, 重構, 策略, 遺留程式碼, 技術債。
|
|
7
|
+
description: "[UDS] 引導重構決策、推薦策略,並提供逐步執行工作流程"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 重構助手
|
|
@@ -4,10 +4,7 @@ source_version: 1.1.0
|
|
|
4
4
|
translation_version: 1.1.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
引導遵循語義化版本和變更日誌最佳實踐的發布流程。
|
|
9
|
-
使用時機:版本發布、版本管理、變更日誌更新。
|
|
10
|
-
關鍵字:release, version, semver, changelog, 發布, 版本, 語義化。
|
|
7
|
+
description: "[UDS] 引導遵循語義化版本和變更日誌最佳實踐的發布流程"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 發布助手
|
|
@@ -4,10 +4,7 @@ source_version: 1.0.0
|
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
撰寫結構良好的使用者故事和需求文件,遵循 INVEST 準則。
|
|
9
|
-
使用時機:撰寫需求、定義使用者故事、驗收條件。
|
|
10
|
-
關鍵字:requirement, user story, INVEST, acceptance criteria, 需求, 使用者故事, 驗收條件。
|
|
7
|
+
description: "[UDS] 撰寫結構良好的使用者故事和需求文件,遵循 INVEST 準則"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 需求助手
|
|
@@ -4,10 +4,7 @@ source_version: 1.2.0
|
|
|
4
4
|
translation_version: 1.2.0
|
|
5
5
|
last_synced: 2026-02-10
|
|
6
6
|
status: current
|
|
7
|
-
description:
|
|
8
|
-
將現有程式碼反向工程為規格文件、BDD 場景或 TDD 覆蓋率報告。
|
|
9
|
-
使用時機:從程式碼提取規格、產生 Gherkin 場景、分析測試覆蓋率。
|
|
10
|
-
關鍵字:reverse engineering, spec, bdd, tdd, 反向工程, 規格, 覆蓋率。
|
|
7
|
+
description: "[UDS] 將現有程式碼反向工程為規格文件、BDD 場景或 TDD 覆蓋率報告"
|
|
11
8
|
---
|
|
12
9
|
|
|
13
10
|
# 反向工程助手
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/security-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] 引導安全審查和漏洞評估,遵循 OWASP 標準"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# 安全審計助手
|
|
11
|
+
|
|
12
|
+
> **語言**: [English](../../../../skills/security-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
引導系統化的安全審查,遵循 OWASP Top 10 和業界最佳實踐。
|
|
15
|
+
|
|
16
|
+
## 快速檢查清單 — OWASP Top 10 預防
|
|
17
|
+
|
|
18
|
+
| ID | 風險 | 預防措施 |
|
|
19
|
+
|----|------|----------|
|
|
20
|
+
| A01 | 存取控制失效 | 最小權限原則,預設拒絕 |
|
|
21
|
+
| A02 | 加密失敗 | 使用強加密演算法,保護金鑰 |
|
|
22
|
+
| A03 | 注入攻擊 | 參數化查詢、輸入驗證 |
|
|
23
|
+
| A04 | 不安全設計 | 威脅建模、安全設計模式 |
|
|
24
|
+
| A05 | 安全配置錯誤 | 強化預設值、最小權限 |
|
|
25
|
+
| A06 | 易受攻擊的元件 | 追蹤相依套件、定期修補 |
|
|
26
|
+
| A07 | 認證失敗 | 多因素認證、強密碼策略 |
|
|
27
|
+
| A08 | 資料完整性失敗 | 驗證簽章、使用可信來源 |
|
|
28
|
+
| A09 | 日誌記錄失敗 | 記錄安全事件、監控告警 |
|
|
29
|
+
| A10 | SSRF | 驗證 URL、限制對外流量 |
|
|
30
|
+
|
|
31
|
+
## 安全審查工作流程
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
SCOPE ──► SCAN ──► ANALYZE ──► REPORT
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 1. Scope — 定義審計範圍
|
|
38
|
+
識別目標模組、資料流和信任邊界。
|
|
39
|
+
|
|
40
|
+
### 2. Scan — 識別漏洞
|
|
41
|
+
檢查程式碼的 OWASP Top 10 模式、檢查相依套件、檢視配置。
|
|
42
|
+
|
|
43
|
+
### 3. Analyze — 評估風險
|
|
44
|
+
依嚴重程度(Critical/High/Medium/Low)和可利用性分類。
|
|
45
|
+
|
|
46
|
+
### 4. Report — 記錄發現
|
|
47
|
+
產出可行動的發現報告,附帶修復建議。
|
|
48
|
+
|
|
49
|
+
## 嚴重程度分類
|
|
50
|
+
|
|
51
|
+
| 等級 | 標準 |
|
|
52
|
+
|------|------|
|
|
53
|
+
| **Critical** | 遠端程式碼執行、資料洩漏 |
|
|
54
|
+
| **High** | 認證繞過、權限提升 |
|
|
55
|
+
| **Medium** | 資訊洩漏、CSRF |
|
|
56
|
+
| **Low** | 缺少 Header、冗長錯誤訊息 |
|
|
57
|
+
|
|
58
|
+
## 使用方式
|
|
59
|
+
|
|
60
|
+
- `/security` - 完整安全審查
|
|
61
|
+
- `/security src/auth` - 審計特定模組
|
|
62
|
+
- `/security --owasp` - OWASP Top 10 重點審查
|
|
63
|
+
|
|
64
|
+
## 下一步引導
|
|
65
|
+
|
|
66
|
+
`/security` 完成後,AI 助手應建議:
|
|
67
|
+
|
|
68
|
+
> **安全審查完成。建議下一步:**
|
|
69
|
+
> - 執行 `/checkin` 確認修復符合提交規範
|
|
70
|
+
> - 執行 `/review` 進行程式碼審查
|
|
71
|
+
> - 執行 `/commit` 提交安全修復
|
|
72
|
+
> - 檢查相依套件更新 → `npm audit` 或 `pip audit`
|
|
73
|
+
|
|
74
|
+
## 參考
|
|
75
|
+
|
|
76
|
+
- 核心規範:[security-standards.md](../../../../core/security-standards.md)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/security-scan-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/security-scan-assistant/SKILL.md) | 繁體中文
|
|
13
|
+
|
|
14
|
+
自動化相依套件、機密資訊和授權合規的安全掃描。
|
|
15
|
+
|
|
16
|
+
## 掃描類型
|
|
17
|
+
|
|
18
|
+
| 類型 | 工具範例 | 用途 |
|
|
19
|
+
|------|----------|------|
|
|
20
|
+
| **相依套件審計** | npm audit, pip-audit, Snyk | 檢測已知 CVE |
|
|
21
|
+
| **機密偵測** | gitleaks, trufflehog | 偵測洩漏的憑證 |
|
|
22
|
+
| **授權合規** | license-checker, SPDX | 驗證開源授權相容性 |
|
|
23
|
+
| **SAST** | Semgrep, CodeQL | 靜態分析程式碼模式 |
|
|
24
|
+
|
|
25
|
+
## 工具整合
|
|
26
|
+
|
|
27
|
+
| 工具 | 指令 | 範圍 |
|
|
28
|
+
|------|------|------|
|
|
29
|
+
| npm audit | `npm audit --json` | Node.js 相依套件 |
|
|
30
|
+
| Snyk | `npx snyk test` | 多語言相依套件 |
|
|
31
|
+
| Trivy | `trivy fs .` | 檔案系統與容器 |
|
|
32
|
+
| gitleaks | `gitleaks detect` | Git 歷史機密 |
|
|
33
|
+
| SPDX | `npx spdx-tool` | 授權 SBOM 產出 |
|
|
34
|
+
|
|
35
|
+
## 嚴重程度分類與 SLA
|
|
36
|
+
|
|
37
|
+
| 嚴重程度 | SLA | 標準 |
|
|
38
|
+
|----------|-----|------|
|
|
39
|
+
| **Critical** | 24 小時 | 遠端執行、認證繞過、資料外洩 |
|
|
40
|
+
| **High** | 72 小時 | 權限提升、SQL 注入 |
|
|
41
|
+
| **Medium** | 2 週 | XSS、CSRF、資訊洩漏 |
|
|
42
|
+
| **Low** | 下個 Sprint | 缺少 Header、冗長錯誤訊息 |
|
|
43
|
+
|
|
44
|
+
## 工作流程
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 使用方式
|
|
51
|
+
|
|
52
|
+
- `/scan` - 完整掃描(相依套件 + 機密 + 授權)
|
|
53
|
+
- `/scan --deps` - 僅相依套件審計
|
|
54
|
+
- `/scan --secrets` - 僅機密偵測
|
|
55
|
+
- `/scan --license` - 授權合規檢查
|
|
56
|
+
|
|
57
|
+
## 下一步引導
|
|
58
|
+
|
|
59
|
+
`/scan` 完成後,AI 助手應建議:
|
|
60
|
+
|
|
61
|
+
> **掃描完成。建議下一步:**
|
|
62
|
+
> - 執行 `/security` 深入安全審查
|
|
63
|
+
> - 執行 `/checkin` 確認修復符合提交規範
|
|
64
|
+
> - 執行 `/commit` 提交安全修復
|
|
65
|
+
> - 更新相依套件 → `npm update` 或 `pip install --upgrade`
|
|
66
|
+
|
|
67
|
+
## 參考
|
|
68
|
+
|
|
69
|
+
- 核心規範:[security-standards.md](../../../../core/security-standards.md)
|