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,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/incident-response-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导事故回应、根因分析和事后复盘文档撰写。
|
|
9
|
+
使用时机:生产事故、故障响应、事后复盘撰写、根因分析。
|
|
10
|
+
关键字:incident, outage, post-mortem, RCA, root cause, 事故, 故障, 根因分析。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 事故回应助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/incident-response-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
引导结构化的事故回应流程,从检测到事后复盘。
|
|
18
|
+
|
|
19
|
+
## 严重程度分类
|
|
20
|
+
|
|
21
|
+
| 等级 | 名称 | 标准 | 响应时间 |
|
|
22
|
+
|------|------|------|----------|
|
|
23
|
+
| **SEV-1** | 重大 | 全面服务中断、数据丢失 | 立即(< 15 分钟) |
|
|
24
|
+
| **SEV-2** | 高 | 主要功能降级、部分中断 | < 30 分钟 |
|
|
25
|
+
| **SEV-3** | 中 | 次要功能受影响、有替代方案 | < 4 小时 |
|
|
26
|
+
| **SEV-4** | 低 | 外观问题、最小用户影响 | 下一个工作日 |
|
|
27
|
+
|
|
28
|
+
## 回应工作流程
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
DETECT ──► TRIAGE ──► MITIGATE ──► RESOLVE ──► POST-MORTEM
|
|
32
|
+
检测 分级 缓解 解决 事后复盘
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 1. Detect — 检测事故
|
|
36
|
+
监控告警、用户反馈、错误量飙升。
|
|
37
|
+
|
|
38
|
+
### 2. Triage — 分级严重程度
|
|
39
|
+
指定严重等级、确定事故指挥官(IC)。
|
|
40
|
+
|
|
41
|
+
### 3. Mitigate — 缓解影响
|
|
42
|
+
应用临时修复:回滚、功能开关、流量切换。
|
|
43
|
+
|
|
44
|
+
### 4. Resolve — 永久修复
|
|
45
|
+
根因分析、实现正确修复、部署。
|
|
46
|
+
|
|
47
|
+
### 5. Post-Mortem — 事后复盘
|
|
48
|
+
记录时间轴、影响范围、根因、行动项。
|
|
49
|
+
|
|
50
|
+
## 事后复盘模板
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
## 事后复盘:[事故标题]
|
|
54
|
+
**日期**: YYYY-MM-DD | **严重程度**: SEV-N | **持续时间**: Xh Ym
|
|
55
|
+
|
|
56
|
+
### 时间轴
|
|
57
|
+
| 时间 | 事件 |
|
|
58
|
+
|------|------|
|
|
59
|
+
| HH:MM | 告警触发 |
|
|
60
|
+
| HH:MM | 指派事故指挥官 |
|
|
61
|
+
| HH:MM | 应用缓解措施 |
|
|
62
|
+
| HH:MM | 解决 |
|
|
63
|
+
|
|
64
|
+
### 影响
|
|
65
|
+
- 受影响用户数:N
|
|
66
|
+
- 营收影响:$N
|
|
67
|
+
- SLA 违反:是/否
|
|
68
|
+
|
|
69
|
+
### 根本原因
|
|
70
|
+
[根本原因描述]
|
|
71
|
+
|
|
72
|
+
### 行动项
|
|
73
|
+
| 行动 | 负责人 | 截止日期 | 优先级 |
|
|
74
|
+
|------|--------|----------|--------|
|
|
75
|
+
| [修复] | @name | YYYY-MM-DD | P0 |
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 沟通模板
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
[SEV-N] [服务名称] — [简短描述]
|
|
82
|
+
状态:调查中 / 缓解中 / 已解决
|
|
83
|
+
影响:[谁受到影响及如何影响]
|
|
84
|
+
下次更新:[时间]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## 使用方式
|
|
88
|
+
|
|
89
|
+
- `/incident` - 显示完整事故回应指南
|
|
90
|
+
- `/incident "API 500 errors"` - 特定事故引导回应
|
|
91
|
+
- `/incident --post-mortem` - 生成事后复盘模板
|
|
92
|
+
- `/incident --sev1` - SEV-1 快速响应清单
|
|
93
|
+
|
|
94
|
+
## 下一步引导
|
|
95
|
+
|
|
96
|
+
`/incident` 完成后,AI 助手应建议:
|
|
97
|
+
|
|
98
|
+
> **事故回应指引已提供。建议下一步:**
|
|
99
|
+
> - 执行 `/commit` 创建修复提交
|
|
100
|
+
> - 执行 `/review` 审查修复变更
|
|
101
|
+
> - 执行 `/docs` 更新文档
|
|
102
|
+
> - 执行 `/security` 检查安全影响
|
|
103
|
+
|
|
104
|
+
## 参考
|
|
105
|
+
|
|
106
|
+
- 核心规范:[deployment-standards.md](../../../../core/deployment-standards.md)
|
|
107
|
+
- 核心规范:[logging.md](../../../../core/logging.md)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/metrics-dashboard-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
追踪开发指标、代码品质指示器与专案健康状态。
|
|
9
|
+
使用时机:评估专案健康、追踪技术债、监控品质趋势。
|
|
10
|
+
关键字:metrics, dashboard, quality, coverage, complexity, debt, 指标, 品质, 技术债。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 开发指标助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/metrics-dashboard-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
追踪开发指标、代码品质指示器,以及专案随时间的健康状态。
|
|
18
|
+
|
|
19
|
+
## 使用方式
|
|
20
|
+
|
|
21
|
+
| 命令 | 用途 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| `/metrics` | 执行完整专案健康检查 |
|
|
24
|
+
| `/metrics --quality` | 仅代码品质指标 |
|
|
25
|
+
| `/metrics --debt` | 技术债摘要 |
|
|
26
|
+
| `/metrics --test` | 测试健康指标 |
|
|
27
|
+
| `/metrics src/` | 限定特定模组范围 |
|
|
28
|
+
|
|
29
|
+
## 指标类别
|
|
30
|
+
|
|
31
|
+
| 类别 | 指标说明 |
|
|
32
|
+
|------|----------|
|
|
33
|
+
| **代码品质** | 复杂度、重复率、lint 警告 |
|
|
34
|
+
| **测试健康** | 覆盖率 %、通过率、不稳定测试数 |
|
|
35
|
+
| **提交品质** | 大小、频率、格式合规 |
|
|
36
|
+
| **债务追踪** | TODO/FIXME 数量、问题存在时间 |
|
|
37
|
+
| **依赖健康** | 过时套件、漏洞数量 |
|
|
38
|
+
|
|
39
|
+
## 快速健康分数
|
|
40
|
+
|
|
41
|
+
健康分数为加权组合:
|
|
42
|
+
|
|
43
|
+
| 因素 | 权重 | 理想值 |
|
|
44
|
+
|------|------|--------|
|
|
45
|
+
| 测试覆盖率 | 30% | >= 80% |
|
|
46
|
+
| Lint 通过率 | 20% | 100% |
|
|
47
|
+
| TODO/FIXME 密度 | 15% | < 每千行 1 个 |
|
|
48
|
+
| 构建成功率 | 20% | 100% |
|
|
49
|
+
| 依赖新鲜度 | 15% | < 3 个月 |
|
|
50
|
+
|
|
51
|
+
**分数 = sum(因素分数 * 权重)**
|
|
52
|
+
|
|
53
|
+
## 工作流程
|
|
54
|
+
|
|
55
|
+
1. **收集** - 从工具与 git 历史收集原始指标
|
|
56
|
+
2. **分析** - 与阈值及历史趋势比较
|
|
57
|
+
3. **报告** - 产生含可行动重点的摘要
|
|
58
|
+
4. **趋势** - 显示方向(改善 / 衰退 / 稳定)
|
|
59
|
+
|
|
60
|
+
## 下一步引导
|
|
61
|
+
|
|
62
|
+
`/metrics` 完成后,AI 助手应建议:
|
|
63
|
+
|
|
64
|
+
> **指标分析完成。建议下一步:**
|
|
65
|
+
> - 执行 `/refactor` 处理高复杂度模组
|
|
66
|
+
> - 执行 `/coverage` 改善低覆盖率区域
|
|
67
|
+
> - 执行 `/audit` 检视安全与依赖问题
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/migration-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-24
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导代码迁移、框架升级与技术现代化。
|
|
9
|
+
使用时机:框架升级、语言迁移、API 版本更新、依赖现代化。
|
|
10
|
+
关键字:migration, upgrade, modernize, framework, dependency, 迁移, 升级, 现代化。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 迁移助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/migration-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
引导系统性代码迁移、框架升级与技术现代化。
|
|
18
|
+
|
|
19
|
+
## 使用方式
|
|
20
|
+
|
|
21
|
+
| 命令 | 用途 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| `/migrate` | 启动交互式迁移引导 |
|
|
24
|
+
| `/migrate --assess` | 仅风险评估 |
|
|
25
|
+
| `/migrate "Vue 2 to 3"` | 引导特定迁移 |
|
|
26
|
+
| `/migrate --deps` | 依赖升级分析 |
|
|
27
|
+
| `/migrate --rollback` | 规划回滚策略 |
|
|
28
|
+
|
|
29
|
+
## 迁移类型
|
|
30
|
+
|
|
31
|
+
| 类型 | 范例 | 风险 |
|
|
32
|
+
|------|------|------|
|
|
33
|
+
| **框架升级** | React 17→18, Vue 2→3 | 中高 |
|
|
34
|
+
| **语言迁移** | JS→TS, Python 2→3 | 高 |
|
|
35
|
+
| **API 版本** | REST v1→v2, GraphQL 更新 | 中 |
|
|
36
|
+
| **数据库迁移** | MySQL→PostgreSQL | 极高 |
|
|
37
|
+
| **构建工具** | Webpack→Vite | 低中 |
|
|
38
|
+
| **包管理器** | npm→pnpm | 低 |
|
|
39
|
+
|
|
40
|
+
## 风险评估矩阵
|
|
41
|
+
|
|
42
|
+
| | 低影响 | 中影响 | 高影响 |
|
|
43
|
+
|---|--------|--------|--------|
|
|
44
|
+
| **低复杂度** | 安全(直接进行) | 谨慎 | 仔细规划 |
|
|
45
|
+
| **中复杂度** | 谨慎 | 规划 + 测试 | 分阶段发布 |
|
|
46
|
+
| **高复杂度** | 规划 + 测试 | 分阶段发布 | 完整 SDD 规格 |
|
|
47
|
+
|
|
48
|
+
## 工作流程
|
|
49
|
+
|
|
50
|
+
1. **评估** - 评估现状、识别破坏性变更
|
|
51
|
+
2. **规划** - 建立含依赖关系的迁移清单
|
|
52
|
+
3. **准备** - 设定 codemods、兼容层、功能旗标
|
|
53
|
+
4. **迁移** - 分阶段执行迁移并测试
|
|
54
|
+
5. **验证** - 执行完整测试套件、检查回归
|
|
55
|
+
6. **清理** - 移除兼容层、旧依赖
|
|
56
|
+
|
|
57
|
+
## 回滚策略
|
|
58
|
+
|
|
59
|
+
| 方式 | 使用时机 |
|
|
60
|
+
|------|---------|
|
|
61
|
+
| **Git revert** | 小型、原子性变更 |
|
|
62
|
+
| **功能旗标** | 需要逐步发布 |
|
|
63
|
+
| **双运行** | 关键系统、零停机 |
|
|
64
|
+
| **分支冻结** | 一次性完整迁移 |
|
|
65
|
+
|
|
66
|
+
## 下一步引导
|
|
67
|
+
|
|
68
|
+
`/migrate` 完成后,AI 助手应建议:
|
|
69
|
+
|
|
70
|
+
> **迁移分析完成。建议下一步:**
|
|
71
|
+
> - 执行 `/reverse` 深入理解现有代码
|
|
72
|
+
> - 执行 `/testing` 确保迁移后测试通过
|
|
73
|
+
> - 执行 `/commit` 提交迁移变更
|
|
74
|
+
|
|
75
|
+
## 参考
|
|
76
|
+
|
|
77
|
+
- 核心规范:[refactoring-standards.md](../../../../core/refactoring-standards.md)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/pr-automation-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导 Pull Request 创建、审查自动化和合并策略。
|
|
9
|
+
使用时机:创建 PR、自动化审查、配置合并策略。
|
|
10
|
+
关键字:pull request, PR, merge, review, GitHub, GitLab, 合并请求, 审查。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# PR 自动化助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/pr-automation-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
简化从创建到合并的 Pull Request 生命周期。
|
|
18
|
+
|
|
19
|
+
## PR 创建检查清单
|
|
20
|
+
|
|
21
|
+
| 项目 | 规则 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| 标题 | `<type>(<scope>): <summary>`,70 字符内 |
|
|
24
|
+
| 描述 | 使用结构化模板 |
|
|
25
|
+
| 标签 | 至少一个分类标签 |
|
|
26
|
+
| 审查者 | 依 CODEOWNERS 或领域指派 |
|
|
27
|
+
| 分支 | 与基础分支同步 |
|
|
28
|
+
|
|
29
|
+
## PR 描述模板
|
|
30
|
+
|
|
31
|
+
```markdown
|
|
32
|
+
## 摘要
|
|
33
|
+
<1-3 个重点描述变更>
|
|
34
|
+
|
|
35
|
+
## 变更内容
|
|
36
|
+
- 新增 / 修改 / 移除 ...
|
|
37
|
+
|
|
38
|
+
## 测试计划
|
|
39
|
+
- [ ] 单元测试通过
|
|
40
|
+
- [ ] 手动验证步骤
|
|
41
|
+
|
|
42
|
+
## 截图
|
|
43
|
+
(如有 UI 变更)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 合并策略决策
|
|
47
|
+
|
|
48
|
+
| 策略 | 使用时机 |
|
|
49
|
+
|------|----------|
|
|
50
|
+
| **Squash merge** | 功能分支,提交记录零散 |
|
|
51
|
+
| **Merge commit** | 发布分支,保留完整历史 |
|
|
52
|
+
| **Rebase** | 线性历史,小幅变更 |
|
|
53
|
+
|
|
54
|
+
## 自动审查触发条件
|
|
55
|
+
|
|
56
|
+
| 触发条件 | 阈值 | 动作 |
|
|
57
|
+
|----------|------|------|
|
|
58
|
+
| PR 大小 | > 400 行变更 | 要求拆分 |
|
|
59
|
+
| 无测试 | 0 个测试文件变更 | 阻止合并 |
|
|
60
|
+
| CI 失败 | 任何检查失败 | 阻止合并 |
|
|
61
|
+
| 过期 PR | > 7 天无活动 | 通知作者 |
|
|
62
|
+
| 草稿 PR | 标记为草稿 | 跳过审查者指派 |
|
|
63
|
+
|
|
64
|
+
## 工作流程
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 使用方式
|
|
71
|
+
|
|
72
|
+
- `/pr` - 引导创建当前分支的 PR
|
|
73
|
+
- `/pr create` - 使用模板创建 PR
|
|
74
|
+
- `/pr --template` - 显示 PR 描述模板
|
|
75
|
+
- `/pr review 123` - 审查特定 PR
|
|
76
|
+
|
|
77
|
+
## 下一步引导
|
|
78
|
+
|
|
79
|
+
`/pr` 完成后,AI 助手应建议:
|
|
80
|
+
|
|
81
|
+
> **PR 操作完成。建议下一步:**
|
|
82
|
+
> - 执行 `/review` 进行详细代码审查
|
|
83
|
+
> - 执行 `/commit` 修正审查发现的问题
|
|
84
|
+
> - 执行 `/changelog` 更新变更日志
|
|
85
|
+
> - 检查 CI 状态 → `gh pr checks`
|
|
86
|
+
|
|
87
|
+
## 参考
|
|
88
|
+
|
|
89
|
+
- 核心规范:[code-review-checklist.md](../../../../core/code-review-checklist.md)
|
|
90
|
+
- 核心规范:[git-workflow.md](../../../../core/git-workflow.md)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/security-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导安全审查和漏洞评估,遵循 OWASP 标准。
|
|
9
|
+
使用时机:安全审计、漏洞检查、安全编码审查、威胁建模。
|
|
10
|
+
关键字:security, OWASP, vulnerability, authentication, authorization, 安全, 漏洞, 认证。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 安全审计助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/security-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
引导系统化的安全审查,遵循 OWASP Top 10 和业界最佳实践。
|
|
18
|
+
|
|
19
|
+
## 快速检查清单 — OWASP Top 10 预防
|
|
20
|
+
|
|
21
|
+
| ID | 风险 | 预防措施 |
|
|
22
|
+
|----|------|----------|
|
|
23
|
+
| A01 | 访问控制失效 | 最小权限原则,默认拒绝 |
|
|
24
|
+
| A02 | 加密失败 | 使用强加密算法,保护密钥 |
|
|
25
|
+
| A03 | 注入攻击 | 参数化查询、输入验证 |
|
|
26
|
+
| A04 | 不安全设计 | 威胁建模、安全设计模式 |
|
|
27
|
+
| A05 | 安全配置错误 | 强化默认值、最小权限 |
|
|
28
|
+
| A06 | 易受攻击的组件 | 追踪依赖包、定期修补 |
|
|
29
|
+
| A07 | 认证失败 | 多因素认证、强密码策略 |
|
|
30
|
+
| A08 | 数据完整性失败 | 验证签名、使用可信来源 |
|
|
31
|
+
| A09 | 日志记录失败 | 记录安全事件、监控告警 |
|
|
32
|
+
| A10 | SSRF | 验证 URL、限制对外流量 |
|
|
33
|
+
|
|
34
|
+
## 安全审查工作流程
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
SCOPE ──► SCAN ──► ANALYZE ──► REPORT
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 1. Scope — 定义审计范围
|
|
41
|
+
识别目标模块、数据流和信任边界。
|
|
42
|
+
|
|
43
|
+
### 2. Scan — 识别漏洞
|
|
44
|
+
检查代码的 OWASP Top 10 模式、检查依赖包、检视配置。
|
|
45
|
+
|
|
46
|
+
### 3. Analyze — 评估风险
|
|
47
|
+
依严重程度(Critical/High/Medium/Low)和可利用性分类。
|
|
48
|
+
|
|
49
|
+
### 4. Report — 记录发现
|
|
50
|
+
产出可行动的发现报告,附带修复建议。
|
|
51
|
+
|
|
52
|
+
## 严重程度分类
|
|
53
|
+
|
|
54
|
+
| 等级 | 标准 |
|
|
55
|
+
|------|------|
|
|
56
|
+
| **Critical** | 远程代码执行、数据泄露 |
|
|
57
|
+
| **High** | 认证绕过、权限提升 |
|
|
58
|
+
| **Medium** | 信息泄露、CSRF |
|
|
59
|
+
| **Low** | 缺少 Header、冗长错误信息 |
|
|
60
|
+
|
|
61
|
+
## 使用方式
|
|
62
|
+
|
|
63
|
+
- `/security` - 完整安全审查
|
|
64
|
+
- `/security src/auth` - 审计特定模块
|
|
65
|
+
- `/security --owasp` - OWASP Top 10 重点审查
|
|
66
|
+
|
|
67
|
+
## 下一步引导
|
|
68
|
+
|
|
69
|
+
`/security` 完成后,AI 助手应建议:
|
|
70
|
+
|
|
71
|
+
> **安全审查完成。建议下一步:**
|
|
72
|
+
> - 执行 `/checkin` 确认修复符合提交规范
|
|
73
|
+
> - 执行 `/review` 进行代码审查
|
|
74
|
+
> - 执行 `/commit` 提交安全修复
|
|
75
|
+
> - 检查依赖包更新 → `npm audit` 或 `pip audit`
|
|
76
|
+
|
|
77
|
+
## 参考
|
|
78
|
+
|
|
79
|
+
- 核心规范:[security-standards.md](../../../../core/security-standards.md)
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/security-scan-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引导自动化安全扫描、依赖包审计和机密检测。
|
|
9
|
+
使用时机:依赖审计、CVE 扫描、机密检测、许可证合规。
|
|
10
|
+
关键字:scan, audit, CVE, dependency, secret, SBOM, vulnerability, 扫描, 漏洞。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 安全扫描助手
|
|
14
|
+
|
|
15
|
+
> **语言**: [English](../../../../skills/security-scan-assistant/SKILL.md) | 简体中文
|
|
16
|
+
|
|
17
|
+
自动化依赖包、机密信息和许可证合规的安全扫描。
|
|
18
|
+
|
|
19
|
+
## 扫描类型
|
|
20
|
+
|
|
21
|
+
| 类型 | 工具范例 | 用途 |
|
|
22
|
+
|------|----------|------|
|
|
23
|
+
| **依赖包审计** | npm audit, pip-audit, Snyk | 检测已知 CVE |
|
|
24
|
+
| **机密检测** | gitleaks, trufflehog | 检测泄露的凭证 |
|
|
25
|
+
| **许可证合规** | license-checker, SPDX | 验证开源许可证兼容性 |
|
|
26
|
+
| **SAST** | Semgrep, CodeQL | 静态分析代码模式 |
|
|
27
|
+
|
|
28
|
+
## 工具整合
|
|
29
|
+
|
|
30
|
+
| 工具 | 命令 | 范围 |
|
|
31
|
+
|------|------|------|
|
|
32
|
+
| npm audit | `npm audit --json` | Node.js 依赖包 |
|
|
33
|
+
| Snyk | `npx snyk test` | 多语言依赖包 |
|
|
34
|
+
| Trivy | `trivy fs .` | 文件系统与容器 |
|
|
35
|
+
| gitleaks | `gitleaks detect` | Git 历史机密 |
|
|
36
|
+
| SPDX | `npx spdx-tool` | 许可证 SBOM 产出 |
|
|
37
|
+
|
|
38
|
+
## 严重程度分类与 SLA
|
|
39
|
+
|
|
40
|
+
| 严重程度 | SLA | 标准 |
|
|
41
|
+
|----------|-----|------|
|
|
42
|
+
| **Critical** | 24 小时 | 远程执行、认证绕过、数据外泄 |
|
|
43
|
+
| **High** | 72 小时 | 权限提升、SQL 注入 |
|
|
44
|
+
| **Medium** | 2 周 | XSS、CSRF、信息泄露 |
|
|
45
|
+
| **Low** | 下个 Sprint | 缺少 Header、冗长错误信息 |
|
|
46
|
+
|
|
47
|
+
## 工作流程
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
SCAN ──► TRIAGE ──► PRIORITIZE ──► FIX ──► VERIFY
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 使用方式
|
|
54
|
+
|
|
55
|
+
- `/scan` - 完整扫描(依赖包 + 机密 + 许可证)
|
|
56
|
+
- `/scan --deps` - 仅依赖包审计
|
|
57
|
+
- `/scan --secrets` - 仅机密检测
|
|
58
|
+
- `/scan --license` - 许可证合规检查
|
|
59
|
+
|
|
60
|
+
## 下一步引导
|
|
61
|
+
|
|
62
|
+
`/scan` 完成后,AI 助手应建议:
|
|
63
|
+
|
|
64
|
+
> **扫描完成。建议下一步:**
|
|
65
|
+
> - 执行 `/security` 深入安全审查
|
|
66
|
+
> - 执行 `/checkin` 确认修复符合提交规范
|
|
67
|
+
> - 执行 `/commit` 提交安全修复
|
|
68
|
+
> - 更新依赖包 → `npm update` 或 `pip install --upgrade`
|
|
69
|
+
|
|
70
|
+
## 参考
|
|
71
|
+
|
|
72
|
+
- 核心规范:[security-standards.md](../../../../core/security-standards.md)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../skills/spec-driven-dev/SKILL.md
|
|
3
|
-
source_version: 1.
|
|
4
|
-
translation_version: 1.
|
|
5
|
-
last_synced: 2026-
|
|
3
|
+
source_version: 1.2.0
|
|
4
|
+
translation_version: 1.2.0
|
|
5
|
+
last_synced: 2026-03-23
|
|
6
6
|
status: current
|
|
7
7
|
description: |
|
|
8
8
|
在编写代码前,建立、审查和管理规格文件。
|
|
@@ -16,9 +16,37 @@ description: |
|
|
|
16
16
|
|
|
17
17
|
在编写代码前,建立、审查和管理规格文件。
|
|
18
18
|
|
|
19
|
+
## 快速检查清单
|
|
20
|
+
|
|
21
|
+
- 搜索现有规格:查看 `specs/`、`docs/specs/` 或项目规格目录
|
|
22
|
+
- 决定范围:新功能 vs 修改现有功能
|
|
23
|
+
- 选择唯一的规格 ID:`SPEC-NNN` 或 kebab-case 变更 ID
|
|
24
|
+
- 撰写包含明确 AC(Given/When/Then 格式)的提案
|
|
25
|
+
- 实现前取得核准
|
|
26
|
+
- 依序实现任务,对照规格验证
|
|
27
|
+
- 完成后归档规格
|
|
28
|
+
|
|
29
|
+
## 决策树
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
新需求?
|
|
33
|
+
├─ 修复符合规格行为的 Bug? → 直接修复
|
|
34
|
+
├─ 错字/格式/注释? → 直接修复
|
|
35
|
+
├─ 依赖套件更新(不破坏兼容性)? → 直接修复
|
|
36
|
+
├─ 新功能/能力? → 建立提案
|
|
37
|
+
├─ 破坏性变更? → 建立提案
|
|
38
|
+
├─ 架构变更? → 建立提案
|
|
39
|
+
└─ 不确定? → 建立提案(较安全)
|
|
40
|
+
```
|
|
41
|
+
|
|
19
42
|
## 工作流程
|
|
20
43
|
|
|
21
|
-
|
|
44
|
+
```
|
|
45
|
+
DISCUSS ──► CREATE ──► REVIEW ──► APPROVE ──► IMPLEMENT ──► VERIFY ──► ARCHIVE
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 0. Discuss - 厘清范围
|
|
49
|
+
在编写规格前,捕捉模糊地带、建立治理原则、解决歧义。
|
|
22
50
|
|
|
23
51
|
### 1. Create - 编写规格
|
|
24
52
|
定义需求、技术设计、验收条件和测试计划。
|
|
@@ -35,6 +63,9 @@ CREATE --> REVIEW --> APPROVE --> IMPLEMENT --> VERIFY
|
|
|
35
63
|
### 5. Verify - 验证
|
|
36
64
|
确保实现符合规格,所有测试通过,验收条件已满足。
|
|
37
65
|
|
|
66
|
+
### 6. Archive - 归档
|
|
67
|
+
归档已完成的规格,链接至 commits/PRs。
|
|
68
|
+
|
|
38
69
|
## 规格状态
|
|
39
70
|
|
|
40
71
|
| 状态 | 说明 | State | Description |
|
|
@@ -48,20 +79,52 @@ CREATE --> REVIEW --> APPROVE --> IMPLEMENT --> VERIFY
|
|
|
48
79
|
## 规格结构
|
|
49
80
|
|
|
50
81
|
```markdown
|
|
51
|
-
# Feature: [Name]
|
|
82
|
+
# [SPEC-ID] Feature: [Name]
|
|
83
|
+
|
|
52
84
|
## Overview
|
|
53
|
-
|
|
85
|
+
简短描述提案变更。
|
|
86
|
+
|
|
87
|
+
## Motivation
|
|
88
|
+
为什么需要这个变更?解决什么问题?
|
|
89
|
+
|
|
54
90
|
## Requirements
|
|
55
|
-
|
|
91
|
+
### Requirement: [Name]
|
|
92
|
+
系统 SHALL [行为描述]。
|
|
93
|
+
|
|
94
|
+
#### Scenario: [成功案例]
|
|
95
|
+
- **GIVEN** [初始情境]
|
|
96
|
+
- **WHEN** [执行动作]
|
|
97
|
+
- **THEN** [预期结果]
|
|
98
|
+
|
|
56
99
|
## Acceptance Criteria
|
|
57
100
|
- AC-1: Given [context], when [action], then [result]
|
|
101
|
+
|
|
58
102
|
## Technical Design
|
|
59
|
-
[
|
|
103
|
+
[架构、API 变更、数据库变更]
|
|
104
|
+
|
|
60
105
|
## Test Plan
|
|
61
|
-
- [ ]
|
|
62
|
-
- [ ]
|
|
106
|
+
- [ ] [组件] 的单元测试
|
|
107
|
+
- [ ] [流程] 的集成测试
|
|
63
108
|
```
|
|
64
109
|
|
|
110
|
+
### 场景格式规则
|
|
111
|
+
|
|
112
|
+
- 使用 `#### Scenario:` (h4 标题) 撰写每个场景
|
|
113
|
+
- 每个需求必须至少有一个场景
|
|
114
|
+
- 使用 **GIVEN/WHEN/THEN** 格式描述结构化行为
|
|
115
|
+
- 使用 **SHALL/MUST** 表达强制需求,**SHOULD** 表达建议
|
|
116
|
+
|
|
117
|
+
## 变更操作
|
|
118
|
+
|
|
119
|
+
修改现有规格时,使用 delta 区段:
|
|
120
|
+
|
|
121
|
+
| 操作 | 说明 |
|
|
122
|
+
|------|------|
|
|
123
|
+
| `## ADDED Requirements` | 新增功能 |
|
|
124
|
+
| `## MODIFIED Requirements` | 修改行为 |
|
|
125
|
+
| `## REMOVED Requirements` | 移除功能 |
|
|
126
|
+
| `## RENAMED Requirements` | 重新命名 |
|
|
127
|
+
|
|
65
128
|
## 使用方式
|
|
66
129
|
|
|
67
130
|
- `/sdd` - 交互式规格建立向导
|