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,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/behavior-driven-development.md
|
|
3
|
+
source_version: 1.1.0
|
|
4
|
+
translation_version: 1.1.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# 行為驅動開發(BDD)標準
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/behavior-driven-development.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.1.0
|
|
14
|
+
**最後更新**: 2026-01-25
|
|
15
|
+
**適用性**: 所有採用行為驅動開發的專案
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**業界標準**: 無(Dan North 實踐,2006)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 摘要
|
|
22
|
+
|
|
23
|
+
行為驅動開發(BDD)是由 Dan North 於 2006 年創建的傳統開發方法論,旨在縮小業務與技術團隊之間的溝通鴻溝。軟體行為透過協作以 **Given-When-Then** 場景描述,使用 Gherkin 語法 — 一種利害關係人可以閱讀和驗證的自然語言格式。
|
|
24
|
+
|
|
25
|
+
BDD 構成雙循環 TDD(GOOS 模式)的**外層循環**,BDD 場景驅動功能層級的行為,而 TDD 處理單元層級的實作。該方法論遵循「發現-表述-自動化」的工作流程,由 Three Amigos 協作(業務 + 開發 + 測試)確保共同理解。
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
**完整指南:[BDD 指南](../../../methodologies/guides/bdd-guide.md)**
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 快速參考
|
|
34
|
+
|
|
35
|
+
| 面向 | 說明 |
|
|
36
|
+
|------|------|
|
|
37
|
+
| **核心工作流** | 發現 → 表述 → 自動化 |
|
|
38
|
+
| **語言** | Gherkin(Given-When-Then) |
|
|
39
|
+
| **測試層級** | 功能/場景測試 |
|
|
40
|
+
| **參與者** | 開發人員 + BA + QA(Three Amigos) |
|
|
41
|
+
| **工具** | Cucumber、Behave、SpecFlow |
|
|
42
|
+
|
|
43
|
+
## Gherkin 語法範例
|
|
44
|
+
|
|
45
|
+
```gherkin
|
|
46
|
+
Feature: 使用者登入
|
|
47
|
+
作為一個已註冊的使用者
|
|
48
|
+
我希望能夠登入系統
|
|
49
|
+
以便存取我的個人資料
|
|
50
|
+
|
|
51
|
+
Scenario: 使用有效憑證登入
|
|
52
|
+
Given 使用者已在登入頁面
|
|
53
|
+
When 使用者輸入有效的帳號和密碼
|
|
54
|
+
Then 系統應重導至儀表板
|
|
55
|
+
And 顯示歡迎訊息
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 相關標準
|
|
59
|
+
|
|
60
|
+
- [測試驅動開發](../../../core/test-driven-development.md)
|
|
61
|
+
- [驗收測試驅動開發](acceptance-test-driven-development.md)
|
|
62
|
+
- [規格驅動開發](spec-driven-development.md)
|
|
63
|
+
- [測試標準](testing-standards.md)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/branch-completion.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# 分支完成工作流程
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/branch-completion.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-03-20
|
|
15
|
+
**適用性**: 所有使用 Git 分支工作流的專案
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**靈感來源**: [Superpowers](https://github.com/obra/superpowers) — finishing-a-development-branch (MIT)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 目的
|
|
22
|
+
|
|
23
|
+
定義分支完成的標準化工作流,包含前置檢查、四個完成選項與安全丟棄流程。防止過早合併、遺忘分支與意外資料遺失。
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 術語表
|
|
28
|
+
|
|
29
|
+
| 術語 | 定義 |
|
|
30
|
+
|------|------|
|
|
31
|
+
| 分支完成 (Branch Completion) | 完成功能/修復分支工作的過程 |
|
|
32
|
+
| 前置條件 (Prerequisites) | 分支被視為完成前必須滿足的條件 |
|
|
33
|
+
| 丟棄確認 (Discard Confirmation) | 刪除工作前需要明確輸入的安全機制 |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 核心原則 — 先測試再討論
|
|
38
|
+
|
|
39
|
+
> **所有測試必須通過,才能討論完成選項。**
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 前置條件
|
|
44
|
+
|
|
45
|
+
在選擇任何完成選項之前,必須通過以下檢查:
|
|
46
|
+
|
|
47
|
+
| 檢查項目 | 說明 |
|
|
48
|
+
|----------|------|
|
|
49
|
+
| 所有測試通過 | `npm test` 或專案對應的測試指令 |
|
|
50
|
+
| 無未提交的變更 | `git status` 顯示乾淨的工作目錄 |
|
|
51
|
+
| 分支已與目標分支同步 | 已 rebase 或 merge 最新的目標分支 |
|
|
52
|
+
| 程式碼品質通過 | linting、type check 等品質門檻 |
|
|
53
|
+
|
|
54
|
+
## 四個完成選項
|
|
55
|
+
|
|
56
|
+
| 選項 | 適用場景 | 指令 |
|
|
57
|
+
|------|----------|------|
|
|
58
|
+
| **Merge** | 功能完成,準備合併到目標分支 | `git merge` 或建立 PR |
|
|
59
|
+
| **Squash Merge** | 多個小提交需要壓縮為一個 | `git merge --squash` |
|
|
60
|
+
| **Rebase** | 保持線性歷史 | `git rebase target-branch` |
|
|
61
|
+
| **Discard** | 放棄此分支的工作 | 需丟棄確認 |
|
|
62
|
+
|
|
63
|
+
## 安全丟棄流程
|
|
64
|
+
|
|
65
|
+
丟棄分支前必須:
|
|
66
|
+
|
|
67
|
+
1. **確認** — 明確輸入分支名稱確認丟棄意圖
|
|
68
|
+
2. **備份** — 建立標籤保留最後狀態:`git tag archive/branch-name`
|
|
69
|
+
3. **清理** — 刪除本地和遠端分支
|
|
70
|
+
|
|
71
|
+
## 相關標準
|
|
72
|
+
|
|
73
|
+
- [Git Worktree 隔離](git-worktree.md)
|
|
74
|
+
- [代理派遣與並行協調](agent-dispatch.md)
|
|
75
|
+
- [提交規範](checkin-standards.md)
|
|
76
|
+
- [Git 工作流](git-workflow.md)
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/change-batching-standards.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-18
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# 變更批次標準
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/change-batching-standards.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**適用範圍**: 所有使用自動化開發流程的軟體專案
|
|
14
|
+
**Scope**: universal
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 概述
|
|
19
|
+
|
|
20
|
+
變更批次標準定義了待處理變更應如何累積、評估並合併為原子性提交。本標準填補了個別變更與提交之間的空白,提供在何時以及如何將多個相關變更批次整合為有機一體的規則。
|
|
21
|
+
|
|
22
|
+
## 參考資料
|
|
23
|
+
|
|
24
|
+
| 標準/來源 | 內容 |
|
|
25
|
+
|------------|------|
|
|
26
|
+
| SWEBOK v4.0 第 6 章 | 軟體配置管理 |
|
|
27
|
+
| ISO/IEC 12207 | 配置管理流程 |
|
|
28
|
+
| Continuous Delivery(Jez Humble) | 小批次原則 |
|
|
29
|
+
| Lean Software Development | 批次大小最佳化 |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 待處理變更狀態機
|
|
34
|
+
|
|
35
|
+
### 狀態定義
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
┌─────────┐ threshold met ┌─────────┐ merge success ┌─────────┐
|
|
39
|
+
│ PENDING │───────────────────▶│ READY │────────────────────▶│ MERGED │
|
|
40
|
+
│ 等待中 │ │ 就緒 │ │ 已合併 │
|
|
41
|
+
└─────────┘ └─────────┘ └─────────┘
|
|
42
|
+
▲ │ │
|
|
43
|
+
│ reset │ merge failure │
|
|
44
|
+
│ ▼ ▼
|
|
45
|
+
│ ┌─────────┐ ┌──────────┐
|
|
46
|
+
└────────────────────────│ FAILED │ │ ARCHIVED │
|
|
47
|
+
│ 失敗 │ │ 已歸檔 │
|
|
48
|
+
└─────────┘ └──────────┘
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 狀態轉換
|
|
52
|
+
|
|
53
|
+
| 來源 | 目標 | 觸發條件 | 動作 |
|
|
54
|
+
|------|------|----------|------|
|
|
55
|
+
| PENDING | PENDING | 新增變更 | 遞增計數器,重新評估門檻 |
|
|
56
|
+
| PENDING | READY | 達到門檻 | 準備合併批次,執行合併前驗證 |
|
|
57
|
+
| READY | MERGED | 合併成功 | 建立提交、清除批次、歸檔 |
|
|
58
|
+
| READY | FAILED | 合併失敗 | 記錄失敗,保留變更 |
|
|
59
|
+
| FAILED | PENDING | 重置 | 重新排入變更,清除失敗狀態 |
|
|
60
|
+
| MERGED | ARCHIVED | 提交後 | 記錄批次元資料以供稽核 |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 門檻策略
|
|
65
|
+
|
|
66
|
+
### 門檻類型
|
|
67
|
+
|
|
68
|
+
| 策略 | 參數 | 預設值 | 說明 |
|
|
69
|
+
|------|------|--------|------|
|
|
70
|
+
| **計數** | `maxChanges` | 5 | 累積 N 個個別變更後合併 |
|
|
71
|
+
| **分數** | `maxScore` | 10 | 累積變更分數 ≥ M 時合併 |
|
|
72
|
+
| **時間** | `maxAge` | 30m | 最舊的待處理變更超過 TTL 時合併 |
|
|
73
|
+
| **手動** | — | — | 僅在使用者明確要求時合併 |
|
|
74
|
+
|
|
75
|
+
### 變更評分
|
|
76
|
+
|
|
77
|
+
每項變更依複雜度指派分數:
|
|
78
|
+
|
|
79
|
+
| 變更類型 | 分數 | 範例 |
|
|
80
|
+
|----------|------|------|
|
|
81
|
+
| 微小 | 1 | 錯字修正、空白、註解更新 |
|
|
82
|
+
| 次要 | 2 | 單一函式變更、變數重新命名 |
|
|
83
|
+
| 標準 | 3 | 新增函式、修改邏輯流程 |
|
|
84
|
+
| 複雜 | 5 | 多檔案變更、API 修改 |
|
|
85
|
+
| 關鍵 | 8 | Schema 變更、破壞性變更 |
|
|
86
|
+
|
|
87
|
+
### 門檻配置
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"batching": {
|
|
92
|
+
"strategy": "count",
|
|
93
|
+
"maxChanges": 5,
|
|
94
|
+
"maxScore": 10,
|
|
95
|
+
"maxAge": "30m",
|
|
96
|
+
"fallbackStrategy": "time"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 複合門檻
|
|
102
|
+
|
|
103
|
+
多個門檻可以 OR 邏輯組合(第一個達到的門檻觸發合併):
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Merge when: changes ≥ 5 OR score ≥ 10 OR age ≥ 30m
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 合併規則
|
|
112
|
+
|
|
113
|
+
### 優先順序
|
|
114
|
+
|
|
115
|
+
1. **相同規格親和性**:參照相同 SPEC-ID 的變更優先合併
|
|
116
|
+
2. **相同檔案分組**:對相同檔案的變更合併在一起
|
|
117
|
+
3. **依賴順序**:有依賴關係的變更依依賴順序合併
|
|
118
|
+
4. **時間順序**:在相同優先級內,依建立順序合併
|
|
119
|
+
|
|
120
|
+
### 衝突解決
|
|
121
|
+
|
|
122
|
+
| 衝突類型 | 解決策略 | 備用方案 |
|
|
123
|
+
|----------|----------|----------|
|
|
124
|
+
| 同一檔案同一行 | 最新變更優先 | 手動解決 |
|
|
125
|
+
| 重疊函式 | 盡可能進行語義合併 | 手動解決 |
|
|
126
|
+
| 依賴衝突 | 先解決依賴關係 | 拒絕批次,拆分 |
|
|
127
|
+
|
|
128
|
+
### 合併前驗證
|
|
129
|
+
|
|
130
|
+
合併批次前,需驗證:
|
|
131
|
+
|
|
132
|
+
| 檢查項目 | 必要性 | 說明 |
|
|
133
|
+
|----------|--------|------|
|
|
134
|
+
| 所有測試通過 | 是 | 對合併後狀態執行測試套件 |
|
|
135
|
+
| 無 lint 錯誤 | 是 | 對合併後的檔案執行 linter |
|
|
136
|
+
| 無衝突 | 是 | 確認乾淨合併,無衝突 |
|
|
137
|
+
| 維持 AC 覆蓋率 | 建議 | AC 覆蓋率不降低 |
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## 原子性保證
|
|
142
|
+
|
|
143
|
+
### 全有或全無原則
|
|
144
|
+
|
|
145
|
+
批次合併必須是原子性的:
|
|
146
|
+
|
|
147
|
+
- **成功**:批次中的所有變更一起提交
|
|
148
|
+
- **失敗**:批次中的任何變更都不提交;所有變更回到 PENDING 狀態
|
|
149
|
+
|
|
150
|
+
### 原子性規則
|
|
151
|
+
|
|
152
|
+
| 規則 | 說明 |
|
|
153
|
+
|------|------|
|
|
154
|
+
| **單一提交** | 每個合併批次恰好產生一個提交 |
|
|
155
|
+
| **不允許部分合併** | 如果批次中任一變更驗證失敗,整個批次被拒絕 |
|
|
156
|
+
| **支援回溯** | 失敗的合併必須將所有變更還原至 PENDING 狀態 |
|
|
157
|
+
| **隔離性** | 批次合併不得影響批次以外的變更 |
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 回溯機制
|
|
162
|
+
|
|
163
|
+
### 失敗處理
|
|
164
|
+
|
|
165
|
+
當批次合併失敗時:
|
|
166
|
+
|
|
167
|
+
1. **記錄失敗**:記錄批次中包含哪些變更以及什麼失敗
|
|
168
|
+
2. **保留變更**:所有變更回到 PENDING 狀態
|
|
169
|
+
3. **診斷**:識別失敗的變更
|
|
170
|
+
4. **選項**:
|
|
171
|
+
- 修正失敗的變更並重試
|
|
172
|
+
- 移除失敗的變更並合併其餘部分
|
|
173
|
+
- 將批次拆分為較小的群組
|
|
174
|
+
|
|
175
|
+
### 回溯觸發條件
|
|
176
|
+
|
|
177
|
+
| 觸發條件 | 動作 | 自動執行? |
|
|
178
|
+
|----------|------|-----------|
|
|
179
|
+
| 測試失敗 | 拒絕整個批次 | 是 |
|
|
180
|
+
| lint 錯誤 | 拒絕整個批次 | 是 |
|
|
181
|
+
| 合併衝突 | 拒絕並通知 | 是 |
|
|
182
|
+
| 建置失敗 | 拒絕整個批次 | 是 |
|
|
183
|
+
| 手動拒絕 | 回到 PENDING | 否 |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 批次提交訊息格式
|
|
188
|
+
|
|
189
|
+
批次提交應使用結構化訊息格式:
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
<type>(<scope>): <summary of batch>
|
|
193
|
+
|
|
194
|
+
Changes included:
|
|
195
|
+
- <change 1 description>
|
|
196
|
+
- <change 2 description>
|
|
197
|
+
- <change 3 description>
|
|
198
|
+
|
|
199
|
+
Spec: SPEC-XXX (if applicable)
|
|
200
|
+
Batch: N changes, score M
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### 範例
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
feat(auth): implement login validation and error handling
|
|
207
|
+
|
|
208
|
+
Changes included:
|
|
209
|
+
- Add email format validation
|
|
210
|
+
- Add password strength check
|
|
211
|
+
- Add error message display
|
|
212
|
+
- Add rate limiting for failed attempts
|
|
213
|
+
|
|
214
|
+
Spec: SPEC-001
|
|
215
|
+
Batch: 4 changes, score 11
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 反模式
|
|
221
|
+
|
|
222
|
+
| 反模式 | 影響 | 正確做法 |
|
|
223
|
+
|--------|------|----------|
|
|
224
|
+
| 無限累積 | 龐大且難以審查的提交 | 設定合理門檻 |
|
|
225
|
+
| 混合不相關的變更 | 難以審查,難以回溯 | 依規格或功能分組 |
|
|
226
|
+
| 部分提交 | 損壞的中間狀態 | 強制原子性 |
|
|
227
|
+
| 忽略失敗 | 損壞的程式碼進入程式庫 | 合併前始終進行驗證 |
|
|
228
|
+
| 無回溯計畫 | 失敗時遺失變更 | 失敗時保留變更 |
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 最佳實踐
|
|
233
|
+
|
|
234
|
+
### 應該做的
|
|
235
|
+
|
|
236
|
+
- ✅ 為自動批次設定明確的門檻
|
|
237
|
+
- ✅ 依規格或功能分組變更
|
|
238
|
+
- ✅ 提交前驗證整個批次
|
|
239
|
+
- ✅ 使用原子性提交(全有或全無)
|
|
240
|
+
- ✅ 失敗時保留變更
|
|
241
|
+
- ✅ 記錄批次決策以供稽核
|
|
242
|
+
|
|
243
|
+
### 不應該做的
|
|
244
|
+
|
|
245
|
+
- ❌ 無限期累積變更
|
|
246
|
+
- ❌ 在一個批次中混合不相關的變更
|
|
247
|
+
- ❌ 提交部分批次
|
|
248
|
+
- ❌ 忽略驗證失敗
|
|
249
|
+
- ❌ 合併失敗時遺失變更
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## 相關標準
|
|
254
|
+
|
|
255
|
+
- [簽入標準](checkin-standards.md) — 提交的品質閘門
|
|
256
|
+
- [Pipeline 整合標準](pipeline-integration-standards.md) — Pipeline 自動化
|
|
257
|
+
- [提交訊息指南](commit-message-guide.md) — 提交訊息格式
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## 版本歷史
|
|
262
|
+
|
|
263
|
+
| 版本 | 日期 | 變更 |
|
|
264
|
+
|------|------|------|
|
|
265
|
+
| 1.0.0 | 2026-03-18 | 初始版本 — 狀態機、門檻策略、原子性保證 |
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../core/checkin-standards.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.5.0
|
|
4
|
+
translation_version: 1.5.0
|
|
5
|
+
last_synced: 2026-03-18
|
|
6
6
|
status: current
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -10,8 +10,8 @@ status: current
|
|
|
10
10
|
|
|
11
11
|
> **語言**: [English](../../../core/checkin-standards.md) | 繁體中文
|
|
12
12
|
|
|
13
|
-
**版本**: 1.
|
|
14
|
-
**最後更新**: 2026-
|
|
13
|
+
**版本**: 1.5.0
|
|
14
|
+
**最後更新**: 2026-03-18
|
|
15
15
|
**適用範圍**: 所有使用版本控制的軟體專案
|
|
16
16
|
|
|
17
17
|
---
|
|
@@ -83,6 +83,11 @@ pip install -r requirements.txt && python -m py_compile src/**/*.py
|
|
|
83
83
|
- Coverage percentage not decreased
|
|
84
84
|
- Critical paths are tested
|
|
85
85
|
|
|
86
|
+
- [ ] **AC 覆蓋率已驗證**(若使用規格驅動工作流程)
|
|
87
|
+
- 所有驗收條件(AC)都有對應的測試(參見 [驗收條件追蹤標準](acceptance-criteria-traceability.md))
|
|
88
|
+
- AC 覆蓋率達到專案門檻(預設:簽入 80%)
|
|
89
|
+
- 先前已覆蓋的 AC 沒有退化為未覆蓋
|
|
90
|
+
|
|
86
91
|
**專案特定測試指令**:
|
|
87
92
|
```bash
|
|
88
93
|
# Example: .NET project
|
|
@@ -403,6 +408,7 @@ git status
|
|
|
403
408
|
| 變更累積 | 檔案 ≥5 個 或 行數 ≥200 行 | 建議 |
|
|
404
409
|
| 連續跳過 | 連續跳過簽入 3 次 | 警告 |
|
|
405
410
|
| 工作完成 | 結束前有未 commit 變更 | 強烈建議 |
|
|
411
|
+
| 批次閾值 | 暫存變更達到設定閾值 | 建議 |
|
|
406
412
|
|
|
407
413
|
### 提醒行為
|
|
408
414
|
|
|
@@ -435,6 +441,33 @@ git status
|
|
|
435
441
|
└────────────────────────────────────────────────┘
|
|
436
442
|
```
|
|
437
443
|
|
|
444
|
+
### 批次閾值觸發
|
|
445
|
+
|
|
446
|
+
當使用自動化 Pipeline 搭配變更批次合併時(參見 [變更批次合併標準](change-batching-standards.md)):
|
|
447
|
+
|
|
448
|
+
- **計數閾值**:累積變更 ≥ 設定的 `maxChanges` 時觸發
|
|
449
|
+
- **分數閾值**:累積變更分數 ≥ 設定的 `maxScore` 時觸發
|
|
450
|
+
- **時間閾值**:最舊的暫存變更超過設定的 `maxAge` 時觸發
|
|
451
|
+
- **行為**:批次閾值觸發簽入建議,而非自動提交(除非啟用 `autoCheckin`)
|
|
452
|
+
|
|
453
|
+
### 自動簽入
|
|
454
|
+
|
|
455
|
+
當 Pipeline 配置中啟用 `autoCheckin` 時(參見 [Pipeline 整合標準](pipeline-integration-standards.md)):
|
|
456
|
+
|
|
457
|
+
| 前提條件 | 必要 | 說明 |
|
|
458
|
+
|---------|------|------|
|
|
459
|
+
| 所有測試通過 | 是 | 完整測試套件通過,包含新測試 |
|
|
460
|
+
| Lint 清潔 | 是 | 已變更檔案無 lint 錯誤 |
|
|
461
|
+
| AC 覆蓋率達標 | 是 | AC 覆蓋率達到專案門檻 |
|
|
462
|
+
| 無衝突 | 是 | 與目標分支可清潔合併 |
|
|
463
|
+
| 批次已驗證 | 是(如啟用批次) | 批次中所有變更一起驗證 |
|
|
464
|
+
|
|
465
|
+
**安全規則**:
|
|
466
|
+
- 自動簽入不得推送到受保護的分支
|
|
467
|
+
- 自動簽入必須建立正確的 commit message(不是「auto-commit」)
|
|
468
|
+
- 自動簽入必須可稽核(記錄誰/什麼/何時)
|
|
469
|
+
- 使用者永遠可以覆蓋為手動提交
|
|
470
|
+
|
|
438
471
|
### 跳過後的追蹤
|
|
439
472
|
|
|
440
473
|
當用戶選擇「稍後再 commit」時:
|
|
@@ -958,6 +991,7 @@ git commit -m "feat(module-c): add export to CSV feature"
|
|
|
958
991
|
|
|
959
992
|
| 版本 | 日期 | 變更 |
|
|
960
993
|
|---------|------|---------|
|
|
994
|
+
| 1.5.0 | 2026-03-18 | 新增:AC 覆蓋率驗證、批次閾值觸發、自動簽入規則 |
|
|
961
995
|
| 1.4.0 | 2026-01-16 | 新增:Bug 修復測試評估章節與決策矩陣 |
|
|
962
996
|
| 1.3.0 | 2026-01-05 | 新增:SWEBOK v4.0 第 6 章(軟體配置管理)至參考資料 |
|
|
963
997
|
| 1.2.5 | 2025-12-16 | Clarified: CHANGELOG update is for user-facing changes only, added to [Unreleased] section |
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/context-aware-loading.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# 情境感知標準載入
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/context-aware-loading.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-03-16
|
|
15
|
+
**適用性**: 所有使用 AI 最佳化標準(.ai.yaml)的專案
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 目的
|
|
21
|
+
|
|
22
|
+
本標準定義 AI 工具根據當前任務情境選擇性載入開發標準的協定。AI 工具不會一次載入所有標準,而是始終載入核心集合,並按需啟動額外標準,以減少 token 使用量並提升焦點。
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 快速參考
|
|
27
|
+
|
|
28
|
+
| 概念 | 說明 |
|
|
29
|
+
|------|------|
|
|
30
|
+
| **領域 (Domain)** | 一組相關標準的命名群組(如 `testing`、`quality`) |
|
|
31
|
+
| **常駐載入 (Always-On)** | 無論任務為何都會在每次工作階段載入的標準 |
|
|
32
|
+
| **按需載入 (On-Demand)** | 僅在任務情境符合其領域觸發條件時載入的標準 |
|
|
33
|
+
| **Manifest 領域** | 領域到標準對應的單一事實來源(`manifest.json`) |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 1. 領域分類
|
|
38
|
+
|
|
39
|
+
### 1.1 常駐標準
|
|
40
|
+
|
|
41
|
+
這些標準是每次 AI 互動的基礎,必須始終載入:
|
|
42
|
+
|
|
43
|
+
| 標準 | 原因 |
|
|
44
|
+
|------|------|
|
|
45
|
+
| `anti-hallucination` | 防止每個任務中的虛構 |
|
|
46
|
+
| `commit-message` | 每次工作階段都可能產生提交 |
|
|
47
|
+
| `checkin-standards` | 品質關卡適用於所有變更 |
|
|
48
|
+
| `project-context-memory` | 專案決策必須始終被尊重 |
|
|
49
|
+
|
|
50
|
+
### 1.2 按需載入標準
|
|
51
|
+
|
|
52
|
+
這些標準在偵測到對應的任務情境時自動載入:
|
|
53
|
+
|
|
54
|
+
| 領域 | 觸發條件 | 載入的標準 |
|
|
55
|
+
|------|----------|-----------|
|
|
56
|
+
| `testing` | 撰寫測試、修改測試 | testing、unit-testing、integration-testing |
|
|
57
|
+
| `security` | 認證、授權、密鑰 | security-standards |
|
|
58
|
+
| `deployment` | CI/CD、部署、發布 | deployment-standards、changelog |
|
|
59
|
+
| `documentation` | 文件、README | documentation-writing-standards |
|
|
60
|
+
|
|
61
|
+
## 2. 載入協定
|
|
62
|
+
|
|
63
|
+
### 2.1 工作流程
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
1. 載入常駐標準
|
|
67
|
+
2. 分析使用者任務上下文
|
|
68
|
+
3. 比對任務關鍵字與領域觸發條件
|
|
69
|
+
4. 按需載入匹配的標準
|
|
70
|
+
5. 在工作階段中保持已載入的標準
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 2.2 觸發比對
|
|
74
|
+
|
|
75
|
+
AI 工具應透過以下方式比對觸發條件:
|
|
76
|
+
|
|
77
|
+
| 比對方式 | 說明 |
|
|
78
|
+
|----------|------|
|
|
79
|
+
| 檔案路徑 | 修改 `tests/` 下的檔案觸發 testing 領域 |
|
|
80
|
+
| 使用者指令 | `/tdd`、`/bdd` 等觸發 testing 領域 |
|
|
81
|
+
| 關鍵字 | 使用者訊息中的「測試」、「部署」等關鍵字 |
|
|
82
|
+
|
|
83
|
+
## 相關標準
|
|
84
|
+
|
|
85
|
+
- [專案情境記憶](project-context-memory.md)
|
|
86
|
+
- [反幻覺標準](anti-hallucination.md)
|