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,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migrate
|
|
3
|
+
scope: universal
|
|
4
|
+
description: "[UDS] Guide code migration, framework upgrades, and technology modernization"
|
|
5
|
+
allowed-tools: Read, Grep, Glob, Bash(npm:*, git:*)
|
|
6
|
+
argument-hint: "[migration target or framework | 遷移目標或框架]"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Migration Assistant | 遷移助手
|
|
10
|
+
|
|
11
|
+
Guide systematic code migration, framework upgrades, and technology modernization.
|
|
12
|
+
|
|
13
|
+
引導系統性程式碼遷移、框架升級與技術現代化。
|
|
14
|
+
|
|
15
|
+
## Usage | 使用方式
|
|
16
|
+
|
|
17
|
+
| Command | Purpose | 用途 |
|
|
18
|
+
|---------|---------|------|
|
|
19
|
+
| `/migrate` | Start interactive migration guide | 啟動互動式遷移引導 |
|
|
20
|
+
| `/migrate --assess` | Risk assessment only | 僅風險評估 |
|
|
21
|
+
| `/migrate "Vue 2 to 3"` | Guide specific migration | 引導特定遷移 |
|
|
22
|
+
| `/migrate --deps` | Dependency upgrade analysis | 依賴升級分析 |
|
|
23
|
+
| `/migrate --rollback` | Plan rollback strategy | 規劃回滾策略 |
|
|
24
|
+
|
|
25
|
+
## Migration Types | 遷移類型
|
|
26
|
+
|
|
27
|
+
| Type | Examples | Risk | 風險 |
|
|
28
|
+
|------|----------|------|------|
|
|
29
|
+
| **Framework Upgrade** | React 17→18, Vue 2→3, Angular 15→17 | Medium-High | 中高 |
|
|
30
|
+
| **Language Migration** | JS→TS, Python 2→3, Java 8→17 | High | 高 |
|
|
31
|
+
| **API Version** | REST v1→v2, GraphQL schema update | Medium | 中 |
|
|
32
|
+
| **Database Migration** | MySQL→PostgreSQL, SQL→NoSQL | Very High | 極高 |
|
|
33
|
+
| **Build Tool** | Webpack→Vite, Grunt→ESBuild | Low-Medium | 低中 |
|
|
34
|
+
| **Package Manager** | npm→pnpm, pip→poetry | Low | 低 |
|
|
35
|
+
|
|
36
|
+
## Risk Assessment Matrix | 風險評估矩陣
|
|
37
|
+
|
|
38
|
+
| | Low Impact | Medium Impact | High Impact |
|
|
39
|
+
|---|-----------|---------------|-------------|
|
|
40
|
+
| **Low Complexity** | Safe (proceed) | Caution | Plan carefully |
|
|
41
|
+
| **Medium Complexity** | Caution | Plan + test | Staged rollout |
|
|
42
|
+
| **High Complexity** | Plan + test | Staged rollout | Full SDD spec |
|
|
43
|
+
|
|
44
|
+
| | 低影響 | 中影響 | 高影響 |
|
|
45
|
+
|---|--------|--------|--------|
|
|
46
|
+
| **低複雜度** | 安全(直接進行) | 謹慎 | 仔細規劃 |
|
|
47
|
+
| **中複雜度** | 謹慎 | 規劃 + 測試 | 分階段發布 |
|
|
48
|
+
| **高複雜度** | 規劃 + 測試 | 分階段發布 | 完整 SDD 規格 |
|
|
49
|
+
|
|
50
|
+
## Workflow | 工作流程
|
|
51
|
+
|
|
52
|
+
1. **ASSESS** - Evaluate current state, identify breaking changes
|
|
53
|
+
2. **PLAN** - Create migration checklist with dependencies
|
|
54
|
+
3. **PREPARE** - Set up codemods, compatibility layers, feature flags
|
|
55
|
+
4. **MIGRATE** - Execute migration in phases with tests
|
|
56
|
+
5. **VERIFY** - Run full test suite, check for regressions
|
|
57
|
+
6. **CLEANUP** - Remove compatibility shims, old dependencies
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
1. **評估** - 評估現狀、識別破壞性變更
|
|
62
|
+
2. **規劃** - 建立含依賴關係的遷移清單
|
|
63
|
+
3. **準備** - 設定 codemods、相容層、功能旗標
|
|
64
|
+
4. **遷移** - 分階段執行遷移並測試
|
|
65
|
+
5. **驗證** - 執行完整測試套件、檢查回歸
|
|
66
|
+
6. **清理** - 移除相容層、舊依賴
|
|
67
|
+
|
|
68
|
+
## Rollback Strategy | 回滾策略
|
|
69
|
+
|
|
70
|
+
| Approach | When to Use | 使用時機 |
|
|
71
|
+
|----------|-------------|---------|
|
|
72
|
+
| **Git revert** | Small, atomic changes | 小型、原子性變更 |
|
|
73
|
+
| **Feature flag** | Gradual rollout needed | 需要逐步發布 |
|
|
74
|
+
| **Dual-run** | Critical systems, zero downtime | 關鍵系統、零停機 |
|
|
75
|
+
| **Branch freeze** | Full migration in one go | 一次性完整遷移 |
|
|
76
|
+
|
|
77
|
+
## Usage Examples | 使用範例
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
User: /migrate "Vue 2 to 3"
|
|
81
|
+
AI: Migration Assessment: Vue 2 → Vue 3
|
|
82
|
+
Breaking changes found: 12
|
|
83
|
+
- Options API → Composition API (47 components)
|
|
84
|
+
- Filters removed (8 usages)
|
|
85
|
+
- Event bus removed (3 usages)
|
|
86
|
+
Risk: Medium-High
|
|
87
|
+
Estimated effort: 2-3 weeks
|
|
88
|
+
Recommended: Staged migration with @vue/compat
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Next Steps Guidance | 下一步引導
|
|
92
|
+
|
|
93
|
+
After `/migrate` completes, the AI assistant should suggest:
|
|
94
|
+
|
|
95
|
+
> **遷移分析完成。建議下一步 / Migration analysis complete. Suggested next steps:**
|
|
96
|
+
> - 執行 `/reverse` 深入理解現有程式碼 — Understand current codebase
|
|
97
|
+
> - 執行 `/testing` 確保遷移後測試通過 — Verify post-migration tests
|
|
98
|
+
> - 執行 `/commit` 提交遷移變更 — Commit migration changes
|
|
99
|
+
|
|
100
|
+
## Reference | 參考
|
|
101
|
+
|
|
102
|
+
- Core standard: [refactoring-standards.md](../../core/refactoring-standards.md)
|
|
103
|
+
|
|
104
|
+
## Version History | 版本歷史
|
|
105
|
+
|
|
106
|
+
| Version | Date | Changes | 變更 |
|
|
107
|
+
|---------|------|---------|------|
|
|
108
|
+
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## AI Agent Behavior | AI 代理行為
|
|
112
|
+
|
|
113
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/migrate`](../commands/migrate.md#ai-agent-behavior--ai-代理行為)
|
|
114
|
+
>
|
|
115
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/migrate`](../commands/migrate.md#ai-agent-behavior--ai-代理行為)
|
|
116
|
+
|
|
117
|
+
## License | 授權
|
|
118
|
+
|
|
119
|
+
CC BY 4.0
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr
|
|
3
|
+
scope: universal
|
|
4
|
+
description: |
|
|
5
|
+
Guide pull request creation, review automation, and merge strategies.
|
|
6
|
+
Use when: creating PRs, automating reviews, configuring merge policies.
|
|
7
|
+
Keywords: pull request, PR, merge, review, GitHub, GitLab, 合併請求, 審查.
|
|
8
|
+
allowed-tools: Read, Grep, Glob, Bash(git:*, gh:*)
|
|
9
|
+
argument-hint: "[branch name or PR number | 分支名稱或 PR 編號]"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# PR Automation Assistant | PR 自動化助手
|
|
13
|
+
|
|
14
|
+
Streamline the pull request lifecycle from creation to merge.
|
|
15
|
+
|
|
16
|
+
簡化從建立到合併的 Pull Request 生命週期。
|
|
17
|
+
|
|
18
|
+
## PR Creation Checklist | PR 建立檢查清單
|
|
19
|
+
|
|
20
|
+
| Item | Rule | 規則 |
|
|
21
|
+
|------|------|------|
|
|
22
|
+
| Title | `<type>(<scope>): <summary>` under 70 chars | 70 字元內,遵循 conventional commits |
|
|
23
|
+
| Description | Use structured template below | 使用下方結構化模板 |
|
|
24
|
+
| Labels | At least one category label | 至少一個分類標籤 |
|
|
25
|
+
| Reviewers | Assign based on CODEOWNERS or domain | 依 CODEOWNERS 或領域指派 |
|
|
26
|
+
| Branch | Up to date with base branch | 與基礎分支同步 |
|
|
27
|
+
|
|
28
|
+
## PR Description Template | PR 描述模板
|
|
29
|
+
|
|
30
|
+
```markdown
|
|
31
|
+
## Summary | 摘要
|
|
32
|
+
<1-3 bullet points describing the change>
|
|
33
|
+
|
|
34
|
+
## Changes | 變更內容
|
|
35
|
+
- Added / Modified / Removed ...
|
|
36
|
+
|
|
37
|
+
## Test Plan | 測試計畫
|
|
38
|
+
- [ ] Unit tests pass
|
|
39
|
+
- [ ] Manual verification steps
|
|
40
|
+
|
|
41
|
+
## Screenshots | 截圖
|
|
42
|
+
(if UI changes)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Merge Strategy Decision | 合併策略決策
|
|
46
|
+
|
|
47
|
+
| Strategy | When to Use | 使用時機 |
|
|
48
|
+
|----------|-------------|----------|
|
|
49
|
+
| **Squash merge** | Feature branches with messy commits | 功能分支,提交記錄零散 |
|
|
50
|
+
| **Merge commit** | Release branches, preserve history | 發布分支,保留完整歷史 |
|
|
51
|
+
| **Rebase** | Linear history, small changes | 線性歷史,小幅變更 |
|
|
52
|
+
|
|
53
|
+
## Auto-Review Triggers | 自動審查觸發條件
|
|
54
|
+
|
|
55
|
+
| Trigger | Threshold | Action | 動作 |
|
|
56
|
+
|---------|-----------|--------|------|
|
|
57
|
+
| PR size | > 400 lines changed | Request split | 要求拆分 |
|
|
58
|
+
| No tests | 0 test files changed | Block merge | 阻止合併 |
|
|
59
|
+
| CI failure | Any check fails | Block merge | 阻止合併 |
|
|
60
|
+
| Stale PR | > 7 days no activity | Notify author | 通知作者 |
|
|
61
|
+
| Draft PR | Marked as draft | Skip reviewers | 跳過審查者指派 |
|
|
62
|
+
|
|
63
|
+
## Workflow | 工作流程
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
1. **Create** — Branch, commit, push, open PR with template
|
|
70
|
+
2. **Review** — Automated checks + human review
|
|
71
|
+
3. **Approve** — All checks green, required approvals met
|
|
72
|
+
4. **Merge** — Apply chosen merge strategy
|
|
73
|
+
5. **Cleanup** — Delete source branch, update linked issues
|
|
74
|
+
|
|
75
|
+
## Usage | 使用方式
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
/pr - Guide PR creation for current branch | 引導建立當前分支的 PR
|
|
79
|
+
/pr create - Create PR with template | 使用模板建立 PR
|
|
80
|
+
/pr --template - Show PR description template | 顯示 PR 描述模板
|
|
81
|
+
/pr review 123 - Review specific PR | 審查特定 PR
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Next Steps Guidance | 下一步引導
|
|
85
|
+
|
|
86
|
+
After `/pr` completes, the AI assistant should suggest:
|
|
87
|
+
|
|
88
|
+
> **PR 操作完成。建議下一步 / PR operation complete. Suggested next steps:**
|
|
89
|
+
> - 執行 `/review` 進行詳細程式碼審查 — Run detailed code review
|
|
90
|
+
> - 執行 `/commit` 修正審查發現的問題 — Fix issues found in review
|
|
91
|
+
> - 執行 `/changelog` 更新變更日誌 — Update changelog
|
|
92
|
+
> - 檢查 CI 狀態 → `gh pr checks` — Check CI status
|
|
93
|
+
|
|
94
|
+
## Reference | 參考
|
|
95
|
+
|
|
96
|
+
- Core standard: [code-review-checklist.md](../../core/code-review-checklist.md)
|
|
97
|
+
- Core standard: [git-workflow.md](../../core/git-workflow.md)
|
|
98
|
+
|
|
99
|
+
## Version History | 版本歷史
|
|
100
|
+
|
|
101
|
+
| Version | Date | Changes | 變更說明 |
|
|
102
|
+
|---------|------|---------|----------|
|
|
103
|
+
| 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## AI Agent Behavior | AI 代理行為
|
|
107
|
+
|
|
108
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/pr`](../commands/pr.md#ai-agent-behavior--ai-代理行為)
|
|
109
|
+
>
|
|
110
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/pr`](../commands/pr.md#ai-agent-behavior--ai-代理行為)
|
|
111
|
+
|
|
112
|
+
## License | 授權
|
|
113
|
+
|
|
114
|
+
CC BY 4.0 — Documentation content
|
|
@@ -71,3 +71,10 @@ After `/discover` completes, the AI assistant should suggest based on the assess
|
|
|
71
71
|
## Reference | 參考
|
|
72
72
|
|
|
73
73
|
- Detailed guide: [guide.md](./guide.md)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## AI Agent Behavior | AI 代理行為
|
|
77
|
+
|
|
78
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/discover`](../commands/discover.md#ai-agent-behavior--ai-代理行為)
|
|
79
|
+
>
|
|
80
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/discover`](../commands/discover.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -85,3 +85,10 @@ After `/refactor` completes, the AI assistant should suggest:
|
|
|
85
85
|
|
|
86
86
|
- Detailed guide: [guide.md](./guide.md)
|
|
87
87
|
- Core standard: [refactoring-standards.md](../../core/refactoring-standards.md)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## AI Agent Behavior | AI 代理行為
|
|
91
|
+
|
|
92
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/refactor`](../commands/refactor.md#ai-agent-behavior--ai-代理行為)
|
|
93
|
+
>
|
|
94
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/refactor`](../commands/refactor.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -69,3 +69,10 @@ After `/release` completes, the AI assistant should suggest:
|
|
|
69
69
|
|
|
70
70
|
- Detailed guide: [guide.md](./guide.md)
|
|
71
71
|
- Core standard: [versioning.md](../../core/versioning.md)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## AI Agent Behavior | AI 代理行為
|
|
75
|
+
|
|
76
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/release`](../commands/release.md#ai-agent-behavior--ai-代理行為)
|
|
77
|
+
>
|
|
78
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/release`](../commands/release.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -73,3 +73,10 @@ After `/requirement` completes, the AI assistant should suggest:
|
|
|
73
73
|
|
|
74
74
|
- Detailed guide: [guide.md](./guide.md)
|
|
75
75
|
- Core standard: [requirement-engineering.md](../../core/requirement-engineering.md)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## AI Agent Behavior | AI 代理行為
|
|
79
|
+
|
|
80
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/requirement`](../commands/requirement.md#ai-agent-behavior--ai-代理行為)
|
|
81
|
+
>
|
|
82
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/requirement`](../commands/requirement.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -122,3 +122,10 @@ After `/reverse` (full or `spec`) completes, the AI assistant should suggest:
|
|
|
122
122
|
|
|
123
123
|
- Detailed guide: [guide.md](./guide.md)
|
|
124
124
|
- Core standard: [reverse-engineering-standards.md](../../core/reverse-engineering-standards.md)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## AI Agent Behavior | AI 代理行為
|
|
128
|
+
|
|
129
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/reverse`](../commands/reverse.md#ai-agent-behavior--ai-代理行為)
|
|
130
|
+
>
|
|
131
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/reverse`](../commands/reverse.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security
|
|
3
|
+
scope: universal
|
|
4
|
+
description: |
|
|
5
|
+
Guide security review and vulnerability assessment following OWASP standards.
|
|
6
|
+
Use when: security audit, vulnerability check, secure coding review, threat modeling.
|
|
7
|
+
Keywords: security, OWASP, vulnerability, authentication, authorization, 安全, 漏洞, 認證.
|
|
8
|
+
allowed-tools: Read, Grep, Glob
|
|
9
|
+
argument-hint: "[module or file to audit | 要審計的模組或檔案]"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Security Assistant | 安全審計助手
|
|
13
|
+
|
|
14
|
+
Guide systematic security reviews following OWASP Top 10 and industry best practices.
|
|
15
|
+
|
|
16
|
+
引導系統化的安全審查,遵循 OWASP Top 10 和業界最佳實踐。
|
|
17
|
+
|
|
18
|
+
## Quick Checklist — OWASP Top 10 Prevention | 快速檢查清單
|
|
19
|
+
|
|
20
|
+
| ID | Risk | Prevention | 預防措施 |
|
|
21
|
+
|----|------|------------|----------|
|
|
22
|
+
| A01 | Broken Access Control | Enforce least privilege, deny by default | 最小權限原則,預設拒絕 |
|
|
23
|
+
| A02 | Cryptographic Failures | Use strong algorithms, protect keys | 使用強加密演算法,保護金鑰 |
|
|
24
|
+
| A03 | Injection | Parameterized queries, input validation | 參數化查詢、輸入驗證 |
|
|
25
|
+
| A04 | Insecure Design | Threat modeling, secure design patterns | 威脅建模、安全設計模式 |
|
|
26
|
+
| A05 | Security Misconfiguration | Hardened defaults, minimal permissions | 強化預設值、最小權限 |
|
|
27
|
+
| A06 | Vulnerable Components | Track dependencies, patch regularly | 追蹤相依套件、定期修補 |
|
|
28
|
+
| A07 | Auth Failures | MFA, strong password policies | 多因素認證、強密碼策略 |
|
|
29
|
+
| A08 | Data Integrity Failures | Verify signatures, use trusted sources | 驗證簽章、使用可信來源 |
|
|
30
|
+
| A09 | Logging Failures | Log security events, monitor alerts | 記錄安全事件、監控告警 |
|
|
31
|
+
| A10 | SSRF | Validate URLs, restrict outbound traffic | 驗證 URL、限制對外流量 |
|
|
32
|
+
|
|
33
|
+
## Security Review Workflow | 安全審查工作流程
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
SCOPE ──► SCAN ──► ANALYZE ──► REPORT
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 1. Scope — Define Audit Boundary | 定義審計範圍
|
|
40
|
+
Identify target modules, data flows, and trust boundaries.
|
|
41
|
+
|
|
42
|
+
識別目標模組、資料流和信任邊界。
|
|
43
|
+
|
|
44
|
+
### 2. Scan — Identify Vulnerabilities | 識別漏洞
|
|
45
|
+
Review code for OWASP Top 10 patterns, check dependencies, inspect configurations.
|
|
46
|
+
|
|
47
|
+
檢查程式碼的 OWASP Top 10 模式、檢查相依套件、檢視配置。
|
|
48
|
+
|
|
49
|
+
### 3. Analyze — Assess Risk | 評估風險
|
|
50
|
+
Classify findings by severity (Critical/High/Medium/Low) and exploitability.
|
|
51
|
+
|
|
52
|
+
依嚴重程度(Critical/High/Medium/Low)和可利用性分類。
|
|
53
|
+
|
|
54
|
+
### 4. Report — Document Findings | 記錄發現
|
|
55
|
+
Produce actionable findings with remediation recommendations.
|
|
56
|
+
|
|
57
|
+
產出可行動的發現報告,附帶修復建議。
|
|
58
|
+
|
|
59
|
+
## Severity Classification | 嚴重程度分類
|
|
60
|
+
|
|
61
|
+
| Level | Criteria | 標準 |
|
|
62
|
+
|-------|----------|------|
|
|
63
|
+
| **Critical** | Remote code execution, data breach | 遠端程式碼執行、資料洩漏 |
|
|
64
|
+
| **High** | Authentication bypass, privilege escalation | 認證繞過、權限提升 |
|
|
65
|
+
| **Medium** | Information disclosure, CSRF | 資訊洩漏、CSRF |
|
|
66
|
+
| **Low** | Missing headers, verbose errors | 缺少 Header、冗長錯誤訊息 |
|
|
67
|
+
|
|
68
|
+
## Usage | 使用方式
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
/security - Full security review of current project | 完整安全審查
|
|
72
|
+
/security src/auth - Audit specific module | 審計特定模組
|
|
73
|
+
/security --owasp - OWASP Top 10 focused review | OWASP Top 10 重點審查
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Next Steps Guidance | 下一步引導
|
|
77
|
+
|
|
78
|
+
After `/security` completes, the AI assistant should suggest:
|
|
79
|
+
|
|
80
|
+
> **安全審查完成。建議下一步 / Security review complete. Suggested next steps:**
|
|
81
|
+
> - 執行 `/checkin` 確認修復符合提交規範 — Verify fixes meet check-in standards
|
|
82
|
+
> - 執行 `/review` 進行程式碼審查 — Run code review on security fixes
|
|
83
|
+
> - 執行 `/commit` 提交安全修復 — Commit security fixes
|
|
84
|
+
> - 檢查相依套件更新 → `npm audit` 或 `pip audit` — Check dependency updates
|
|
85
|
+
|
|
86
|
+
## Reference | 參考
|
|
87
|
+
|
|
88
|
+
- Core standard: [security-standards.md](../../core/security-standards.md)
|
|
89
|
+
|
|
90
|
+
## Version History | 版本歷史
|
|
91
|
+
|
|
92
|
+
| Version | Date | Changes | 變更說明 |
|
|
93
|
+
|---------|------|---------|----------|
|
|
94
|
+
| 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## AI Agent Behavior | AI 代理行為
|
|
98
|
+
|
|
99
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/security`](../commands/security.md#ai-agent-behavior--ai-代理行為)
|
|
100
|
+
>
|
|
101
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/security`](../commands/security.md#ai-agent-behavior--ai-代理行為)
|
|
102
|
+
|
|
103
|
+
## License | 授權
|
|
104
|
+
|
|
105
|
+
CC BY 4.0 — Documentation content
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: scan
|
|
3
|
+
scope: universal
|
|
4
|
+
description: |
|
|
5
|
+
Guide automated security scanning, dependency auditing, and secret detection.
|
|
6
|
+
Use when: dependency audit, CVE scanning, secret detection, license compliance.
|
|
7
|
+
Keywords: scan, audit, CVE, dependency, secret, SBOM, vulnerability, 掃描, 漏洞.
|
|
8
|
+
allowed-tools: Read, Grep, Glob, Bash(npm:audit, npx:*)
|
|
9
|
+
argument-hint: "[scan type or target | 掃描類型或目標]"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Security Scan Assistant | 安全掃描助手
|
|
13
|
+
|
|
14
|
+
Automate security scanning for dependencies, secrets, and license compliance.
|
|
15
|
+
|
|
16
|
+
自動化相依套件、機密資訊和授權合規的安全掃描。
|
|
17
|
+
|
|
18
|
+
## Scan Types | 掃描類型
|
|
19
|
+
|
|
20
|
+
| Type | Tool Examples | Purpose | 用途 |
|
|
21
|
+
|------|---------------|---------|------|
|
|
22
|
+
| **Dependency audit** | npm audit, pip-audit, Snyk | Find known CVEs in dependencies | 檢測相依套件已知 CVE |
|
|
23
|
+
| **Secret detection** | gitleaks, trufflehog | Find leaked credentials in code | 偵測程式碼中洩漏的憑證 |
|
|
24
|
+
| **License compliance** | license-checker, SPDX | Verify OSS license compatibility | 驗證開源授權相容性 |
|
|
25
|
+
| **SAST** | Semgrep, CodeQL | Static analysis for code patterns | 靜態分析程式碼模式 |
|
|
26
|
+
|
|
27
|
+
## Tool Integration | 工具整合
|
|
28
|
+
|
|
29
|
+
| Tool | Command | Scope | 範圍 |
|
|
30
|
+
|------|---------|-------|------|
|
|
31
|
+
| npm audit | `npm audit --json` | Node.js dependencies | Node.js 相依套件 |
|
|
32
|
+
| Snyk | `npx snyk test` | Multi-language deps | 多語言相依套件 |
|
|
33
|
+
| Trivy | `trivy fs .` | Filesystem & containers | 檔案系統與容器 |
|
|
34
|
+
| gitleaks | `gitleaks detect` | Git history secrets | Git 歷史機密 |
|
|
35
|
+
| SPDX | `npx spdx-tool` | License SBOM generation | 授權 SBOM 產出 |
|
|
36
|
+
|
|
37
|
+
## Severity Classification & SLA | 嚴重程度分類與 SLA
|
|
38
|
+
|
|
39
|
+
| Severity | SLA | Criteria | 標準 |
|
|
40
|
+
|----------|-----|----------|------|
|
|
41
|
+
| **Critical** | 24 hours | RCE, auth bypass, data exfil | 遠端執行、認證繞過、資料外洩 |
|
|
42
|
+
| **High** | 72 hours | Privilege escalation, SQLi | 權限提升、SQL 注入 |
|
|
43
|
+
| **Medium** | 2 weeks | XSS, CSRF, info disclosure | XSS、CSRF、資訊洩漏 |
|
|
44
|
+
| **Low** | Next sprint | Missing headers, verbose errors | 缺少 Header、冗長錯誤訊息 |
|
|
45
|
+
|
|
46
|
+
## Workflow | 工作流程
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
1. **Scan** — Run automated scanners on codebase and dependencies
|
|
53
|
+
2. **Triage** — Filter false positives, confirm real vulnerabilities
|
|
54
|
+
3. **Prioritize** — Rank by severity and exploitability
|
|
55
|
+
4. **Fix** — Apply patches, update dependencies, rotate secrets
|
|
56
|
+
5. **Verify** — Re-scan to confirm remediation
|
|
57
|
+
|
|
58
|
+
## Usage | 使用方式
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
/scan - Full scan (deps + secrets + license) | 完整掃描
|
|
62
|
+
/scan --deps - Dependency audit only | 僅相依套件審計
|
|
63
|
+
/scan --secrets - Secret detection only | 僅機密偵測
|
|
64
|
+
/scan --license - License compliance check | 授權合規檢查
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Next Steps Guidance | 下一步引導
|
|
68
|
+
|
|
69
|
+
After `/scan` completes, the AI assistant should suggest:
|
|
70
|
+
|
|
71
|
+
> **掃描完成。建議下一步 / Scan complete. Suggested next steps:**
|
|
72
|
+
> - 執行 `/security` 深入安全審查 — Run deep security review
|
|
73
|
+
> - 執行 `/checkin` 確認修復符合提交規範 — Verify fixes meet check-in standards
|
|
74
|
+
> - 執行 `/commit` 提交安全修復 — Commit security fixes
|
|
75
|
+
> - 更新相依套件 → `npm update` 或 `pip install --upgrade` — Update dependencies
|
|
76
|
+
|
|
77
|
+
## Reference | 參考
|
|
78
|
+
|
|
79
|
+
- Core standard: [security-standards.md](../../core/security-standards.md)
|
|
80
|
+
|
|
81
|
+
## Version History | 版本歷史
|
|
82
|
+
|
|
83
|
+
| Version | Date | Changes | 變更說明 |
|
|
84
|
+
|---------|------|---------|----------|
|
|
85
|
+
| 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## AI Agent Behavior | AI 代理行為
|
|
89
|
+
|
|
90
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/scan`](../commands/scan.md#ai-agent-behavior--ai-代理行為)
|
|
91
|
+
>
|
|
92
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/scan`](../commands/scan.md#ai-agent-behavior--ai-代理行為)
|
|
93
|
+
|
|
94
|
+
## License | 授權
|
|
95
|
+
|
|
96
|
+
CC BY 4.0 — Documentation content
|
|
@@ -12,12 +12,55 @@ Create, review, and manage specification documents before writing code.
|
|
|
12
12
|
|
|
13
13
|
在撰寫程式碼前,建立、審查和管理規格文件。
|
|
14
14
|
|
|
15
|
+
## When to Use `/sdd` vs `uds spec` | 何時使用
|
|
16
|
+
|
|
17
|
+
| Scenario | `/sdd` | `uds spec` |
|
|
18
|
+
|----------|--------|------------|
|
|
19
|
+
| Formal feature development with review cycle | ✅ | ❌ |
|
|
20
|
+
| Full spec lifecycle (Draft → Archived) | ✅ | ❌ |
|
|
21
|
+
| Quick prototyping / Vibe coding | ❌ | ✅ |
|
|
22
|
+
| Small incremental changes | ❌ | ✅ |
|
|
23
|
+
| Stakeholder sign-off required | ✅ | ❌ |
|
|
24
|
+
| Micro-spec from natural language intent | ❌ | ✅ |
|
|
25
|
+
|
|
26
|
+
> **`/sdd`** = Full specification lifecycle for formal development
|
|
27
|
+
> **`uds spec`** = Lightweight micro-specs for rapid iteration
|
|
28
|
+
>
|
|
29
|
+
> **`/sdd`** = 正式開發的完整規格生命週期
|
|
30
|
+
> **`uds spec`** = 快速迭代的輕量微規格
|
|
31
|
+
|
|
32
|
+
## TL;DR Quick Checklist | 快速檢查清單
|
|
33
|
+
|
|
34
|
+
- Search existing specs: look in `specs/`, `docs/specs/`, or project spec directory
|
|
35
|
+
- Decide scope: new feature vs modify existing capability
|
|
36
|
+
- Pick a unique spec ID: `SPEC-NNN` or kebab-case change ID
|
|
37
|
+
- Write proposal with clear AC (Given/When/Then format)
|
|
38
|
+
- Get approval before implementation begins
|
|
39
|
+
- Implement tasks sequentially, verify against spec
|
|
40
|
+
- Archive spec after completion
|
|
41
|
+
|
|
42
|
+
## Decision Tree | 決策樹
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
New request? | 新需求?
|
|
46
|
+
├─ Bug fix restoring spec behavior? → Fix directly | 直接修復
|
|
47
|
+
├─ Typo/format/comment? → Fix directly | 直接修復
|
|
48
|
+
├─ Dependency update (non-breaking)? → Fix directly | 直接修復
|
|
49
|
+
├─ New feature/capability? → Create proposal | 建立提案
|
|
50
|
+
├─ Breaking change? → Create proposal | 建立提案
|
|
51
|
+
├─ Architecture change? → Create proposal | 建立提案
|
|
52
|
+
└─ Unclear? → Create proposal (safer) | 建立提案(較安全)
|
|
53
|
+
```
|
|
54
|
+
|
|
15
55
|
## Workflow | 工作流程
|
|
16
56
|
|
|
17
57
|
```
|
|
18
|
-
CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY
|
|
58
|
+
DISCUSS ──► CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY ──► ARCHIVE
|
|
19
59
|
```
|
|
20
60
|
|
|
61
|
+
### 0. Discuss - Clarify Scope | 釐清範圍
|
|
62
|
+
Capture gray areas, establish governing principles, resolve ambiguities before writing spec.
|
|
63
|
+
|
|
21
64
|
### 1. Create - Write Spec | 撰寫規格
|
|
22
65
|
Define requirements, technical design, acceptance criteria, and test plan.
|
|
23
66
|
|
|
@@ -33,6 +76,9 @@ Develop following the approved spec, referencing requirements and AC.
|
|
|
33
76
|
### 5. Verify - Confirm | 驗證
|
|
34
77
|
Ensure implementation matches spec, all tests pass, AC satisfied.
|
|
35
78
|
|
|
79
|
+
### 6. Archive - Close | 歸檔
|
|
80
|
+
Archive completed spec with links to commits/PRs.
|
|
81
|
+
|
|
36
82
|
## Spec States | 規格狀態
|
|
37
83
|
|
|
38
84
|
| State | Description | 說明 |
|
|
@@ -46,13 +92,22 @@ Ensure implementation matches spec, all tests pass, AC satisfied.
|
|
|
46
92
|
## Spec Structure | 規格結構
|
|
47
93
|
|
|
48
94
|
```markdown
|
|
49
|
-
# Feature: [Name]
|
|
95
|
+
# [SPEC-ID] Feature: [Name]
|
|
50
96
|
|
|
51
97
|
## Overview
|
|
52
|
-
Brief description.
|
|
98
|
+
Brief description of the proposed change.
|
|
99
|
+
|
|
100
|
+
## Motivation
|
|
101
|
+
Why is this change needed? What problem does it solve?
|
|
53
102
|
|
|
54
103
|
## Requirements
|
|
55
|
-
|
|
104
|
+
### Requirement: [Name]
|
|
105
|
+
The system SHALL [behavior description].
|
|
106
|
+
|
|
107
|
+
#### Scenario: [Success case]
|
|
108
|
+
- **GIVEN** [initial context]
|
|
109
|
+
- **WHEN** [action performed]
|
|
110
|
+
- **THEN** [expected result]
|
|
56
111
|
|
|
57
112
|
## Acceptance Criteria
|
|
58
113
|
- AC-1: Given [context], when [action], then [result]
|
|
@@ -65,6 +120,24 @@ Brief description.
|
|
|
65
120
|
- [ ] Integration tests for [flow]
|
|
66
121
|
```
|
|
67
122
|
|
|
123
|
+
### Scenario Formatting Rules | 場景格式規則
|
|
124
|
+
|
|
125
|
+
- Use `#### Scenario:` (h4 header) for each scenario
|
|
126
|
+
- Every requirement MUST have at least one scenario
|
|
127
|
+
- Use **GIVEN/WHEN/THEN** format for structured behavior
|
|
128
|
+
- Use **SHALL/MUST** for normative requirements, **SHOULD** for recommendations
|
|
129
|
+
|
|
130
|
+
## Delta Operations | 變更操作
|
|
131
|
+
|
|
132
|
+
When modifying existing specs, use delta sections:
|
|
133
|
+
|
|
134
|
+
| Operation | Description | 說明 |
|
|
135
|
+
|-----------|-------------|------|
|
|
136
|
+
| `## ADDED Requirements` | New capabilities | 新增功能 |
|
|
137
|
+
| `## MODIFIED Requirements` | Changed behavior | 修改行為 |
|
|
138
|
+
| `## REMOVED Requirements` | Deprecated features | 移除功能 |
|
|
139
|
+
| `## RENAMED Requirements` | Name changes | 重新命名 |
|
|
140
|
+
|
|
68
141
|
## Usage | 使用方式
|
|
69
142
|
|
|
70
143
|
```
|
|
@@ -89,3 +162,10 @@ After `/sdd` completes, the AI assistant should suggest:
|
|
|
89
162
|
|
|
90
163
|
- Detailed guide: [guide.md](./guide.md)
|
|
91
164
|
- Core standard: [spec-driven-development.md](../../core/spec-driven-development.md)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## AI Agent Behavior | AI 代理行為
|
|
168
|
+
|
|
169
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/sdd`](../commands/sdd.md#ai-agent-behavior--ai-代理行為)
|
|
170
|
+
>
|
|
171
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/sdd`](../commands/sdd.md#ai-agent-behavior--ai-代理行為)
|