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,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/brainstorm.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
name: brainstorm
|
|
10
|
+
description: "[UDS] Structured AI-assisted brainstorming before spec creation"
|
|
11
|
+
argument-hint: "[问题或功能构想 | problem or feature idea]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 脑力激荡助手
|
|
15
|
+
|
|
16
|
+
在撰写规格前进行结构化发想。通过引导式脑力激荡,将模糊构想转化为可执行的功能提案。
|
|
17
|
+
|
|
18
|
+
## 用法
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
/brainstorm [problem or feature idea]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 工作流程
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
FRAME ──► DIVERGE ──► CONVERGE ──► OUTPUT
|
|
28
|
+
定义问题 发散思考 收敛评估 输出提案
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
| 阶段 | 目标 | 关键技法 |
|
|
32
|
+
|------|------|----------|
|
|
33
|
+
| **FRAME** | 清楚定义问题 | 5 Whys, HMW, Stakeholder Map |
|
|
34
|
+
| **DIVERGE** | 生成大量想法 | HMW, SCAMPER, Six Thinking Hats |
|
|
35
|
+
| **CONVERGE** | 评估与排序 | Evaluation Matrix, Dot Voting |
|
|
36
|
+
| **OUTPUT** | 可执行的报告 | Brainstorm Report template |
|
|
37
|
+
|
|
38
|
+
## 技法
|
|
39
|
+
|
|
40
|
+
| 技法 | 适用场景 |
|
|
41
|
+
|------|----------|
|
|
42
|
+
| **5 Whys** | 找到根本原因 |
|
|
43
|
+
| **HMW** | 将问题重构为机会 |
|
|
44
|
+
| **SCAMPER** | 改善现有功能 |
|
|
45
|
+
| **Six Thinking Hats** | 多角度分析 |
|
|
46
|
+
| **Dot Voting** | 快速排序 |
|
|
47
|
+
|
|
48
|
+
## 范例
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
/brainstorm # Start interactive session
|
|
52
|
+
/brainstorm "user retention" # Brainstorm around a topic
|
|
53
|
+
/brainstorm --technique scamper # Use a specific technique
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 输出格式
|
|
57
|
+
|
|
58
|
+
```markdown
|
|
59
|
+
# Brainstorm Report: [Topic]
|
|
60
|
+
|
|
61
|
+
## Problem Statement
|
|
62
|
+
[Refined problem from FRAME phase]
|
|
63
|
+
|
|
64
|
+
## Top 3 Recommendations
|
|
65
|
+
1. **[Idea]** — Score: X.X — [Why recommended]
|
|
66
|
+
2. **[Idea]** — Score: X.X — [Why recommended]
|
|
67
|
+
3. **[Idea]** — Score: X.X — [Why recommended]
|
|
68
|
+
|
|
69
|
+
## Next Steps
|
|
70
|
+
- [ ] Proceed to `/requirement` with top idea
|
|
71
|
+
- [ ] Proceed to `/sdd` if requirements are clear
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## 后续步骤
|
|
75
|
+
|
|
76
|
+
脑力激荡后,典型的工作流程是:
|
|
77
|
+
|
|
78
|
+
1. `/brainstorm` - 结构化发想(本命令)
|
|
79
|
+
2. `/requirement` - 撰写用户故事和需求
|
|
80
|
+
3. `/sdd` - 创建规格文档
|
|
81
|
+
4. `/derive-all` 或 `/tdd` - 以测试保护进行实现
|
|
82
|
+
|
|
83
|
+
## 参考
|
|
84
|
+
|
|
85
|
+
* [Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md)
|
|
86
|
+
* [Requirement Assistant](../requirement-assistant/SKILL.md)
|
|
87
|
+
* [Spec-Driven Development](../spec-driven-dev/SKILL.md)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/changelog.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
name: changelog
|
|
10
|
+
description: "[UDS] Generate and maintain CHANGELOG.md entries"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 变更日志助手
|
|
14
|
+
|
|
15
|
+
根据 Keep a Changelog 格式生成和维护 CHANGELOG.md 条目。
|
|
16
|
+
|
|
17
|
+
## 用法
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
/changelog
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 工作流程
|
|
24
|
+
|
|
25
|
+
1. **分析 git 日志** - 使用 `git log` 读取上次发布以来的提交历史
|
|
26
|
+
2. **分类变更** - 将提交映射到变更日志分类
|
|
27
|
+
3. **生成条目** - 为每个变更撰写面向用户的描述
|
|
28
|
+
4. **更新 CHANGELOG.md** - 将条目插入 [Unreleased] 或版本化区段
|
|
29
|
+
|
|
30
|
+
## 变更分类
|
|
31
|
+
|
|
32
|
+
| 分类 | 使用时机 | Commit 类型 |
|
|
33
|
+
|------|----------|-------------|
|
|
34
|
+
| **Added** | 新功能 | `feat` |
|
|
35
|
+
| **Changed** | 修改既有功能 | `perf`, `BREAKING CHANGE` |
|
|
36
|
+
| **Deprecated** | 即将移除的功能 | -- |
|
|
37
|
+
| **Removed** | 已移除的功能 | `BREAKING CHANGE` |
|
|
38
|
+
| **Fixed** | 错误修复 | `fix` |
|
|
39
|
+
| **Security** | 安全性修补 | `security` |
|
|
40
|
+
|
|
41
|
+
## 条目格式
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
## [Unreleased]
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
- Add user dashboard with customizable widgets (#123)
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
- Fix memory leak when processing large files (#456)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 撰写指南
|
|
54
|
+
|
|
55
|
+
- 为**用户**而非开发者撰写
|
|
56
|
+
- 聚焦**影响**而非实现
|
|
57
|
+
- 附上 issue/PR 编号
|
|
58
|
+
- 用 **BREAKING** 标记破坏性变更
|
|
59
|
+
|
|
60
|
+
## 参考
|
|
61
|
+
|
|
62
|
+
* [Changelog Guide Skill](../changelog-guide/SKILL.md)
|
|
63
|
+
* [Core Standard](../../core/changelog-standards.md)
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/check.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] Verify standards adoption status
|
|
10
|
+
allowed-tools: Read, Bash(uds check:*), Bash(npx:*), Bash(ls:*)
|
|
11
|
+
argument-hint: "[--offline | --restore | --summary]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 检查标准
|
|
15
|
+
|
|
16
|
+
验证当前专案的 Universal Development Standards 采用状态。
|
|
17
|
+
|
|
18
|
+
## 快速开始
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Basic check (with interactive mode for issues)
|
|
22
|
+
uds check
|
|
23
|
+
|
|
24
|
+
# Compact summary for quick status
|
|
25
|
+
uds check --summary
|
|
26
|
+
|
|
27
|
+
# Check without network access
|
|
28
|
+
uds check --offline
|
|
29
|
+
|
|
30
|
+
# Restore missing or modified files
|
|
31
|
+
uds check --restore
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## 输出模式
|
|
35
|
+
|
|
36
|
+
### 摘要模式 (--summary)
|
|
37
|
+
|
|
38
|
+
显示精简状态供快速浏览:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
UDS Status Summary
|
|
42
|
+
──────────────────────────────────────────────────
|
|
43
|
+
Version: 3.5.1-beta.16 → 3.5.1-beta.18 ⚠
|
|
44
|
+
Level: 2 - Professional (专业)
|
|
45
|
+
Files: 12 ✓
|
|
46
|
+
Skills: Claude Code ✓ | OpenCode ○
|
|
47
|
+
Commands: OpenCode ✓
|
|
48
|
+
──────────────────────────────────────────────────
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 完整模式(默认)
|
|
52
|
+
|
|
53
|
+
显示详细信息,包括:
|
|
54
|
+
- 采用状态(等级、版本、安装日期)
|
|
55
|
+
- 文件完整性(未变更/已修改/遗失数量)
|
|
56
|
+
- Skills 完整性(如果在 manifest 中追踪)
|
|
57
|
+
- Commands 完整性(如果在 manifest 中追踪)
|
|
58
|
+
- 集成区块完整性
|
|
59
|
+
- 引用同步状态
|
|
60
|
+
- AI 工具集成文件覆盖率
|
|
61
|
+
- 覆盖率报告
|
|
62
|
+
|
|
63
|
+
## 互动模式
|
|
64
|
+
|
|
65
|
+
当检测到问题时(已修改/遗失的文件),CLI 自动进入互动模式:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
──────────────────────────────────────────────────
|
|
69
|
+
⚠ Modified: .standards/commit-message.ai.yaml
|
|
70
|
+
|
|
71
|
+
? What would you like to do?
|
|
72
|
+
❯ View diff
|
|
73
|
+
Restore original
|
|
74
|
+
Keep current (update hash)
|
|
75
|
+
Skip
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**可用操作:**
|
|
79
|
+
|
|
80
|
+
| 操作 | 说明 |
|
|
81
|
+
|------|------|
|
|
82
|
+
| **View diff** | 显示当前版本与原始版本的差异 |
|
|
83
|
+
| **Restore original** | 用上游版本替换 |
|
|
84
|
+
| **Keep current** | 接受修改并更新 hash |
|
|
85
|
+
| **Skip** | 对此文件不做任何操作 |
|
|
86
|
+
|
|
87
|
+
对于遗失的文件:
|
|
88
|
+
|
|
89
|
+
| 操作 | 说明 |
|
|
90
|
+
|------|------|
|
|
91
|
+
| **Restore** | 从上游下载并恢复 |
|
|
92
|
+
| **Remove from tracking** | 从 manifest 移除 |
|
|
93
|
+
| **Skip** | 对此文件不做任何操作 |
|
|
94
|
+
|
|
95
|
+
## 选项
|
|
96
|
+
|
|
97
|
+
| 选项 | 说明 |
|
|
98
|
+
|------|------|
|
|
99
|
+
| `--summary` | 显示精简状态摘要 |
|
|
100
|
+
| `--offline` | 跳过 npm registry 检查 |
|
|
101
|
+
| `--diff` | 显示修改文件的差异 |
|
|
102
|
+
| `--restore` | 还原所有修改和遗失的文件 |
|
|
103
|
+
| `--restore-missing` | 仅还原遗失的文件 |
|
|
104
|
+
| `--migrate` | 迁移旧版 manifest 到 hash 追踪 |
|
|
105
|
+
|
|
106
|
+
## 输出区段
|
|
107
|
+
|
|
108
|
+
### 采用状态
|
|
109
|
+
|
|
110
|
+
- 采用等级 (1-3)
|
|
111
|
+
- 安装日期
|
|
112
|
+
- 已安装版本
|
|
113
|
+
- 更新可用性
|
|
114
|
+
|
|
115
|
+
### 文件完整性
|
|
116
|
+
|
|
117
|
+
显示每个追踪文件的状态:
|
|
118
|
+
|
|
119
|
+
| 符号 | 含义 |
|
|
120
|
+
|------|------|
|
|
121
|
+
| ✓ (绿色) | 未变更 |
|
|
122
|
+
| ⚠ (黄色) | 已修改 |
|
|
123
|
+
| ✗ (红色) | 遗失 |
|
|
124
|
+
| ? (灰色) | 存在但无 hash |
|
|
125
|
+
|
|
126
|
+
摘要格式:`{unchanged} unchanged, {modified} modified, {missing} missing`
|
|
127
|
+
|
|
128
|
+
### Skills 完整性 (v3.3.0+)
|
|
129
|
+
|
|
130
|
+
如果 manifest 中存在 `skillHashes`,检查:
|
|
131
|
+
- 文件是否存在于预期路径
|
|
132
|
+
- hash 比对以检测修改
|
|
133
|
+
|
|
134
|
+
### Commands 完整性 (v3.3.0+)
|
|
135
|
+
|
|
136
|
+
如果 manifest 中存在 `commandHashes`,检查:
|
|
137
|
+
- 文件是否存在于预期路径
|
|
138
|
+
- hash 比对以检测修改
|
|
139
|
+
|
|
140
|
+
### 集成区块完整性 (v3.3.0+)
|
|
141
|
+
|
|
142
|
+
如果 manifest 中存在 `integrationBlockHashes`,检查:
|
|
143
|
+
- UDS 标记区块是否存在
|
|
144
|
+
- 区块内容 hash(用户在区块外的自定义内容会被保留)
|
|
145
|
+
|
|
146
|
+
### Skills 状态
|
|
147
|
+
|
|
148
|
+
显示每个已配置 AI 工具的安装状态:
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
Skills Status
|
|
152
|
+
Claude Code:
|
|
153
|
+
✓ Skills installed:
|
|
154
|
+
- User level: ~/.claude/skills/
|
|
155
|
+
Version: 3.5.1
|
|
156
|
+
✓ Commands: 7 installed
|
|
157
|
+
Path: .opencode/commands/
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
状态指示器:
|
|
161
|
+
- ✓ installed (绿色) - Skills/Commands 已安装
|
|
162
|
+
- ○ not installed (灰色) - 未安装
|
|
163
|
+
|
|
164
|
+
### 覆盖率摘要
|
|
165
|
+
|
|
166
|
+
显示标准覆盖率:
|
|
167
|
+
- 当前等级所需的标准
|
|
168
|
+
- Skills 覆盖的标准
|
|
169
|
+
- 参考文档覆盖的标准
|
|
170
|
+
|
|
171
|
+
## 状态指示
|
|
172
|
+
|
|
173
|
+
| 符号 | 含义 |
|
|
174
|
+
|------|------|
|
|
175
|
+
| ✓ (绿色) | 一切正常 |
|
|
176
|
+
| ⚠ (黄色) | 警告,建议采取行动 |
|
|
177
|
+
| ✗ (红色) | 错误,需要采取行动 |
|
|
178
|
+
| ○ (灰色) | 未安装/配置 |
|
|
179
|
+
|
|
180
|
+
## 常见问题
|
|
181
|
+
|
|
182
|
+
**"Standards not initialized"**
|
|
183
|
+
- 执行 `/init` 初始化标准
|
|
184
|
+
|
|
185
|
+
**"Update available"**
|
|
186
|
+
- 执行 `/update` 获取最新版本
|
|
187
|
+
|
|
188
|
+
**"Missing files"**
|
|
189
|
+
- 执行 `/check --restore` 或 `/update` 恢复
|
|
190
|
+
|
|
191
|
+
**"Modified files detected"**
|
|
192
|
+
- 执行 `/check --diff` 查看变更
|
|
193
|
+
- 执行 `/check --restore` 重置为原始版本
|
|
194
|
+
- 或使用互动模式逐个处理文件
|
|
195
|
+
|
|
196
|
+
**"Skills not installed"**
|
|
197
|
+
- 执行 `/update` 安装缺失的 Skills
|
|
198
|
+
- 或执行 `/config skills` 管理 Skills
|
|
199
|
+
|
|
200
|
+
**"Legacy manifest detected"**
|
|
201
|
+
- 执行 `uds check --migrate` 升级到 hash 追踪
|
|
202
|
+
|
|
203
|
+
## 使用方式
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
/check # Full check with interactive mode
|
|
207
|
+
/check --summary # Quick status overview
|
|
208
|
+
/check --offline # Check without network access
|
|
209
|
+
/check --restore # Restore modified/missing files
|
|
210
|
+
/check --diff # Show file differences
|
|
211
|
+
/check --migrate # Upgrade manifest format
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## 参考
|
|
215
|
+
|
|
216
|
+
- CLI 文档: `uds check --help`
|
|
217
|
+
- 初始化命令: [/init](./init.md)
|
|
218
|
+
- 更新命令: [/update](./update.md)
|
|
219
|
+
- 配置命令: [/config](./config.md)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/checkin.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-19
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
name: checkin
|
|
10
|
+
description: "[UDS] Pre-commit quality gates verification"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 签入助手
|
|
14
|
+
|
|
15
|
+
在提交代码前验证品质关卡,确保代码库的稳定性。
|
|
16
|
+
|
|
17
|
+
## 用法
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
/checkin
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 工作流程
|
|
24
|
+
|
|
25
|
+
1. **检查 git 状态** - 执行 `git status` 和 `git diff` 了解待处理的变更
|
|
26
|
+
2. **运行测试** - 执行 `npm test`(或专案测试命令)验证所有测试通过
|
|
27
|
+
3. **运行代码检查** - 执行 `npm run lint` 检查代码风格合规性
|
|
28
|
+
4. **验证品质关卡** - 根据以下检查清单检查每个关卡
|
|
29
|
+
5. **报告结果** - 呈现通过/失败摘要并建议下一步
|
|
30
|
+
|
|
31
|
+
## 品质关卡
|
|
32
|
+
|
|
33
|
+
| 关卡 | 检查项目 |
|
|
34
|
+
|------|----------|
|
|
35
|
+
| **构建** | 编译零错误 |
|
|
36
|
+
| **测试** | 所有测试通过(100%) |
|
|
37
|
+
| **覆盖率** | 覆盖率未下降 |
|
|
38
|
+
| **AC 覆盖率** | AC 到测试覆盖率 ≥ 80%([`/ac-coverage`](./ac-coverage.md)) |
|
|
39
|
+
| **代码品质** | 符合编码规范,无代码异味 |
|
|
40
|
+
| **安全性** | 无硬编码密钥或漏洞 |
|
|
41
|
+
| **文档** | API 文档和 CHANGELOG 已按需更新 |
|
|
42
|
+
| **工作流** | 分支命名和提交消息格式正确 |
|
|
43
|
+
|
|
44
|
+
## 禁止提交的情况
|
|
45
|
+
|
|
46
|
+
- 构建有错误
|
|
47
|
+
- 测试失败
|
|
48
|
+
- 功能不完整会破坏现有功能
|
|
49
|
+
- 包含调试代码(console.log, print)
|
|
50
|
+
- 包含被注释的代码区块
|
|
51
|
+
|
|
52
|
+
## 后续步骤
|
|
53
|
+
|
|
54
|
+
验证通过后,执行 `/commit` 创建提交消息。
|
|
55
|
+
|
|
56
|
+
## 参考
|
|
57
|
+
|
|
58
|
+
* [Check-in Assistant Skill](../checkin-assistant/SKILL.md)
|
|
59
|
+
* [Core Standard](../../core/checkin-standards.md)
|
|
60
|
+
* [AC Coverage Command](./ac-coverage.md) — AC 到测试追踪分析
|
|
61
|
+
* [AC Traceability Standard](../../core/acceptance-criteria-traceability.md)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/ci-cd.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 CI/CD pipeline design, configuration and optimization"
|
|
11
|
+
allowed-tools: Read, Grep, Glob
|
|
12
|
+
argument-hint: "[pipeline config or stage | Pipeline 配置或阶段]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# CI/CD Assistant | CI/CD 助手
|
|
16
|
+
|
|
17
|
+
Guide CI/CD pipeline design, configuration and optimization.
|
|
18
|
+
|
|
19
|
+
引导 CI/CD 管线设计、配置和优化。
|
|
20
|
+
|
|
21
|
+
## Workflow | 工作流程
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
BUILD ──► TEST ──► ANALYZE ──► DEPLOY ──► VERIFY
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage | 使用方式
|
|
28
|
+
|
|
29
|
+
- `/ci-cd` - 启动交互式管线设计
|
|
30
|
+
- `/ci-cd github-actions` - 为特定平台设计
|
|
31
|
+
- `/ci-cd --optimize` - 优化现有管线
|
|
32
|
+
- `/ci-cd build` - 聚焦构建阶段
|
|
33
|
+
|
|
34
|
+
## AI Agent Behavior | AI 代理行为
|
|
35
|
+
|
|
36
|
+
> 遵循 [AI Command Behavior Standards](../../core/ai-command-behavior.md)
|
|
37
|
+
|
|
38
|
+
### Entry Router | 进入路由
|
|
39
|
+
|
|
40
|
+
| 输入 | AI 动作 |
|
|
41
|
+
|------|---------|
|
|
42
|
+
| `/ci-cd` | 检测现有 CI 配置(`.github/workflows/`、`.gitlab-ci.yml` 等),展示状态或开始设计 |
|
|
43
|
+
| `/ci-cd <platform>` | 为指定平台设计管线 |
|
|
44
|
+
| `/ci-cd --optimize` | 分析现有管线,提出优化建议 |
|
|
45
|
+
| `/ci-cd <stage>` | 聚焦特定阶段(build/test/deploy) |
|
|
46
|
+
|
|
47
|
+
### Interaction Script | 交互脚本
|
|
48
|
+
|
|
49
|
+
1. 检测项目技术栈和现有 CI 配置
|
|
50
|
+
2. 依据需求设计或优化管线
|
|
51
|
+
|
|
52
|
+
**Decision: 现有配置**
|
|
53
|
+
- IF 已有 CI 配置 → 分析现状,建议优化
|
|
54
|
+
- IF 无 CI 配置 → 引导从头设计
|
|
55
|
+
- IF `--optimize` → 直接进入优化分析
|
|
56
|
+
|
|
57
|
+
3. 逐阶段设计(BUILD→TEST→ANALYZE→DEPLOY→VERIFY)
|
|
58
|
+
4. 展示完整管线配置
|
|
59
|
+
|
|
60
|
+
**STOP**: 配置展示后等待用户确认写入
|
|
61
|
+
|
|
62
|
+
### Stop Points | 停止点
|
|
63
|
+
|
|
64
|
+
| 停止点 | 等待内容 |
|
|
65
|
+
|--------|---------|
|
|
66
|
+
| 管线设计完成后 | 确认配置正确并写入 |
|
|
67
|
+
|
|
68
|
+
### Error Handling | 错误处理
|
|
69
|
+
|
|
70
|
+
| 错误条件 | AI 动作 |
|
|
71
|
+
|----------|---------|
|
|
72
|
+
| 无法检测 CI 平台 | 列出支持的平台供选择 |
|
|
73
|
+
| 现有配置语法错误 | 报告错误位置,建议修正 |
|
|
74
|
+
|
|
75
|
+
## Reference | 参考
|
|
76
|
+
|
|
77
|
+
- Full standard: [ci-cd-assistant](../ci-cd-assistant/SKILL.md)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/commands/commit.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] Generate commit messages following Conventional Commits standard
|
|
10
|
+
allowed-tools: Read, Grep, Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git add:*), Bash(git commit:*)
|
|
11
|
+
argument-hint: "[变更描述 | description of changes]"
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Commit Message 助手
|
|
15
|
+
|
|
16
|
+
根据 staged 的变更,生成符合 Conventional Commits 格式的 commit message。
|
|
17
|
+
|
|
18
|
+
## 前置检查
|
|
19
|
+
|
|
20
|
+
在生成 commit 前,AI 助手必须执行以下检查:
|
|
21
|
+
|
|
22
|
+
| 检查 | 命令 | 失败时 |
|
|
23
|
+
|------|------|--------|
|
|
24
|
+
| Staged 变更存在 | `git diff --cached --stat` | → 引导用户执行 `git add` |
|
|
25
|
+
| 无合并冲突 | `grep -r "<<<<<<< " --include="*.{js,ts,md,yaml}" .` | → 先解决冲突 |
|
|
26
|
+
| 测试通过 (feat/fix) | `cd cli && npm run test:unit`(或专案测试命令) | → 提交前先修复测试 |
|
|
27
|
+
| Spec 引用 (feat/fix) | 检查 `docs/specs/SPEC-*.md` 是否有活跃规格 | → 建议在 footer 加入 `Refs: SPEC-XXX` |
|
|
28
|
+
|
|
29
|
+
### Spec 追踪闸门
|
|
30
|
+
|
|
31
|
+
对于 `feat` 和 `fix` 类型的提交:
|
|
32
|
+
1. **检查**:`ls docs/specs/SPEC-*.md 2>/dev/null` — 是否有活跃的规格?
|
|
33
|
+
2. **如果有规格**:建议在 footer 加入 `Refs: SPEC-XXX`
|
|
34
|
+
3. **如果没有规格且变更显著**(>3 个文件或新 API):建议通过 `/sdd` 创建规格
|
|
35
|
+
4. **模式**:这是建议性的(非阻断)— 用户可以不引用规格
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 工作流程
|
|
40
|
+
|
|
41
|
+
1. **检查状态** - 执行 `git status` 和 `git diff --staged` 了解变更
|
|
42
|
+
2. **分析变更** - 确定类型(feat, fix, refactor 等)和范围
|
|
43
|
+
3. **Spec 追踪评估** - 评估此变更是否需要规格(见下文)
|
|
44
|
+
4. **生成消息** - 创建遵循以下格式的提交消息:
|
|
45
|
+
```
|
|
46
|
+
<type>(<scope>): <subject>
|
|
47
|
+
|
|
48
|
+
<body>
|
|
49
|
+
|
|
50
|
+
<footer>
|
|
51
|
+
```
|
|
52
|
+
5. **确认并提交** - 执行 `git commit` 前先请用户确认
|
|
53
|
+
|
|
54
|
+
## Spec 追踪评估
|
|
55
|
+
|
|
56
|
+
对于 `feat`/`fix` 提交,评估是否应创建或链接规格。当以下情况时建议创建规格:变更文件较多(>3)、修改了公共 API 签名、或有显著的新功能。对于 `docs`/`style`/`chore`/`test` 类型则跳过。
|
|
57
|
+
|
|
58
|
+
如果链接了规格,在提交 footer 中加入 `Refs: SPEC-XXX`。这是建议性的 — 用户可以随时忽略。
|
|
59
|
+
|
|
60
|
+
## 提交类型
|
|
61
|
+
|
|
62
|
+
| 类型 | 使用时机 |
|
|
63
|
+
|------|----------|
|
|
64
|
+
| `feat` | 新功能 |
|
|
65
|
+
| `fix` | 修复错误 |
|
|
66
|
+
| `refactor` | 重构 |
|
|
67
|
+
| `docs` | 文档更新 |
|
|
68
|
+
| `style` | 格式调整 |
|
|
69
|
+
| `test` | 测试相关 |
|
|
70
|
+
| `perf` | 性能优化 |
|
|
71
|
+
| `chore` | 维护任务 |
|
|
72
|
+
|
|
73
|
+
## 使用方式
|
|
74
|
+
|
|
75
|
+
- `/commit` - 自动分析变更并建议提交消息
|
|
76
|
+
- `/commit fix login bug` - 根据提供的描述生成消息
|
|
77
|
+
|
|
78
|
+
## 参考
|
|
79
|
+
|
|
80
|
+
- 完整规范: [commit-standards](../commit-standards/SKILL.md)
|
|
81
|
+
- 核心指南: [commit-message-guide](../../core/commit-message-guide.md)
|