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,337 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: [UDS] Update development standards to latest version
|
|
3
|
+
allowed-tools: Read, Bash(uds update:*), Bash(uds check:*), Bash(uds configure:*), Bash(npx:*), Bash(cat .standards/*), Bash(ls .claude/*), Bash(ls .opencode/*), Bash(ls .github/*)
|
|
4
|
+
argument-hint: "[--yes] [--offline] [--beta]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Update Standards | 更新标准
|
|
8
|
+
|
|
9
|
+
Update Universal Development Standards to the latest version.
|
|
10
|
+
|
|
11
|
+
将 Universal Development Standards 更新至最新版本。
|
|
12
|
+
|
|
13
|
+
## Interactive Mode (Default) | 交互模式(默认)
|
|
14
|
+
|
|
15
|
+
When invoked without `--yes`, use AskUserQuestion to confirm update preferences.
|
|
16
|
+
|
|
17
|
+
当不带 `--yes` 执行时,使用 AskUserQuestion 确认更新偏好。
|
|
18
|
+
|
|
19
|
+
### Step 1: Check Current Status | 步骤 1:检查当前状态
|
|
20
|
+
|
|
21
|
+
First, run `uds check --summary` to show compact installation status.
|
|
22
|
+
|
|
23
|
+
首先,执行 `uds check --summary` 显示精简安装状态。
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uds check --summary
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This shows: version (with update indicator), level, files status, Skills status, and Commands status.
|
|
30
|
+
|
|
31
|
+
### Step 2: Ask Update Preferences | 步骤 2:询问更新偏好
|
|
32
|
+
|
|
33
|
+
If updates are available, use AskUserQuestion with options based on version type.
|
|
34
|
+
|
|
35
|
+
根据可用更新的版本类型显示对应选项。
|
|
36
|
+
|
|
37
|
+
#### Pre-release Version Types | Pre-release 版本类型
|
|
38
|
+
|
|
39
|
+
Pre-release versions are sorted by stability (ascending):
|
|
40
|
+
|
|
41
|
+
Pre-release 版本按稳定度排序(由低到高):
|
|
42
|
+
|
|
43
|
+
| Type | Stability | Description | 说明 |
|
|
44
|
+
|------|-----------|-------------|------|
|
|
45
|
+
| alpha | Early | Features may be incomplete, for internal testing | 功能可能不完整,供内部测试 |
|
|
46
|
+
| beta | Testing | Features complete, may have bugs, for early adopters | 功能大致完成,可能有 bug,供早期采用者 |
|
|
47
|
+
| rc | Near-stable | Release candidate, close to stable, for beta testers | 候选发布版,接近正式版,供 beta 测试者 |
|
|
48
|
+
|
|
49
|
+
Version comparison: `alpha < beta < rc < stable`
|
|
50
|
+
|
|
51
|
+
For detailed versioning standards, see [core/versioning.md](../../core/versioning.md).
|
|
52
|
+
|
|
53
|
+
#### Update Options | 更新选项
|
|
54
|
+
|
|
55
|
+
**If stable version available (e.g., 3.5.1):**
|
|
56
|
+
|
|
57
|
+
| Option | Description |
|
|
58
|
+
|--------|-------------|
|
|
59
|
+
| **Update Now** | 更新标准至最新稳定版 X.Y.Z(推荐) |
|
|
60
|
+
| **Check Beta** | 检查 beta 版本更新 |
|
|
61
|
+
| **Skip** | 目前不更新 |
|
|
62
|
+
|
|
63
|
+
**If only pre-release version available, show specific type:**
|
|
64
|
+
|
|
65
|
+
Detect the version type from `uds check` output and display the specific type name:
|
|
66
|
+
|
|
67
|
+
| Detected Type | Option Label | Description |
|
|
68
|
+
|---------------|--------------|-------------|
|
|
69
|
+
| `X.Y.Z-alpha.N` | **Update to Alpha** | 更新至 alpha 版本 X.Y.Z-alpha.N(早期测试) |
|
|
70
|
+
| `X.Y.Z-beta.N` | **Update to Beta** | 更新至 beta 版本 X.Y.Z-beta.N(功能大致完成) |
|
|
71
|
+
| `X.Y.Z-rc.N` | **Update to RC** | 更新至 RC 版本 X.Y.Z-rc.N(接近稳定) |
|
|
72
|
+
|
|
73
|
+
Always include **Skip** option: 目前不更新。
|
|
74
|
+
|
|
75
|
+
**Example AskUserQuestion for beta version:**
|
|
76
|
+
- Question: "有新的 beta 版本可用:3.5.1-beta.3 → 3.5.1-beta.15。您想如何处理?"
|
|
77
|
+
- Option 1: "更新至 Beta (建议)" - "更新标准至 3.5.1-beta.15 版本(功能大致完成)"
|
|
78
|
+
- Option 2: "暂时跳过" - "目前不进行更新,维持现有版本"
|
|
79
|
+
|
|
80
|
+
### Step 3: Execute Update | 步骤 3:执行更新
|
|
81
|
+
|
|
82
|
+
**If Update Now selected:**
|
|
83
|
+
```bash
|
|
84
|
+
uds update --yes
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**If Check Beta selected:**
|
|
88
|
+
```bash
|
|
89
|
+
uds update --beta --yes
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Step 4: Check Skills/Commands Status | 步骤 4:检查 Skills/Commands 状态
|
|
93
|
+
|
|
94
|
+
After update completes, check for missing or outdated Skills/Commands using multi-stage AskUserQuestion.
|
|
95
|
+
|
|
96
|
+
更新完成后,使用多阶段 AskUserQuestion 检查缺少或过时的 Skills/Commands。
|
|
97
|
+
|
|
98
|
+
**重要:** 由于 AskUserQuestion 选项有限(最多 4 个),使用多阶段方式处理不同 AI 工具和安装偏好。
|
|
99
|
+
|
|
100
|
+
#### Step 4a: Detect Missing Skills | 步骤 4a:检测缺少的 Skills
|
|
101
|
+
|
|
102
|
+
First, read the manifest to identify configured AI tools and their Skills status:
|
|
103
|
+
|
|
104
|
+
首先读取 manifest 来识别已配置的 AI 工具及其 Skills 状态:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Read manifest to get configured AI tools
|
|
108
|
+
cat .standards/manifest.json
|
|
109
|
+
# Check existing Skills installations
|
|
110
|
+
ls .claude/skills/ 2>/dev/null || echo "Not installed"
|
|
111
|
+
ls .opencode/skill/ 2>/dev/null || echo "Not installed"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
For each configured AI tool that supports Skills, check if Skills are installed.
|
|
115
|
+
|
|
116
|
+
#### Step 4b/4c: Ask Skills Installation (Combined) | 步骤 4b/4c:询问 Skills 安装(整合)
|
|
117
|
+
|
|
118
|
+
If any configured AI tools are missing Skills, use **Smart Grouping** strategy.
|
|
119
|
+
|
|
120
|
+
如果有已配置的 AI 工具缺少 Skills,使用**智能分组**策略。
|
|
121
|
+
|
|
122
|
+
**重要:AskUserQuestion 最多只能有 4 个选项。** 使用智能分组来处理。
|
|
123
|
+
|
|
124
|
+
**Step 4b-1: Check Marketplace Status (Claude Code only)**
|
|
125
|
+
|
|
126
|
+
First, check if Plugin Marketplace is already installed:
|
|
127
|
+
```bash
|
|
128
|
+
ls ~/.claude/plugins/universal-dev-standards@asia-ostrich 2>/dev/null && echo "Marketplace installed"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
- If Marketplace IS installed → Show "Claude Code: ✓ 已通过 Marketplace 安装" and skip Claude Code options
|
|
132
|
+
- If Marketplace NOT installed → Include Marketplace option
|
|
133
|
+
|
|
134
|
+
**Step 4b-2: Apply Smart Grouping Strategy**
|
|
135
|
+
|
|
136
|
+
#### Strategy A: 1-2 Tools → Combined Question | 策略 A:1-2 个工具 → 合并询问
|
|
137
|
+
|
|
138
|
+
**Example (Claude Code only, Marketplace not installed):**
|
|
139
|
+
```
|
|
140
|
+
Question: "Skills 要安装到哪里?"
|
|
141
|
+
Options:
|
|
142
|
+
1. Plugin Marketplace (建议) - 自动更新,易于管理
|
|
143
|
+
2. User Level (~/.claude/skills/) - 所有项目共用
|
|
144
|
+
3. Project Level (.claude/skills/) - 仅此项目
|
|
145
|
+
4. 跳过 - 不安装 Skills
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**Example (OpenCode + Copilot, Claude Code already via Marketplace):**
|
|
149
|
+
```
|
|
150
|
+
Question: "Skills 要安装到哪里?(Claude Code: ✓ 已通过 Marketplace 安装)"
|
|
151
|
+
Options:
|
|
152
|
+
1. 全部 User Level - 所有项目共用
|
|
153
|
+
2. 全部 Project Level (建议) - 仅此项目
|
|
154
|
+
3. 跳过 - 不安装额外 Skills
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
#### Strategy B: 3+ Tools → Two-Stage Question | 策略 B:3+ 个工具 → 两阶段询问
|
|
158
|
+
|
|
159
|
+
**Stage 1: Ask unified or individual**
|
|
160
|
+
```
|
|
161
|
+
Question: "有多个 AI 工具需要安装 Skills,安装层级要如何设定?"
|
|
162
|
+
Options:
|
|
163
|
+
1. 统一层级 (建议) - 所有工具使用相同层级
|
|
164
|
+
2. 个别设定 - 为每个工具分别选择层级
|
|
165
|
+
3. 跳过 - 不安装 Skills
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Stage 2a: If unified → ask level once**
|
|
169
|
+
```
|
|
170
|
+
Question: "所有 Skills 要安装到哪个层级?"
|
|
171
|
+
Options:
|
|
172
|
+
1. User Level - 所有项目共用
|
|
173
|
+
2. Project Level (建议) - 仅此项目
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**Stage 2b: If individual → per-tool questions**
|
|
177
|
+
|
|
178
|
+
**Execute installation:**
|
|
179
|
+
```bash
|
|
180
|
+
uds configure --type skills --ai-tool opencode --skills-location project
|
|
181
|
+
uds configure --type skills --ai-tool cursor --skills-location user
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**注意:** 如果用户选择统一层级,使用 `--skills-location` 选项。如果选择个别设定,不带此选项执行以触发交互提示。
|
|
185
|
+
|
|
186
|
+
#### Step 4d: Detect Missing Commands | 步骤 4d:检测缺少的 Commands
|
|
187
|
+
|
|
188
|
+
Check for configured AI tools that support Commands but don't have them installed:
|
|
189
|
+
|
|
190
|
+
检查已配置但尚未安装 Commands 的 AI 工具:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Check existing Commands installations
|
|
194
|
+
ls .opencode/commands/ 2>/dev/null || echo "Not installed"
|
|
195
|
+
ls .github/commands/ 2>/dev/null || echo "Not installed"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**Note:** Not all AI tools support Commands. Tools that support Commands:
|
|
199
|
+
- OpenCode (.opencode/commands/)
|
|
200
|
+
- GitHub Copilot (.github/commands/)
|
|
201
|
+
- Roo Code (.roo/commands/)
|
|
202
|
+
- Gemini CLI (.gemini/commands/)
|
|
203
|
+
|
|
204
|
+
#### Step 4e: Ask Commands Installation | 步骤 4e:询问 Commands 安装
|
|
205
|
+
|
|
206
|
+
If any configured AI tools are missing Commands, use **Smart Grouping** strategy.
|
|
207
|
+
|
|
208
|
+
如果有已配置的 AI 工具缺少 Commands,使用**智能分组**策略。
|
|
209
|
+
|
|
210
|
+
**重要:AskUserQuestion 最多只能有 4 个选项。** 使用智能分组来处理。
|
|
211
|
+
|
|
212
|
+
#### Strategy A: 1-2 Tools → Combined Question | 策略 A:1-2 个工具 → 合并询问
|
|
213
|
+
|
|
214
|
+
**Example (OpenCode only):**
|
|
215
|
+
```
|
|
216
|
+
Question: "Commands 要安装到哪里?"
|
|
217
|
+
Options:
|
|
218
|
+
1. User Level (~/.config/opencode/command/) - 所有项目共用
|
|
219
|
+
2. Project Level (.opencode/command/) - 仅此项目 (建议)
|
|
220
|
+
3. 跳过 - 使用 Skills 即可
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
**Example (OpenCode + Copilot):**
|
|
224
|
+
```
|
|
225
|
+
Question: "Commands 要安装到哪里?"
|
|
226
|
+
Options:
|
|
227
|
+
1. 全部 User Level - 所有项目共用
|
|
228
|
+
2. 全部 Project Level (建议) - 仅此项目
|
|
229
|
+
3. 跳过 - 使用 Skills 即可
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
#### Strategy B: 3+ Tools → Two-Stage Question | 策略 B:3+ 个工具 → 两阶段询问
|
|
233
|
+
|
|
234
|
+
**Stage 1: Ask unified or individual**
|
|
235
|
+
```
|
|
236
|
+
Question: "有多个 AI 工具需要安装 Commands,安装层级要如何设定?"
|
|
237
|
+
Options:
|
|
238
|
+
1. 统一层级 (建议) - 所有工具使用相同层级
|
|
239
|
+
2. 个别设定 - 为每个工具分别选择层级
|
|
240
|
+
3. 跳过 - 不安装 Commands
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
**Stage 2a: If unified → ask level once**
|
|
244
|
+
```
|
|
245
|
+
Question: "所有 Commands 要安装到哪个层级?"
|
|
246
|
+
Options:
|
|
247
|
+
1. User Level - 所有项目共用
|
|
248
|
+
2. Project Level (建议) - 仅此项目
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Stage 2b: If individual → per-tool questions**
|
|
252
|
+
|
|
253
|
+
**Execute installation:**
|
|
254
|
+
```bash
|
|
255
|
+
# CLI will prompt for installation level
|
|
256
|
+
uds configure --type commands --ai-tool opencode
|
|
257
|
+
uds configure --type commands --ai-tool copilot
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**注意:** 指定 `--ai-tool` 时,CLI 会交互询问安装层级(project 或 user)。
|
|
261
|
+
|
|
262
|
+
#### Declined Features Handling | 拒绝功能处理
|
|
263
|
+
|
|
264
|
+
**重要:** CLI 会在 `manifest.declinedFeatures` 中追踪用户拒绝的选项。
|
|
265
|
+
|
|
266
|
+
- 用户之前拒绝的工具不会在后续提示中显示
|
|
267
|
+
- 可通过 `/config skills` 或 `/config commands` 重新安装
|
|
268
|
+
- 拒绝按工具记录(例如拒绝 OpenCode 的 Skills 不影响 Claude Code)
|
|
269
|
+
|
|
270
|
+
### Step 5: Explain Results | 步骤 5:说明结果
|
|
271
|
+
|
|
272
|
+
After all operations complete, explain:
|
|
273
|
+
1. 更新了什么(标准版本、文件数量)
|
|
274
|
+
2. Skills/Commands 安装结果
|
|
275
|
+
3. 遇到的任何错误
|
|
276
|
+
4. 后续步骤(如果安装了 Skills 则重启 AI 工具)
|
|
277
|
+
|
|
278
|
+
## Quick Mode | 快速模式
|
|
279
|
+
|
|
280
|
+
When invoked with `--yes` or specific options, skip interactive questions:
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
/update --yes # 无需确认直接更新
|
|
284
|
+
/update --beta --yes # 更新至 beta 版本
|
|
285
|
+
/update --offline # 跳过 npm registry 检查
|
|
286
|
+
/update --skills # 仅更新 Skills
|
|
287
|
+
/update --commands # 仅更新 Commands
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**注意:** 在 `--yes` 模式下,CLI 显示可用 Skills/Commands 的提示但不会自动安装(保守行为)。
|
|
291
|
+
|
|
292
|
+
## Options Reference | 选项参考
|
|
293
|
+
|
|
294
|
+
| Option | Description | 说明 |
|
|
295
|
+
|--------|-------------|------|
|
|
296
|
+
| `--yes`, `-y` | Skip confirmation prompt | 跳过确认提示 |
|
|
297
|
+
| `--offline` | Skip npm registry check | 跳过 npm registry 检查 |
|
|
298
|
+
| `--beta` | Check for beta version updates | 检查 beta 版本更新 |
|
|
299
|
+
| `--skills` | Update Skills only | 仅更新 Skills |
|
|
300
|
+
| `--commands` | Update Commands only | 仅更新 Commands |
|
|
301
|
+
| `--integrations-only` | Regenerate integration files only | 仅重新生成集成文件 |
|
|
302
|
+
| `--sync-refs` | Sync integration file references | 同步集成文件引用 |
|
|
303
|
+
| `--standards-only` | Update standards without integrations | 仅更新标准,不更新集成 |
|
|
304
|
+
|
|
305
|
+
## What Gets Updated | 更新内容
|
|
306
|
+
|
|
307
|
+
- `.standards/` 目录中的标准文件
|
|
308
|
+
- 扩展文件(语言、框架、区域设置)
|
|
309
|
+
- 集成文件(`.cursorrules`、`CLAUDE.md` 等)
|
|
310
|
+
- `manifest.json` 中的版本信息
|
|
311
|
+
|
|
312
|
+
## Skills Update | Skills 更新
|
|
313
|
+
|
|
314
|
+
Skills are managed separately:
|
|
315
|
+
|
|
316
|
+
| Installation | Update Method | 更新方法 |
|
|
317
|
+
|--------------|---------------|----------|
|
|
318
|
+
| Plugin Marketplace | Auto-updates on Claude Code restart | 重启 Claude Code 自动更新 |
|
|
319
|
+
| User-level | `cd ~/.claude/skills && git pull` | 手动更新 |
|
|
320
|
+
| Project-level | `cd .claude/skills && git pull` | 手动更新 |
|
|
321
|
+
|
|
322
|
+
## Troubleshooting | 故障排查
|
|
323
|
+
|
|
324
|
+
**"Standards not initialized"**
|
|
325
|
+
- 先运行 `/init` 初始化标准
|
|
326
|
+
|
|
327
|
+
**"Already up to date"**
|
|
328
|
+
- 无需操作;标准已是最新
|
|
329
|
+
|
|
330
|
+
**"Skills previously declined"**
|
|
331
|
+
- 运行 `/config skills` 重新安装被拒绝的 Skills
|
|
332
|
+
|
|
333
|
+
## Reference | 参考
|
|
334
|
+
|
|
335
|
+
- CLI documentation: `uds update --help`
|
|
336
|
+
- Check command: [/check](./check.md)
|
|
337
|
+
- Config command: [/config](./config.md)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/database-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导数据库设计、迁移规划和查询优化。
|
|
9
|
+
使用时机:schema 设计、迁移规划、查询优化、索引策略。
|
|
10
|
+
关键字:database, schema, migration, SQL, index, query, 数据库, 迁移, 查询。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 数据库助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/database-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
引导数据库设计、迁移规划和查询优化。
|
|
18
|
+
|
|
19
|
+
## 核心原则
|
|
20
|
+
|
|
21
|
+
| 原则 | 说明 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| 规范化 | 消除冗余(至少 3NF) |
|
|
24
|
+
| 参照完整性 | 强制外键约束 |
|
|
25
|
+
| 索引策略 | 依查询模式建立索引 |
|
|
26
|
+
| 迁移安全 | 可逆、零停机 |
|
|
27
|
+
| 数据保护 | 加密敏感字段、审计访问 |
|
|
28
|
+
|
|
29
|
+
## Schema 设计检查清单
|
|
30
|
+
|
|
31
|
+
- [ ] 主键已定义(建议 UUID 或 BIGINT)
|
|
32
|
+
- [ ] 外键含适当的 ON DELETE/UPDATE 策略
|
|
33
|
+
- [ ] 必填字段加 NOT NULL 约束
|
|
34
|
+
- [ ] 常查询字段建立索引
|
|
35
|
+
- [ ] 所有表加创建/更新时间戳
|
|
36
|
+
- [ ] 敏感数据静态加密
|
|
37
|
+
- [ ] 命名惯例一致(snake_case)
|
|
38
|
+
|
|
39
|
+
## 规范化快速参考
|
|
40
|
+
|
|
41
|
+
| 范式 | 规则 |
|
|
42
|
+
|------|------|
|
|
43
|
+
| **1NF** | 原子值、无重复组 |
|
|
44
|
+
| **2NF** | 1NF + 无部分依赖 |
|
|
45
|
+
| **3NF** | 2NF + 无传递依赖 |
|
|
46
|
+
| **反规范化** | 仅针对已证实的读取性能需求 |
|
|
47
|
+
|
|
48
|
+
## 迁移工作流程
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 1. Plan — 评估影响
|
|
55
|
+
识别受影响的表、估算数据量、规划回滚策略。
|
|
56
|
+
|
|
57
|
+
### 2. Write — 编写迁移
|
|
58
|
+
编写正向和回滚脚本。使用递增编号的迁移。
|
|
59
|
+
|
|
60
|
+
### 3. Test — 验证迁移
|
|
61
|
+
在 staging 环境使用类生产数据执行。验证迁移后数据完整性。
|
|
62
|
+
|
|
63
|
+
### 4. Deploy — 执行迁移
|
|
64
|
+
在维护窗口执行,或使用在线 Schema 变更工具。
|
|
65
|
+
|
|
66
|
+
### 5. Verify — 确认成功
|
|
67
|
+
检查行数、约束有效性、应用程序功能。
|
|
68
|
+
|
|
69
|
+
## 索引策略
|
|
70
|
+
|
|
71
|
+
| 类型 | 使用场景 |
|
|
72
|
+
|------|----------|
|
|
73
|
+
| B-tree | 等值、范围查询(默认) |
|
|
74
|
+
| Hash | 仅精确匹配 |
|
|
75
|
+
| GIN | 全文搜索、JSONB |
|
|
76
|
+
| Partial | 过滤子集 |
|
|
77
|
+
| Composite | 多字段查询 |
|
|
78
|
+
|
|
79
|
+
## 使用方式
|
|
80
|
+
|
|
81
|
+
- `/database` - 交互式数据库设计引导
|
|
82
|
+
- `/database schema` - 审查 Schema 设计
|
|
83
|
+
- `/database --migration` - 迁移规划助手
|
|
84
|
+
|
|
85
|
+
## 下一步引导
|
|
86
|
+
|
|
87
|
+
`/database` 完成后,AI 助手应建议:
|
|
88
|
+
|
|
89
|
+
> **数据库设计完成。建议下一步:**
|
|
90
|
+
> - 执行 `/security` 检查数据保护措施
|
|
91
|
+
> - 执行 `/testing` 规划数据库测试策略
|
|
92
|
+
> - 执行 `/checkin` 确认迁移符合提交规范
|
|
93
|
+
> - 生成 API 端点 → 执行 `/api-design`
|
|
94
|
+
|
|
95
|
+
## 参考
|
|
96
|
+
|
|
97
|
+
- 核心规范:[database-standards.md](../../../../core/database-standards.md)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/dev-workflow-guide/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
将软件开发阶段对应到 UDS 命令与技能。
|
|
9
|
+
使用时机:查找适用的 UDS 命令、规划开发流程、新手入门。
|
|
10
|
+
关键字:workflow, development-phases, commands, 工作流程, 开发阶段。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 开发工作流程指南
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/dev-workflow-guide/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
将你目前的软件开发阶段对应到正确的 UDS 命令与技能。即时了解在开发的每个阶段应该使用哪些工具。
|
|
18
|
+
|
|
19
|
+
> **相关**:如需选择或切换开发方法论(SDD、BDD、TDD),请改用 `/methodology`。
|
|
20
|
+
|
|
21
|
+
## 软件开发阶段总览
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
I. Planning ──► II. Testing Design ──► III. Implementation ──► IV. Quality Gates
|
|
25
|
+
需求设计 测试驱动开发 代码开发 品质保证
|
|
26
|
+
|
|
27
|
+
V. Release ──► VI. Documentation ──► VII. Standards ──► VIII. Advanced
|
|
28
|
+
版本提交 文档与架构 工具与标准 进阶分析
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 快速对照表
|
|
32
|
+
|
|
33
|
+
| 阶段 | UDS 命令 | 用途 |
|
|
34
|
+
|------|---------|------|
|
|
35
|
+
| **I. 规划与设计** | `/brainstorm` `/requirement` `/sdd` `/reverse` | 需求、规格、逆向工程 |
|
|
36
|
+
| **II. 测试驱动开发** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` | 先写测试再写代码 |
|
|
37
|
+
| **III. 实现** | `/refactor` `/reverse` | 撰写与改善代码 |
|
|
38
|
+
| **IV. 品质关卡** | `/checkin` `/review` | 提交前检查与代码审查 |
|
|
39
|
+
| **V. 发布与提交** | `/commit` `/changelog` `/release` | 版本、提交、发布 |
|
|
40
|
+
| **VI. 文档** | `/docs` `/docgen` `/struct` | 文档与项目结构 |
|
|
41
|
+
| **VII. 工具与标准** | `/discover` `/testing` `/guide` `/git` | 参考指南 |
|
|
42
|
+
| **VIII. 进阶分析** | `/methodology` | 跨方法论工作流程 |
|
|
43
|
+
|
|
44
|
+
## 常见场景
|
|
45
|
+
|
|
46
|
+
### 场景 1:新功能开发
|
|
47
|
+
|
|
48
|
+
从零开始构建新功能的推荐流程:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
/brainstorm → /requirement → /sdd → /derive → /tdd → /checkin → /commit
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
| 步骤 | 命令 | 做什么 |
|
|
55
|
+
|------|------|--------|
|
|
56
|
+
| 1 | `/brainstorm` | 探索想法与方法 |
|
|
57
|
+
| 2 | `/requirement` | 撰写用户故事 |
|
|
58
|
+
| 3 | `/sdd` | 创建规格文件 |
|
|
59
|
+
| 4 | `/derive` | 从规格产生测试骨架 |
|
|
60
|
+
| 5 | `/tdd` | 用红绿重构循环实现 |
|
|
61
|
+
| 6 | `/checkin` | 验证品质关卡 |
|
|
62
|
+
| 7 | `/commit` | 创建规范化提交 |
|
|
63
|
+
|
|
64
|
+
### 场景 2:修复错误
|
|
65
|
+
|
|
66
|
+
修复既有代码错误的推荐流程:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
/discover → /reverse → /tdd → /checkin → /commit
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
| 步骤 | 命令 | 做什么 |
|
|
73
|
+
|------|------|--------|
|
|
74
|
+
| 1 | `/discover` | 评估受影响区域健康度 |
|
|
75
|
+
| 2 | `/reverse` | 理解现有代码结构 |
|
|
76
|
+
| 3 | `/tdd` | 先写失败测试,再修复 |
|
|
77
|
+
| 4 | `/checkin` | 验证品质关卡 |
|
|
78
|
+
| 5 | `/commit` | 创建规范化提交 |
|
|
79
|
+
|
|
80
|
+
### 场景 3:重构
|
|
81
|
+
|
|
82
|
+
代码重构的推荐流程:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
/discover → /reverse → /coverage → /refactor → /checkin → /commit
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
| 步骤 | 命令 | 做什么 |
|
|
89
|
+
|------|------|--------|
|
|
90
|
+
| 1 | `/discover` | 评估项目健康度与风险 |
|
|
91
|
+
| 2 | `/reverse` | 记录目前行为 |
|
|
92
|
+
| 3 | `/coverage` | 确保测试安全网存在 |
|
|
93
|
+
| 4 | `/refactor` | 套用重构策略 |
|
|
94
|
+
| 5 | `/checkin` | 验证品质关卡 |
|
|
95
|
+
| 6 | `/commit` | 创建规范化提交 |
|
|
96
|
+
|
|
97
|
+
## 使用方式
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
/dev-workflow # 显示完整阶段总览
|
|
101
|
+
/dev-workflow planning # 获取第一阶段指引
|
|
102
|
+
/dev-workflow testing # 获取第二阶段指引
|
|
103
|
+
/dev-workflow new-feature # 获取新功能工作流程
|
|
104
|
+
/dev-workflow bug-fix # 获取修复错误工作流程
|
|
105
|
+
/dev-workflow refactoring # 获取重构工作流程
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### 支持的参数
|
|
109
|
+
|
|
110
|
+
| 参数 | 说明 |
|
|
111
|
+
|------|------|
|
|
112
|
+
| `planning` | 第一阶段:规划与设计 |
|
|
113
|
+
| `testing` | 第二阶段:测试驱动开发 |
|
|
114
|
+
| `implementation` | 第三阶段:实现 |
|
|
115
|
+
| `quality` | 第四阶段:品质关卡 |
|
|
116
|
+
| `release` | 第五阶段:发布与提交 |
|
|
117
|
+
| `docs` | 第六阶段:文档 |
|
|
118
|
+
| `standards` | 第七阶段:工具与标准 |
|
|
119
|
+
| `advanced` | 第八阶段:进阶系统分析 |
|
|
120
|
+
| `new-feature` | 场景:新功能开发 |
|
|
121
|
+
| `bug-fix` | 场景:修复错误 |
|
|
122
|
+
| `refactoring` | 场景:重构 |
|
|
123
|
+
|
|
124
|
+
## 工作流程行为
|
|
125
|
+
|
|
126
|
+
调用时:
|
|
127
|
+
|
|
128
|
+
1. **无参数**:显示完整的阶段总览表,询问用户目前在哪个阶段
|
|
129
|
+
2. **阶段参数**:显示该阶段的详细指引,包含所有相关命令与示例
|
|
130
|
+
3. **场景参数**:显示该场景的推荐逐步工作流程
|
|
131
|
+
|
|
132
|
+
## 下一步引导
|
|
133
|
+
|
|
134
|
+
`/dev-workflow` 完成后,AI 助手应根据用户情况建议:
|
|
135
|
+
|
|
136
|
+
> **工作流程已显示。建议下一步:**
|
|
137
|
+
> - 新功能开发 → 执行 `/brainstorm` 探索想法
|
|
138
|
+
> - 修复错误 → 执行 `/discover` 评估受影响区域
|
|
139
|
+
> - 重构代码 → 执行 `/discover` 评估健康度
|
|
140
|
+
> - 遗留系统 → 执行 `/reverse` 进行系统考古
|
|
141
|
+
|
|
142
|
+
## 参考
|
|
143
|
+
|
|
144
|
+
- [详细阶段指南](./workflow-phases.md) - 完整的阶段参考
|
|
145
|
+
- [日常工作流程指南](../../../../adoption/DAILY-WORKFLOW-GUIDE.md) - 综合日常工作流程指南
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/durable-execution-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导工作流程故障恢复,包含检查点、重试与回滚策略。
|
|
9
|
+
使用时机:工作流中途失败、需要重试逻辑、设计容错流程。
|
|
10
|
+
关键字:durable, execution, checkpoint, retry, rollback, recovery, 持久执行, 恢复。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 持久执行助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/durable-execution-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
引导容错工作流程设计,包含自动恢复、检查点与重试策略。
|
|
18
|
+
|
|
19
|
+
## 使用方式
|
|
20
|
+
|
|
21
|
+
| 命令 | 用途 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| `/durable` | 启动交互式故障恢复引导 |
|
|
24
|
+
| `/durable --checkpoint` | 设计检查点策略 |
|
|
25
|
+
| `/durable --retry` | 配置重试策略 |
|
|
26
|
+
| `/durable --rollback` | 规划回滚程序 |
|
|
27
|
+
| `/durable <workflow>` | 分析特定工作流的持久性 |
|
|
28
|
+
|
|
29
|
+
## 核心概念
|
|
30
|
+
|
|
31
|
+
| 概念 | 定义 |
|
|
32
|
+
|------|------|
|
|
33
|
+
| **检查点** | 在已知正确的位置储存执行状态 |
|
|
34
|
+
| **重试** | 自动重新尝试失败的操作 |
|
|
35
|
+
| **回滚** | 失败时回复到上一个已知正确状态 |
|
|
36
|
+
| **幂等性** | 操作重新执行时产生相同结果 |
|
|
37
|
+
| **断路器** | 失败率超过阈值时停止重试 |
|
|
38
|
+
|
|
39
|
+
## 故障恢复决策树
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
侦测到故障
|
|
43
|
+
├── 是否为暂时性?(网络、超时)
|
|
44
|
+
│ ├── 是 → 带退避的重试
|
|
45
|
+
│ └── 否 → 状态是否损坏?
|
|
46
|
+
│ ├── 是 → 回滚至检查点
|
|
47
|
+
│ └── 否 → 是否为逻辑错误?
|
|
48
|
+
│ ├── 是 → 停止、回报、修复代码
|
|
49
|
+
│ └── 否 → 带诊断信息升级处理
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 重试策略指南
|
|
53
|
+
|
|
54
|
+
| 策略 | 使用时机 | 配置 |
|
|
55
|
+
|------|---------|------|
|
|
56
|
+
| **立即重试** | 罕见故障、快速操作 | 最多 2 次重试 |
|
|
57
|
+
| **指数退避** | 网络/API 调用 | 基底 1s、最大 30s |
|
|
58
|
+
| **断路器** | 下游服务问题 | 阈值 50%、窗口 60s |
|
|
59
|
+
| **死信队列** | 重试后仍不可恢复 | 最多 5 次重试后排入队列 |
|
|
60
|
+
|
|
61
|
+
## 检查点粒度
|
|
62
|
+
|
|
63
|
+
| 粒度 | 使用场景 |
|
|
64
|
+
|------|---------|
|
|
65
|
+
| **每步骤** | 长管线(> 5 步骤) |
|
|
66
|
+
| **每批次** | 批量数据处理 |
|
|
67
|
+
| **每阶段** | 多阶段工作流程 |
|
|
68
|
+
| **起始/结束** | 短暂的原子操作 |
|
|
69
|
+
|
|
70
|
+
## 工作流程
|
|
71
|
+
|
|
72
|
+
1. **侦测** - 识别故障类型与范围
|
|
73
|
+
2. **诊断** - 判定根本原因类别
|
|
74
|
+
3. **恢复** - 套用适当的恢复策略
|
|
75
|
+
4. **验证** - 确认系统状态一致
|
|
76
|
+
5. **继续** - 从上一个检查点继续
|
|
77
|
+
|
|
78
|
+
## 下一步引导
|
|
79
|
+
|
|
80
|
+
`/durable` 完成后,AI 助手应建议:
|
|
81
|
+
|
|
82
|
+
> **持久性分析完成。建议下一步:**
|
|
83
|
+
> - 执行 `/methodology` 选择适合的开发方法论
|
|
84
|
+
> - 执行 `/commit` 提交持久化设计变更
|