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,301 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/acceptance-criteria-traceability.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/acceptance-criteria-traceability.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**適用範圍**: 所有使用規格驅動或測試驅動工作流程的軟體專案
|
|
14
|
+
**Scope**: universal
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 概述
|
|
19
|
+
|
|
20
|
+
驗收標準可追溯性規範定義了如何追蹤驗收標準(AC)、測試實作與覆蓋狀態之間的關係。本規範確保每個 AC 都可被驗證測試,並提供標準化的覆蓋率分析報告格式。
|
|
21
|
+
|
|
22
|
+
## 參考資料
|
|
23
|
+
|
|
24
|
+
| 標準 / 來源 | 內容 |
|
|
25
|
+
|------------|------|
|
|
26
|
+
| ISO/IEC/IEEE 29119-3 | 測試文件 — 可追溯性矩陣 |
|
|
27
|
+
| IEEE 830 | 軟體需求規格 — 可追溯性 |
|
|
28
|
+
| ISTQB Foundation | 基於需求的測試 |
|
|
29
|
+
| INVEST 原則 | 驗收標準品質 |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## AC 對測試的可追溯性矩陣
|
|
34
|
+
|
|
35
|
+
### 標準矩陣格式
|
|
36
|
+
|
|
37
|
+
| AC-ID | 測試檔案 | 測試名稱 | 狀態 | 備注 |
|
|
38
|
+
|-------|---------|---------|------|------|
|
|
39
|
+
| AC-1 | `tests/auth.test.ts` | `should login with valid credentials` | ✅ 已覆蓋 | |
|
|
40
|
+
| AC-2 | `tests/auth.test.ts` | `should reject invalid credentials` | ✅ 已覆蓋 | |
|
|
41
|
+
| AC-3 | — | — | ❌ 未覆蓋 | 被 API 相依性阻擋 |
|
|
42
|
+
| AC-4 | `tests/auth.test.ts` | `should lock account after 5 failures` | ⚠️ 部分覆蓋 | 缺少邊界情況 |
|
|
43
|
+
|
|
44
|
+
### 矩陣欄位
|
|
45
|
+
|
|
46
|
+
| 欄位 | 必填 | 說明 |
|
|
47
|
+
|------|------|------|
|
|
48
|
+
| `AC-ID` | 是 | 規格中的唯一識別碼(例如 AC-1、AC-2) |
|
|
49
|
+
| `Test File` | 是(若已覆蓋) | 實作此 AC 的測試檔案路徑 |
|
|
50
|
+
| `Test Name` | 是(若已覆蓋) | 測試案例或 describe 區塊的名稱 |
|
|
51
|
+
| `Status` | 是 | 覆蓋狀態:`covered`、`partial`、`uncovered` |
|
|
52
|
+
| `Notes` | 否 | 補充資訊(阻擋因素、相依性等) |
|
|
53
|
+
|
|
54
|
+
### 連結慣例
|
|
55
|
+
|
|
56
|
+
測試 **必須** 使用標準注釋參照其來源 AC:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
// TypeScript/JavaScript
|
|
60
|
+
describe('AC-1: User login with valid credentials', () => {
|
|
61
|
+
// @AC AC-1
|
|
62
|
+
// @SPEC SPEC-001
|
|
63
|
+
it('should redirect to dashboard on successful login', () => { ... });
|
|
64
|
+
});
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
# Python
|
|
69
|
+
class TestAC1_UserLogin:
|
|
70
|
+
"""AC-1: User login with valid credentials
|
|
71
|
+
@AC AC-1
|
|
72
|
+
@SPEC SPEC-001
|
|
73
|
+
"""
|
|
74
|
+
def test_redirect_to_dashboard(self): ...
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
```gherkin
|
|
78
|
+
# BDD Feature
|
|
79
|
+
@SPEC-001 @AC-1
|
|
80
|
+
Scenario: User login with valid credentials
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 覆蓋狀態定義
|
|
86
|
+
|
|
87
|
+
### 狀態分類
|
|
88
|
+
|
|
89
|
+
| 狀態 | 符號 | 定義 | 判斷標準 |
|
|
90
|
+
|------|------|------|---------|
|
|
91
|
+
| **已覆蓋** | ✅ | AC 已完整測試 | AC 中所有條件都有對應的測試斷言 |
|
|
92
|
+
| **部分覆蓋** | ⚠️ | AC 已部分測試 | 部分條件已測試,但缺少邊界情況或執行路徑 |
|
|
93
|
+
| **未覆蓋** | ❌ | AC 沒有測試 | 沒有任何測試案例參照此 AC |
|
|
94
|
+
|
|
95
|
+
### 覆蓋率計算
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
AC Coverage % = (covered_count / total_ac_count) × 100
|
|
99
|
+
|
|
100
|
+
Where:
|
|
101
|
+
covered_count = count of AC with status "covered"
|
|
102
|
+
total_ac_count = total number of AC in specification
|
|
103
|
+
partial counts as 0.5 for coverage calculation
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 計算範例
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
SPEC-001: 8 AC total
|
|
110
|
+
- 5 covered (✅)
|
|
111
|
+
- 2 partial (⚠️)
|
|
112
|
+
- 1 uncovered (❌)
|
|
113
|
+
|
|
114
|
+
Coverage = (5 + 2×0.5) / 8 = 6/8 = 75%
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 品質門檻
|
|
120
|
+
|
|
121
|
+
### 預設門檻
|
|
122
|
+
|
|
123
|
+
| 門檻 | 數值 | 強制執行 |
|
|
124
|
+
|------|------|---------|
|
|
125
|
+
| **最低 AC 覆蓋率** | 100% | 正式發布前必須達到 |
|
|
126
|
+
| **簽入最低要求** | 80% | 功能分支合併前必須達到 |
|
|
127
|
+
| **警告級別** | 60% | 觸發覆蓋率警告 |
|
|
128
|
+
|
|
129
|
+
### 可設定門檻
|
|
130
|
+
|
|
131
|
+
專案 **可以** 在設定檔中自訂門檻:
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
{
|
|
135
|
+
"acCoverage": {
|
|
136
|
+
"minimum": 100,
|
|
137
|
+
"checkinMinimum": 80,
|
|
138
|
+
"warningLevel": 60,
|
|
139
|
+
"partialWeight": 0.5
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 門檻例外
|
|
145
|
+
|
|
146
|
+
覆蓋率要求的例外情況 **必須** 記錄在案:
|
|
147
|
+
|
|
148
|
+
| 例外類型 | 允許時機 | 必要文件 |
|
|
149
|
+
|---------|---------|---------|
|
|
150
|
+
| 外部相依性阻擋 | 第三方 API 無法使用 | Issue 連結 + 時程 |
|
|
151
|
+
| 基礎設施限制 | 測試環境限制 | 解決方案計畫 |
|
|
152
|
+
| 延後至下一迭代 | 已與利害關係人確認 | Ticket 參照 |
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## AC 覆蓋率報告格式
|
|
157
|
+
|
|
158
|
+
### 標準報告結構
|
|
159
|
+
|
|
160
|
+
```markdown
|
|
161
|
+
# AC Coverage Report
|
|
162
|
+
|
|
163
|
+
**Specification**: SPEC-001 — User Authentication
|
|
164
|
+
**Generated**: 2026-03-18
|
|
165
|
+
**Coverage**: 75% (6/8 AC)
|
|
166
|
+
|
|
167
|
+
## Summary
|
|
168
|
+
|
|
169
|
+
| Status | Count | Percentage |
|
|
170
|
+
|--------|-------|------------|
|
|
171
|
+
| ✅ Covered | 5 | 62.5% |
|
|
172
|
+
| ⚠️ Partial | 2 | 25.0% |
|
|
173
|
+
| ❌ Uncovered | 1 | 12.5% |
|
|
174
|
+
|
|
175
|
+
## Traceability Matrix
|
|
176
|
+
|
|
177
|
+
| AC-ID | Description | Status | Test Reference |
|
|
178
|
+
|-------|-------------|--------|----------------|
|
|
179
|
+
| AC-1 | Login with valid credentials | ✅ | auth.test.ts:15 |
|
|
180
|
+
| AC-2 | Reject invalid credentials | ✅ | auth.test.ts:32 |
|
|
181
|
+
| AC-3 | Rate limit login attempts | ⚠️ | auth.test.ts:48 (missing edge case) |
|
|
182
|
+
| ... | ... | ... | ... |
|
|
183
|
+
|
|
184
|
+
## Gaps
|
|
185
|
+
|
|
186
|
+
### Uncovered AC
|
|
187
|
+
- **AC-8**: Social login integration — Blocked by OAuth provider sandbox
|
|
188
|
+
|
|
189
|
+
### Partial AC
|
|
190
|
+
- **AC-3**: Rate limit — Missing test for concurrent requests
|
|
191
|
+
- **AC-6**: Session timeout — Missing test for background tab behavior
|
|
192
|
+
|
|
193
|
+
## Action Items
|
|
194
|
+
1. [ ] AC-8: Set up OAuth sandbox environment (ETA: 2026-03-25)
|
|
195
|
+
2. [ ] AC-3: Add concurrent request test
|
|
196
|
+
3. [ ] AC-6: Add background tab test
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### 機器可讀格式
|
|
200
|
+
|
|
201
|
+
```json
|
|
202
|
+
{
|
|
203
|
+
"specId": "SPEC-001",
|
|
204
|
+
"specName": "User Authentication",
|
|
205
|
+
"generatedAt": "2026-03-18T10:00:00Z",
|
|
206
|
+
"coverage": {
|
|
207
|
+
"percentage": 75,
|
|
208
|
+
"covered": 5,
|
|
209
|
+
"partial": 2,
|
|
210
|
+
"uncovered": 1,
|
|
211
|
+
"total": 8
|
|
212
|
+
},
|
|
213
|
+
"matrix": [
|
|
214
|
+
{
|
|
215
|
+
"acId": "AC-1",
|
|
216
|
+
"description": "Login with valid credentials",
|
|
217
|
+
"status": "covered",
|
|
218
|
+
"testFile": "tests/auth.test.ts",
|
|
219
|
+
"testName": "should login with valid credentials",
|
|
220
|
+
"testLine": 15
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## 自動規格生成品質規則
|
|
229
|
+
|
|
230
|
+
### AC 品質要求
|
|
231
|
+
|
|
232
|
+
當從 PRD、使用者故事或需求自動生成規格時,所生成的 AC **必須** 符合以下品質標準:
|
|
233
|
+
|
|
234
|
+
| 標準 | 說明 | 驗證方式 |
|
|
235
|
+
|------|------|---------|
|
|
236
|
+
| **具體(Specific)** | AC 描述具體、可觀察的行為 | 不使用模糊用語(「應該運作正常」、「夠快」) |
|
|
237
|
+
| **可衡量(Measurable)** | AC 有可量化或可驗證的結果 | 包含預期數值、狀態或行為 |
|
|
238
|
+
| **可達成(Achievable)** | AC 在技術上可行 | 參照已知的 API、資料或能力 |
|
|
239
|
+
| **相關(Relevant)** | AC 與功能目的相關 | 對應使用者需求或業務需求 |
|
|
240
|
+
| **可測試(Testable)** | AC 可通過測試驗證 | 可以用 Given-When-Then 表達 |
|
|
241
|
+
|
|
242
|
+
### 規格生成 I/O 契約
|
|
243
|
+
|
|
244
|
+
#### 輸入格式
|
|
245
|
+
|
|
246
|
+
| 輸入類型 | 必要欄位 | 範例 |
|
|
247
|
+
|---------|---------|------|
|
|
248
|
+
| PRD | 標題、說明、使用者故事 | 產品需求文件 |
|
|
249
|
+
| 使用者故事 | As a / I want / So that | 「As a user, I want to login...」 |
|
|
250
|
+
| 功能簡報 | 功能名稱、目標、限制 | 功能說明文件 |
|
|
251
|
+
|
|
252
|
+
#### 輸出格式
|
|
253
|
+
|
|
254
|
+
生成的規格 **必須** 包含:
|
|
255
|
+
|
|
256
|
+
| 區段 | 必填 | 說明 |
|
|
257
|
+
|------|------|------|
|
|
258
|
+
| SPEC ID | 是 | 唯一識別碼(例如 SPEC-001) |
|
|
259
|
+
| 標題 | 是 | 功能名稱 |
|
|
260
|
+
| 說明 | 是 | 功能描述 |
|
|
261
|
+
| 驗收標準 | 是 | 編號 AC 清單(AC-1、AC-2、…) |
|
|
262
|
+
| AC 格式 | 是 | Given-When-Then 或結構化條列 |
|
|
263
|
+
| 可測試性標記 | 是 | 每個 AC 標記為可測試 / 不可測試 |
|
|
264
|
+
|
|
265
|
+
#### 驗證規則
|
|
266
|
+
|
|
267
|
+
1. **AC 數量**:生成的規格 **必須** 至少有 1 個 AC
|
|
268
|
+
2. **AC 唯一性**:不可有重複的 AC 描述
|
|
269
|
+
3. **AC 完整性**:正常路徑 + 至少 1 個錯誤或邊界情況
|
|
270
|
+
4. **AC 可測試性**:100% 的 AC 必須可測試
|
|
271
|
+
5. **可追溯性**:每個 AC 都連結回來源需求
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## 反模式
|
|
276
|
+
|
|
277
|
+
| 反模式 | 影響 | 正確做法 |
|
|
278
|
+
|-------|------|---------|
|
|
279
|
+
| 測試無法追溯 | 無法驗證規格覆蓋率 | 測試中一律標注 AC-ID |
|
|
280
|
+
| 將部分覆蓋視為完整覆蓋 | 對覆蓋率產生錯誤信心 | 使用誠實的狀態分類 |
|
|
281
|
+
| 忽略未覆蓋的 AC | 驗證存在缺口 | 追蹤並規劃所有 AC 的覆蓋工作 |
|
|
282
|
+
| AC 缺乏可測試性 | 無法驗證 | 確保所有 AC 都可測試 |
|
|
283
|
+
| 覆蓋但缺乏斷言 | 測試執行但不驗證任何內容 | 確認測試含有有意義的斷言 |
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## 相關規範
|
|
288
|
+
|
|
289
|
+
- [正向推導規範](forward-derivation-standards.md) — 從 AC 生成測試
|
|
290
|
+
- [規格驅動開發](spec-driven-development.md) — AC 定義格式
|
|
291
|
+
- [測試規範](testing-standards.md) — 測試實作規範
|
|
292
|
+
- [簽入規範](checkin-standards.md) — 簽入的覆蓋率門檻
|
|
293
|
+
- [測試治理](test-governance.md) — 完成標準
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
## 版本歷程
|
|
298
|
+
|
|
299
|
+
| 版本 | 日期 | 變更內容 |
|
|
300
|
+
|------|------|---------|
|
|
301
|
+
| 1.0.0 | 2026-03-18 | 初始版本 — 可追溯性矩陣、覆蓋率計算、規格生成規則 |
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/acceptance-test-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
|
+
# 驗收測試驅動開發(ATDD)標準
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/acceptance-test-driven-development.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.1.0
|
|
14
|
+
**最後更新**: 2026-01-25
|
|
15
|
+
**適用性**: 所有採用驗收測試驅動開發的專案
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**業界標準**: 無(2003-2006 實踐)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 摘要
|
|
22
|
+
|
|
23
|
+
驗收測試驅動開發(ATDD)是一種傳統開發方法論(2003-2006),強調在開發開始之前透過協作定義驗收條件。整個團隊(業務、開發和測試)共同合作,透過可執行的驗收測試來定義「完成」的標準。
|
|
24
|
+
|
|
25
|
+
ATDD 的核心價值在於 **Three Amigos**(三方協作)模式,由客戶/PO、開發人員和測試人員共同定義驗收條件。ATDD 是定義驗收條件的一種可選協作方法 — 團隊也可以透過訪談、PRD 或利害關係人討論來收集需求,達成類似的成果。
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
**完整指南:[ATDD 指南](../../../methodologies/guides/atdd-guide.md)**
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 快速參考
|
|
34
|
+
|
|
35
|
+
| 面向 | 說明 |
|
|
36
|
+
|------|------|
|
|
37
|
+
| **核心工作流** | 研討會 → 精煉 → 開發 → 展示 → 完成 |
|
|
38
|
+
| **關鍵價值** | Three Amigos 協作(PO + 開發 + QA) |
|
|
39
|
+
| **測試層級** | 系統/驗收測試 |
|
|
40
|
+
| **參與者** | 整個團隊 + 利害關係人 |
|
|
41
|
+
| **工具** | FitNesse、Cucumber、Robot Framework |
|
|
42
|
+
|
|
43
|
+
## 相關標準
|
|
44
|
+
|
|
45
|
+
- [行為驅動開發](behavior-driven-development.md)
|
|
46
|
+
- [測試驅動開發](../../../core/test-driven-development.md)
|
|
47
|
+
- [規格驅動開發](spec-driven-development.md)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/accessibility-standards.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/accessibility-standards.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-01-29
|
|
15
|
+
**適用性**: 所有具有使用者介面的軟體專案
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**業界標準**: WCAG 2.1/2.2、WAI-ARIA 1.2、Section 508
|
|
18
|
+
**參考**: [w3.org](https://www.w3.org/WAI/WCAG21/quickref/)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 目的
|
|
23
|
+
|
|
24
|
+
本標準定義建立無障礙軟體的完整指南,確保軟體能被各種能力的人使用。本標準符合國際標準(包括 WCAG 2.1),並支持全球各地的無障礙法規合規。
|
|
25
|
+
|
|
26
|
+
**參考標準**:
|
|
27
|
+
- [WCAG 2.1](https://www.w3.org/WAI/WCAG21/quickref/) - 網頁內容無障礙指南
|
|
28
|
+
- [WCAG 2.2](https://www.w3.org/TR/WCAG22/) - 最新 WCAG 版本(2023)
|
|
29
|
+
- [WAI-ARIA 1.2](https://www.w3.org/TR/wai-aria-1.2/) - 無障礙富網際網路應用程式
|
|
30
|
+
- [Section 508](https://www.section508.gov/) - 美國聯邦無障礙需求
|
|
31
|
+
- [EN 301 549](https://www.etsi.org/deliver/etsi_en/301500_301599/301549/) - 歐洲無障礙標準
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 無障礙原則(POUR)
|
|
36
|
+
|
|
37
|
+
| 原則 | 說明 | 範例 |
|
|
38
|
+
|------|------|------|
|
|
39
|
+
| **可感知 (Perceivable)** | 資訊和使用者介面元件必須以使用者可感知的方式呈現 | 替代文字、字幕、對比度 |
|
|
40
|
+
| **可操作 (Operable)** | 使用者介面元件和導航必須可操作 | 鍵盤導航、充足時間、防癲癇 |
|
|
41
|
+
| **可理解 (Understandable)** | 資訊和使用者介面的操作必須可理解 | 可讀性、可預測、輸入協助 |
|
|
42
|
+
| **穩健 (Robust)** | 內容必須足夠穩健,能被各種使用者代理正確解讀 | 相容性、解析、名稱/角色/值 |
|
|
43
|
+
|
|
44
|
+
## WCAG 合規等級
|
|
45
|
+
|
|
46
|
+
| 等級 | 說明 | 建議 |
|
|
47
|
+
|------|------|------|
|
|
48
|
+
| **A** | 最低要求 — 所有專案必須達成 | 基礎無障礙需求 |
|
|
49
|
+
| **AA** | 建議等級 — 大多數法規要求此等級 | 涵蓋大多數使用者需求 |
|
|
50
|
+
| **AAA** | 最高等級 — 特定情境的最佳實踐 | 政府、醫療、教育 |
|
|
51
|
+
|
|
52
|
+
## 鍵盤導航
|
|
53
|
+
|
|
54
|
+
| 需求 | 說明 |
|
|
55
|
+
|------|------|
|
|
56
|
+
| 所有互動元素可透過鍵盤存取 | Tab、Shift+Tab、Enter、Space、方向鍵 |
|
|
57
|
+
| 焦點指示器可見 | 使用者能清楚看到目前焦點位置 |
|
|
58
|
+
| 無鍵盤陷阱 | 使用者可以用鍵盤離開所有元件 |
|
|
59
|
+
| 焦點順序合邏輯 | Tab 順序遵循視覺佈局 |
|
|
60
|
+
|
|
61
|
+
## 色彩與對比
|
|
62
|
+
|
|
63
|
+
| 元素 | AA 等級 | AAA 等級 |
|
|
64
|
+
|------|---------|----------|
|
|
65
|
+
| 一般文字 | 4.5:1 | 7:1 |
|
|
66
|
+
| 大型文字(18pt+) | 3:1 | 4.5:1 |
|
|
67
|
+
| UI 元件 | 3:1 | — |
|
|
68
|
+
| 非文字內容 | 3:1 | — |
|
|
69
|
+
|
|
70
|
+
## 測試清單
|
|
71
|
+
|
|
72
|
+
| 測試項目 | 工具 |
|
|
73
|
+
|----------|------|
|
|
74
|
+
| 自動化無障礙掃描 | axe-core、Lighthouse |
|
|
75
|
+
| 鍵盤導航測試 | 手動測試 |
|
|
76
|
+
| 螢幕閱讀器測試 | NVDA、VoiceOver、JAWS |
|
|
77
|
+
| 色彩對比驗證 | Colour Contrast Analyser |
|
|
78
|
+
| 表單標籤驗證 | axe-core、WAVE |
|
|
79
|
+
|
|
80
|
+
## 相關標準
|
|
81
|
+
|
|
82
|
+
- [效能標準](performance-standards.md)
|
|
83
|
+
- [安全標準](security-standards.md)
|
|
84
|
+
- [測試標準](testing-standards.md)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/agent-dispatch.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/agent-dispatch.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-03-20
|
|
15
|
+
**適用性**: 使用多代理編排的 AI 輔助開發
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**靈感來源**: [Superpowers](https://github.com/obra/superpowers) — dispatching-parallel-agents、subagent-driven-development (MIT)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 目的
|
|
22
|
+
|
|
23
|
+
定義 AI 子代理的並行派遣、工作協調與狀態回報標準。確保高效並行化的同時,防止檔案衝突與整合失敗。
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 術語表
|
|
28
|
+
|
|
29
|
+
| 術語 | 定義 |
|
|
30
|
+
|------|------|
|
|
31
|
+
| 子代理 (Sub-agent) | 由編排器產生的 AI 代理,負責處理特定任務 |
|
|
32
|
+
| 獨立域 (Independent Domain) | 與其他任務無共享可變狀態的任務範圍 |
|
|
33
|
+
| 狀態協定 (Status Protocol) | 子代理必須回報的標準化回傳狀態 |
|
|
34
|
+
| 檔案衝突 (File Conflict) | 多個代理同時修改同一檔案的情況 |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 核心原則 — 先獨立再並行
|
|
39
|
+
|
|
40
|
+
> **派遣代理並行之前,必須驗證其任務域是獨立的(無共享可變狀態)。**
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Prompt 設計原則
|
|
45
|
+
|
|
46
|
+
每個子代理的 prompt 必須包含:
|
|
47
|
+
|
|
48
|
+
| 元素 | 說明 |
|
|
49
|
+
|------|------|
|
|
50
|
+
| **任務邊界** | 明確定義子代理可以操作的檔案與範圍 |
|
|
51
|
+
| **禁止清單** | 不可修改的檔案路徑 |
|
|
52
|
+
| **回傳格式** | 要求使用標準狀態協定回報結果 |
|
|
53
|
+
| **超時機制** | 每個任務的最大執行時間 |
|
|
54
|
+
|
|
55
|
+
## 狀態協定
|
|
56
|
+
|
|
57
|
+
子代理必須使用以下狀態之一回報:
|
|
58
|
+
|
|
59
|
+
| 狀態 | 說明 | 後續動作 |
|
|
60
|
+
|------|------|----------|
|
|
61
|
+
| `DONE` | 任務成功完成 | 編排器繼續下一步 |
|
|
62
|
+
| `BLOCKED` | 遇到無法自行解決的阻礙 | 編排器介入或重新分配 |
|
|
63
|
+
| `FAILED` | 任務失敗 | 編排器決定重試或跳過 |
|
|
64
|
+
| `NEEDS_REVIEW` | 完成但需要人工審查 | 暫停等待人工確認 |
|
|
65
|
+
|
|
66
|
+
## 並行派遣條件
|
|
67
|
+
|
|
68
|
+
在派遣前必須驗證:
|
|
69
|
+
|
|
70
|
+
| 檢查項目 | 驗證方式 |
|
|
71
|
+
|----------|----------|
|
|
72
|
+
| 無共享可變檔案 | 比較各任務的檔案路徑清單 |
|
|
73
|
+
| 無執行順序依賴 | 驗證任務之間無因果關係 |
|
|
74
|
+
| 獨立測試範圍 | 各任務的測試套件不重疊 |
|
|
75
|
+
|
|
76
|
+
## 衝突解決
|
|
77
|
+
|
|
78
|
+
當無法完全避免共享狀態時:
|
|
79
|
+
|
|
80
|
+
1. **序列化** — 將衝突的任務改為依序執行
|
|
81
|
+
2. **分區** — 將共享檔案拆分為獨立區段
|
|
82
|
+
3. **鎖定** — 對共享資源實施寫入鎖
|
|
83
|
+
|
|
84
|
+
## 相關標準
|
|
85
|
+
|
|
86
|
+
- [Git Worktree 隔離](git-worktree.md)
|
|
87
|
+
- [分支完成工作流程](branch-completion.md)
|
|
88
|
+
- [AI 模型選擇策略](model-selection.md)
|
|
89
|
+
- [驗證證據](verification-evidence.md)
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/ai-agreement-standards.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
|
+
# AI 協議標準
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../core/ai-agreement-standards.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-01-29
|
|
15
|
+
**適用性**: 所有 AI 輔助開發工作階段
|
|
16
|
+
**範圍**: 通用 (Universal)
|
|
17
|
+
**業界標準**: ISO 12207 §6.1
|
|
18
|
+
**ISO 12207 對應**: 協議程序 (6.1)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 目的
|
|
23
|
+
|
|
24
|
+
本標準將人類(需求方)與 AI(供應方)之間的互動形式化為可驗證的協議。在「Vibe Coding」中,prompt 上下文作為管控 AI 行為和交付物的合約。
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 1. 上下文合約
|
|
29
|
+
|
|
30
|
+
每個 AI 工作階段必須以清晰的上下文合約開始。通常透過系統 prompt 檔案實現(如 `CLAUDE.md`、`.cursorrules`)。
|
|
31
|
+
|
|
32
|
+
### 1.1 合約組成
|
|
33
|
+
|
|
34
|
+
有效的上下文合約必須定義:
|
|
35
|
+
|
|
36
|
+
| 組成部分 | 說明 | 範例 |
|
|
37
|
+
|----------|------|------|
|
|
38
|
+
| **角色定義** | 使用者 vs. AI 的代表身份 | 「你是一位資深後端工程師...」 |
|
|
39
|
+
| **工作範圍** | 操作邊界 | 「只修改 `src/utils/` 中的檔案,不要碰 `config/`。」 |
|
|
40
|
+
| **約束法則** | 不可協商的規則 | 「不可硬編碼密鑰。必須使用 TypeScript。」 |
|
|
41
|
+
| **驗收條件** | 完成定義 | 「程式碼必須通過 `npm test` 和 `npm run lint`。」 |
|
|
42
|
+
|
|
43
|
+
## 2. 需求提案(RFP)標準
|
|
44
|
+
|
|
45
|
+
複雜任務應以「RFP」(需求提案)格式組織,而非簡單的對話訊息。
|
|
46
|
+
|
|
47
|
+
### RFP 範本
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## 背景
|
|
51
|
+
[描述現狀和為什麼需要此變更]
|
|
52
|
+
|
|
53
|
+
## 範圍
|
|
54
|
+
[明確列出要修改的檔案和功能]
|
|
55
|
+
|
|
56
|
+
## 驗收條件
|
|
57
|
+
- [ ] 條件 1
|
|
58
|
+
- [ ] 條件 2
|
|
59
|
+
|
|
60
|
+
## 約束
|
|
61
|
+
- [不可做的事項]
|
|
62
|
+
- [技術限制]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 3. 變更管理
|
|
66
|
+
|
|
67
|
+
| 變更類型 | 處理方式 |
|
|
68
|
+
|----------|----------|
|
|
69
|
+
| **範圍擴增** | AI 必須標示超出原始合約的請求 |
|
|
70
|
+
| **需求變更** | 必須更新上下文合約後才能執行 |
|
|
71
|
+
| **緊急修復** | 可繞過合約但必須事後補充文件 |
|
|
72
|
+
|
|
73
|
+
## 4. 交付驗證
|
|
74
|
+
|
|
75
|
+
每次交付必須包含:
|
|
76
|
+
|
|
77
|
+
| 項目 | 說明 |
|
|
78
|
+
|------|------|
|
|
79
|
+
| **自我驗證** | AI 在交付前執行合約中定義的驗收條件 |
|
|
80
|
+
| **變更摘要** | 列出所有修改的檔案和變更原因 |
|
|
81
|
+
| **風險揭露** | 標示任何潛在風險或未解決的問題 |
|
|
82
|
+
|
|
83
|
+
## 相關標準
|
|
84
|
+
|
|
85
|
+
- [虛擬組織標準](virtual-organization-standards.md)
|
|
86
|
+
- [反幻覺標準](anti-hallucination.md)
|
|
87
|
+
- [驗證證據](verification-evidence.md)
|