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,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/model-selection.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
|
+
> **语言**: [English](../../../core/model-selection.md) | 简体中文
|
|
10
|
+
|
|
11
|
+
# AI 模型选择策略
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最后更新**: 2026-03-20
|
|
15
|
+
**适用范围**: 使用多层级模型的 AI 辅助开发
|
|
16
|
+
**范围**: universal
|
|
17
|
+
**灵感来源**: [Superpowers](https://github.com/obra/superpowers) — subagent-driven-development (MIT)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 目的
|
|
22
|
+
|
|
23
|
+
定义基于任务复杂度的 AI 模型分级选择策略。使用能胜任的最便宜模型,仅在必要时升级。
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 术语表
|
|
28
|
+
|
|
29
|
+
| 术语 | 定义 |
|
|
30
|
+
|------|------|
|
|
31
|
+
| 模型层级 | 代表模型能力和成本的分类级别 |
|
|
32
|
+
| 复杂度信号 | 表明所需能力的任务可观察特征 |
|
|
33
|
+
| 升级 | 在低层级模型失败后升级到更高层级模型 |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 核心原则 — 成本效率
|
|
38
|
+
|
|
39
|
+
> **始终使用与任务复杂度匹配的最便宜模型层级。**
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 三层模型分类
|
|
44
|
+
|
|
45
|
+
### 第 1 层:快速层(Fast)
|
|
46
|
+
|
|
47
|
+
**用途**: 机械性实现 — 单一文件、明确规格、无需判断。
|
|
48
|
+
|
|
49
|
+
**复杂度信号**:
|
|
50
|
+
- 修改单一文件
|
|
51
|
+
- 规格完全明确
|
|
52
|
+
- 不需要设计判断
|
|
53
|
+
- 重复性、基于模式的工作
|
|
54
|
+
|
|
55
|
+
**示例**:
|
|
56
|
+
- 更新 `package.json` 版本号
|
|
57
|
+
- 添加新的 export 语句
|
|
58
|
+
- 修复拼写错误
|
|
59
|
+
- 在文件中重命名变量
|
|
60
|
+
|
|
61
|
+
### 第 2 层:标准层(Standard)
|
|
62
|
+
|
|
63
|
+
**用途**: 需要跨文件理解和适度判断的任务。
|
|
64
|
+
|
|
65
|
+
**复杂度信号**:
|
|
66
|
+
- 修改 2-5 个文件
|
|
67
|
+
- 需要理解上下文
|
|
68
|
+
- 需要适度的设计判断
|
|
69
|
+
- 遵循已有模式
|
|
70
|
+
|
|
71
|
+
**示例**:
|
|
72
|
+
- 实现新的 API 端点
|
|
73
|
+
- 添加带有测试的新功能
|
|
74
|
+
- 重构模块
|
|
75
|
+
|
|
76
|
+
### 第 3 层:推理层(Reasoning)
|
|
77
|
+
|
|
78
|
+
**用途**: 需要深度分析、架构决策或创造性问题解决的任务。
|
|
79
|
+
|
|
80
|
+
**复杂度信号**:
|
|
81
|
+
- 修改 5 个以上文件
|
|
82
|
+
- 需要架构决策
|
|
83
|
+
- 涉及权衡取舍
|
|
84
|
+
- 需要创新解决方案
|
|
85
|
+
|
|
86
|
+
**示例**:
|
|
87
|
+
- 设计新的系统架构
|
|
88
|
+
- 调试复杂的竞态条件
|
|
89
|
+
- 大规模重构
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 升级规则
|
|
94
|
+
|
|
95
|
+
| 条件 | 动作 |
|
|
96
|
+
|------|------|
|
|
97
|
+
| 低层级模型产出错误结果 | 升级到更高层级 |
|
|
98
|
+
| 任务比预期更复杂 | 重新评估复杂度信号 |
|
|
99
|
+
| 连续 2 次失败 | 直接升级到推理层 |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 相关标准
|
|
104
|
+
|
|
105
|
+
- [代理派遣与并行协调](agent-dispatch.md)
|
|
106
|
+
- [验证证据](verification-evidence.md)
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 许可证
|
|
111
|
+
|
|
112
|
+
本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/performance-standards.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
|
+
> **语言**: [English](../../../core/performance-standards.md) | 简体中文
|
|
10
|
+
|
|
11
|
+
# 性能标准
|
|
12
|
+
|
|
13
|
+
**版本**: 1.1.0
|
|
14
|
+
**最后更新**: 2026-01-29
|
|
15
|
+
**适用范围**: 所有软件项目
|
|
16
|
+
**范围**: universal
|
|
17
|
+
**行业标准**: ISO/IEC 25010 Performance Efficiency
|
|
18
|
+
**参考**: [sre.google](https://sre.google/books/)
|
|
19
|
+
|
|
20
|
+
> **详细说明和优化技术请参阅 [性能指南](../../../core/guides/performance-guide.md)**
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 目的
|
|
25
|
+
|
|
26
|
+
本标准定义软件性能工程的综合指南,涵盖性能需求、测试方法和监控实践。
|
|
27
|
+
|
|
28
|
+
**参考标准**:
|
|
29
|
+
- [ISO/IEC 25010:2011](https://www.iso.org/standard/35733.html) - 性能效率
|
|
30
|
+
- [Google SRE Book](https://sre.google/books/) - 站点可靠性工程
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 性能需求模板
|
|
35
|
+
|
|
36
|
+
### NFR 格式
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
### NFR-PERF-XXX: [标题]
|
|
40
|
+
|
|
41
|
+
**类别**: 性能效率 > [时间行为/资源利用/容量]
|
|
42
|
+
**优先级**: P1/P2/P3
|
|
43
|
+
|
|
44
|
+
**需求**:
|
|
45
|
+
| 百分位 | 目标 | 最大值 |
|
|
46
|
+
|--------|------|--------|
|
|
47
|
+
| p50 | Xms | Yms |
|
|
48
|
+
| p95 | Xms | Yms |
|
|
49
|
+
| p99 | Xms | Yms |
|
|
50
|
+
|
|
51
|
+
**条件**: [负载、数据量等]
|
|
52
|
+
**度量**: [工具、采样、报告]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 常见性能目标
|
|
58
|
+
|
|
59
|
+
| 系统类型 | 响应时间(p95) | 吞吐量 | 可用性 |
|
|
60
|
+
|---------|----------------|--------|--------|
|
|
61
|
+
| **电商** | < 200ms | 1000+ rps | 99.9% |
|
|
62
|
+
| **内部工具** | < 500ms | 100+ rps | 99.5% |
|
|
63
|
+
| **批处理** | 不适用 | 10K+ 记录/分钟 | 99% |
|
|
64
|
+
| **实时系统** | < 50ms (p99) | 10K+ rps | 99.99% |
|
|
65
|
+
| **API 网关** | < 100ms | 5K+ rps | 99.95% |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 性能测试类型
|
|
70
|
+
|
|
71
|
+
| 测试类型 | 目的 | 工具 |
|
|
72
|
+
|---------|------|------|
|
|
73
|
+
| **负载测试** | 验证正常负载下的性能 | k6, JMeter, Gatling |
|
|
74
|
+
| **压力测试** | 发现系统的断裂点 | k6, Locust |
|
|
75
|
+
| **浸泡测试** | 检测内存泄漏和资源耗尽 | k6(长时间运行) |
|
|
76
|
+
| **峰值测试** | 验证突发流量处理能力 | k6, JMeter |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 性能监控
|
|
81
|
+
|
|
82
|
+
### 关键指标
|
|
83
|
+
|
|
84
|
+
| 指标 | 描述 | 告警阈值 |
|
|
85
|
+
|------|------|---------|
|
|
86
|
+
| 响应时间(p95) | 95% 请求的响应时间 | > 目标的 1.5× |
|
|
87
|
+
| 错误率 | 失败请求的百分比 | > 1% |
|
|
88
|
+
| 吞吐量 | 每秒请求数 | < 预期的 80% |
|
|
89
|
+
| CPU 使用率 | 处理器利用率 | > 80% |
|
|
90
|
+
| 内存使用率 | 内存利用率 | > 85% |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 相关标准
|
|
95
|
+
|
|
96
|
+
- [部署标准](deployment-standards.md)
|
|
97
|
+
- [安全标准](security-standards.md)
|
|
98
|
+
- [测试标准](testing-standards.md)
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 许可证
|
|
103
|
+
|
|
104
|
+
本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/pipeline-integration-standards.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Pipeline 整合标准
|
|
10
|
+
|
|
11
|
+
> **语言**: [English](../../../core/pipeline-integration-standards.md) | 简体中文
|
|
12
|
+
|
|
13
|
+
**适用范围**: 所有使用自动化开发 Pipeline 的软件项目
|
|
14
|
+
**Scope**: universal
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 概述
|
|
19
|
+
|
|
20
|
+
Pipeline 整合标准定义自动化开发 Pipeline 应如何读取项目配置、执行开发阶段,以及根据项目情境调整行为。本标准为 AI 辅助及 CI/CD 驱动的开发工作流程提供一套与语言、框架无关的通用模型。
|
|
21
|
+
|
|
22
|
+
## 参考资料
|
|
23
|
+
|
|
24
|
+
| 标准/来源 | 内容 |
|
|
25
|
+
|-----------|------|
|
|
26
|
+
| ISO/IEC 12207 | 软件生命周期流程 |
|
|
27
|
+
| ISO/IEC 15504 (SPICE) | 流程评估 |
|
|
28
|
+
| Continuous Delivery(Jez Humble) | Pipeline 设计原则 |
|
|
29
|
+
| DORA Metrics | 部署频率、前置时间、MTTR、变更失败率 |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 配置契约
|
|
34
|
+
|
|
35
|
+
### UDS 配置区块
|
|
36
|
+
|
|
37
|
+
使用自动化 Pipeline 的项目必须在标准配置区块中声明其 Pipeline 偏好。配置区块通常放置于项目的 manifest 文件中(例如 `manifest.json`、`uds.config.json` 或等效文件)。
|
|
38
|
+
|
|
39
|
+
### 标准开关名称
|
|
40
|
+
|
|
41
|
+
| 开关 | 类型 | 默认值 | 描述 |
|
|
42
|
+
|------|------|--------|------|
|
|
43
|
+
| `autoSpecGeneration` | boolean | false | 自动从 PRD/用户故事产生 SDD 规格 |
|
|
44
|
+
| `autoDerive` | boolean | false | 规格核准后自动衍生 BDD/TDD/ATDD |
|
|
45
|
+
| `autoTDD` | boolean | false | 衍生完成后自动进入 TDD RED 阶段 |
|
|
46
|
+
| `autoCheckin` | boolean | false | 所有品质关卡通过后自动提交 |
|
|
47
|
+
| `autoBatch` | boolean | false | 自动批次累积待提交的变更 |
|
|
48
|
+
|
|
49
|
+
### 开关语义
|
|
50
|
+
|
|
51
|
+
每个开关控制特定的 Pipeline 行为:
|
|
52
|
+
|
|
53
|
+
| 开关 | 开启时 | 关闭时 |
|
|
54
|
+
|------|--------|--------|
|
|
55
|
+
| `autoSpecGeneration` | Pipeline 从输入产生规格草稿并提交审查 | 需手动创建规格 |
|
|
56
|
+
| `autoDerive` | 规格核准后 Pipeline 自动执行衍生(BDD/TDD/ATDD) | 通过命令手动衍生 |
|
|
57
|
+
| `autoTDD` | 衍生完成后 Pipeline 设定 RED 状态并创建测试骨架 | 开发者手动进入 TDD |
|
|
58
|
+
| `autoCheckin` | 所有关卡通过(测试、lint、覆盖率)后 Pipeline 自动提交 | 开发者手动提交 |
|
|
59
|
+
| `autoBatch` | Pipeline 累积变更并在达到阈值时合并 | 每次变更个别提交 |
|
|
60
|
+
|
|
61
|
+
### 配置范例
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"pipeline": {
|
|
66
|
+
"autoSpecGeneration": true,
|
|
67
|
+
"autoDerive": true,
|
|
68
|
+
"autoTDD": true,
|
|
69
|
+
"autoCheckin": false,
|
|
70
|
+
"autoBatch": false,
|
|
71
|
+
"context": "greenfield"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 配置读取规则
|
|
77
|
+
|
|
78
|
+
1. **安全默认值**:所有开关默认为 OFF(手动模式)
|
|
79
|
+
2. **明确声明**:Pipeline 必须在读取配置后才能确定开关状态,不得假设
|
|
80
|
+
3. **运行时覆写**:CLI flag 或环境变量可覆写文件式配置
|
|
81
|
+
4. **验证**:Pipeline 在执行前必须验证配置值
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Pipeline 阶段模型
|
|
86
|
+
|
|
87
|
+
### 标准六阶段 Pipeline
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
|
|
91
|
+
│ 1.PLAN │───▶│ 2.SPEC │───▶│ 3.DERIVE │───▶│ 4.BUILD │───▶│ 5.REVIEW │───▶│6.CHECKIN │
|
|
92
|
+
│ 需求分析 │ │ 规格撰写 │ │ 测试衍生 │ │ 实现构建 │ │ 审查验证 │ │ 提交签入 │
|
|
93
|
+
└──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 阶段定义
|
|
97
|
+
|
|
98
|
+
| 阶段 | 输入 | 输出 | 品质关卡 |
|
|
99
|
+
|------|------|------|---------|
|
|
100
|
+
| **Plan(规划)** | PRD、用户故事、需求 | 结构化需求文档 | 需求已审查 |
|
|
101
|
+
| **Spec(规格)** | 需求 | 含验收条件的 SDD 规格 | 规格已核准 |
|
|
102
|
+
| **Derive(衍生)** | 已核准的规格 | BDD 场景、TDD 骨架、ATDD 表格 | 1:1 验收条件对应已验证 |
|
|
103
|
+
| **Build(构建)** | 测试骨架 + 规格 | 实现代码 | 测试通过(RED→GREEN) |
|
|
104
|
+
| **Review(审查)** | 实现 + 测试 | 审查意见 | 审查已核准 |
|
|
105
|
+
| **Checkin(签入)** | 已核准的变更 | 已提交的代码 | 所有品质关卡通过 |
|
|
106
|
+
|
|
107
|
+
### 阶段依赖性
|
|
108
|
+
|
|
109
|
+
- 每个阶段的输出为下一阶段的输入
|
|
110
|
+
- 未经明确配置不得跳过任何阶段
|
|
111
|
+
- 品质关卡失败必须阻挡进入下一阶段
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 开发情境分类
|
|
116
|
+
|
|
117
|
+
### 情境类型
|
|
118
|
+
|
|
119
|
+
| 情境 | 描述 | 典型场景 |
|
|
120
|
+
|------|------|---------|
|
|
121
|
+
| **Greenfield** | 全新项目或功能,无既有代码 | 新增模块、新服务、新产品 |
|
|
122
|
+
| **Brownfield** | 需修改的既有代码库 | 为旧有代码新增功能、重构 |
|
|
123
|
+
| **Adhoc** | 小型、独立的变更 | Bug 修复、配置变更、Hotfix |
|
|
124
|
+
|
|
125
|
+
### 情境策略矩阵
|
|
126
|
+
|
|
127
|
+
| 阶段 | Greenfield | Brownfield | Adhoc |
|
|
128
|
+
|------|-----------|------------|-------|
|
|
129
|
+
| **Plan** | 完整需求分析 | 优先进行影响分析 | 快速评估 |
|
|
130
|
+
| **Spec** | 完整 SDD | Delta SDD(仅变更部分) | 可选(重大变更才需要) |
|
|
131
|
+
| **Derive** | 完整衍生 | 针对性衍生 | 跳过(除非复杂) |
|
|
132
|
+
| **Build** | 从零开始 TDD | 修改既有代码 + 新测试 | 直接修复 |
|
|
133
|
+
| **Review** | 完整审查 | 聚焦于变更的审查 | 快速审查 |
|
|
134
|
+
| **Checkin** | 标准签入 | 标准签入 | 标准签入 |
|
|
135
|
+
|
|
136
|
+
### 情境自动检测启发式规则
|
|
137
|
+
|
|
138
|
+
Pipeline 应使用下列信号自动检测情境:
|
|
139
|
+
|
|
140
|
+
| 信号 | Greenfield 指标 | Brownfield 指标 | Adhoc 指标 |
|
|
141
|
+
|------|----------------|----------------|-----------|
|
|
142
|
+
| 文件数量 | 无文件或极少文件 | 已建立的代码库 | 不适用 |
|
|
143
|
+
| 变更范围 | 新目录/模块 | 修改既有文件 | 变更 1–3 个文件 |
|
|
144
|
+
| 测试覆盖率 | 无既有测试 | 既有测试套件 | 既有测试已涵盖该区域 |
|
|
145
|
+
| 规格是否存在 | 无规格 | 既有规格 | 可能有也可能没有 |
|
|
146
|
+
|
|
147
|
+
### 情境覆写
|
|
148
|
+
|
|
149
|
+
开发者可在配置中明确指定情境:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"pipeline": {
|
|
154
|
+
"context": "brownfield"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
或通过 CLI flag 指定:
|
|
160
|
+
```bash
|
|
161
|
+
pipeline run --context=greenfield
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 整合验证
|
|
167
|
+
|
|
168
|
+
### Pipeline 实现者检查清单
|
|
169
|
+
|
|
170
|
+
实现本标准的整合者必须验证以下项目:
|
|
171
|
+
|
|
172
|
+
| 检查项目 | 要求 | 验证方式 |
|
|
173
|
+
|---------|------|---------|
|
|
174
|
+
| 配置读取 | Pipeline 从配置中读取所有开关 | 单元测试:模拟配置 → 验证行为 |
|
|
175
|
+
| 默认值处理 | 未配置的开关默认为 OFF | 单元测试:空配置 → 手动模式 |
|
|
176
|
+
| 阶段执行 | 6 个阶段依序执行 | 整合测试:完整 Pipeline 执行 |
|
|
177
|
+
| 关卡强制执行 | 失败的关卡阻挡下一阶段 | 整合测试:注入失败 → 验证阻挡 |
|
|
178
|
+
| 情境感知 | Pipeline 根据情境类型调整 | 整合测试:各情境 → 验证阶段 |
|
|
179
|
+
| 覆写支持 | CLI flag 覆写文件配置 | 单元测试:文件 + flag → flag 优先 |
|
|
180
|
+
|
|
181
|
+
### 验证规则
|
|
182
|
+
|
|
183
|
+
1. **配置 Schema 验证**:对照已知开关名称进行验证;对未知键值发出警告
|
|
184
|
+
2. **开关类型安全**:所有开关必须为 boolean;拒绝非 boolean 值
|
|
185
|
+
3. **情境枚举值**:情境必须为以下其中之一:`greenfield`、`brownfield`、`adhoc`
|
|
186
|
+
4. **阶段完整性**:Pipeline 必须报告哪些阶段已执行、哪些已跳过
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 反模式
|
|
191
|
+
|
|
192
|
+
| 反模式 | 影响 | 正确做法 |
|
|
193
|
+
|--------|------|---------|
|
|
194
|
+
| 硬编码 Pipeline 行为 | 无法适应项目需求 | 在运行时读取配置 |
|
|
195
|
+
| 忽略情境类型 | 执行错误的阶段 | 检测或读取情境配置 |
|
|
196
|
+
| 跳过品质关卡 | 有问题的代码进入代码库 | 在每个阶段强制执行关卡 |
|
|
197
|
+
| 全有或全无的自动化 | 用户完全回避 Pipeline | 允许逐开关的细粒度控制 |
|
|
198
|
+
| 静默跳过阶段 | 失去可追踪性 | 记录并报告所有跳过决策 |
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## 最佳实践
|
|
203
|
+
|
|
204
|
+
### 应做事项
|
|
205
|
+
|
|
206
|
+
- ✅ 在执行任何阶段前先读取配置
|
|
207
|
+
- ✅ 所有开关默认为 OFF(安全默认值)
|
|
208
|
+
- ✅ 在 Pipeline 启动时记录哪些开关为启用状态
|
|
209
|
+
- ✅ 报告阶段执行状态(已执行/已跳过/失败)
|
|
210
|
+
- ✅ 允许逐阶段的细粒度开关控制
|
|
211
|
+
- ✅ 在使用前验证配置 Schema
|
|
212
|
+
- ✅ 支持通过 CLI 覆写配置
|
|
213
|
+
|
|
214
|
+
### 不应做事项
|
|
215
|
+
|
|
216
|
+
- ❌ 未读取配置即假设开关状态
|
|
217
|
+
- ❌ 静默跳过阶段而不记录
|
|
218
|
+
- ❌ 忽略品质关卡失败
|
|
219
|
+
- ❌ 硬编码 Pipeline 行为
|
|
220
|
+
- ❌ 混用情境策略(例如:Greenfield 规格 + Adhoc 构建)
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 相关标准
|
|
225
|
+
|
|
226
|
+
- [规格驱动开发(Spec-Driven Development)](spec-driven-development.md) — Spec 阶段工作流程
|
|
227
|
+
- [正向衍生标准(Forward Derivation Standards)](forward-derivation-standards.md) — Derive 阶段实现
|
|
228
|
+
- [签入标准(Check-in Standards)](checkin-standards.md) — Checkin 阶段品质关卡
|
|
229
|
+
- [变更批次标准(Change Batching Standards)](change-batching-standards.md) — 签入前的批次合并
|
|
230
|
+
- [验收条件追踪(Acceptance Criteria Traceability)](acceptance-criteria-traceability.md) — 跨阶段验收条件追踪
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 版本历程
|
|
235
|
+
|
|
236
|
+
| 版本 | 日期 | 变更内容 |
|
|
237
|
+
|------|------|---------|
|
|
238
|
+
| 1.0.0 | 2026-03-18 | 初始版本 — 配置契约、六阶段 Pipeline 模型、情境分类 |
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/project-context-memory.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
|
+
> **语言**: [English](../../../core/project-context-memory.md) | 简体中文
|
|
10
|
+
|
|
11
|
+
# 项目情境记忆标准
|
|
12
|
+
|
|
13
|
+
**版本**: 1.1.0
|
|
14
|
+
**最后更新**: 2026-03-16
|
|
15
|
+
**适用范围**: 所有使用 AI 助手的软件项目
|
|
16
|
+
**范围**: uds-specific
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 目的
|
|
21
|
+
|
|
22
|
+
本标准定义一个结构化系统,用于捕获、检索和执行**项目特定的**上下文、架构决策和领域知识。与开发者记忆(通用且可迁移的)不同,项目情境记忆充当特定代码库的"长期大脑",确保 AI 助手遵守本地惯例和历史决策。
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 快速参考
|
|
27
|
+
|
|
28
|
+
### 记忆条目模式
|
|
29
|
+
|
|
30
|
+
| 字段 | 类型 | 描述 |
|
|
31
|
+
|------|------|------|
|
|
32
|
+
| `id` | string | 唯一标识符(`PRJ-YYYY-NNNN`) |
|
|
33
|
+
| `type` | enum | `decision` / `convention` / `structure` / `glossary` |
|
|
34
|
+
| `summary` | string | 上下文的单行摘要 |
|
|
35
|
+
| `status` | enum | `active` / `proposed` / `deprecated` |
|
|
36
|
+
| `scope` | list | 此规则适用的文件或目录 |
|
|
37
|
+
|
|
38
|
+
### 存储位置
|
|
39
|
+
|
|
40
|
+
条目存储为**带有 YAML Frontmatter 的 Markdown**,确保人类可读性(文档)和机器可解析性。
|
|
41
|
+
|
|
42
|
+
- **目录**: `.project-context/`
|
|
43
|
+
- **格式**: `.md` 文件
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 1. 记忆模式
|
|
48
|
+
|
|
49
|
+
### 1.1 完整模式定义
|
|
50
|
+
|
|
51
|
+
```markdown
|
|
52
|
+
---
|
|
53
|
+
id: "PRJ-2026-0001" # 必需:唯一 ID
|
|
54
|
+
type: decision # 必需:类别
|
|
55
|
+
status: active # 必需:active | proposed | deprecated
|
|
56
|
+
created_at: "2026-02-09" # 必需:ISO 日期
|
|
57
|
+
confidence: 1.0 # 必需:0.0–1.0
|
|
58
|
+
|
|
59
|
+
# 范围与触发器(情境感知)
|
|
60
|
+
scope: # 此规则适用的位置
|
|
61
|
+
- "src/api/**"
|
|
62
|
+
- "src/services/**"
|
|
63
|
+
triggers: # 唤醒此记忆的关键字/模式
|
|
64
|
+
- "错误处理"
|
|
65
|
+
- "API 响应"
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
# [摘要标题]
|
|
69
|
+
|
|
70
|
+
## 决策
|
|
71
|
+
[描述决策内容]
|
|
72
|
+
|
|
73
|
+
## 原因
|
|
74
|
+
[为什么做出这个决策]
|
|
75
|
+
|
|
76
|
+
## 影响
|
|
77
|
+
[这个决策影响什么]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 2. 记忆类型
|
|
83
|
+
|
|
84
|
+
| 类型 | 描述 | 示例 |
|
|
85
|
+
|------|------|------|
|
|
86
|
+
| `decision` | 架构或技术决策 | "使用 PostgreSQL 而非 MongoDB" |
|
|
87
|
+
| `convention` | 编码惯例或风格 | "所有 API 返回包含 `data` 和 `error` 字段" |
|
|
88
|
+
| `structure` | 项目结构规则 | "测试文件与源文件在同一目录" |
|
|
89
|
+
| `glossary` | 领域术语定义 | "用户 = 付费客户,访客 = 未注册用户" |
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 3. 记忆检索
|
|
94
|
+
|
|
95
|
+
### 3.1 自动激活
|
|
96
|
+
|
|
97
|
+
AI 助手在处理请求时,应自动检查:
|
|
98
|
+
|
|
99
|
+
1. 当前编辑文件是否在某条记忆的 `scope` 范围内
|
|
100
|
+
2. 用户请求中是否包含某条记忆的 `triggers` 关键字
|
|
101
|
+
3. 任务类型是否与某条记忆的 `type` 匹配
|
|
102
|
+
|
|
103
|
+
### 3.2 手动查询
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 查看所有活跃记忆
|
|
107
|
+
ls .project-context/*.md
|
|
108
|
+
|
|
109
|
+
# 搜索特定主题
|
|
110
|
+
grep -l "API" .project-context/*.md
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 相关标准
|
|
116
|
+
|
|
117
|
+
- [情境感知加载](context-aware-loading.md)
|
|
118
|
+
- [开发者记忆](../../../core/developer-memory.md)
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 许可证
|
|
123
|
+
|
|
124
|
+
本标准采用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 发布。
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../core/requirement-engineering.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
|
+
> **语言**: [English](../../../core/requirement-engineering.md) | 简体中文
|
|
10
|
+
|
|
11
|
+
# 需求工程标准
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最后更新**: 2026-01-28
|
|
15
|
+
**适用范围**: 所有软件项目
|
|
16
|
+
**范围**: universal
|
|
17
|
+
**行业标准**: IEEE 830-1998, IEEE 29148-2018, SWEBOK v4.0
|
|
18
|
+
**参考**: [computer.org](https://www.computer.org/education/bodies-of-knowledge/software-engineering/v4)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 摘要
|
|
23
|
+
|
|
24
|
+
需求工程是在整个开发生命周期中系统性地获取、分析、规范和验证软件需求的过程。它基于行业标准(包括 IEEE 830-1998、IEEE 29148-2018、SWEBOK v4.0 和 ISO/IEC 25010)提供编写、管理和验证需求的理论基础。
|
|
25
|
+
|
|
26
|
+
该过程涵盖功能需求(系统应该做什么)、非功能需求(性能、安全、可用性等品质属性)和约束。用户故事(敏捷格式)配合验收条件(Given-When-Then)作为主要规格格式,通过 INVEST 准则(Independent、Negotiable、Valuable、Estimable、Small、Testable)进行验证。
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
**完整指南: [需求工程指南](../../../methodologies/guides/requirement-engineering-guide.md)**
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 快速参考
|
|
35
|
+
|
|
36
|
+
| 方面 | 说明 |
|
|
37
|
+
|------|------|
|
|
38
|
+
| **核心过程** | 获取 → 分析 → 规范 → 验证 |
|
|
39
|
+
| **需求类型** | 功能需求(FR)、非功能需求(NFR)、约束 |
|
|
40
|
+
| **优先级排序** | MoSCoW、P0-P3、Kano 模型 |
|
|
41
|
+
| **品质模型** | ISO/IEC 25010(8 个特征) |
|
|
42
|
+
| **标准** | IEEE 830、IEEE 29148、SWEBOK v4.0 |
|
|
43
|
+
|
|
44
|
+
## 相关标准
|
|
45
|
+
|
|
46
|
+
- [规格驱动开发](../../../core/spec-driven-development.md)
|
|
47
|
+
- [正向推导标准](../../../core/forward-derivation-standards.md)
|
|
48
|
+
- [行为驱动开发](behavior-driven-development.md)
|
|
49
|
+
- [测试标准](testing-standards.md)
|