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,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/config.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
description: [UDS] Configure project development standards
|
|
10
|
+
allowed-tools: Read, Bash(uds config:*), Bash(uds configure:*), Bash(uds check:*)
|
|
11
|
+
argument-hint: "[type] [--ai-tool <tool>]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 配置标准
|
|
15
|
+
|
|
16
|
+
配置当前专案的 Universal Development Standards 设定。
|
|
17
|
+
|
|
18
|
+
## 互动模式(默认)
|
|
19
|
+
|
|
20
|
+
当不指定类型时,使用 AskUserQuestion 询问要配置什么。
|
|
21
|
+
|
|
22
|
+
### 步骤 0:显示当前状态
|
|
23
|
+
|
|
24
|
+
首先,执行 `uds check --summary` 显示当前安装状态。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
uds check --summary
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
这帮助用户在修改前了解当前的配置。
|
|
31
|
+
|
|
32
|
+
### 步骤 1:询问配置类型
|
|
33
|
+
|
|
34
|
+
使用 AskUserQuestion 提供以下选项:
|
|
35
|
+
|
|
36
|
+
| 类别 | 选项 |
|
|
37
|
+
|------|------|
|
|
38
|
+
| **基本选项** | Format, Git Workflow, Merge Strategy, Commit Language, Test Levels |
|
|
39
|
+
| **AI 工具** | 添加或移除 AI 工具集成 |
|
|
40
|
+
| **Skills** | 管理 Skills 安装(安装/更新/重新安装已拒绝的) |
|
|
41
|
+
| **Commands** | 管理 Commands 安装 |
|
|
42
|
+
| **进阶** | Adoption Level, Content Mode |
|
|
43
|
+
| **全部** | 配置所有选项 |
|
|
44
|
+
|
|
45
|
+
### 步骤 2:根据选择执行
|
|
46
|
+
|
|
47
|
+
**如果选择 AI 工具:**
|
|
48
|
+
```bash
|
|
49
|
+
uds configure --type ai_tools
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**如果选择 Skills:**
|
|
53
|
+
```bash
|
|
54
|
+
uds configure --type skills
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**如果选择 Commands:**
|
|
58
|
+
```bash
|
|
59
|
+
uds configure --type commands
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**如果选择 Adoption Level:**
|
|
63
|
+
```bash
|
|
64
|
+
uds configure --type level
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**如果选择 Content Mode:**
|
|
68
|
+
```bash
|
|
69
|
+
uds configure --type content_mode
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 快速模式
|
|
73
|
+
|
|
74
|
+
指定类型时,跳过互动式问题:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
/config ai_tools # Directly configure AI tools
|
|
78
|
+
/config skills # Directly manage Skills
|
|
79
|
+
/config commands # Directly manage Commands
|
|
80
|
+
/config level # Directly configure adoption level
|
|
81
|
+
/config content_mode # Directly configure content mode
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 非互动式安装
|
|
85
|
+
|
|
86
|
+
使用 `--ai-tool` 选项为特定工具安装 Skills/Commands,无需提示:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Install Skills for specific tool (project level, default)
|
|
90
|
+
uds configure --type skills --ai-tool opencode
|
|
91
|
+
|
|
92
|
+
# Install Skills for specific tool (user level)
|
|
93
|
+
uds configure --type skills --ai-tool opencode --skills-location user
|
|
94
|
+
|
|
95
|
+
# Install Skills for specific tool (project level, explicit)
|
|
96
|
+
uds configure --type skills --ai-tool claude-code --skills-location project
|
|
97
|
+
|
|
98
|
+
# Install Commands for specific tool
|
|
99
|
+
uds configure --type commands --ai-tool copilot
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Skills 位置选项:**
|
|
103
|
+
|
|
104
|
+
| 选项 | 路径 | 说明 |
|
|
105
|
+
|------|------|------|
|
|
106
|
+
| `project` | `.claude/skills/`, `.opencode/skill/` | 专案级别(默认) |
|
|
107
|
+
| `user` | `~/.claude/skills/`, `~/.opencode/skill/` | 跨所有专案共享 |
|
|
108
|
+
|
|
109
|
+
## 配置类型
|
|
110
|
+
|
|
111
|
+
| 类型 | 说明 |
|
|
112
|
+
|------|------|
|
|
113
|
+
| `ai_tools` | AI 工具集成 |
|
|
114
|
+
| `skills` | Skills 安装管理 |
|
|
115
|
+
| `commands` | Commands 安装管理 |
|
|
116
|
+
| `level` | 采用等级 (1/2/3) |
|
|
117
|
+
| `content_mode` | 集成文件内容模式 |
|
|
118
|
+
| `format` | AI/人类文档格式 |
|
|
119
|
+
| `workflow` | Git 工作流程策略 |
|
|
120
|
+
| `merge_strategy` | 合并策略 |
|
|
121
|
+
| `commit_language` | 提交消息语言 |
|
|
122
|
+
| `test_levels` | 测试层级 |
|
|
123
|
+
| `methodology` | 开发方法论(实验性,需要 -E) |
|
|
124
|
+
| `all` | 配置所有选项 |
|
|
125
|
+
|
|
126
|
+
## Skills 配置
|
|
127
|
+
|
|
128
|
+
选择 `skills` 类型时,CLI 显示:
|
|
129
|
+
|
|
130
|
+
1. **当前状态** - 显示每个 AI 工具已安装的 Skills
|
|
131
|
+
2. **已拒绝状态** - 显示用户之前拒绝 Skills 的工具
|
|
132
|
+
3. **操作菜单**:
|
|
133
|
+
- 安装/更新 Skills
|
|
134
|
+
- 重新安装已拒绝的 Skills
|
|
135
|
+
- 仅查看状态
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
Current Skills status:
|
|
139
|
+
✓ Claude Code:
|
|
140
|
+
- User: v3.5.1
|
|
141
|
+
○ OpenCode: Not installed
|
|
142
|
+
⊘ Copilot: Previously declined
|
|
143
|
+
|
|
144
|
+
? What would you like to do?
|
|
145
|
+
❯ Install/Update Skills
|
|
146
|
+
Reinstall declined Skills
|
|
147
|
+
View status only
|
|
148
|
+
Cancel
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Commands 配置
|
|
152
|
+
|
|
153
|
+
选择 `commands` 类型时,CLI 显示:
|
|
154
|
+
|
|
155
|
+
1. **当前状态** - 显示每个支持工具已安装的 Commands
|
|
156
|
+
2. **已拒绝状态** - 显示用户之前拒绝 Commands 的工具
|
|
157
|
+
3. **操作菜单** 类似 Skills
|
|
158
|
+
|
|
159
|
+
支持 Commands 的工具:
|
|
160
|
+
- OpenCode (`.opencode/commands/`)
|
|
161
|
+
- GitHub Copilot (`.github/commands/`)
|
|
162
|
+
- Gemini CLI (`.gemini/commands/`)
|
|
163
|
+
- Roo Code (`.roo-code/commands/`)
|
|
164
|
+
|
|
165
|
+
## 内容模式选项
|
|
166
|
+
|
|
167
|
+
| 模式 | 说明 |
|
|
168
|
+
|------|------|
|
|
169
|
+
| `standard` | 摘要 + 任务映射,AI 知道何时读取哪个标准(推荐) |
|
|
170
|
+
| `full` | 在集成文件中完整嵌入所有标准 |
|
|
171
|
+
| `minimal` | 仅嵌入核心规则 |
|
|
172
|
+
|
|
173
|
+
## 配置变更的影响
|
|
174
|
+
|
|
175
|
+
| 配置 | 影响 |
|
|
176
|
+
|------|------|
|
|
177
|
+
| AI 工具(添加) | 生成新的集成文件 |
|
|
178
|
+
| AI 工具(移除) | 删除集成文件 |
|
|
179
|
+
| Skills | 安装/更新 Skills 到配置路径 |
|
|
180
|
+
| Commands | 安装/更新 Commands 到配置路径 |
|
|
181
|
+
| 等级 | 更新标准,重新生成集成 |
|
|
182
|
+
| 内容模式 | 重新生成所有集成文件 |
|
|
183
|
+
|
|
184
|
+
## 已拒绝的功能
|
|
185
|
+
|
|
186
|
+
CLI 在 `manifest.declinedFeatures` 中追踪已拒绝的 Skills/Commands:
|
|
187
|
+
|
|
188
|
+
- 之前拒绝的工具不会在 `/update` 提示中出现
|
|
189
|
+
- 使用 `/config skills` 或 `/config commands` 重新安装已拒绝的功能
|
|
190
|
+
- 从菜单中选择"重新安装已拒绝的 Skills/Commands"
|
|
191
|
+
|
|
192
|
+
## 选项参考
|
|
193
|
+
|
|
194
|
+
| 选项 | 说明 |
|
|
195
|
+
|------|------|
|
|
196
|
+
| `--type <type>` | 配置类型 |
|
|
197
|
+
| `--ai-tool <tool>` | 特定 AI 工具(非互动式) |
|
|
198
|
+
| `--skills-location <loc>` | Skills 安装位置: project, user |
|
|
199
|
+
| `--yes`, `-y` | 跳过确认提示 |
|
|
200
|
+
| `-E`, `--experimental` | 启用实验性功能 |
|
|
201
|
+
|
|
202
|
+
## 参考
|
|
203
|
+
|
|
204
|
+
- CLI 文档: `uds configure --help`
|
|
205
|
+
- 初始化命令: [/init](./init.md)
|
|
206
|
+
- 检查命令: [/check](./check.md)
|
|
207
|
+
- 更新命令: [/update](./update.md)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/coverage.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
description: [UDS] Analyze test coverage and provide recommendations
|
|
10
|
+
allowed-tools: Read, Grep, Glob, Bash(npm run test:coverage:*), Bash(npx:*)
|
|
11
|
+
argument-hint: "[要分析的文件或模组 | file or module to analyze]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 测试覆盖率助手
|
|
15
|
+
|
|
16
|
+
多维度分析测试覆盖率并提供可执行的建议。
|
|
17
|
+
|
|
18
|
+
## 覆盖率维度
|
|
19
|
+
|
|
20
|
+
| 维度 | 测量内容 |
|
|
21
|
+
|------|----------|
|
|
22
|
+
| **Line** | 执行的行数 |
|
|
23
|
+
| **Branch** | 决策路径 |
|
|
24
|
+
| **Function** | 调用的函数 |
|
|
25
|
+
| **Statement** | 执行的语句 |
|
|
26
|
+
|
|
27
|
+
## 八维度框架
|
|
28
|
+
|
|
29
|
+
1. **代码覆盖率** - 行、分支、函数
|
|
30
|
+
2. **需求覆盖率** - 所有需求已测试
|
|
31
|
+
3. **风险覆盖率** - 高风险区域已测试
|
|
32
|
+
4. **集成覆盖率** - 组件间交互
|
|
33
|
+
5. **边界情况覆盖率** - 边界条件
|
|
34
|
+
6. **错误覆盖率** - 错误处理路径
|
|
35
|
+
7. **权限覆盖率** - 访问控制场景
|
|
36
|
+
8. **AI 生成品质** - AI 生成测试的有效性
|
|
37
|
+
|
|
38
|
+
## 工作流程
|
|
39
|
+
|
|
40
|
+
1. **运行覆盖率工具** - 生成覆盖率报告
|
|
41
|
+
2. **分析缺口** - 识别未测试区域
|
|
42
|
+
3. **优先排序** - 按风险和重要性排序
|
|
43
|
+
4. **建议测试** - 建议需要添加的具体测试
|
|
44
|
+
5. **追踪进度** - 随时间监控覆盖率
|
|
45
|
+
|
|
46
|
+
## 覆盖率目标
|
|
47
|
+
|
|
48
|
+
| 等级 | 覆盖率 | 使用场景 |
|
|
49
|
+
|------|--------|----------|
|
|
50
|
+
| 最低 | 60% | 遗留代码 |
|
|
51
|
+
| 标准 | 80% | 大多数专案 |
|
|
52
|
+
| 高 | 90% | 关键系统 |
|
|
53
|
+
| 关键 | 95%+ | 安全关键 |
|
|
54
|
+
|
|
55
|
+
## 使用方式
|
|
56
|
+
|
|
57
|
+
- `/coverage` - 运行完整覆盖率分析
|
|
58
|
+
- `/coverage src/auth` - 分析特定模组
|
|
59
|
+
- `/coverage --recommend` - 获取测试建议
|
|
60
|
+
|
|
61
|
+
## AC 覆盖率(需求层级)
|
|
62
|
+
|
|
63
|
+
本命令(`/coverage`)分析**代码层级**覆盖率(行/分支/函数)。若需**需求层级**覆盖率 — 追踪哪些 AC 有对应测试 — 请使用 [`/ac-coverage`](./ac-coverage.md)。
|
|
64
|
+
|
|
65
|
+
| | `/coverage` | `/ac-coverage` |
|
|
66
|
+
|-|-------------|----------------|
|
|
67
|
+
| **层级** | 代码(行/分支/函数) | 需求(AC 到测试) |
|
|
68
|
+
| **问题** | "有多少代码被测试了?" | "哪些 AC 有测试?" |
|
|
69
|
+
|
|
70
|
+
## 参考
|
|
71
|
+
|
|
72
|
+
- 完整规范: [test-coverage-assistant](../test-coverage-assistant/SKILL.md)
|
|
73
|
+
- 核心指南: [testing-standards](../../core/testing-standards.md)
|
|
74
|
+
- AC 覆盖率: [/ac-coverage](./ac-coverage.md) — 需求层级追踪
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/database.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-25
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
description: "[UDS] Guide database design, migration planning and query optimization"
|
|
11
|
+
allowed-tools: Read, Grep, Glob
|
|
12
|
+
argument-hint: "[schema or migration to review | 要审查的 schema 或迁移]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Database Assistant | 数据库助手
|
|
16
|
+
|
|
17
|
+
Guide database design, migration planning and query optimization.
|
|
18
|
+
|
|
19
|
+
引导数据库设计、迁移规划和查询优化。
|
|
20
|
+
|
|
21
|
+
## Workflow | 工作流程
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage | 使用方式
|
|
28
|
+
|
|
29
|
+
- `/database` - 启动交互式数据库设计
|
|
30
|
+
- `/database schema` - 审查或设计 schema
|
|
31
|
+
- `/database --migration` - 规划迁移
|
|
32
|
+
|
|
33
|
+
## AI Agent Behavior | AI 代理行为
|
|
34
|
+
|
|
35
|
+
> 遵循 [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
36
|
+
|
|
37
|
+
### Entry Router | 进入路由
|
|
38
|
+
|
|
39
|
+
| 输入 | AI 动作 |
|
|
40
|
+
|------|---------|
|
|
41
|
+
| `/database` | 询问任务类型(schema 设计 / 迁移规划 / 查询优化) |
|
|
42
|
+
| `/database schema` | 进入 schema 设计/审查模式 |
|
|
43
|
+
| `/database --migration` | 进入迁移规划模式 |
|
|
44
|
+
|
|
45
|
+
### Interaction Script | 交互脚本
|
|
46
|
+
|
|
47
|
+
1. 确认任务类型和目标
|
|
48
|
+
2. 分析现有 schema 或迁移文件
|
|
49
|
+
|
|
50
|
+
**Decision: 任务类型**
|
|
51
|
+
- IF schema 设计 → 引导规范化、索引设计、关联定义
|
|
52
|
+
- IF 迁移规划 → 评估风险、生成迁移脚本、规划回滚
|
|
53
|
+
- IF 查询优化 → 分析慢查询、建议索引
|
|
54
|
+
|
|
55
|
+
3. 展示设计/计划结果
|
|
56
|
+
|
|
57
|
+
**STOP**: 结果展示后等待用户确认
|
|
58
|
+
|
|
59
|
+
**STOP**: 迁移脚本写入前等待用户确认
|
|
60
|
+
|
|
61
|
+
### Stop Points | 停止点
|
|
62
|
+
|
|
63
|
+
| 停止点 | 等待内容 |
|
|
64
|
+
|--------|---------|
|
|
65
|
+
| 设计/计划展示后 | 确认方案 |
|
|
66
|
+
| 迁移脚本生成后 | 确认写入 |
|
|
67
|
+
|
|
68
|
+
### Error Handling | 错误处理
|
|
69
|
+
|
|
70
|
+
| 错误条件 | AI 动作 |
|
|
71
|
+
|----------|---------|
|
|
72
|
+
| 无法检测数据库类型 | 询问用户(PostgreSQL/MySQL/MongoDB 等) |
|
|
73
|
+
| 迁移存在数据丢失风险 | 明确警告,要求用户确认 |
|
|
74
|
+
|
|
75
|
+
## Reference | 参考
|
|
76
|
+
|
|
77
|
+
- Full standard: [database-assistant](../database-assistant/SKILL.md)
|
|
78
|
+
- Core guide: [database-standards](../../core/database-standards.md)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/derive-all.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
description: [UDS] Derive all test structures (BDD, TDD, ATDD) from SDD specification
|
|
10
|
+
allowed-tools: Read, Write, Grep, Glob
|
|
11
|
+
argument-hint: "[规格文件路径 | spec file path]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /derive-all — 完整正向推演
|
|
15
|
+
|
|
16
|
+
从已核准的 SDD 规格推演所有测试结构(BDD + TDD + 可选 ATDD)。
|
|
17
|
+
|
|
18
|
+
## 工作流程
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
SPEC-XXX.md ──► /derive-bdd ──► /derive-tdd ──► [/derive-atdd] ──► Report
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
1. **解析** SDD 规格并验证其已核准
|
|
25
|
+
2. **运行** `/derive-bdd` 生成 Gherkin 场景
|
|
26
|
+
3. **运行** `/derive-tdd` 生成测试骨架
|
|
27
|
+
4. **可选** 运行 `/derive-atdd` 生成验收测试表格
|
|
28
|
+
5. **生成** `DERIVATION-REPORT.md` 汇总所有输出
|
|
29
|
+
|
|
30
|
+
## 输出文件
|
|
31
|
+
|
|
32
|
+
| 文件 | 内容 |
|
|
33
|
+
|------|------|
|
|
34
|
+
| `features/SPEC-XXX.feature` | BDD Gherkin 场景 |
|
|
35
|
+
| `tests/SPEC-XXX.test.ts` | TDD 测试骨架 |
|
|
36
|
+
| `DERIVATION-REPORT.md` | 摘要与统计 |
|
|
37
|
+
|
|
38
|
+
## 使用方式
|
|
39
|
+
|
|
40
|
+
| 命令 | 用途 |
|
|
41
|
+
|------|------|
|
|
42
|
+
| `/derive-all specs/SPEC-001.md` | 从规格完整推演 |
|
|
43
|
+
| `/derive-all` | 互动式 — 询问规格文件 |
|
|
44
|
+
|
|
45
|
+
## 典型 SDD 工作流程
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
/sdd user-authentication # Step 1: Create spec
|
|
49
|
+
/sdd review specs/SPEC-001.md # Step 2: Review
|
|
50
|
+
/derive-all specs/SPEC-001.md # Step 3: Derive tests
|
|
51
|
+
# Step 4: Implement — fill [TODO] markers
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 参考
|
|
55
|
+
|
|
56
|
+
- 父命令: [/derive](../forward-derivation/SKILL.md)
|
|
57
|
+
- 核心规范: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
58
|
+
- 子命令: [/derive-bdd](./derive-bdd.md), [/derive-tdd](./derive-tdd.md), [/derive-atdd](./derive-atdd.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/derive-atdd.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
description: [UDS] Derive ATDD acceptance tests from SDD specification
|
|
10
|
+
allowed-tools: Read, Write, Grep, Glob
|
|
11
|
+
argument-hint: "[规格文件路径 | spec file path]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /derive-atdd — 推演 ATDD 验收测试
|
|
15
|
+
|
|
16
|
+
从已核准的 SDD 规格文档推演 ATDD 验收测试表格。
|
|
17
|
+
|
|
18
|
+
## 工作流程
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
SPEC-XXX.md ──► Parse AC ──► Generate acceptance.md ──► Review
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
1. **读取** SDD 规格并提取验收条件
|
|
25
|
+
2. **映射** 每个 AC 到验收测试表格(Given-When-Then 列)
|
|
26
|
+
3. **生成** `acceptance.md`,包含测试数据和预期结果
|
|
27
|
+
4. **输出** 推演摘要
|
|
28
|
+
|
|
29
|
+
## 输出格式
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
# Acceptance Tests: SPEC-001
|
|
33
|
+
|
|
34
|
+
## AC-1: [Description]
|
|
35
|
+
|
|
36
|
+
| # | Given | When | Then | Status |
|
|
37
|
+
|---|-------|------|------|--------|
|
|
38
|
+
| 1 | [precondition] | [action] | [expected] | ⬜ |
|
|
39
|
+
| 2 | [precondition] | [action] | [expected] | ⬜ |
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 使用方式
|
|
43
|
+
|
|
44
|
+
| 命令 | 用途 |
|
|
45
|
+
|------|------|
|
|
46
|
+
| `/derive-atdd specs/SPEC-001.md` | 从特定规格推演 ATDD |
|
|
47
|
+
| `/derive-atdd` | 互动式 — 询问规格文件 |
|
|
48
|
+
|
|
49
|
+
> **注意**: BDD 场景已经作为可执行的验收测试。`/derive-atdd` 适用于专门的手动测试工作流程。
|
|
50
|
+
|
|
51
|
+
## 参考
|
|
52
|
+
|
|
53
|
+
- 父命令: [/derive](../forward-derivation/SKILL.md)
|
|
54
|
+
- 核心规范: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/derive-bdd.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
description: [UDS] Derive BDD Gherkin scenarios from SDD specification
|
|
11
|
+
allowed-tools: Read, Write, Grep, Glob
|
|
12
|
+
argument-hint: "[spec file path | 规格文件路径]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# /derive-bdd — 推演 BDD 场景
|
|
16
|
+
|
|
17
|
+
从已核准的 SDD 规格文件推演 Gherkin `.feature` 文件。
|
|
18
|
+
|
|
19
|
+
## 工作流程
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
SPEC-XXX.md ──► Parse AC ──► Generate .feature ──► Review
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
1. **读取** SDD 规格并提取验收标准
|
|
26
|
+
2. **映射** 每个 AC 到一个 Gherkin Scenario(1:1)
|
|
27
|
+
3. **生成** `.feature` 文件,包含 `@SPEC-XXX` 和 `@AC-N` 标签
|
|
28
|
+
4. **输出** 推演摘要
|
|
29
|
+
|
|
30
|
+
## 输出格式
|
|
31
|
+
|
|
32
|
+
```gherkin
|
|
33
|
+
@SPEC-001
|
|
34
|
+
Feature: [Feature Name]
|
|
35
|
+
|
|
36
|
+
@AC-1
|
|
37
|
+
Scenario: [AC-1 description]
|
|
38
|
+
Given [context]
|
|
39
|
+
When [action]
|
|
40
|
+
Then [expected result]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 使用方式
|
|
44
|
+
|
|
45
|
+
| Command | Purpose | 用途 |
|
|
46
|
+
|---------|---------|------|
|
|
47
|
+
| `/derive-bdd specs/SPEC-001.md` | Derive BDD from specific spec | 从特定规格推演 BDD |
|
|
48
|
+
| `/derive-bdd` | Interactive — ask for spec file | 互动式 — 询问规格文件 |
|
|
49
|
+
|
|
50
|
+
## 参考
|
|
51
|
+
|
|
52
|
+
- 父命令: [/derive](../forward-derivation/SKILL.md)
|
|
53
|
+
- 核心规范: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/derive-tdd.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
description: [UDS] Derive TDD test skeletons from SDD specification
|
|
11
|
+
allowed-tools: Read, Write, Grep, Glob
|
|
12
|
+
argument-hint: "[spec file path | 规格文件路径]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# /derive-tdd — 推演 TDD 测试骨架
|
|
16
|
+
|
|
17
|
+
从已核准的 SDD 规格文件推演测试骨架文件。
|
|
18
|
+
|
|
19
|
+
## 工作流程
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
SPEC-XXX.md ──► Parse AC ──► Generate .test.ts ──► Review
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
1. **读取** SDD 规格并提取验收标准
|
|
26
|
+
2. **映射** 每个 AC 到一个 `describe`/`it` 区块,采用 AAA 模式
|
|
27
|
+
3. **生成** 测试文件,包含 `[TODO]` 标记供实作填入
|
|
28
|
+
4. **输出** 推演摘要
|
|
29
|
+
|
|
30
|
+
## 输出格式
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
describe('SPEC-001: [Feature Name]', () => {
|
|
34
|
+
describe('AC-1: [AC description]', () => {
|
|
35
|
+
it('should [expected behavior]', () => {
|
|
36
|
+
// Arrange — [TODO]
|
|
37
|
+
// Act — [TODO]
|
|
38
|
+
// Assert — [TODO]
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 使用方式
|
|
45
|
+
|
|
46
|
+
| Command | Purpose | 用途 |
|
|
47
|
+
|---------|---------|------|
|
|
48
|
+
| `/derive-tdd specs/SPEC-001.md` | Derive TDD from specific spec | 从特定规格推演 TDD |
|
|
49
|
+
| `/derive-tdd` | Interactive — ask for spec file | 互动式 — 询问规格文件 |
|
|
50
|
+
|
|
51
|
+
## 参考
|
|
52
|
+
|
|
53
|
+
- 父命令: [/derive](../forward-derivation/SKILL.md)
|
|
54
|
+
- 核心规范: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/derive.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
name: derive
|
|
11
|
+
description: [UDS] Derive BDD scenarios, TDD skeletons, or ATDD tables from specifications.
|
|
12
|
+
argument-hint: "[all|bdd|tdd|atdd] <spec-file> [--lang <lang>] [--framework <fw>] [--output-dir <dir>]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# 推演测试结构
|
|
16
|
+
|
|
17
|
+
从已批准的 SDD 规格生成衍生产物(BDD 场景、TDD 骨架、ATDD 表格)。
|
|
18
|
+
|
|
19
|
+
## 用法
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
/derive [subcommand] <spec-file> [options]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 子命令
|
|
26
|
+
|
|
27
|
+
| Subcommand | Description | Output |
|
|
28
|
+
|------------|-------------|--------|
|
|
29
|
+
| `all` | 生成 BDD + TDD(默认) | `.feature` + `.test.*` |
|
|
30
|
+
| `bdd` | 仅生成 BDD 场景 | `.feature` |
|
|
31
|
+
| `tdd` | 仅生成 TDD 骨架 | `.test.*` |
|
|
32
|
+
| `atdd` | 生成 ATDD 测试表格 | `.md`(Markdown 表格) |
|
|
33
|
+
|
|
34
|
+
### 选项
|
|
35
|
+
|
|
36
|
+
| Option | Description | Default |
|
|
37
|
+
|--------|-------------|---------|
|
|
38
|
+
| `--lang` | 目标语言(ts, python 等) | 自动检测或 `ts` |
|
|
39
|
+
| `--framework` | 测试框架(vitest, pytest 等) | 自动检测或 `vitest` |
|
|
40
|
+
| `--output-dir` | 输出目录 | `./generated` |
|
|
41
|
+
| `--dry-run` | 预览输出而不写入文件 | `false` |
|
|
42
|
+
|
|
43
|
+
## 工作流程
|
|
44
|
+
|
|
45
|
+
1. **读取规格**: 分析输入的 `SPEC-XXX.md` 文件。
|
|
46
|
+
2. **提取 AC**: 解析所有验收标准。
|
|
47
|
+
3. **生成产物**:
|
|
48
|
+
* **BDD**: 将 AC 转换为 Gherkin `Scenario` 格式。
|
|
49
|
+
* **TDD**: 创建包含 `describe`/`it` 区块的测试文件骨架,与 AC 对应。
|
|
50
|
+
* **ATDD**: 创建包含输入/输出/通过-失败列的 Markdown 表格。
|
|
51
|
+
4. **验证**: 确保 AC 与生成项目之间为 1:1 映射。
|
|
52
|
+
|
|
53
|
+
## 防幻觉
|
|
54
|
+
|
|
55
|
+
* **1:1 映射**: 每个 AC 必须恰好对应一个测试/场景。
|
|
56
|
+
* **可追溯性**: 所有生成的产物必须引用来源规格 ID 和 AC ID。
|
|
57
|
+
* **禁止捏造**: 不得添加规格中不存在的场景。
|
|
58
|
+
|
|
59
|
+
## 范例
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# 推演所有产物(BDD + TDD)
|
|
63
|
+
/derive all specs/SPEC-001.md
|
|
64
|
+
|
|
65
|
+
# 仅推演 BDD 场景
|
|
66
|
+
/derive bdd specs/SPEC-001.md
|
|
67
|
+
|
|
68
|
+
# 为 Python 推演 TDD
|
|
69
|
+
/derive tdd specs/SPEC-001.md --lang python --framework pytest
|
|
70
|
+
|
|
71
|
+
# 推演 ATDD 表格供手动测试
|
|
72
|
+
/derive atdd specs/SPEC-001.md
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 参考
|
|
76
|
+
|
|
77
|
+
* [正向推演规范](../forward-derivation/SKILL.md)
|
|
78
|
+
* [核心规范](../../core/forward-derivation-standards.md)
|