universal-dev-standards 5.0.0-rc.8 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/uds.js +5 -3
- package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +178 -0
- package/bundled/ai/standards/agent-dispatch.ai.yaml +69 -0
- package/bundled/ai/standards/ai-command-behavior.ai.yaml +45 -0
- package/bundled/ai/standards/api-design-standards.ai.yaml +192 -0
- package/bundled/ai/standards/branch-completion.ai.yaml +82 -0
- package/bundled/ai/standards/change-batching-standards.ai.yaml +195 -0
- package/bundled/ai/standards/database-standards.ai.yaml +220 -0
- package/bundled/ai/standards/error-codes.ai.yaml +37 -2
- package/bundled/ai/standards/git-worktree.ai.yaml +77 -0
- package/bundled/ai/standards/logging.ai.yaml +21 -2
- package/bundled/ai/standards/model-selection.ai.yaml +81 -0
- package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +184 -0
- package/bundled/ai/standards/systematic-debugging.ai.yaml +73 -0
- package/bundled/ai/standards/verification-evidence.ai.yaml +84 -0
- package/bundled/ai/standards/workflow-enforcement.ai.yaml +253 -0
- package/bundled/core/acceptance-criteria-traceability.md +293 -0
- package/bundled/core/agent-dispatch.md +149 -0
- package/bundled/core/ai-command-behavior.md +239 -0
- package/bundled/core/api-design-standards.md +938 -0
- package/bundled/core/branch-completion.md +158 -0
- package/bundled/core/change-batching-standards.md +257 -0
- package/bundled/core/checkin-standards.md +43 -6
- package/bundled/core/database-standards.md +828 -0
- package/bundled/core/error-code-standards.md +228 -2
- package/bundled/core/forward-derivation-standards.md +54 -2
- package/bundled/core/git-worktree.md +131 -0
- package/bundled/core/model-selection.md +153 -0
- package/bundled/core/pipeline-integration-standards.md +230 -0
- package/bundled/core/systematic-debugging.md +156 -0
- package/bundled/core/testing-standards.md +49 -39
- package/bundled/core/verification-evidence.md +172 -0
- package/bundled/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-CN/CLAUDE.md +2 -2
- package/bundled/locales/zh-CN/README.md +4 -4
- package/bundled/locales/zh-CN/SECURITY.md +92 -0
- package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +301 -0
- package/bundled/locales/zh-CN/core/acceptance-test-driven-development.md +47 -0
- package/bundled/locales/zh-CN/core/accessibility-standards.md +124 -0
- package/bundled/locales/zh-CN/core/agent-dispatch.md +113 -0
- package/bundled/locales/zh-CN/core/ai-agreement-standards.md +103 -0
- package/bundled/locales/zh-CN/core/ai-command-behavior.md +247 -0
- package/bundled/locales/zh-CN/core/api-design-standards.md +946 -0
- package/bundled/locales/zh-CN/core/behavior-driven-development.md +48 -0
- package/bundled/locales/zh-CN/core/branch-completion.md +112 -0
- package/bundled/locales/zh-CN/core/change-batching-standards.md +265 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +43 -5
- package/bundled/locales/zh-CN/core/context-aware-loading.md +106 -0
- package/bundled/locales/zh-CN/core/database-standards.md +836 -0
- package/bundled/locales/zh-CN/core/deployment-standards.md +80 -0
- package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-CN/core/forward-derivation-standards.md +493 -0
- package/bundled/locales/zh-CN/core/git-worktree.md +101 -0
- package/bundled/locales/zh-CN/core/model-selection.md +112 -0
- package/bundled/locales/zh-CN/core/performance-standards.md +104 -0
- package/bundled/locales/zh-CN/core/pipeline-integration-standards.md +238 -0
- package/bundled/locales/zh-CN/core/project-context-memory.md +124 -0
- package/bundled/locales/zh-CN/core/requirement-engineering.md +49 -0
- package/bundled/locales/zh-CN/core/security-standards.md +100 -0
- package/bundled/locales/zh-CN/core/systematic-debugging.md +106 -0
- package/bundled/locales/zh-CN/core/test-governance.md +116 -0
- package/bundled/locales/zh-CN/core/testing-standards.md +392 -156
- package/bundled/locales/zh-CN/core/verification-evidence.md +118 -0
- package/bundled/locales/zh-CN/core/virtual-organization-standards.md +104 -0
- package/bundled/locales/zh-CN/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +27 -1
- package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +9 -1
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +37 -9
- package/bundled/locales/zh-CN/docs/USER-MANUAL.md +652 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +1 -1
- package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +29 -4
- package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +143 -72
- package/bundled/locales/zh-CN/skills/ac-coverage-assistant/SKILL.md +126 -0
- package/bundled/locales/zh-CN/skills/api-design-assistant/SKILL.md +100 -0
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +119 -0
- package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +82 -0
- package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +97 -0
- package/bundled/locales/zh-CN/skills/commands/api-design.md +94 -0
- package/bundled/locales/zh-CN/skills/commands/atdd.md +163 -0
- package/bundled/locales/zh-CN/skills/commands/audit.md +77 -0
- package/bundled/locales/zh-CN/skills/commands/bdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/brainstorm.md +87 -0
- package/bundled/locales/zh-CN/skills/commands/changelog.md +63 -0
- package/bundled/locales/zh-CN/skills/commands/check.md +219 -0
- package/bundled/locales/zh-CN/skills/commands/checkin.md +61 -0
- package/bundled/locales/zh-CN/skills/commands/ci-cd.md +77 -0
- package/bundled/locales/zh-CN/skills/commands/commit.md +81 -0
- package/bundled/locales/zh-CN/skills/commands/config.md +207 -0
- package/bundled/locales/zh-CN/skills/commands/coverage.md +74 -0
- package/bundled/locales/zh-CN/skills/commands/database.md +78 -0
- package/bundled/locales/zh-CN/skills/commands/derive-all.md +58 -0
- package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +53 -0
- package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/derive.md +78 -0
- package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +119 -0
- package/bundled/locales/zh-CN/skills/commands/discover.md +86 -0
- package/bundled/locales/zh-CN/skills/commands/docgen.md +67 -0
- package/bundled/locales/zh-CN/skills/commands/docs.md +65 -0
- package/bundled/locales/zh-CN/skills/commands/durable.md +87 -0
- package/bundled/locales/zh-CN/skills/commands/guide.md +52 -0
- package/bundled/locales/zh-CN/skills/commands/incident.md +92 -0
- package/bundled/locales/zh-CN/skills/commands/init.md +272 -0
- package/bundled/locales/zh-CN/skills/commands/methodology.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/metrics.md +73 -0
- package/bundled/locales/zh-CN/skills/commands/migrate.md +92 -0
- package/bundled/locales/zh-CN/skills/commands/pr.md +80 -0
- package/bundled/locales/zh-CN/skills/commands/refactor.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/release.md +62 -0
- package/bundled/locales/zh-CN/skills/commands/requirement.md +54 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-bdd.md +47 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-sdd.md +51 -0
- package/bundled/locales/zh-CN/skills/commands/reverse-tdd.md +51 -0
- package/bundled/locales/zh-CN/skills/commands/reverse.md +63 -0
- package/bundled/locales/zh-CN/skills/commands/review.md +50 -0
- package/bundled/locales/zh-CN/skills/commands/scan.md +76 -0
- package/bundled/locales/zh-CN/skills/commands/sdd-retro.md +40 -0
- package/bundled/locales/zh-CN/skills/commands/sdd.md +379 -0
- package/bundled/locales/zh-CN/skills/commands/security.md +75 -0
- package/bundled/locales/zh-CN/skills/commands/tdd.md +111 -0
- package/bundled/locales/zh-CN/skills/commands/update.md +337 -0
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -2
- package/bundled/locales/zh-CN/skills/database-assistant/SKILL.md +97 -0
- package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +145 -0
- package/bundled/locales/zh-CN/skills/durable-execution-assistant/SKILL.md +84 -0
- package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +107 -0
- package/bundled/locales/zh-CN/skills/metrics-dashboard-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +77 -0
- package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +90 -0
- package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +79 -0
- package/bundled/locales/zh-CN/skills/security-scan-assistant/SKILL.md +72 -0
- package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +73 -10
- package/bundled/locales/zh-CN/skills/spec-driven-dev/guide.md +267 -122
- package/bundled/locales/zh-TW/CLAUDE.md +2 -2
- package/bundled/locales/zh-TW/README.md +4 -4
- package/bundled/locales/zh-TW/SECURITY.md +92 -0
- package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +301 -0
- package/bundled/locales/zh-TW/core/acceptance-test-driven-development.md +47 -0
- package/bundled/locales/zh-TW/core/accessibility-standards.md +84 -0
- package/bundled/locales/zh-TW/core/agent-dispatch.md +89 -0
- package/bundled/locales/zh-TW/core/ai-agreement-standards.md +87 -0
- package/bundled/locales/zh-TW/core/ai-command-behavior.md +247 -0
- package/bundled/locales/zh-TW/core/api-design-standards.md +946 -0
- package/bundled/locales/zh-TW/core/behavior-driven-development.md +63 -0
- package/bundled/locales/zh-TW/core/branch-completion.md +76 -0
- package/bundled/locales/zh-TW/core/change-batching-standards.md +265 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +39 -5
- package/bundled/locales/zh-TW/core/context-aware-loading.md +86 -0
- package/bundled/locales/zh-TW/core/database-standards.md +836 -0
- package/bundled/locales/zh-TW/core/deployment-standards.md +66 -0
- package/bundled/locales/zh-TW/core/error-code-standards.md +230 -4
- package/bundled/locales/zh-TW/core/forward-derivation-standards.md +62 -2
- package/bundled/locales/zh-TW/core/git-worktree.md +104 -0
- package/bundled/locales/zh-TW/core/model-selection.md +83 -0
- package/bundled/locales/zh-TW/core/performance-standards.md +84 -0
- package/bundled/locales/zh-TW/core/pipeline-integration-standards.md +238 -0
- package/bundled/locales/zh-TW/core/project-context-memory.md +79 -0
- package/bundled/locales/zh-TW/core/requirement-engineering.md +79 -0
- package/bundled/locales/zh-TW/core/security-standards.md +74 -0
- package/bundled/locales/zh-TW/core/systematic-debugging.md +95 -0
- package/bundled/locales/zh-TW/core/test-governance.md +88 -0
- package/bundled/locales/zh-TW/core/testing-standards.md +309 -86
- package/bundled/locales/zh-TW/core/verification-evidence.md +94 -0
- package/bundled/locales/zh-TW/core/virtual-organization-standards.md +88 -0
- package/bundled/locales/zh-TW/core/workflow-enforcement.md +132 -0
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +27 -1
- package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +9 -1
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +37 -9
- package/bundled/locales/zh-TW/docs/USER-MANUAL.md +652 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +1 -1
- package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +29 -4
- package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +142 -71
- package/bundled/locales/zh-TW/skills/ac-coverage-assistant/SKILL.md +127 -0
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/api-design-assistant/SKILL.md +97 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +79 -0
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +95 -0
- package/bundled/locales/zh-TW/skills/commands/api-design.md +92 -0
- package/bundled/locales/zh-TW/skills/commands/atdd.md +167 -0
- package/bundled/locales/zh-TW/skills/commands/audit.md +75 -0
- package/bundled/locales/zh-TW/skills/commands/bdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/brainstorm.md +91 -0
- package/bundled/locales/zh-TW/skills/commands/changelog.md +67 -0
- package/bundled/locales/zh-TW/skills/commands/check.md +223 -0
- package/bundled/locales/zh-TW/skills/commands/checkin.md +65 -0
- package/bundled/locales/zh-TW/skills/commands/ci-cd.md +75 -0
- package/bundled/locales/zh-TW/skills/commands/commit.md +85 -0
- package/bundled/locales/zh-TW/skills/commands/config.md +211 -0
- package/bundled/locales/zh-TW/skills/commands/coverage.md +78 -0
- package/bundled/locales/zh-TW/skills/commands/database.md +76 -0
- package/bundled/locales/zh-TW/skills/commands/derive-all.md +62 -0
- package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +54 -0
- package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +55 -0
- package/bundled/locales/zh-TW/skills/commands/derive.md +79 -0
- package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +120 -0
- package/bundled/locales/zh-TW/skills/commands/discover.md +87 -0
- package/bundled/locales/zh-TW/skills/commands/docgen.md +68 -0
- package/bundled/locales/zh-TW/skills/commands/docs.md +66 -0
- package/bundled/locales/zh-TW/skills/commands/durable.md +85 -0
- package/bundled/locales/zh-TW/skills/commands/guide.md +51 -0
- package/bundled/locales/zh-TW/skills/commands/incident.md +90 -0
- package/bundled/locales/zh-TW/skills/commands/init.md +273 -0
- package/bundled/locales/zh-TW/skills/commands/methodology.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/metrics.md +71 -0
- package/bundled/locales/zh-TW/skills/commands/migrate.md +90 -0
- package/bundled/locales/zh-TW/skills/commands/pr.md +78 -0
- package/bundled/locales/zh-TW/skills/commands/refactor.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/release.md +63 -0
- package/bundled/locales/zh-TW/skills/commands/requirement.md +61 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-bdd.md +54 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-sdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/reverse-tdd.md +58 -0
- package/bundled/locales/zh-TW/skills/commands/reverse.md +70 -0
- package/bundled/locales/zh-TW/skills/commands/review.md +57 -0
- package/bundled/locales/zh-TW/skills/commands/scan.md +74 -0
- package/bundled/locales/zh-TW/skills/commands/sdd-retro.md +47 -0
- package/bundled/locales/zh-TW/skills/commands/sdd.md +362 -0
- package/bundled/locales/zh-TW/skills/commands/security.md +73 -0
- package/bundled/locales/zh-TW/skills/commands/tdd.md +115 -0
- package/bundled/locales/zh-TW/skills/commands/update.md +326 -0
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +2 -6
- package/bundled/locales/zh-TW/skills/database-assistant/SKILL.md +94 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +140 -0
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/documentation-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/durable-execution-assistant/SKILL.md +81 -0
- package/bundled/locales/zh-TW/skills/error-code-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/git-workflow-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +104 -0
- package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/metrics-dashboard-assistant/SKILL.md +64 -0
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +74 -0
- package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +87 -0
- package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +76 -0
- package/bundled/locales/zh-TW/skills/security-scan-assistant/SKILL.md +69 -0
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +74 -14
- package/bundled/locales/zh-TW/skills/spec-driven-dev/guide.md +243 -98
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +1 -4
- package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +1 -5
- package/bundled/skills/README.md +11 -0
- package/bundled/skills/ac-coverage-assistant/SKILL.md +127 -0
- package/bundled/skills/ai-collaboration-standards/SKILL.md +10 -0
- package/bundled/skills/ai-friendly-architecture/SKILL.md +10 -0
- package/bundled/skills/ai-instruction-standards/SKILL.md +10 -0
- package/bundled/skills/api-design-assistant/SKILL.md +119 -0
- package/bundled/skills/atdd-assistant/SKILL.md +7 -0
- package/bundled/skills/bdd-assistant/SKILL.md +7 -0
- package/bundled/skills/brainstorm-assistant/SKILL.md +7 -0
- package/bundled/skills/checkin-assistant/SKILL.md +7 -0
- package/bundled/skills/ci-cd-assistant/SKILL.md +97 -0
- package/bundled/skills/code-review-assistant/SKILL.md +7 -0
- package/bundled/skills/commands/README.md +70 -0
- package/bundled/skills/commands/ac-coverage.md +135 -0
- package/bundled/skills/commands/api-design.md +86 -0
- package/bundled/skills/commands/atdd.md +69 -0
- package/bundled/skills/commands/audit.md +69 -0
- package/bundled/skills/commands/bdd.md +101 -0
- package/bundled/skills/commands/brainstorm.md +45 -0
- package/bundled/skills/commands/changelog.md +34 -0
- package/bundled/skills/commands/check.md +52 -1
- package/bundled/skills/commands/checkin.md +46 -0
- package/bundled/skills/commands/ci-cd.md +69 -0
- package/bundled/skills/commands/commit.md +79 -0
- package/bundled/skills/commands/config.md +48 -0
- package/bundled/skills/commands/coverage.md +53 -0
- package/bundled/skills/commands/database.md +70 -0
- package/bundled/skills/commands/derive-all.md +40 -0
- package/bundled/skills/commands/derive-atdd.md +33 -0
- package/bundled/skills/commands/derive-bdd.md +39 -0
- package/bundled/skills/commands/derive-tdd.md +40 -0
- package/bundled/skills/commands/derive.md +47 -0
- package/bundled/skills/commands/dev-workflow.md +104 -7
- package/bundled/skills/commands/discover.md +39 -0
- package/bundled/skills/commands/docgen.md +35 -0
- package/bundled/skills/commands/docs.md +40 -0
- package/bundled/skills/commands/durable.md +79 -0
- package/bundled/skills/commands/incident.md +84 -0
- package/bundled/skills/commands/init.md +55 -0
- package/bundled/skills/commands/methodology.md +72 -0
- package/bundled/skills/commands/metrics.md +65 -0
- package/bundled/skills/commands/migrate.md +84 -0
- package/bundled/skills/commands/pr.md +72 -0
- package/bundled/skills/commands/refactor.md +51 -0
- package/bundled/skills/commands/release.md +60 -0
- package/bundled/skills/commands/requirement.md +38 -0
- package/bundled/skills/commands/reverse-bdd.md +34 -0
- package/bundled/skills/commands/reverse-sdd.md +42 -0
- package/bundled/skills/commands/reverse-tdd.md +40 -0
- package/bundled/skills/commands/reverse.md +41 -0
- package/bundled/skills/commands/review.md +39 -0
- package/bundled/skills/commands/scan.md +68 -0
- package/bundled/skills/commands/sdd-retro.md +48 -0
- package/bundled/skills/commands/sdd.md +220 -0
- package/bundled/skills/commands/security.md +67 -0
- package/bundled/skills/commands/tdd.md +101 -0
- package/bundled/skills/commands/update.md +61 -0
- package/bundled/skills/commit-standards/SKILL.md +8 -2
- package/bundled/skills/database-assistant/SKILL.md +118 -0
- package/bundled/skills/dev-workflow-guide/SKILL.md +53 -7
- package/bundled/skills/dev-workflow-guide/workflow-phases.md +24 -0
- package/bundled/skills/durable-execution-assistant/SKILL.md +116 -0
- package/bundled/skills/forward-derivation/SKILL.md +7 -0
- package/bundled/skills/incident-response-assistant/SKILL.md +132 -0
- package/bundled/skills/methodology-system/SKILL.md +24 -2
- package/bundled/skills/metrics-dashboard-assistant/SKILL.md +109 -0
- package/bundled/skills/migration-assistant/SKILL.md +119 -0
- package/bundled/skills/pr-automation-assistant/SKILL.md +114 -0
- package/bundled/skills/project-discovery/SKILL.md +7 -0
- package/bundled/skills/refactoring-assistant/SKILL.md +7 -0
- package/bundled/skills/release-standards/SKILL.md +7 -0
- package/bundled/skills/requirement-assistant/SKILL.md +7 -0
- package/bundled/skills/reverse-engineer/SKILL.md +7 -0
- package/bundled/skills/security-assistant/SKILL.md +105 -0
- package/bundled/skills/security-scan-assistant/SKILL.md +96 -0
- package/bundled/skills/spec-driven-dev/SKILL.md +84 -4
- package/bundled/skills/spec-driven-dev/guide.md +156 -22
- package/bundled/skills/tdd-assistant/SKILL.md +7 -0
- package/bundled/skills/test-coverage-assistant/SKILL.md +11 -0
- package/bundled/skills/testing-guide/SKILL.md +23 -0
- package/package.json +1 -1
- package/src/commands/check.js +154 -8
- package/src/commands/config.js +231 -104
- package/src/commands/init.js +23 -3
- package/src/commands/update.js +250 -25
- package/src/config/ai-agent-paths.js +16 -0
- package/src/config/workflow-definitions.js +184 -0
- package/src/core/constants.js +6 -0
- package/src/flows/init-flow.js +23 -6
- package/src/i18n/messages.js +51 -3
- package/src/installers/integration-installer.js +67 -2
- package/src/installers/manifest-installer.js +1 -0
- package/src/installers/standards-installer.js +3 -2
- package/src/prompts/init.js +50 -3
- package/src/reconciler/manifest-migrator.js +2 -2
- package/src/reconciler/plan-executor.js +11 -0
- package/src/utils/integration-generator.js +327 -14
- package/src/utils/workflow-gate.js +292 -0
- package/standards-registry.json +160 -5
|
@@ -1,41 +1,49 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: |
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
source: ../../../../skills/spec-driven-dev/
|
|
7
|
-
source_version: 1.
|
|
8
|
-
translation_version: 1.
|
|
9
|
-
last_synced: 2026-
|
|
3
|
+
引导规格驱动开发 (SDD) 工作流程,在实现前规划变更。
|
|
4
|
+
使用时机:建立规格、提案、规划功能、使用 OpenSpec 或类似工具。
|
|
5
|
+
关键字:spec, specification, SDD, proposal, openspec, spec-kit, design doc, 规格, 提案, 设计文件。
|
|
6
|
+
source: ../../../../skills/spec-driven-dev/guide.md
|
|
7
|
+
source_version: 1.2.0
|
|
8
|
+
translation_version: 1.2.0
|
|
9
|
+
last_synced: 2026-03-23
|
|
10
10
|
status: current
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# 规格驱动开发指南
|
|
14
14
|
|
|
15
|
-
> **语言**: [English](../../../../skills/spec-driven-dev/
|
|
15
|
+
> **语言**: [English](../../../../skills/spec-driven-dev/guide.md) | 简体中文
|
|
16
16
|
|
|
17
|
-
**版本**: 1.
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
**版本**: 1.2.0
|
|
18
|
+
**最后更新**: 2026-03-23
|
|
19
|
+
**适用范围**: Claude Code Skills
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
23
|
## 目的
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
本技能引导您完成规格驱动开发 (SDD),确保变更在实现前经过规划、文档化和核准。
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## 会话启动协议
|
|
28
|
+
|
|
29
|
+
每次会话开始时:
|
|
30
|
+
|
|
31
|
+
1. **检查进行中的规格**:搜索 `docs/specs/`、`specs/`、`openspec/changes/` 或 `.specify/` 中的进行中工作
|
|
32
|
+
2. **若发现进行中的规格** → 通知用户并提供继续的选项
|
|
33
|
+
3. 在开始新工作前**检阅上下文**
|
|
34
|
+
|
|
35
|
+
## 快速参考
|
|
28
36
|
|
|
29
37
|
### SDD 工作流程
|
|
30
38
|
|
|
31
39
|
```
|
|
32
40
|
┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
33
|
-
│
|
|
41
|
+
│ Discuss │───▶│ Proposal │───▶│ Review │───▶│Implementation│
|
|
34
42
|
└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
|
|
35
43
|
│
|
|
36
44
|
▼
|
|
37
45
|
┌──────────────┐ ┌──────────────┐
|
|
38
|
-
│
|
|
46
|
+
│ Archive │◀───│ Verification │
|
|
39
47
|
└──────────────┘ └──────────────┘
|
|
40
48
|
```
|
|
41
49
|
|
|
@@ -43,188 +51,323 @@ status: current
|
|
|
43
51
|
|
|
44
52
|
| 阶段 | 说明 | 产出 |
|
|
45
53
|
|------|------|------|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
54
|
+
| **Discuss** | 捕捉模糊地带、锁定范围、建立必读清单 | 范围定义、规范参考 |
|
|
55
|
+
| **Proposal** | 定义要变更什么以及为什么 | `proposal.md` |
|
|
56
|
+
| **Review** | 利害关系人核准 | 核准记录 |
|
|
57
|
+
| **Implementation** | 执行已核准的规格 | 代码、测试、文档 |
|
|
58
|
+
| **Verification** | 确认实现符合规格(最多 3 次迭代) | 测试结果、追溯矩阵 |
|
|
59
|
+
| **Archive** | 关闭并归档 | 带链接的已归档规格 |
|
|
60
|
+
|
|
61
|
+
### 工作流程强制闸门
|
|
52
62
|
|
|
53
|
-
|
|
63
|
+
**重要**:执行任何工作流程阶段前,必须检查先决条件。
|
|
54
64
|
|
|
55
|
-
|
|
|
65
|
+
| 阶段 | 先决条件 | 失败时 |
|
|
66
|
+
|------|---------|--------|
|
|
67
|
+
| Proposal | Discuss 完成、范围锁定 | → 先完成 Discuss 阶段 |
|
|
68
|
+
| Implementation | 规格状态 = Approved | → 先取得核准 |
|
|
69
|
+
| Verification | 所有 AC 都有代码 + 测试 | → 完成实现 |
|
|
70
|
+
| Commit (feat/fix) | 检查进行中的规格 | → 建议规格参考 (Refs: SPEC-XXX) |
|
|
71
|
+
| Archive | 所有任务完成、已验证 | → 完成剩余任务 |
|
|
72
|
+
|
|
73
|
+
### 核心原则
|
|
74
|
+
|
|
75
|
+
| 原则 | 说明 |
|
|
56
76
|
|------|------|
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
77
|
+
| **先评估** | 建立规格前评估范围和同步需求 |
|
|
78
|
+
| **规格优先** | 没有已核准的规格不进行功能性变更 |
|
|
79
|
+
| **工具优先** | 有 SDD 工具时优先使用其命令 |
|
|
80
|
+
| **方法论 > 工具** | SDD 可搭配任何工具或手动流程 |
|
|
81
|
+
| **双向同步** | 变更传播到所有相关产物 |
|
|
82
|
+
| **简单优先** | 选择最简单的可行方案 |
|
|
83
|
+
|
|
84
|
+
### 规格前评估
|
|
85
|
+
|
|
86
|
+
建立规格前,回答以下问题:
|
|
87
|
+
|
|
88
|
+
| 问题 | 选项 | 结果 |
|
|
89
|
+
|------|------|------|
|
|
90
|
+
| **范围?** | 项目特定 / 通用 | 决定是否需要核心规范 |
|
|
91
|
+
| **交互式?** | 是 / 否 | 决定是否需要技能 |
|
|
92
|
+
| **用户触发?** | 是 / 否 | 决定是否需要命令 |
|
|
93
|
+
|
|
94
|
+
### 建立规格前
|
|
95
|
+
|
|
96
|
+
- 总是先检查项目中是否已存在类似的规格
|
|
97
|
+
- 建立新规格前先搜索现有规格目录
|
|
98
|
+
- 优先修改现有规格而非建立重复的
|
|
99
|
+
- 若需求不明确,先提出 1-2 个厘清问题
|
|
100
|
+
|
|
101
|
+
### 「规格优先」的例外
|
|
102
|
+
|
|
103
|
+
- 紧急修复(立即恢复服务,之后补文档)
|
|
104
|
+
- 琐碎变更(错字、注释、格式)
|
|
105
|
+
- 依赖套件更新(不破坏兼容性)
|
|
106
|
+
- 配置变更
|
|
107
|
+
|
|
108
|
+
## 详细阶段指引
|
|
109
|
+
|
|
110
|
+
### Discuss 阶段
|
|
111
|
+
|
|
112
|
+
Discuss 阶段确保在编写规格前解决所有歧义。
|
|
113
|
+
|
|
114
|
+
#### 1. 建立治理原则
|
|
115
|
+
|
|
116
|
+
预先定义项目惯例、约束和不可妥协的事项:
|
|
117
|
+
|
|
118
|
+
- 项目的核心架构决策是什么?
|
|
119
|
+
- 不可妥协的约束是什么(性能、安全、兼容性)?
|
|
120
|
+
- 记录在 `project.md`、`CONTRIBUTING.md` 或等效文件中
|
|
121
|
+
|
|
122
|
+
#### 2. 结构化厘清
|
|
123
|
+
|
|
124
|
+
列出所有模糊点作为明确问题,逐一解决后再继续:
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
## 厘清记录
|
|
128
|
+
|
|
129
|
+
| # | 问题 | 选项 | 决定 | 理由 |
|
|
130
|
+
|---|------|------|------|------|
|
|
131
|
+
| 1 | 认证方式? | OAuth2 / JWT / Session | OAuth2 | 业界标准,支持 SSO |
|
|
132
|
+
| 2 | Token 存储? | Cookie / LocalStorage | HttpOnly Cookie | XSS 防护 |
|
|
133
|
+
```
|
|
60
134
|
|
|
61
|
-
|
|
135
|
+
#### 3. 锁定范围
|
|
62
136
|
|
|
63
|
-
-
|
|
64
|
-
-
|
|
137
|
+
- 定义什么在范围内、什么在范围外
|
|
138
|
+
- 识别可能受影响的相关规格
|
|
139
|
+
- 建立必读的文件/规格清单
|
|
65
140
|
|
|
66
|
-
|
|
141
|
+
### Implementation 阶段
|
|
142
|
+
|
|
143
|
+
实现时遵循结构化方法:
|
|
144
|
+
|
|
145
|
+
1. **仔细阅读提案/规格** — 理解所有需求和 AC
|
|
146
|
+
2. **建立任务清单** — 分解为循序任务(在 `tasks.md` 或规格内)
|
|
147
|
+
3. **依序实现任务** — 按顺序完成每个任务
|
|
148
|
+
4. **完成后更新清单** — 标记任务为已完成
|
|
149
|
+
5. **不要跳到下一阶段** — 直到所有任务完成
|
|
150
|
+
|
|
151
|
+
### 需求用语
|
|
152
|
+
|
|
153
|
+
在规格中使用精确语言:
|
|
154
|
+
|
|
155
|
+
| 关键字 | 含义 | 用法 |
|
|
156
|
+
|--------|------|------|
|
|
157
|
+
| **SHALL/MUST** | 强制需求 | 「系统 SHALL 验证输入」 |
|
|
158
|
+
| **SHOULD** | 建议做法 | 「API SHOULD 在 200ms 内响应」 |
|
|
159
|
+
| **MAY** | 可选功能 | 「UI MAY 显示加载动画」 |
|
|
160
|
+
|
|
161
|
+
避免模糊用语:「should try」、「might need」、「could possibly」
|
|
162
|
+
|
|
163
|
+
## 简单优先
|
|
164
|
+
|
|
165
|
+
### 默认原则
|
|
166
|
+
|
|
167
|
+
- 每次变更默认少于 100 行新代码
|
|
168
|
+
- 单一文件实现直到证明不足
|
|
169
|
+
- 没有明确理由不引入框架
|
|
170
|
+
- 选择无聊但经过验证的模式
|
|
171
|
+
|
|
172
|
+
### 复杂度触发条件
|
|
173
|
+
|
|
174
|
+
只有在具体证据下才增加复杂度:
|
|
175
|
+
|
|
176
|
+
| 触发条件 | 需要的证据 |
|
|
177
|
+
|---------|-----------|
|
|
178
|
+
| 性能优化 | 分析数据显示瓶颈 |
|
|
179
|
+
| 抽象层 | 3+ 个具体使用案例需要 |
|
|
180
|
+
| 外部依赖 | 相较内建方案的明确理由 |
|
|
181
|
+
| 多服务拆分 | 规模需求(>1000 用户、>100MB 数据) |
|
|
182
|
+
|
|
183
|
+
## 命名规范
|
|
184
|
+
|
|
185
|
+
### 规格 ID
|
|
186
|
+
|
|
187
|
+
- 格式:`SPEC-NNN`(例如 `SPEC-001`、`SPEC-042`)
|
|
188
|
+
- 在项目内循序编号
|
|
189
|
+
|
|
190
|
+
### 变更 ID
|
|
191
|
+
|
|
192
|
+
- 格式:kebab-case,动词开头
|
|
193
|
+
- 前缀:`add-`、`update-`、`remove-`、`refactor-`
|
|
194
|
+
- 范例:`add-two-factor-auth`、`update-payment-flow`、`remove-legacy-api`
|
|
195
|
+
|
|
196
|
+
### 功能名称
|
|
197
|
+
|
|
198
|
+
- 格式:动词-名词(例如 `user-auth`、`payment-capture`)
|
|
199
|
+
- 每个功能单一目的
|
|
200
|
+
- 10 分钟可理解性规则:若需要更久才能理解,就拆分
|
|
201
|
+
- 描述需要「而且」时就拆分
|
|
202
|
+
|
|
203
|
+
## 提案模板
|
|
67
204
|
|
|
68
205
|
```markdown
|
|
69
|
-
# [SPEC-ID]
|
|
206
|
+
# [SPEC-ID] 功能标题
|
|
70
207
|
|
|
71
208
|
## 摘要
|
|
72
|
-
|
|
209
|
+
简短描述提案变更。
|
|
73
210
|
|
|
74
211
|
## 动机
|
|
75
|
-
|
|
212
|
+
为什么需要这个变更?解决什么问题?
|
|
76
213
|
|
|
77
214
|
## 详细设计
|
|
78
|
-
|
|
215
|
+
技术方法、受影响的组件、数据流。
|
|
79
216
|
|
|
80
|
-
##
|
|
81
|
-
- [ ]
|
|
82
|
-
- [ ]
|
|
217
|
+
## 验收条件
|
|
218
|
+
- [ ] 条件 1
|
|
219
|
+
- [ ] 条件 2
|
|
83
220
|
|
|
84
|
-
##
|
|
85
|
-
|
|
221
|
+
## 依赖性
|
|
222
|
+
列出对其他规格或外部系统的依赖。
|
|
86
223
|
|
|
87
|
-
##
|
|
88
|
-
|
|
224
|
+
## 风险
|
|
225
|
+
潜在风险和缓解策略。
|
|
89
226
|
```
|
|
90
227
|
|
|
91
228
|
## 详细指南
|
|
92
229
|
|
|
93
|
-
|
|
94
|
-
- [
|
|
230
|
+
完整标准请参阅:
|
|
231
|
+
- [规格驱动开发标准](../../../../core/spec-driven-development.md)
|
|
95
232
|
|
|
96
|
-
### AI
|
|
233
|
+
### AI 优化格式(Token 效率)
|
|
97
234
|
|
|
98
|
-
AI 助手可使用 YAML
|
|
99
|
-
-
|
|
235
|
+
AI 助手可使用 YAML 格式文件以减少 token 用量:
|
|
236
|
+
- 基本标准:`ai/standards/spec-driven-development.ai.yaml`
|
|
100
237
|
|
|
101
|
-
##
|
|
238
|
+
## 与其他标准的整合
|
|
102
239
|
|
|
103
|
-
###
|
|
240
|
+
### 与 Commit 讯息
|
|
104
241
|
|
|
105
|
-
|
|
242
|
+
在 commit 讯息中参照规格 ID:
|
|
106
243
|
|
|
107
244
|
```
|
|
108
|
-
feat(auth):
|
|
245
|
+
feat(auth): 实现登录功能
|
|
109
246
|
|
|
110
|
-
|
|
247
|
+
实现 SPEC-001 使用 OAuth2 支持的登录功能。
|
|
111
248
|
|
|
112
249
|
Refs: SPEC-001
|
|
113
250
|
```
|
|
114
251
|
|
|
115
|
-
###
|
|
252
|
+
### 与提交规范
|
|
116
253
|
|
|
117
|
-
|
|
254
|
+
为规格提交代码前:
|
|
118
255
|
|
|
119
|
-
- [ ]
|
|
120
|
-
- [ ]
|
|
121
|
-
- [ ]
|
|
122
|
-
- [ ] PR
|
|
256
|
+
- [ ] 规格已核准
|
|
257
|
+
- [ ] 实现符合规格
|
|
258
|
+
- [ ] 测试涵盖验收条件
|
|
259
|
+
- [ ] PR 中参照规格 ID
|
|
123
260
|
|
|
124
|
-
###
|
|
261
|
+
### 与代码审查
|
|
125
262
|
|
|
126
263
|
审查者应验证:
|
|
127
264
|
|
|
128
|
-
- [ ]
|
|
129
|
-
- [ ]
|
|
130
|
-
- [ ]
|
|
265
|
+
- [ ] 变更符合已核准的规格
|
|
266
|
+
- [ ] 没有超出规格的范围蔓延
|
|
267
|
+
- [ ] 规格的验收条件已满足
|
|
131
268
|
|
|
132
|
-
##
|
|
269
|
+
## 常见 SDD 工具
|
|
133
270
|
|
|
134
|
-
|
|
271
|
+
| 工具 | 说明 | 主要命令 |
|
|
272
|
+
|------|------|---------|
|
|
273
|
+
| **OpenSpec** | 规格管理 CLI | `openspec list`、`openspec show`、`openspec validate`、`openspec archive` |
|
|
274
|
+
| **Spec Kit** | 斜线命令驱动的 SDD | `specify init`、`/specify`、`/clarify`、`/plan`、`/tasks`、`/implement` |
|
|
275
|
+
| **手动** | 无工具,基于文件 | 手动建立 `specs/SPEC-XXX.md` |
|
|
135
276
|
|
|
136
|
-
|
|
137
|
-
# SPEC-001 新增 OAuth2 登入
|
|
138
|
-
|
|
139
|
-
## 摘要
|
|
140
|
-
新增 Google OAuth2 登入,讓使用者可以用 Google 帳号登入。
|
|
277
|
+
> **注意**:当项目中检测到 SDD 工具时,优先使用其原生命令而非手动编辑文件,以确保一致性和可追溯性。
|
|
141
278
|
|
|
142
|
-
##
|
|
143
|
-
- 減少新使用者註冊的摩擦
|
|
144
|
-
- 不储存密码以提升安全性
|
|
279
|
+
## 同步验证
|
|
145
280
|
|
|
146
|
-
|
|
147
|
-
- [ ] 使用者可以点擊「使用 Google 登入」按鈕
|
|
148
|
-
- [ ] 新使用者自动註冊
|
|
149
|
-
- [ ] 現有使用者可連結 Google 帳号
|
|
150
|
-
```
|
|
281
|
+
完成规格后,验证同步:
|
|
151
282
|
|
|
152
|
-
###
|
|
283
|
+
### 同步清单
|
|
153
284
|
|
|
154
285
|
```markdown
|
|
155
|
-
|
|
286
|
+
## 同步状态
|
|
287
|
+
|
|
288
|
+
### 范围:[通用|项目|工具]
|
|
156
289
|
|
|
157
|
-
|
|
290
|
+
- [ ] 核心规范:[已建立|已更新|不适用]
|
|
291
|
+
- [ ] 技能:[已建立|已更新|不适用]
|
|
292
|
+
- [ ] 命令:[已建立|已更新|不适用]
|
|
293
|
+
- [ ] 翻译:[已同步|待处理|不适用]
|
|
158
294
|
```
|
|
159
|
-
- 缺少規格 ID
|
|
160
|
-
- 没有动机说明
|
|
161
|
-
- 没有驗收标准
|
|
162
295
|
|
|
163
|
-
|
|
296
|
+
### 同步矩阵
|
|
164
297
|
|
|
165
|
-
|
|
|
166
|
-
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
298
|
+
| 变更来源 | 同步至 |
|
|
299
|
+
|---------|--------|
|
|
300
|
+
| 核心规范 | → 技能、命令、翻译 |
|
|
301
|
+
| 技能 | → 核心规范、命令、翻译 |
|
|
302
|
+
| 命令 | → 技能、翻译 |
|
|
170
303
|
|
|
171
|
-
##
|
|
304
|
+
## 最佳实践
|
|
172
305
|
|
|
173
|
-
###
|
|
306
|
+
### 应该做的
|
|
174
307
|
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
308
|
+
- 建立规格前评估范围
|
|
309
|
+
- 建立新规格前检查是否已存在
|
|
310
|
+
- 保持规格聚焦且原子化(一个规格一个变更)
|
|
311
|
+
- 包含使用 Given/When/Then 的明确验收条件
|
|
312
|
+
- 使用 SHALL/MUST 表达强制需求
|
|
313
|
+
- 将规格链接到实现 PR
|
|
314
|
+
- 完成后归档规格
|
|
315
|
+
- 关闭前验证同步状态
|
|
179
316
|
|
|
180
|
-
###
|
|
317
|
+
### 不应该做的
|
|
181
318
|
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
319
|
+
- 规格核准前就开始写代码
|
|
320
|
+
- 跳过范围评估或 Discuss 阶段
|
|
321
|
+
- 实现期间修改范围而不更新规格
|
|
322
|
+
- 让规格处于悬而未决状态(一定要关闭或归档)
|
|
323
|
+
- 跳过验证步骤
|
|
324
|
+
- 忘记同步相关产物
|
|
325
|
+
- 没有具体证据就增加复杂度
|
|
186
326
|
|
|
187
327
|
---
|
|
188
328
|
|
|
189
|
-
##
|
|
329
|
+
## 配置检测
|
|
190
330
|
|
|
191
|
-
|
|
331
|
+
本技能支持项目特定的配置。
|
|
192
332
|
|
|
193
|
-
###
|
|
333
|
+
### 检测顺序
|
|
194
334
|
|
|
195
|
-
1.
|
|
196
|
-
|
|
197
|
-
|
|
335
|
+
1. 检查工作区中的 SDD 工具:
|
|
336
|
+
- `openspec/` 目录 → 检测到 OpenSpec
|
|
337
|
+
- `.specify/` 目录 → 检测到 Spec Kit
|
|
338
|
+
- `specs/` 或 `docs/specs/` → 手动基于文件的工作流程
|
|
339
|
+
2. 检查 `CONTRIBUTING.md` 中的规格工作流程文档
|
|
340
|
+
3. 若未找到,**默认使用手动基于文件的工作流程**
|
|
198
341
|
|
|
199
342
|
### 首次设置
|
|
200
343
|
|
|
201
|
-
|
|
344
|
+
若未找到配置:
|
|
202
345
|
|
|
203
|
-
1.
|
|
204
|
-
2.
|
|
346
|
+
1. 询问用户:「此项目尚未配置 SDD。是否要设置规格目录?」
|
|
347
|
+
2. 建议记录在 `CONTRIBUTING.md`:
|
|
205
348
|
|
|
206
349
|
```markdown
|
|
207
|
-
##
|
|
350
|
+
## 规格驱动开发
|
|
208
351
|
|
|
209
|
-
|
|
352
|
+
我们对所有非琐碎的变更使用规格驱动开发。
|
|
210
353
|
|
|
211
354
|
### 流程
|
|
212
355
|
1. 在 `specs/` 目录建立提案
|
|
213
|
-
2.
|
|
214
|
-
3.
|
|
215
|
-
4.
|
|
356
|
+
2. 取得团队负责人核准
|
|
357
|
+
3. 实现并在 PR 中参照规格
|
|
358
|
+
4. 合并后归档规格
|
|
216
359
|
|
|
217
|
-
###
|
|
218
|
-
|
|
360
|
+
### 规格模板
|
|
361
|
+
请参阅 `specs/TEMPLATE.md`
|
|
219
362
|
```
|
|
220
363
|
|
|
221
364
|
---
|
|
222
365
|
|
|
223
366
|
## 相关标准
|
|
224
367
|
|
|
225
|
-
- [
|
|
226
|
-
- [
|
|
227
|
-
- [
|
|
368
|
+
- [规格驱动开发标准](../../../../core/spec-driven-development.md)
|
|
369
|
+
- [Commit 讯息指南](../../../../core/commit-message-guide.md)
|
|
370
|
+
- [代码审查清单](../../../../core/code-review-checklist.md)
|
|
228
371
|
|
|
229
372
|
---
|
|
230
373
|
|
|
@@ -232,12 +375,14 @@ Refs: SPEC-001
|
|
|
232
375
|
|
|
233
376
|
| 版本 | 日期 | 变更 |
|
|
234
377
|
|------|------|------|
|
|
235
|
-
| 1.
|
|
378
|
+
| 1.2.0 | 2026-03-23 | 新增:会话启动协议、工作流程强制闸门、Discuss 阶段(治理原则 + 厘清)、简单优先、命名规范、Implementation 阶段强化、需求用语、搜索指引、更新常见 SDD 工具 |
|
|
379
|
+
| 1.1.0 | 2026-01-26 | 新增:规格前评估、同步验证、同步矩阵、强化最佳实践 |
|
|
380
|
+
| 1.0.0 | 2025-12-30 | 初始版本 |
|
|
236
381
|
|
|
237
382
|
---
|
|
238
383
|
|
|
239
384
|
## 授权
|
|
240
385
|
|
|
241
|
-
|
|
386
|
+
本技能以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授权释出。
|
|
242
387
|
|
|
243
|
-
|
|
388
|
+
**来源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -14,7 +14,7 @@ status: current
|
|
|
14
14
|
|
|
15
15
|
Universal Development Standards 是一個語言無關、框架無關的文件化標準框架。它提供:
|
|
16
16
|
|
|
17
|
-
- **核心規範** (`core/`):
|
|
17
|
+
- **核心規範** (`core/`):49 個基礎開發標準
|
|
18
18
|
- **AI 技能** (`skills/`):用於 AI 輔助開發的 Claude Code 技能
|
|
19
19
|
- **CLI 工具** (`cli/`):用於採用標準的 Node.js CLI
|
|
20
20
|
- **整合** (`integrations/`):各種 AI 工具的配置
|
|
@@ -200,7 +200,7 @@ node cli\bin\uds.js init --help
|
|
|
200
200
|
|
|
201
201
|
```
|
|
202
202
|
universal-dev-standards/
|
|
203
|
-
├── core/ # 核心規範(
|
|
203
|
+
├── core/ # 核心規範(49 個檔案)
|
|
204
204
|
├── skills/ # AI 工具技能
|
|
205
205
|
│ └── claude-code/ # Claude Code 技能(26 個技能)
|
|
206
206
|
├── cli/ # Node.js CLI 工具
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **語言**: [English](../../README.md) | 繁體中文 | [简体中文](../zh-CN/README.md)
|
|
8
8
|
|
|
9
|
-
**版本**: 5.0.0
|
|
9
|
+
**版本**: 5.0.0 | **發布日期**: 2026-03-24 | **授權**: [雙重授權](../../LICENSE) (CC BY 4.0 + MIT)
|
|
10
10
|
|
|
11
11
|
語言無關、框架無關的軟體專案文件標準。透過 AI 原生工作流,確保不同技術堆疊之間的一致性、品質和可維護性。
|
|
12
12
|
|
|
@@ -55,9 +55,9 @@ npx universal-dev-standards init
|
|
|
55
55
|
<!-- UDS_STATS_TABLE_START -->
|
|
56
56
|
| 類別 | 數量 | 說明 |
|
|
57
57
|
|----------|-------|-------------|
|
|
58
|
-
| **核心標準** |
|
|
59
|
-
| **AI Skills** |
|
|
60
|
-
| **斜線命令** |
|
|
58
|
+
| **核心標準** | 49 | 通用開發準則 |
|
|
59
|
+
| **AI Skills** | 40 | 互動式技能 |
|
|
60
|
+
| **斜線命令** | 45 | 快速操作 |
|
|
61
61
|
| **CLI 指令** | 6 | list, init, configure, check, update, skills |
|
|
62
62
|
<!-- UDS_STATS_TABLE_END -->
|
|
63
63
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# 安全政策
|
|
2
|
+
|
|
3
|
+
## 支援的版本
|
|
4
|
+
|
|
5
|
+
<!-- UDS_SUPPORTED_VERSIONS_START -->
|
|
6
|
+
| 版本 | 支援狀態 |
|
|
7
|
+
|------|--------|
|
|
8
|
+
| 5.0.0 | ✅ 最新正式版 |
|
|
9
|
+
| < 5.0.0 | ❌ 已終止支援 |
|
|
10
|
+
<!-- UDS_SUPPORTED_VERSIONS_END -->
|
|
11
|
+
|
|
12
|
+
> **說明**:僅最新正式版與當前預發布分支會收到安全更新。
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 回報漏洞
|
|
17
|
+
|
|
18
|
+
### 如何回報
|
|
19
|
+
|
|
20
|
+
**請勿**以公開 GitHub issue 回報安全漏洞。
|
|
21
|
+
|
|
22
|
+
請透過以下管道回報:
|
|
23
|
+
|
|
24
|
+
1. **GitHub Security Advisories**(推薦)
|
|
25
|
+
- 前往 [Security Advisories](https://github.com/AsiaOstrich/universal-dev-standards/security/advisories/new)
|
|
26
|
+
- 這能確保回報是私密且可追蹤的
|
|
27
|
+
|
|
28
|
+
2. **GitHub 私密漏洞回報**
|
|
29
|
+
- 前往 [回報漏洞](https://github.com/AsiaOstrich/universal-dev-standards/security)
|
|
30
|
+
- 依照引導流程回報
|
|
31
|
+
|
|
32
|
+
### 回報內容
|
|
33
|
+
|
|
34
|
+
請包含以下資訊:
|
|
35
|
+
|
|
36
|
+
- **描述**:清楚說明漏洞內容
|
|
37
|
+
- **重現步驟**:詳細的重現步驟
|
|
38
|
+
- **影響範圍**:攻擊者可達成的影響
|
|
39
|
+
- **受影響版本**:哪些版本受影響
|
|
40
|
+
- **建議修復方式**:如果您有建議(選填)
|
|
41
|
+
|
|
42
|
+
### 回應時間
|
|
43
|
+
|
|
44
|
+
| 動作 | 時間 |
|
|
45
|
+
|------|------|
|
|
46
|
+
| 確認收到 | 48 小時內 |
|
|
47
|
+
| 初步評估 | 7 天內 |
|
|
48
|
+
| 修復發布(嚴重) | 14 天內 |
|
|
49
|
+
| 修復發布(非嚴重) | 下次排程發布 |
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 安全範疇
|
|
54
|
+
|
|
55
|
+
### 在範疇內
|
|
56
|
+
|
|
57
|
+
| 元件 | 說明 |
|
|
58
|
+
|------|------|
|
|
59
|
+
| CLI 工具 (`cli/`) | 指令注入、路徑穿越、依賴漏洞 |
|
|
60
|
+
| 標準內容 (`core/`) | 可能導致不安全實作的指引 |
|
|
61
|
+
| GitHub Actions (`.github/workflows/`) | 工作流程注入、機密洩漏 |
|
|
62
|
+
|
|
63
|
+
### 不在範疇內
|
|
64
|
+
|
|
65
|
+
- 第三方依賴的漏洞(請回報給上游維護者)
|
|
66
|
+
- 採用 UDS 標準的使用者專案中的問題
|
|
67
|
+
- 社交工程攻擊
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## 揭露政策
|
|
72
|
+
|
|
73
|
+
我們遵循**協調揭露**原則:
|
|
74
|
+
|
|
75
|
+
1. 回報者私下提交漏洞
|
|
76
|
+
2. 我們確認並評估
|
|
77
|
+
3. 我們開發並測試修復
|
|
78
|
+
4. 我們發布修復
|
|
79
|
+
5. 我們公開揭露漏洞(附上回報者致謝)
|
|
80
|
+
|
|
81
|
+
除非回報者希望匿名,否則我們會在發布說明中致謝。
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 使用者安全建議
|
|
86
|
+
|
|
87
|
+
在您的專案中使用 UDS 時:
|
|
88
|
+
|
|
89
|
+
- 保持 UDS CLI 為最新版本
|
|
90
|
+
- 採用前審閱標準(特別是 `security-standards.md`)
|
|
91
|
+
- 定期對專案執行 `npm audit`
|
|
92
|
+
- 遵循 `core/security-standards.md` 定義的安全標準
|