universal-dev-standards 5.17.0 → 6.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 +13 -135
- package/bundled/ai/standards/acceptance-criteria-traceability.ai.yaml +13 -4
- package/bundled/ai/standards/accessibility-standards.ai.yaml +1 -1
- package/bundled/ai/standards/ai-response-navigation.ai.yaml +15 -2
- package/bundled/ai/standards/api-design-standards.ai.yaml +27 -4
- package/bundled/ai/standards/behavior-snapshot.ai.yaml +86 -9
- package/bundled/ai/standards/checkin-standards.ai.yaml +2 -2
- package/bundled/ai/standards/code-review.ai.yaml +2 -2
- package/bundled/ai/standards/context-aware-loading.ai.yaml +3 -3
- package/bundled/ai/standards/data-migration-testing.ai.yaml +79 -3
- package/bundled/ai/standards/deprecation-standards.ai.yaml +10 -2
- package/bundled/ai/standards/developer-memory.ai.yaml +4 -3
- package/bundled/ai/standards/flow-based-testing.ai.yaml +2 -2
- package/bundled/ai/standards/forward-derivation-standards.ai.yaml +26 -2
- package/bundled/ai/standards/full-coverage-testing.ai.yaml +34 -2
- package/bundled/ai/standards/git-worktree.ai.yaml +3 -3
- package/bundled/ai/standards/logging.ai.yaml +97 -3
- package/bundled/ai/standards/mock-boundary.ai.yaml +48 -2
- package/bundled/ai/standards/model-provenance.ai.yaml +297 -0
- package/bundled/ai/standards/model-selection.ai.yaml +11 -2
- package/bundled/ai/standards/observability-standards.ai.yaml +10 -0
- package/bundled/ai/standards/performance-standards.ai.yaml +46 -1
- package/bundled/ai/standards/pii-classification.ai.yaml +15 -1
- package/bundled/ai/standards/pipeline-security-gates.ai.yaml +10 -0
- package/bundled/ai/standards/privacy-standards.ai.yaml +2 -2
- package/bundled/ai/standards/project-context-memory.ai.yaml +2 -2
- package/bundled/ai/standards/refactoring-standards.ai.yaml +68 -3
- package/bundled/ai/standards/resource-cost-boundary.ai.yaml +279 -0
- package/bundled/ai/standards/reverse-engineering-standards.ai.yaml +55 -2
- package/bundled/ai/standards/security-testing.ai.yaml +13 -2
- package/bundled/ai/standards/skill-standard-alignment-check.ai.yaml +37 -2
- package/bundled/ai/standards/user-journey-testing.ai.yaml +107 -0
- package/bundled/ai/standards/verification-oracle.ai.yaml +278 -0
- package/bundled/ai/standards/versioning.ai.yaml +32 -38
- package/bundled/core/acceptance-criteria-traceability.md +15 -5
- package/bundled/core/accessibility-standards.md +8 -4
- package/bundled/core/ai-friendly-architecture.md +1 -1
- package/bundled/core/ai-response-navigation.md +31 -3
- package/bundled/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/core/api-design-standards.md +92 -7
- package/bundled/core/audit-trail.md +119 -0
- package/bundled/core/behavior-snapshot.md +94 -7
- package/bundled/core/browser-compatibility-standards.md +15 -2
- package/bundled/core/checkin-standards.md +9 -2
- package/bundled/core/code-review-checklist.md +10 -2
- package/bundled/core/container-image-standards.md +97 -0
- package/bundled/core/context-aware-loading.md +2 -2
- package/bundled/core/cost-budget-test.md +1 -1
- package/bundled/core/cross-flow-regression.md +3 -2
- package/bundled/core/data-contract.md +104 -0
- package/bundled/core/data-migration-testing.md +90 -0
- package/bundled/core/data-pipeline.md +113 -0
- package/bundled/core/deprecation-standards.md +16 -2
- package/bundled/core/developer-memory.md +13 -8
- package/bundled/core/documentation-writing-standards.md +1 -1
- package/bundled/core/error-code-standards.md +4 -3
- package/bundled/core/flaky-test-management.md +1 -1
- package/bundled/core/flow-based-testing.md +3 -3
- package/bundled/core/forward-derivation-standards.md +33 -5
- package/bundled/core/full-coverage-testing.md +72 -0
- package/bundled/core/git-worktree.md +4 -4
- package/bundled/core/guides/performance-guide.md +1 -1
- package/bundled/core/guides/security-guide.md +1 -1
- package/bundled/core/health-check-standards.md +2 -2
- package/bundled/core/iac-design-principles.md +97 -0
- package/bundled/core/incident-response.md +119 -0
- package/bundled/core/license-compliance.md +2 -0
- package/bundled/core/logging-standards.md +78 -2
- package/bundled/core/mock-boundary.md +54 -2
- package/bundled/core/model-provenance.md +181 -0
- package/bundled/core/model-selection.md +27 -2
- package/bundled/core/packaging-standards.md +1 -0
- package/bundled/core/performance-standards.md +96 -2
- package/bundled/core/pii-classification.md +148 -0
- package/bundled/core/pipeline-security-gates.md +22 -2
- package/bundled/core/postmortem-standards.md +2 -0
- package/bundled/core/prd-standards.md +91 -0
- package/bundled/core/privacy-standards.md +14 -3
- package/bundled/core/product-metrics-standards.md +100 -0
- package/bundled/core/project-context-memory.md +8 -2
- package/bundled/core/prompt-regression.md +1 -1
- package/bundled/core/refactoring-standards.md +44 -3
- package/bundled/core/replay-test.md +1 -1
- package/bundled/core/resource-cost-boundary.md +180 -0
- package/bundled/core/reverse-engineering-standards.md +66 -2
- package/bundled/core/runbook.md +113 -0
- package/bundled/core/schema-evolution.md +105 -0
- package/bundled/core/secret-management-standards.md +110 -0
- package/bundled/core/security-testing.md +26 -2
- package/bundled/core/self-review-protocol.md +2 -2
- package/bundled/core/skill-standard-alignment-check.md +53 -0
- package/bundled/core/slo-sli.md +109 -0
- package/bundled/core/smoke-test.md +1 -1
- package/bundled/core/tech-debt-standards.md +1 -1
- package/bundled/core/test-data-standards.md +2 -2
- package/bundled/core/user-journey-testing.md +102 -0
- package/bundled/core/user-story-mapping.md +96 -0
- package/bundled/core/verification-oracle.md +167 -0
- package/bundled/core/versioning.md +133 -109
- package/bundled/locales/COVERAGE.md +84 -73
- package/bundled/locales/zh-CN/CHANGELOG.md +71 -6
- package/bundled/locales/zh-CN/CLAUDE.md +1 -1
- package/bundled/locales/zh-CN/README.md +22 -9
- package/bundled/locales/zh-CN/SECURITY.md +1 -1
- package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-CN/core/acceptance-criteria-traceability.md +4 -6
- package/bundled/locales/zh-CN/core/accessibility-standards.md +1 -1
- package/bundled/locales/zh-CN/core/adversarial-test.md +226 -0
- package/bundled/locales/zh-CN/core/agent-behavior-discipline.md +187 -0
- package/bundled/locales/zh-CN/core/ai-response-navigation.md +32 -6
- package/bundled/locales/zh-CN/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/locales/zh-CN/core/api-design-standards.md +1 -1
- package/bundled/locales/zh-CN/core/behavior-snapshot.md +335 -0
- package/bundled/locales/zh-CN/core/browser-compatibility-standards.md +229 -0
- package/bundled/locales/zh-CN/core/cd-deployment-strategies.md +135 -0
- package/bundled/locales/zh-CN/core/chaos-injection-tests.md +130 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +1 -1
- package/bundled/locales/zh-CN/core/code-review-checklist.md +1 -1
- package/bundled/locales/zh-CN/core/container-security.md +535 -0
- package/bundled/locales/zh-CN/core/context-aware-loading.md +1 -1
- package/bundled/locales/zh-CN/core/contract-testing-standards.md +191 -0
- package/bundled/locales/zh-CN/core/cost-budget-test.md +86 -0
- package/bundled/locales/zh-CN/core/cross-flow-regression.md +199 -0
- package/bundled/locales/zh-CN/core/data-migration-testing.md +217 -0
- package/bundled/locales/zh-CN/core/deployment-standards.md +328 -9
- package/bundled/locales/zh-CN/core/deprecation-standards.md +1 -1
- package/bundled/locales/zh-CN/core/developer-memory.md +2 -2
- package/bundled/locales/zh-CN/core/disaster-recovery-drill.md +87 -0
- package/bundled/locales/zh-CN/core/documentation-structure.md +1 -1
- package/bundled/locales/zh-CN/core/documentation-writing-standards.md +1 -1
- package/bundled/locales/zh-CN/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-CN/core/feature-manifest-standard.md +222 -0
- package/bundled/locales/zh-CN/core/flaky-test-management.md +87 -0
- package/bundled/locales/zh-CN/core/flow-based-testing.md +284 -0
- package/bundled/locales/zh-CN/core/forward-derivation-standards.md +3 -4
- package/bundled/locales/zh-CN/core/full-coverage-testing.md +197 -0
- package/bundled/locales/zh-CN/core/git-worktree.md +1 -1
- package/bundled/locales/zh-CN/core/governance-layer.md +160 -0
- package/bundled/locales/zh-CN/core/guides/performance-guide.md +515 -0
- package/bundled/locales/zh-CN/core/guides/security-guide.md +494 -0
- package/bundled/locales/zh-CN/core/knowledge-graph-memory.md +128 -0
- package/bundled/locales/zh-CN/core/license-compliance.md +129 -0
- package/bundled/locales/zh-CN/core/llm-output-validation.md +192 -0
- package/bundled/locales/zh-CN/core/logging-standards.md +130 -8
- package/bundled/locales/zh-CN/core/mock-boundary.md +109 -0
- package/bundled/locales/zh-CN/core/model-selection.md +28 -5
- package/bundled/locales/zh-CN/core/mutation-testing.md +106 -0
- package/bundled/locales/zh-CN/core/no-cicd-deployment.md +219 -0
- package/bundled/locales/zh-CN/core/packaging-standards.md +76 -5
- package/bundled/locales/zh-CN/core/pipeline-security-gates.md +126 -0
- package/bundled/locales/zh-CN/core/policy-as-code-testing.md +203 -0
- package/bundled/locales/zh-CN/core/privacy-standards.md +1 -1
- package/bundled/locales/zh-CN/core/project-context-memory.md +1 -1
- package/bundled/locales/zh-CN/core/prompt-regression.md +88 -0
- package/bundled/locales/zh-CN/core/property-based-testing.md +87 -0
- package/bundled/locales/zh-CN/core/release-quality-manifest.md +207 -0
- package/bundled/locales/zh-CN/core/release-readiness-gate.md +193 -0
- package/bundled/locales/zh-CN/core/replay-test.md +102 -0
- package/bundled/locales/zh-CN/core/reverse-engineering-standards.md +46 -1
- package/bundled/locales/zh-CN/core/rollback-standards.md +120 -0
- package/bundled/locales/zh-CN/core/sast-advanced.md +309 -0
- package/bundled/locales/zh-CN/core/secure-op.md +328 -0
- package/bundled/locales/zh-CN/core/security-testing.md +96 -0
- package/bundled/locales/zh-CN/core/self-review-protocol.md +167 -0
- package/bundled/locales/zh-CN/core/server-ops-security.md +507 -0
- package/bundled/locales/zh-CN/core/smoke-test.md +79 -0
- package/bundled/locales/zh-CN/core/spec-driven-development.md +39 -3
- package/bundled/locales/zh-CN/core/supply-chain-attestation.md +131 -0
- package/bundled/locales/zh-CN/core/versioning.md +1 -1
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +31 -6
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +61 -34
- package/bundled/locales/zh-CN/docs/MIGRATION-v6.md +88 -0
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +2 -2
- package/bundled/locales/zh-CN/docs/USER-MANUAL.md +14 -14
- package/bundled/locales/zh-CN/docs/specs/system/memory-adoption-strategy.md +105 -0
- package/bundled/locales/zh-CN/docs/user/FAQ.md +132 -0
- package/bundled/locales/zh-CN/docs/user/GETTING-STARTED.md +144 -0
- package/bundled/locales/zh-CN/docs/user/GLOSSARY.md +178 -0
- package/bundled/locales/zh-CN/docs/user/README.md +70 -0
- package/bundled/locales/zh-CN/docs/user/TROUBLESHOOTING.md +190 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
- package/bundled/locales/zh-CN/integrations/github-copilot/README.md +1 -1
- package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +3 -3
- package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +3 -3
- package/bundled/locales/zh-CN/methodologies/guides/sdd-guide.md +836 -0
- package/bundled/locales/zh-CN/options/changelog/auto-generated.md +166 -0
- package/bundled/locales/zh-CN/options/changelog/keep-a-changelog.md +140 -0
- package/bundled/locales/zh-CN/options/code-review/automated-review.md +214 -0
- package/bundled/locales/zh-CN/options/code-review/pair-programming.md +166 -0
- package/bundled/locales/zh-CN/options/code-review/pr-review.md +167 -0
- package/bundled/locales/zh-CN/options/documentation/api-docs.md +191 -0
- package/bundled/locales/zh-CN/options/documentation/markdown-docs.md +150 -0
- package/bundled/locales/zh-CN/options/documentation/wiki-style.md +131 -0
- package/bundled/locales/zh-CN/options/project-structure/kotlin.md +144 -0
- package/bundled/locales/zh-CN/options/project-structure/php.md +168 -0
- package/bundled/locales/zh-CN/options/project-structure/ruby.md +156 -0
- package/bundled/locales/zh-CN/options/project-structure/rust.md +136 -0
- package/bundled/locales/zh-CN/options/project-structure/swift.md +165 -0
- package/bundled/locales/zh-CN/options/testing/contract-testing.md +237 -0
- package/bundled/locales/zh-CN/options/testing/industry-pyramid.md +200 -0
- package/bundled/locales/zh-CN/options/testing/istqb-framework.md +144 -0
- package/bundled/locales/zh-CN/options/testing/performance-testing.md +251 -0
- package/bundled/locales/zh-CN/options/testing/security-testing.md +192 -0
- package/bundled/locales/zh-CN/skills/README.md +89 -126
- package/bundled/locales/zh-CN/skills/ac-coverage/SKILL.md +5 -7
- package/bundled/locales/zh-CN/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/agents/code-architect.md +263 -0
- package/bundled/locales/zh-CN/skills/agents/doc-writer.md +410 -0
- package/bundled/locales/zh-CN/skills/agents/reviewer.md +357 -0
- package/bundled/locales/zh-CN/skills/agents/spec-analyst.md +410 -0
- package/bundled/locales/zh-CN/skills/agents/test-specialist.md +368 -0
- package/bundled/locales/zh-CN/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/locales/zh-CN/skills/atdd-assistant/atdd-workflow.md +3 -4
- package/bundled/locales/zh-CN/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/bdd-assistant/guide.md +1 -2
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/SKILL.md +109 -13
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +30 -8
- package/bundled/locales/zh-CN/skills/checkin-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/ci-cd-assistant/SKILL.md +50 -0
- package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +5 -5
- package/bundled/locales/zh-CN/skills/commands/ac-coverage.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/atdd.md +3 -3
- package/bundled/locales/zh-CN/skills/commands/bdd.md +2 -2
- package/bundled/locales/zh-CN/skills/commands/brainstorm.md +26 -17
- package/bundled/locales/zh-CN/skills/commands/{review.md → code-review.md} +4 -4
- package/bundled/locales/zh-CN/skills/commands/derive-all.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive-atdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive-bdd.md +2 -3
- package/bundled/locales/zh-CN/skills/commands/derive-tdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/derive.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/dev-workflow.md +2 -2
- package/bundled/locales/zh-CN/skills/commands/methodology.md +4 -4
- package/bundled/locales/zh-CN/skills/commands/pr.md +1 -1
- package/bundled/locales/zh-CN/skills/commands/tdd.md +1 -1
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/contract-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/dev-methodology/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/dev-methodology/create-methodology.md +456 -0
- package/bundled/locales/zh-CN/skills/dev-methodology/guide.md +6 -6
- package/bundled/locales/zh-CN/skills/dev-methodology/runtime.md +296 -0
- package/bundled/locales/zh-CN/skills/dev-workflow-guide/SKILL.md +5 -5
- package/bundled/locales/zh-CN/skills/docs-generator/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/e2e-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/journey-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/logging-guide/SKILL.md +146 -142
- package/bundled/locales/zh-CN/skills/migration-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/observability-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/pr-automation-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/project-discovery/guide.md +2 -2
- package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/runbook-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/security-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/skill-builder/SKILL.md +3 -3
- package/bundled/locales/zh-CN/skills/slo-assistant/guide.md +1 -1
- package/bundled/locales/zh-CN/skills/spec-derivation/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/spec-derivation/guide.md +8 -9
- package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/sweep/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-CN/skills/testing-guide/SKILL.md +2 -2
- package/bundled/locales/zh-CN/skills/testing-guide/testing-theory.md +2298 -0
- package/bundled/locales/zh-CN/skills/workflows/README.md +451 -0
- package/bundled/locales/zh-TW/CHANGELOG.md +71 -6
- package/bundled/locales/zh-TW/CLAUDE.md +1 -1
- package/bundled/locales/zh-TW/MAINTENANCE.md +25 -2
- package/bundled/locales/zh-TW/README.md +22 -9
- package/bundled/locales/zh-TW/SECURITY.md +1 -1
- package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +8 -48
- package/bundled/locales/zh-TW/core/acceptance-criteria-traceability.md +4 -6
- package/bundled/locales/zh-TW/core/accessibility-standards.md +1 -1
- package/bundled/locales/zh-TW/core/adversarial-test.md +226 -0
- package/bundled/locales/zh-TW/core/agent-behavior-discipline.md +187 -0
- package/bundled/locales/zh-TW/core/ai-response-navigation.md +32 -6
- package/bundled/locales/zh-TW/core/anti-sycophancy-prompting.md +1 -1
- package/bundled/locales/zh-TW/core/api-design-standards.md +91 -9
- package/bundled/locales/zh-TW/core/audit-trail.md +110 -0
- package/bundled/locales/zh-TW/core/behavior-snapshot.md +335 -0
- package/bundled/locales/zh-TW/core/browser-compatibility-standards.md +1 -0
- package/bundled/locales/zh-TW/core/cd-deployment-strategies.md +135 -0
- package/bundled/locales/zh-TW/core/chaos-injection-tests.md +130 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +1 -1
- package/bundled/locales/zh-TW/core/code-review-checklist.md +1 -1
- package/bundled/locales/zh-TW/core/container-image-standards.md +93 -0
- package/bundled/locales/zh-TW/core/container-security.md +535 -0
- package/bundled/locales/zh-TW/core/cost-budget-test.md +86 -0
- package/bundled/locales/zh-TW/core/cross-flow-regression.md +1 -0
- package/bundled/locales/zh-TW/core/data-contract.md +101 -0
- package/bundled/locales/zh-TW/core/data-migration-testing.md +217 -0
- package/bundled/locales/zh-TW/core/data-pipeline.md +105 -0
- package/bundled/locales/zh-TW/core/deployment-standards.md +363 -25
- package/bundled/locales/zh-TW/core/deprecation-standards.md +17 -4
- package/bundled/locales/zh-TW/core/developer-memory.md +2 -2
- package/bundled/locales/zh-TW/core/disaster-recovery-drill.md +87 -0
- package/bundled/locales/zh-TW/core/documentation-writing-standards.md +1 -1
- package/bundled/locales/zh-TW/core/error-code-standards.md +2 -2
- package/bundled/locales/zh-TW/core/feature-manifest-standard.md +222 -0
- package/bundled/locales/zh-TW/core/flaky-test-management.md +87 -0
- package/bundled/locales/zh-TW/core/flow-based-testing.md +284 -0
- package/bundled/locales/zh-TW/core/forward-derivation-standards.md +3 -4
- package/bundled/locales/zh-TW/core/full-coverage-testing.md +250 -0
- package/bundled/locales/zh-TW/core/git-worktree.md +1 -1
- package/bundled/locales/zh-TW/core/guides/performance-guide.md +515 -0
- package/bundled/locales/zh-TW/core/guides/security-guide.md +494 -0
- package/bundled/locales/zh-TW/core/iac-design-principles.md +90 -0
- package/bundled/locales/zh-TW/core/incident-response.md +111 -0
- package/bundled/locales/zh-TW/core/license-compliance.md +129 -0
- package/bundled/locales/zh-TW/core/llm-output-validation.md +192 -0
- package/bundled/locales/zh-TW/core/logging-standards.md +208 -4
- package/bundled/locales/zh-TW/core/mock-boundary.md +161 -0
- package/bundled/locales/zh-TW/core/model-provenance.md +173 -0
- package/bundled/locales/zh-TW/core/model-selection.md +28 -5
- package/bundled/locales/zh-TW/core/mutation-testing.md +106 -0
- package/bundled/locales/zh-TW/core/no-cicd-deployment.md +219 -0
- package/bundled/locales/zh-TW/core/packaging-standards.md +76 -5
- package/bundled/locales/zh-TW/core/performance-standards.md +84 -5
- package/bundled/locales/zh-TW/core/pii-classification.md +102 -0
- package/bundled/locales/zh-TW/core/pipeline-security-gates.md +126 -0
- package/bundled/locales/zh-TW/core/policy-as-code-testing.md +203 -0
- package/bundled/locales/zh-TW/core/prd-standards.md +88 -0
- package/bundled/locales/zh-TW/core/privacy-standards.md +1 -1
- package/bundled/locales/zh-TW/core/product-metrics-standards.md +96 -0
- package/bundled/locales/zh-TW/core/project-context-memory.md +1 -1
- package/bundled/locales/zh-TW/core/prompt-regression.md +88 -0
- package/bundled/locales/zh-TW/core/property-based-testing.md +87 -0
- package/bundled/locales/zh-TW/core/refactoring-standards.md +43 -6
- package/bundled/locales/zh-TW/core/release-quality-manifest.md +207 -0
- package/bundled/locales/zh-TW/core/replay-test.md +102 -0
- package/bundled/locales/zh-TW/core/resource-cost-boundary.md +175 -0
- package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +64 -5
- package/bundled/locales/zh-TW/core/rollback-standards.md +120 -0
- package/bundled/locales/zh-TW/core/runbook.md +110 -0
- package/bundled/locales/zh-TW/core/sast-advanced.md +309 -0
- package/bundled/locales/zh-TW/core/schema-evolution.md +98 -0
- package/bundled/locales/zh-TW/core/secret-management-standards.md +101 -0
- package/bundled/locales/zh-TW/core/secure-op.md +328 -0
- package/bundled/locales/zh-TW/core/security-testing.md +96 -0
- package/bundled/locales/zh-TW/core/self-review-protocol.md +2 -2
- package/bundled/locales/zh-TW/core/server-ops-security.md +507 -0
- package/bundled/locales/zh-TW/core/slo-sli.md +108 -0
- package/bundled/locales/zh-TW/core/smoke-test.md +79 -0
- package/bundled/locales/zh-TW/core/spec-driven-development.md +19 -11
- package/bundled/locales/zh-TW/core/supply-chain-attestation.md +131 -0
- package/bundled/locales/zh-TW/core/user-journey-testing.md +111 -0
- package/bundled/locales/zh-TW/core/user-story-mapping.md +94 -0
- package/bundled/locales/zh-TW/core/verification-oracle.md +159 -0
- package/bundled/locales/zh-TW/core/versioning.md +112 -112
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +31 -6
- package/bundled/locales/zh-TW/docs/DEV-WORKFLOW-MAPPING.md +6 -6
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +61 -34
- package/bundled/locales/zh-TW/docs/MIGRATION-v6.md +88 -0
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +2 -2
- package/bundled/locales/zh-TW/docs/USER-MANUAL.md +14 -14
- package/bundled/locales/zh-TW/docs/specs/system/memory-adoption-strategy.md +105 -0
- package/bundled/locales/zh-TW/docs/user/FAQ.md +132 -0
- package/bundled/locales/zh-TW/docs/user/GETTING-STARTED.md +144 -0
- package/bundled/locales/zh-TW/docs/user/GLOSSARY.md +178 -0
- package/bundled/locales/zh-TW/docs/user/README.md +70 -0
- package/bundled/locales/zh-TW/docs/user/TROUBLESHOOTING.md +190 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +1 -1
- package/bundled/locales/zh-TW/integrations/github-copilot/README.md +1 -1
- package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +3 -3
- package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +3 -3
- package/bundled/locales/zh-TW/methodologies/guides/sdd-guide.md +523 -26
- package/bundled/locales/zh-TW/options/changelog/auto-generated.md +166 -0
- package/bundled/locales/zh-TW/options/changelog/keep-a-changelog.md +140 -0
- package/bundled/locales/zh-TW/options/code-review/automated-review.md +214 -0
- package/bundled/locales/zh-TW/options/code-review/pair-programming.md +166 -0
- package/bundled/locales/zh-TW/options/code-review/pr-review.md +167 -0
- package/bundled/locales/zh-TW/options/documentation/api-docs.md +191 -0
- package/bundled/locales/zh-TW/options/documentation/markdown-docs.md +150 -0
- package/bundled/locales/zh-TW/options/documentation/wiki-style.md +131 -0
- package/bundled/locales/zh-TW/options/project-structure/kotlin.md +144 -0
- package/bundled/locales/zh-TW/options/project-structure/php.md +168 -0
- package/bundled/locales/zh-TW/options/project-structure/ruby.md +156 -0
- package/bundled/locales/zh-TW/options/project-structure/rust.md +136 -0
- package/bundled/locales/zh-TW/options/project-structure/swift.md +165 -0
- package/bundled/locales/zh-TW/options/testing/contract-testing.md +237 -0
- package/bundled/locales/zh-TW/options/testing/industry-pyramid.md +200 -0
- package/bundled/locales/zh-TW/options/testing/istqb-framework.md +144 -0
- package/bundled/locales/zh-TW/options/testing/performance-testing.md +251 -0
- package/bundled/locales/zh-TW/options/testing/security-testing.md +192 -0
- package/bundled/locales/zh-TW/skills/README.md +91 -128
- package/bundled/locales/zh-TW/skills/ac-coverage/SKILL.md +4 -6
- package/bundled/locales/zh-TW/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/agents/code-architect.md +263 -0
- package/bundled/locales/zh-TW/skills/agents/doc-writer.md +410 -0
- package/bundled/locales/zh-TW/skills/agents/reviewer.md +357 -0
- package/bundled/locales/zh-TW/skills/agents/spec-analyst.md +410 -0
- package/bundled/locales/zh-TW/skills/agents/test-specialist.md +368 -0
- package/bundled/locales/zh-TW/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/locales/zh-TW/skills/atdd-assistant/atdd-workflow.md +3 -4
- package/bundled/locales/zh-TW/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +2 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/guide.md +1 -2
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/SKILL.md +110 -14
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +31 -7
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/ci-cd-assistant/SKILL.md +50 -0
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +7 -5
- package/bundled/locales/zh-TW/skills/commands/ac-coverage.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/atdd.md +3 -3
- package/bundled/locales/zh-TW/skills/commands/bdd.md +2 -2
- package/bundled/locales/zh-TW/skills/commands/brainstorm.md +26 -17
- package/bundled/locales/zh-TW/skills/commands/{review.md → code-review.md} +5 -5
- package/bundled/locales/zh-TW/skills/commands/derive-all.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive-atdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive-bdd.md +2 -3
- package/bundled/locales/zh-TW/skills/commands/derive-tdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/derive.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/dev-workflow.md +2 -2
- package/bundled/locales/zh-TW/skills/commands/methodology.md +4 -4
- package/bundled/locales/zh-TW/skills/commands/pr.md +1 -1
- package/bundled/locales/zh-TW/skills/commands/tdd.md +1 -1
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/contract-test-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/dev-methodology/create-methodology.md +456 -0
- package/bundled/locales/zh-TW/skills/dev-methodology/guide.md +5 -5
- package/bundled/locales/zh-TW/skills/dev-methodology/runtime.md +296 -0
- package/bundled/locales/zh-TW/skills/dev-workflow-guide/SKILL.md +5 -5
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/e2e-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/logging-guide/SKILL.md +29 -27
- package/bundled/locales/zh-TW/skills/migration-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/pr-automation-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/project-discovery/guide.md +2 -2
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/security-assistant/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/spec-derivation/guide.md +7 -8
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/sweep/SKILL.md +1 -1
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +3 -1
- package/bundled/locales/zh-TW/skills/testing-guide/SKILL.md +2 -2
- package/bundled/locales/zh-TW/skills/testing-guide/testing-theory.md +2298 -0
- package/bundled/locales/zh-TW/skills/workflows/README.md +451 -0
- package/bundled/skills/README.md +1 -1
- package/bundled/skills/ac-coverage/SKILL.md +17 -7
- package/bundled/skills/adr-assistant/SKILL.md +1 -1
- package/bundled/skills/agents/code-architect.md +1 -1
- package/bundled/skills/agents/doc-writer.md +1 -1
- package/bundled/skills/agents/reviewer.md +2 -2
- package/bundled/skills/agents/spec-analyst.md +1 -1
- package/bundled/skills/agents/test-specialist.md +1 -1
- package/bundled/skills/ai-collaboration-standards/SKILL.md +2 -2
- package/bundled/skills/ai-friendly-architecture/SKILL.md +2 -2
- package/bundled/skills/ai-instruction-standards/SKILL.md +1 -1
- package/bundled/skills/atdd-assistant/SKILL.md +7 -0
- package/bundled/skills/atdd-assistant/acceptance-criteria-guide.md +1 -1
- package/bundled/skills/atdd-assistant/atdd-workflow.md +6 -8
- package/bundled/skills/audit-assistant/SKILL.md +2 -2
- package/bundled/skills/bdd-assistant/SKILL.md +7 -0
- package/bundled/skills/bdd-assistant/guide.md +1 -2
- package/bundled/skills/brainstorm-assistant/SKILL.md +133 -11
- package/bundled/skills/brainstorm-assistant/guide.md +33 -5
- package/bundled/skills/checkin-assistant/SKILL.md +8 -1
- package/bundled/skills/ci-cd-assistant/SKILL.md +57 -0
- package/bundled/skills/code-review-assistant/SKILL.md +15 -8
- package/bundled/skills/commands/COMMAND-FAMILY-OVERVIEW.md +2 -2
- package/bundled/skills/commands/COMMAND-INDEX.json +3 -3
- package/bundled/skills/commands/README.md +2 -2
- package/bundled/skills/commands/ac-coverage.md +1 -1
- package/bundled/skills/commands/atdd.md +2 -2
- package/bundled/skills/commands/bdd.md +2 -2
- package/bundled/skills/commands/brainstorm.md +25 -14
- package/bundled/skills/commands/{review.md → code-review.md} +6 -6
- package/bundled/skills/commands/derive-all.md +1 -1
- package/bundled/skills/commands/derive-atdd.md +1 -1
- package/bundled/skills/commands/derive-bdd.md +2 -3
- package/bundled/skills/commands/derive-tdd.md +1 -1
- package/bundled/skills/commands/derive.md +1 -1
- package/bundled/skills/commands/dev-workflow.md +1 -1
- package/bundled/skills/commands/journey-test.md +45 -0
- package/bundled/skills/commands/methodology.md +4 -4
- package/bundled/skills/commands/pr.md +1 -1
- package/bundled/skills/commands/skill-builder.md +42 -0
- package/bundled/skills/commands/tdd.md +1 -1
- package/bundled/skills/dev-methodology/create-methodology.md +1 -1
- package/bundled/skills/dev-methodology/guide.md +1 -1
- package/bundled/skills/dev-methodology/runtime.md +1 -1
- package/bundled/skills/dev-workflow-guide/SKILL.md +3 -3
- package/bundled/skills/dev-workflow-guide/workflow-phases.md +3 -3
- package/bundled/skills/docs-generator/SKILL.md +3 -3
- package/bundled/skills/incident-response-assistant/SKILL.md +2 -2
- package/bundled/skills/logging-guide/SKILL.md +38 -2
- package/bundled/skills/migration-assistant/SKILL.md +226 -0
- package/bundled/skills/observability-assistant/SKILL.md +74 -0
- package/bundled/skills/pr-automation-assistant/SKILL.md +5 -1
- package/bundled/skills/project-discovery/guide.md +2 -2
- package/bundled/skills/push/SKILL.md +1 -1
- package/bundled/skills/release-standards/SKILL.md +19 -5
- package/bundled/skills/security-assistant/SKILL.md +1 -1
- package/bundled/skills/skill-builder/SKILL.md +1 -1
- package/bundled/skills/spec-derivation/guide.md +3 -4
- package/bundled/skills/spec-driven-dev/SKILL.md +2 -2
- package/bundled/skills/sweep/SKILL.md +1 -1
- package/bundled/skills/tdd-assistant/SKILL.md +8 -1
- package/bundled/skills/testing-guide/SKILL.md +1 -1
- package/bundled/skills/testing-guide/testing-theory.md +1 -1
- package/bundled/skills/workflows/README.md +2 -2
- package/package.json +3 -3
- package/src/commands/audit.js +30 -9
- package/src/commands/config.js +33 -2
- package/src/commands/hitl.js +14 -1
- package/src/commands/init.js +110 -58
- package/src/commands/quickstart.js +1 -2
- package/src/commands/release.js +51 -6
- package/src/commands/run-intent.js +9 -0
- package/src/commands/spec-split.js +27 -2
- package/src/commands/update.js +22 -6
- package/src/config/ai-agent-paths.js +3 -1
- package/src/i18n/messages.js +3 -102
- package/src/missions/MissionManager.js +44 -12
- package/src/utils/build-manifest.js +35 -3
- package/src/utils/friction-detector.js +71 -22
- package/src/utils/health-checker.js +29 -2
- package/src/utils/transaction.js +111 -0
- package/src/utils/version-promote.js +16 -0
- package/standards-registry.json +58 -146
- package/bundled/ai/standards/agent-communication-protocol.ai.yaml +0 -42
- package/bundled/ai/standards/agent-dispatch.ai.yaml +0 -42
- package/bundled/ai/standards/branch-completion.ai.yaml +0 -44
- package/bundled/ai/standards/change-batching-standards.ai.yaml +0 -44
- package/bundled/ai/standards/execution-history.ai.yaml +0 -42
- package/bundled/ai/standards/pipeline-integration-standards.ai.yaml +0 -42
- package/bundled/ai/standards/workflow-enforcement.ai.yaml +0 -44
- package/bundled/ai/standards/workflow-state-protocol.ai.yaml +0 -43
- package/src/commands/flow.js +0 -260
- package/src/commands/start.js +0 -372
- package/src/commands/sweep.js +0 -151
- package/src/commands/workflow.js +0 -681
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"core": {
|
|
10
10
|
"description": "Foundation commands every AI tool should know",
|
|
11
11
|
"descriptionZh": "基礎命令,所有 AI 工具都應知道",
|
|
12
|
-
"commands": ["commit", "review", "sdd", "check", "init", "update", "config"]
|
|
12
|
+
"commands": ["commit", "code-review", "sdd", "check", "init", "update", "config"]
|
|
13
13
|
},
|
|
14
14
|
"testing": {
|
|
15
15
|
"description": "Testing-related commands",
|
|
16
16
|
"descriptionZh": "測試相關命令",
|
|
17
|
-
"commands": ["tdd", "bdd", "atdd", "e2e", "coverage", "ac-coverage", "derive", "derive-bdd", "derive-tdd", "derive-atdd", "derive-all"]
|
|
17
|
+
"commands": ["tdd", "bdd", "atdd", "e2e", "coverage", "ac-coverage", "derive", "derive-bdd", "derive-tdd", "derive-atdd", "derive-all", "journey-test"]
|
|
18
18
|
},
|
|
19
19
|
"quality": {
|
|
20
20
|
"description": "Quality and refactoring commands",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"methodology": {
|
|
35
35
|
"description": "Methodology and workflow commands",
|
|
36
36
|
"descriptionZh": "方法論與工作流程命令",
|
|
37
|
-
"commands": ["methodology", "dev-workflow", "discover", "release", "audit", "migrate"]
|
|
37
|
+
"commands": ["methodology", "dev-workflow", "discover", "release", "audit", "migrate", "skill-builder"]
|
|
38
38
|
},
|
|
39
39
|
"reference": {
|
|
40
40
|
"description": "Reference guide commands (read-only)",
|
|
@@ -33,7 +33,7 @@ Commands for development workflow automation.
|
|
|
33
33
|
|---------|-------------|------|
|
|
34
34
|
| [`/brainstorm`](./brainstorm.md) | Structured AI-assisted brainstorming | AI 輔助腦力激盪 |
|
|
35
35
|
| [`/commit`](./commit.md) | Generate conventional commit messages | 產生 commit message |
|
|
36
|
-
| [`/review`](./review.md) | Perform systematic code review | 執行程式碼審查 |
|
|
36
|
+
| [`/code-review`](./code-review.md) | Perform systematic code review | 執行程式碼審查 |
|
|
37
37
|
| [`/release`](./release.md) | Guide through release process | 引導發布流程 |
|
|
38
38
|
| [`/changelog`](./changelog.md) | Update CHANGELOG.md | 更新 CHANGELOG |
|
|
39
39
|
| [`/requirement`](./requirement.md) | Write user stories and requirements | 撰寫需求文件 |
|
|
@@ -89,7 +89,7 @@ Commands for development methodology workflows.
|
|
|
89
89
|
| `/check` | — | — | Standards Management |
|
|
90
90
|
| `/config` | — | — | Standards Management |
|
|
91
91
|
| `/commit` | commit-standards | `commit-message-guide.md` | Development Workflow |
|
|
92
|
-
| `/review` | code-review | `code-review-checklist.md` | Development Workflow |
|
|
92
|
+
| `/code-review` | code-review | `code-review-checklist.md` | Development Workflow |
|
|
93
93
|
| `/checkin` | — | `checkin-standards.md` | Development Workflow |
|
|
94
94
|
| `/release` | release-standards | `versioning.md` | Development Workflow |
|
|
95
95
|
| `/changelog` | — | `changelog-standards.md` | Development Workflow |
|
|
@@ -129,7 +129,7 @@ After `/ac-coverage` completes, the AI assistant should suggest:
|
|
|
129
129
|
|
|
130
130
|
## References | 參考
|
|
131
131
|
|
|
132
|
-
- [AC Coverage Assistant Skill](../ac-coverage
|
|
132
|
+
- [AC Coverage Assistant Skill](../ac-coverage/SKILL.md)
|
|
133
133
|
- [Core Standard: Acceptance Criteria Traceability](../../core/acceptance-criteria-traceability.md)
|
|
134
134
|
- Related: [/coverage](./coverage.md) (code-level coverage)
|
|
135
135
|
- Related: [/checkin](./checkin.md) (quality gates)
|
|
@@ -31,7 +31,7 @@ When `/atdd` is invoked:
|
|
|
31
31
|
3. **追蹤階段轉換**隨著工作進展
|
|
32
32
|
4. **在回應中顯示階段指示器**(🤝 工作坊、🧪 提煉、💻 開發、🎬 展示、✅ 完成)
|
|
33
33
|
|
|
34
|
-
See [methodology-system](../methodology
|
|
34
|
+
See [methodology-system](../dev-methodology/SKILL.md) for full methodology tracking.
|
|
35
35
|
|
|
36
36
|
## ATDD Cycle | ATDD 循環
|
|
37
37
|
|
|
@@ -229,4 +229,4 @@ ATDD Level (Business Acceptance)
|
|
|
229
229
|
- Core Standard: [acceptance-test-driven-development.md](../../core/acceptance-test-driven-development.md)
|
|
230
230
|
- Skill: [atdd-assistant](../atdd-assistant/SKILL.md)
|
|
231
231
|
- Methodology: [atdd.methodology.yaml](../../methodologies/atdd.methodology.yaml)
|
|
232
|
-
- Methodology System: [methodology-system](../methodology
|
|
232
|
+
- Methodology System: [methodology-system](../dev-methodology/SKILL.md)
|
|
@@ -68,7 +68,7 @@ When `/bdd` is invoked:
|
|
|
68
68
|
3. **追蹤階段轉換**隨著工作進展
|
|
69
69
|
4. **在回應中顯示階段指示器**(🔍 探索、📝 制定、🤖 自動化、📚 活文件)
|
|
70
70
|
|
|
71
|
-
See [methodology-system](../methodology
|
|
71
|
+
See [methodology-system](../dev-methodology/SKILL.md) for full methodology tracking.
|
|
72
72
|
|
|
73
73
|
## BDD Cycle | BDD 循環
|
|
74
74
|
|
|
@@ -240,4 +240,4 @@ BDD works best with collaboration:
|
|
|
240
240
|
## Reference | 參考
|
|
241
241
|
|
|
242
242
|
- Methodology: [bdd.methodology.yaml](../../methodologies/bdd.methodology.yaml)
|
|
243
|
-
- Methodology System: [methodology-system](../methodology
|
|
243
|
+
- Methodology System: [methodology-system](../dev-methodology/SKILL.md)
|
|
@@ -23,13 +23,17 @@ PRE-FLIGHT ──► FRAME ──► DIVERGE ──────────► C
|
|
|
23
23
|
防錨定 定義問題 persona 集成+透鏡 多評審面板+硬角色反駁 輸出提案
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
| Phase | Goal | Key Techniques (v3) | 目標 |
|
|
27
|
-
|
|
28
|
-
| **PRE-FLIGHT** | Prevent AI anchoring | User writes 3 ideas first; no analogy seed | 防止錨定 |
|
|
29
|
-
| **FRAME** | Define problem clearly | 5 Whys, HMW, Stakeholder Map | 清楚定義問題 |
|
|
30
|
-
| **DIVERGE** | Force viewpoint diversity | Persona ensemble + diversity lenses | 逼出視角多樣性 |
|
|
31
|
-
| **CONVERGE** | Bias-checked selection | Multi-critic panel + Devil's Advocate/Steelman | 降偏誤選擇 |
|
|
32
|
-
| **OUTPUT** | Actionable report | Brainstorm Report
|
|
26
|
+
| Phase | Goal | Key Techniques (v3) + BQS gate (v4) | 目標 |
|
|
27
|
+
|-------|------|--------------------------------------|------|
|
|
28
|
+
| **PRE-FLIGHT** | Prevent AI anchoring | User writes 3 ideas first; no analogy seed; **BQS Layer 0 intent (explore/exploit)** | 防止錨定 |
|
|
29
|
+
| **FRAME** | Define problem clearly | 5 Whys, HMW, Stakeholder Map; **D1 frame purity** | 清楚定義問題 |
|
|
30
|
+
| **DIVERGE** | Force viewpoint diversity | Persona ensemble + diversity lenses; **BQS Layer 1 D1–D4, hard gate hides D5–D8** | 逼出視角多樣性 |
|
|
31
|
+
| **CONVERGE** | Bias-checked selection | Multi-critic panel + Devil's Advocate/Steelman; **BQS Layer 2 D5–D8 on Top 3, D4 judge≠generator** | 降偏誤選擇 |
|
|
32
|
+
| **OUTPUT** | Actionable report | Brainstorm Report + Seeds + Contested Zone + **Layer 3 Judgment Override** | 可執行的報告 |
|
|
33
|
+
|
|
34
|
+
> **BQS v1 (XSPEC-296):** v4 layers a four-layer × timeline quality contract on v3. Full oracles and structural rules are in the skill — see [Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md#bqs-v1--quality-contract--bqs-v1--品質契約).
|
|
35
|
+
>
|
|
36
|
+
> **BQS v1(XSPEC-296):** v4 在 v3 上疊加四層 × 時間軸品質契約。完整 oracle 與結構規則見 skill:[Brainstorm Assistant Skill](../brainstorm-assistant/SKILL.md#bqs-v1--quality-contract--bqs-v1--品質契約)。
|
|
33
37
|
|
|
34
38
|
## Techniques | 技法
|
|
35
39
|
|
|
@@ -92,34 +96,39 @@ After brainstorming, the typical workflow is:
|
|
|
92
96
|
| `/brainstorm "topic"` | 以指定主題啟動 PRE-FLIGHT,再進入 FRAME |
|
|
93
97
|
| `/brainstorm --personas "a,b,c"` | 以自訂 persona 組進入 DIVERGE |
|
|
94
98
|
| `/brainstorm --lens <name>` | 以指定多樣性透鏡為主進入 DIVERGE |
|
|
95
|
-
| `/brainstorm --enhanced` | 若宿主支援子代理則平行跑 persona/評審,否則靜默退回 baseline |
|
|
99
|
+
| `/brainstorm --enhanced` | 若宿主支援子代理則平行跑 persona/評審,否則靜默退回 baseline;此模式下 BQS D4 方可 pass |
|
|
100
|
+
| `/brainstorm --intent exploit` | 以 exploit 意圖啟動(BQS Layer 0),D2 低覆蓋不扣分 |
|
|
96
101
|
|
|
97
102
|
### Interaction Script | 互動腳本
|
|
98
103
|
|
|
99
104
|
#### PRE-FLIGHT Phase
|
|
100
105
|
1. 請使用者先寫 問題(一句)+3 個初始想法+最不想要的解法類型
|
|
101
106
|
2. 拒絕「像 X 但給 Y」種子,改寫為底層問題
|
|
107
|
+
3. **BQS Layer 0**:宣告本次 explore/exploit 配比與賭注類型(未宣告預設偏 explore)
|
|
102
108
|
|
|
103
109
|
🛑 **STOP**: 收到三項輸入前不生成任何想法(`--skip-preflight` 例外,顯示錨定警告)
|
|
104
110
|
|
|
105
111
|
#### FRAME Phase
|
|
106
112
|
1. 釐清問題陳述(5 Whys 找根因)
|
|
107
113
|
2. 重構為 HMW 問題;識別利害關係人
|
|
114
|
+
3. **BQS D1 框架純度**:問題不得內嵌特定方案或「像 X 給 Y」,須到根因
|
|
108
115
|
|
|
109
116
|
🛑 **STOP**: 問題定義後等待使用者確認
|
|
110
117
|
|
|
111
|
-
#### DIVERGE Phase
|
|
118
|
+
#### DIVERGE Phase (BQS Layer 1 — D1–D4 leading, visible)
|
|
112
119
|
1. 逐一以預設 persona(領域專家/懷疑者/跨域類比者/成本約束者/使用者代言)思維鏈生成想法
|
|
113
120
|
2. **分支隔離**:生成各 persona 時不互相預覽,全部產完才一起呈現
|
|
114
121
|
3. 至少套用一個多樣性透鏡(類比/假設反轉/形態矩陣)
|
|
115
|
-
4. 以多樣性(覆蓋的 persona
|
|
122
|
+
4. 以多樣性(覆蓋的 persona/透鏡數,D2/D3)而非數量為繼續門檻
|
|
123
|
+
5. **硬序列閘**:D5–D8 在最後一個 persona 產完前**不得揭示或評分**;CONVERGE critic 不得提前呼叫
|
|
116
124
|
|
|
117
|
-
#### CONVERGE Phase
|
|
125
|
+
#### CONVERGE Phase (BQS Layer 2 — D5–D8 on Top 3 only)
|
|
118
126
|
1. 以 3 個獨立評審(工程可行性/使用者影響/策略一致)各自評分後聚合
|
|
119
|
-
2. 對前 3 名跑硬角色 Devil's Advocate(論證會失敗)+ Steelman;使用者以 (a)修改/(b)反駁/(c)移除
|
|
120
|
-
3.
|
|
127
|
+
2. 對前 3 名跑硬角色 Devil's Advocate(論證會失敗)+ Steelman;使用者以 (a)修改/(b)反駁/(c)移除 回應。**D4 判官≠產生者**:評審須在獨立 context(`--enhanced`)方可 pass,否則標 `[degraded]` 不得 pass
|
|
128
|
+
3. **僅對 Top 3** 套用 D5 接地(外部事實需 file:line/來源、跨級地板;假說免接地)、D6 淨值(解誰問題/真有嗎/不做代價+掛 lagging 欄)、D7 二態證偽(「需先做 X」轉 next-step、不算 fail)、D8 next-step 裁決
|
|
129
|
+
4. **Meta 停止規則**:維度全綠且再跑一輪 Top 3 集合成員不變→停;硬上限 2 輪
|
|
121
130
|
|
|
122
|
-
🛑 **STOP**: 展示 Brainstorm Report
|
|
131
|
+
🛑 **STOP**: 展示 Brainstorm Report(含 Seeds/爭議區/Judgment Override)後等待使用者決定下一步
|
|
123
132
|
|
|
124
133
|
### Stop Points | 停止點
|
|
125
134
|
|
|
@@ -139,6 +148,8 @@ After brainstorming, the typical workflow is:
|
|
|
139
148
|
| 指定的 persona/透鏡不存在 | 列出可用選項供選擇 |
|
|
140
149
|
| `--enhanced` 但宿主不支援子代理 | 靜默退回 baseline,照常進行 |
|
|
141
150
|
| 前 3 名全來自同一 persona/透鏡 | 標示並在輸出前再跑一個透鏡 |
|
|
151
|
+
| baseline 單 context 跑評審(無獨立 context) | BQS D4 標 `[degraded]`,不得標 pass |
|
|
152
|
+
| 外部事實宣稱無 file:line/來源 | D5 接地 fail,要求補來源或改標 `[假說]` |
|
|
142
153
|
|
|
143
154
|
## References | 參考
|
|
144
155
|
|
|
@@ -40,9 +40,9 @@ Perform systematic code review using standardized checklists and comment prefixe
|
|
|
40
40
|
|
|
41
41
|
## Usage | 使用方式
|
|
42
42
|
|
|
43
|
-
- `/review` - Review all changes in current branch
|
|
44
|
-
- `/review src/auth.js` - Review specific file
|
|
45
|
-
- `/review feature/login` - Review specific branch
|
|
43
|
+
- `/code-review` - Review all changes in current branch
|
|
44
|
+
- `/code-review src/auth.js` - Review specific file
|
|
45
|
+
- `/code-review feature/login` - Review specific branch
|
|
46
46
|
|
|
47
47
|
## AI Agent Behavior | AI 代理行為
|
|
48
48
|
|
|
@@ -52,9 +52,9 @@ Perform systematic code review using standardized checklists and comment prefixe
|
|
|
52
52
|
|
|
53
53
|
| Input | AI Action |
|
|
54
54
|
|-------|-----------|
|
|
55
|
-
| `/review` | 執行 `git diff` 取得當前分支所有變更,開始審查 |
|
|
56
|
-
| `/review <file>` | 僅審查指定檔案 |
|
|
57
|
-
| `/review <branch>` | 審查指定分支相對於 main 的差異 |
|
|
55
|
+
| `/code-review` | 執行 `git diff` 取得當前分支所有變更,開始審查 |
|
|
56
|
+
| `/code-review <file>` | 僅審查指定檔案 |
|
|
57
|
+
| `/code-review <branch>` | 審查指定分支相對於 main 的差異 |
|
|
58
58
|
|
|
59
59
|
### Interaction Script | 互動腳本
|
|
60
60
|
|
|
@@ -88,6 +88,6 @@ SPEC-XXX.md ──► /derive-bdd ──► /derive-tdd ──► [/derive-atdd]
|
|
|
88
88
|
|
|
89
89
|
## Reference | 參考
|
|
90
90
|
|
|
91
|
-
- Parent command: [/derive](../
|
|
91
|
+
- Parent command: [/derive](../spec-derivation/SKILL.md)
|
|
92
92
|
- Core standard: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
93
93
|
- Sub-commands: [/derive-bdd](./derive-bdd.md), [/derive-tdd](./derive-tdd.md), [/derive-atdd](./derive-atdd.md)
|
|
@@ -78,5 +78,5 @@ SPEC-XXX.md ──► Parse AC ──► Generate acceptance.md ──► Review
|
|
|
78
78
|
|
|
79
79
|
## Reference | 參考
|
|
80
80
|
|
|
81
|
-
- Parent command: [/derive](../
|
|
81
|
+
- Parent command: [/derive](../spec-derivation/SKILL.md)
|
|
82
82
|
- Core standard: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -24,10 +24,9 @@ SPEC-XXX.md ──► Parse AC ──► Generate .feature ──► Review
|
|
|
24
24
|
## Output Format | 輸出格式
|
|
25
25
|
|
|
26
26
|
```gherkin
|
|
27
|
-
@SPEC-001
|
|
28
27
|
Feature: [Feature Name]
|
|
29
28
|
|
|
30
|
-
@AC-1
|
|
29
|
+
@SPEC-001 @AC-1
|
|
31
30
|
Scenario: [AC-1 description]
|
|
32
31
|
Given [context]
|
|
33
32
|
When [action]
|
|
@@ -82,5 +81,5 @@ Feature: [Feature Name]
|
|
|
82
81
|
|
|
83
82
|
## Reference | 參考
|
|
84
83
|
|
|
85
|
-
- Parent command: [/derive](../
|
|
84
|
+
- Parent command: [/derive](../spec-derivation/SKILL.md)
|
|
86
85
|
- Core standard: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -84,5 +84,5 @@ describe('SPEC-001: [Feature Name]', () => {
|
|
|
84
84
|
|
|
85
85
|
## Reference | 參考
|
|
86
86
|
|
|
87
|
-
- Parent command: [/derive](../
|
|
87
|
+
- Parent command: [/derive](../spec-derivation/SKILL.md)
|
|
88
88
|
- Core standard: [forward-derivation-standards.md](../../core/forward-derivation-standards.md)
|
|
@@ -123,5 +123,5 @@ Generate derived artifacts (BDD scenarios, TDD skeletons, ATDD tables) from appr
|
|
|
123
123
|
|
|
124
124
|
## References | 參考
|
|
125
125
|
|
|
126
|
-
* [Forward Derivation Standard](../
|
|
126
|
+
* [Forward Derivation Standard](../spec-derivation/SKILL.md)
|
|
127
127
|
* [Core Standard](../../core/forward-derivation-standards.md)
|
|
@@ -82,7 +82,7 @@ If active specs exist, highlight them and suggest the appropriate workflow phase
|
|
|
82
82
|
| **I. Planning** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | 需求、規格、API/DB 設計 |
|
|
83
83
|
| **II. Testing** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | 先寫測試再寫程式 |
|
|
84
84
|
| **III. Implementation** | `/refactor` `/reverse` `/migrate` `/durable` | 撰寫、改善與遷移程式碼 |
|
|
85
|
-
| **IV. Quality** | `/checkin` `/review` `/security` `/scan` `/incident` | 品質、安全、事故回應 |
|
|
85
|
+
| **IV. Quality** | `/checkin` `/code-review` `/security` `/scan` `/incident` | 品質、安全、事故回應 |
|
|
86
86
|
| **V. Release** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | 版本、提交、PR、CI/CD |
|
|
87
87
|
| **VI. Docs** | `/docs` `/docgen` | 文件與專案結構 |
|
|
88
88
|
| **VII. Standards** | `/discover` `/guide` `/metrics` `/audit` | 參考指南、指標、審計 |
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: journey-test
|
|
3
|
+
description: [UDS] Generate coherent user journey test plans (TESTPLAN) and E2E skeletons from a project description.
|
|
4
|
+
allowed-tools: Read, Write, Grep, Glob
|
|
5
|
+
argument-hint: "[project description | --analyze | --archetype A1|A2|A3]"
|
|
6
|
+
status: stable
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# /journey-test Command
|
|
10
|
+
|
|
11
|
+
The `/journey-test` command turns a project description into a coherent user
|
|
12
|
+
journey test plan (`TESTPLAN-NNN.md`) plus matching E2E skeletons, so a new
|
|
13
|
+
project has a complete, ordered test journey from day one.
|
|
14
|
+
|
|
15
|
+
It is backed by the `journey-test-assistant` skill
|
|
16
|
+
(`skills/journey-test-assistant/SKILL.md`).
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
/journey-test [project description]
|
|
22
|
+
/journey-test --analyze
|
|
23
|
+
/journey-test --archetype A1|A2|A3
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## What It Produces
|
|
27
|
+
|
|
28
|
+
| Output | Description |
|
|
29
|
+
|--------|-------------|
|
|
30
|
+
| `TESTPLAN-NNN.md` | Ordered journey steps (T-000 reset → T-001 login → T-010 core flows) with personas, environment, and a dependency graph |
|
|
31
|
+
| `*.journey.spec.ts` | E2E skeletons aligned to each TESTPLAN step |
|
|
32
|
+
|
|
33
|
+
## Difference from `/e2e`
|
|
34
|
+
|
|
35
|
+
- `/e2e` generates E2E skeletons from individual BDD scenarios.
|
|
36
|
+
- `/journey-test` plans a **connected, cross-feature journey** (a sequence of
|
|
37
|
+
steps with ordering and dependencies) and then generates the skeletons.
|
|
38
|
+
|
|
39
|
+
## Implementation Note for AI
|
|
40
|
+
|
|
41
|
+
When the user invokes `/journey-test`:
|
|
42
|
+
1. Read `skills/journey-test-assistant/SKILL.md` for the full workflow,
|
|
43
|
+
TESTPLAN format (T-NNN), personas, environment, and archetype rules.
|
|
44
|
+
2. Follow that skill's workflow to produce the TESTPLAN and E2E skeletons.
|
|
45
|
+
3. Respect the skill's `allowed-tools` and stop points.
|
|
@@ -185,7 +185,7 @@ Use '/methodology switch <id>' to change.
|
|
|
185
185
|
/methodology create
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
-
Starts the interactive methodology creation wizard. See [create-methodology.md](../methodology
|
|
188
|
+
Starts the interactive methodology creation wizard. See [create-methodology.md](../dev-methodology/create-methodology.md) for details.
|
|
189
189
|
|
|
190
190
|
---
|
|
191
191
|
|
|
@@ -342,9 +342,9 @@ You can also configure methodology settings using:
|
|
|
342
342
|
|
|
343
343
|
## Reference | 參考
|
|
344
344
|
|
|
345
|
-
- [Methodology System Skill](../methodology
|
|
346
|
-
- [Runtime Guide](../methodology
|
|
347
|
-
- [Create Custom](../methodology
|
|
345
|
+
- [Methodology System Skill](../dev-methodology/SKILL.md) - Full skill documentation
|
|
346
|
+
- [Runtime Guide](../dev-methodology/runtime.md) - AI behavior specification
|
|
347
|
+
- [Create Custom](../dev-methodology/create-methodology.md) - Custom methodology guide
|
|
348
348
|
|
|
349
349
|
---
|
|
350
350
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-builder
|
|
3
|
+
description: [UDS] Identify repeated processes and build Skills with the right development depth.
|
|
4
|
+
allowed-tools: Read, Glob, Grep, Write, Edit, Bash
|
|
5
|
+
argument-hint: "[process description | 流程描述]"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /skill-builder Command
|
|
9
|
+
|
|
10
|
+
The `/skill-builder` command guides you from "I keep doing this manually" to
|
|
11
|
+
"I have a properly-built Skill", applying the right amount of process
|
|
12
|
+
governance along the way.
|
|
13
|
+
|
|
14
|
+
It is backed by the `skill-builder` skill (`skills/skill-builder/SKILL.md`).
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
/skill-builder [process description]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## When to Use
|
|
23
|
+
|
|
24
|
+
- You have manually performed the same multi-step process 3+ times.
|
|
25
|
+
- A teammate asks "how do we do X?" for the 3rd time.
|
|
26
|
+
- You hacked together an ad-hoc skill and now want to formalize it.
|
|
27
|
+
|
|
28
|
+
## Path Selection
|
|
29
|
+
|
|
30
|
+
| Path | Trigger | Action |
|
|
31
|
+
|------|---------|--------|
|
|
32
|
+
| Simple | ≤7 steps, no branching, <3 standards, no source-code output | Fill a Skill Brief, create `SKILL.md` directly |
|
|
33
|
+
| Complex | any of the above is exceeded | Create an XSPEC first (`/sdd`), then build |
|
|
34
|
+
| Delta | modifying an existing Skill | Append `## MODIFIED` / `## ADDED`, bump version |
|
|
35
|
+
|
|
36
|
+
## Implementation Note for AI
|
|
37
|
+
|
|
38
|
+
When the user invokes `/skill-builder`:
|
|
39
|
+
1. Read `skills/skill-builder/SKILL.md` for the full decision tree, placement
|
|
40
|
+
rules, workflow steps, and output checklist.
|
|
41
|
+
2. Walk the user through path selection (Simple / Complex / Delta) and produce
|
|
42
|
+
the `SKILL.md` (plus `SKILL-CANDIDATES.md` update) per that skill.
|
|
@@ -64,7 +64,7 @@ When `/tdd` is invoked:
|
|
|
64
64
|
3. **追蹤階段轉換**隨著工作進展
|
|
65
65
|
4. **在回應中顯示階段指示器**(🔴 紅燈、🟢 綠燈、🔵 重構)
|
|
66
66
|
|
|
67
|
-
See [methodology-system](../methodology
|
|
67
|
+
See [methodology-system](../dev-methodology/SKILL.md) for full methodology tracking.
|
|
68
68
|
|
|
69
69
|
## TDD Cycle | TDD 循環
|
|
70
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Custom Methodology Guide
|
|
2
2
|
|
|
3
|
-
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/methodology-
|
|
3
|
+
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/dev-methodology/create-methodology.md) | [简体中文](../../locales/zh-CN/skills/dev-methodology/create-methodology.md)
|
|
4
4
|
|
|
5
5
|
> [!WARNING]
|
|
6
6
|
> **Experimental Feature / 實驗性功能**
|
|
@@ -15,7 +15,7 @@ status: experimental
|
|
|
15
15
|
|
|
16
16
|
# Methodology System Skill
|
|
17
17
|
|
|
18
|
-
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/methodology
|
|
18
|
+
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/dev-methodology/SKILL.md)
|
|
19
19
|
|
|
20
20
|
**Version**: 2.0.0
|
|
21
21
|
**Last Updated**: 2026-01-25
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Methodology Runtime Guide
|
|
2
2
|
|
|
3
|
-
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/methodology-
|
|
3
|
+
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/dev-methodology/runtime.md) | [简体中文](../../locales/zh-CN/skills/dev-methodology/runtime.md)
|
|
4
4
|
|
|
5
5
|
> [!WARNING]
|
|
6
6
|
> **Experimental Feature / 實驗性功能**
|
|
@@ -35,7 +35,7 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
|
|
|
35
35
|
| **I. Planning & Design** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | Requirements, specs, API/DB design | 需求、規格、API/DB 設計 |
|
|
36
36
|
| **II. Test-Driven Development** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | Design tests before code | 先寫測試再寫程式 |
|
|
37
37
|
| **III. Implementation** | `/refactor` `/reverse` `/migrate` `/durable` | Write, improve, and migrate code | 撰寫、改善與遷移程式碼 |
|
|
38
|
-
| **IV. Quality Gates** | `/checkin` `/review` `/security` `/scan` `/incident` | Quality, security, incident response | 品質、安全、事故回應 |
|
|
38
|
+
| **IV. Quality Gates** | `/checkin` `/code-review` `/security` `/scan` `/incident` | Quality, security, incident response | 品質、安全、事故回應 |
|
|
39
39
|
| **V. Release & Commit** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | Version, commit, PR, CI/CD | 版本、提交、PR、CI/CD |
|
|
40
40
|
| **VI. Documentation** | `/docs` `/docgen` | Docs and project structure | 文件與專案結構 |
|
|
41
41
|
| **VII. Tools & Standards** | `/discover` `/guide` `/metrics` `/audit` | Reference guides, metrics, audit | 參考指南、指標、審計 |
|
|
@@ -198,8 +198,8 @@ After `/dev-workflow` completes, the AI assistant should suggest based on user's
|
|
|
198
198
|
|
|
199
199
|
- [Detailed Phase Guide](./workflow-phases.md) - Complete phase-by-phase reference
|
|
200
200
|
- [Daily Workflow Guide](../../adoption/DAILY-WORKFLOW-GUIDE.md) - Comprehensive daily workflow guide
|
|
201
|
-
- [Feature Development Workflow](../workflows/feature-dev.yaml) - Automated feature dev workflow
|
|
202
|
-
- [Integrated Flow Workflow](../workflows/integrated-flow.yaml) - Full ATDD/SDD/BDD/TDD workflow
|
|
201
|
+
- [Feature Development Workflow](../workflows/feature-dev.workflow.yaml) - Automated feature dev workflow
|
|
202
|
+
- [Integrated Flow Workflow](../workflows/integrated-flow.workflow.yaml) - Full ATDD/SDD/BDD/TDD workflow
|
|
203
203
|
|
|
204
204
|
---
|
|
205
205
|
|
|
@@ -110,7 +110,7 @@ SDD 規格 → /derive → /bdd → /tdd → 測試就緒
|
|
|
110
110
|
| Command | Purpose | When to Use | 使用時機 |
|
|
111
111
|
|---------|---------|-------------|----------|
|
|
112
112
|
| `/checkin` | Pre-commit verification | Before every commit | 每次提交前 |
|
|
113
|
-
| `/review` | Systematic code review | Before merging PRs | 合併 PR 前 |
|
|
113
|
+
| `/code-review` | Systematic code review | Before merging PRs | 合併 PR 前 |
|
|
114
114
|
| `/security` | Security review (OWASP) | Auditing for vulnerabilities | 審計漏洞 |
|
|
115
115
|
| `/scan` | Automated security scanning | Dependency audit, secret detection | 相依掃描、機密偵測 |
|
|
116
116
|
| `/incident` | Incident response | Production issues, post-mortems | 生產事故、事後檢討 |
|
|
@@ -126,7 +126,7 @@ SDD 規格 → /derive → /bdd → /tdd → 測試就緒
|
|
|
126
126
|
|
|
127
127
|
### Code Review | 程式碼審查
|
|
128
128
|
|
|
129
|
-
`/review` evaluates 10 dimensions:
|
|
129
|
+
`/code-review` evaluates 10 dimensions:
|
|
130
130
|
1. Functionality
|
|
131
131
|
2. Design & Architecture
|
|
132
132
|
3. Code Quality
|
|
@@ -259,7 +259,7 @@ Start here | 從這裡開始
|
|
|
259
259
|
├─ "I'm writing code" → (just code, or /refactor)
|
|
260
260
|
├─ "I need to migrate/upgrade" → /migrate
|
|
261
261
|
├─ "I'm done coding" → /checkin → /commit
|
|
262
|
-
├─ "I need to review code" → /review
|
|
262
|
+
├─ "I need to review code" → /code-review
|
|
263
263
|
├─ "I need a security check" → /scan → /security
|
|
264
264
|
├─ "There's a production issue" → /incident
|
|
265
265
|
├─ "I need to create a PR" → /pr
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: docgen
|
|
3
|
-
scope:
|
|
3
|
+
scope: universal
|
|
4
4
|
description: "[UDS] Generate usage documentation from project sources"
|
|
5
5
|
allowed-tools: Read, Write, Grep, Glob, Bash(*)
|
|
6
6
|
argument-hint: "[config file | 設定檔]"
|
|
@@ -82,7 +82,7 @@ Verify that generated documentation is up to date with source files.
|
|
|
82
82
|
| Command | Description |
|
|
83
83
|
|------------|---------------------------|
|
|
84
84
|
| /commit | Generate commit message |
|
|
85
|
-
| /review | Run code review |
|
|
85
|
+
| /code-review | Run code review |
|
|
86
86
|
| /sdd | Create SDD specification |
|
|
87
87
|
| /discover | Assess project health |
|
|
88
88
|
```
|
|
@@ -94,7 +94,7 @@ After `/docgen` completes, the AI assistant should suggest:
|
|
|
94
94
|
> **文件已產生。建議下一步 / Documentation generated. Suggested next steps:**
|
|
95
95
|
> - 審查產生的文件內容是否完整 — Review generated content for completeness
|
|
96
96
|
> - 執行 `/commit` 提交文件變更 ⭐ **Recommended / 推薦** — Commit documentation changes
|
|
97
|
-
> - 執行 `/review` 審查文件品質 — Review documentation quality
|
|
97
|
+
> - 執行 `/code-review` 審查文件品質 — Review documentation quality
|
|
98
98
|
|
|
99
99
|
## Reference | 參考
|
|
100
100
|
|
|
@@ -150,7 +150,7 @@ After `/incident` completes, the AI assistant should suggest:
|
|
|
150
150
|
|
|
151
151
|
> **事故回應指引已提供。建議下一步 / Incident response guidance provided. Suggested next steps:**
|
|
152
152
|
> - 提交修復 → 執行 `/commit` 建立修復提交 ⭐ **Recommended / 推薦** — Create fix commit
|
|
153
|
-
> - 程式碼審查 → 執行 `/review` 審查修復變更 — Review fix changes
|
|
153
|
+
> - 程式碼審查 → 執行 `/code-review` 審查修復變更 — Review fix changes
|
|
154
154
|
> - 記錄學習 → 執行 `/docs` 更新文件 — Document learnings
|
|
155
155
|
> - 安全審查 → 執行 `/security` 檢查安全影響 — Check security impact
|
|
156
156
|
> - 團隊回顧 → 執行 `/retrospective`(SEV-1/SEV-2 建議)— Team retrospective (recommended for SEV-1/2)
|
|
@@ -159,7 +159,7 @@ After `/incident` completes, the AI assistant should suggest:
|
|
|
159
159
|
## Reference | 參考
|
|
160
160
|
|
|
161
161
|
- Core standard: [deployment-standards.md](../../core/deployment-standards.md)
|
|
162
|
-
- Core standard: [logging.md](../../core/logging.md)
|
|
162
|
+
- Core standard: [logging.md](../../core/logging-standards.md)
|
|
163
163
|
|
|
164
164
|
## Version History | 版本歷史
|
|
165
165
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: logging-guide
|
|
3
3
|
scope: universal
|
|
4
|
+
anchor_standard: logging-standards
|
|
4
5
|
description: |
|
|
5
6
|
Implement structured logging with proper log levels and sensitive data handling.
|
|
6
7
|
Use when: adding logging, debugging, setting up observability.
|
|
@@ -11,8 +12,8 @@ description: |
|
|
|
11
12
|
|
|
12
13
|
> **Language**: English | [繁體中文](../../locales/zh-TW/skills/logging-guide/SKILL.md)
|
|
13
14
|
|
|
14
|
-
**Version**: 1.
|
|
15
|
-
**Last Updated**: 2026-
|
|
15
|
+
**Version**: 1.4.0
|
|
16
|
+
**Last Updated**: 2026-06-19
|
|
16
17
|
**Applicability**: Claude Code Skills
|
|
17
18
|
|
|
18
19
|
---
|
|
@@ -57,6 +58,40 @@ App cannot continue? → FATAL
|
|
|
57
58
|
| **ERROR** | Failed operations, caught exceptions, integration failures |
|
|
58
59
|
| **FATAL** | Unrecoverable errors, startup failures, lost critical resources |
|
|
59
60
|
|
|
61
|
+
## Mandatory Events
|
|
62
|
+
|
|
63
|
+
Formatting every log perfectly but **never firing at the moment that matters** is
|
|
64
|
+
worse than useless — it gives false confidence during an incident. The core
|
|
65
|
+
standard defines **9 canonical events that MUST produce a log entry**. A logging
|
|
66
|
+
setup that follows the level/field rules but omits these is "compliant on paper,
|
|
67
|
+
materially silent". Always implement all 9:
|
|
68
|
+
|
|
69
|
+
| Event id | When | Level | Core required fields | Must NOT log |
|
|
70
|
+
|----------|------|-------|----------------------|--------------|
|
|
71
|
+
| `application_startup` | After boot, **before** accepting requests | INFO | app_name, version, git_sha, environment, hostname, pid, listening_endpoints | secrets, full connection strings |
|
|
72
|
+
| `request_received` | First time middleware sees a request | INFO / DEBUG | method, path, source_ip, request_id | request body, auth headers |
|
|
73
|
+
| `validation_failure` | schema / ModelState / DTO validation rejects | WARN | request_id, path, missing_fields[], payload_shape (keys only) | field **values**, PII |
|
|
74
|
+
| `authentication_failure` | login / token verification fails | WARN | uid (attempted), source_ip, failure_reason | password, token value |
|
|
75
|
+
| `outbound_call_start` | An outbound HTTP/RPC call is initiated | INFO | target_url (host+path), request_id propagated, timeout_ms | credentials, bearer tokens |
|
|
76
|
+
| `outbound_call_complete` | An external call returns or fails | INFO / WARN / ERROR | status_code **or** failure_phase (dns/tcp/tls/http), elapsed_ms, retries | response body with PII |
|
|
77
|
+
| `business_event` | A state-changing business operation completes | INFO | operation_name, actor, target ids, outcome | full record payload, PII |
|
|
78
|
+
| `heartbeat` | Long-running background service, ≥ 1× / 60 s | INFO | service_name, queue_depth, items_processed_since_last_heartbeat | — |
|
|
79
|
+
| `shutdown` | Process exits (graceful or fatal) | INFO / ERROR | app_name, signal/reason, uptime_seconds, pending_work_count | — |
|
|
80
|
+
|
|
81
|
+
**Why these exact events** — each closes a real incident blind spot: a silent
|
|
82
|
+
`validation_failure` hides un-logged payloads; `authentication_failure` without
|
|
83
|
+
`uid`/`source_ip` is un-investigable; a missing `heartbeat` means a 0-byte log
|
|
84
|
+
file goes unnoticed; absent `outbound_call_*` turns "send failed" into a 2-day
|
|
85
|
+
hunt with no trace of the call.
|
|
86
|
+
|
|
87
|
+
> A background service that writes no INFO/WARN/ERROR within 60 s MUST emit a
|
|
88
|
+
> `heartbeat`; if none appears for ≥ 2× the interval (≥ 120 s), a silence detector
|
|
89
|
+
> MUST alert.
|
|
90
|
+
|
|
91
|
+
For the full catalog (each event's `when` / `must_log` / `must_NOT_log` /
|
|
92
|
+
`rationale` and compliant examples), see the **Mandatory Events** section of the
|
|
93
|
+
[core Logging Standards](../../core/logging-standards.md#mandatory-events).
|
|
94
|
+
|
|
60
95
|
## Structured Logging
|
|
61
96
|
|
|
62
97
|
### Required Fields
|
|
@@ -305,6 +340,7 @@ After `/logging` completes, the AI assistant should suggest:
|
|
|
305
340
|
|
|
306
341
|
| Version | Date | Changes |
|
|
307
342
|
|---------|------|---------|
|
|
343
|
+
| 1.4.0 | 2026-06-19 | Added: Mandatory Events section (9 canonical events) to close skill↔standard content drift; aligned version with core Logging Standards v1.4.0 (XSPEC-070 Phase 2) |
|
|
308
344
|
| 1.1.0 | 2026-05-26 | Added: Log File Rotation section with cross-link to core standard rotation policy; Rotation checklist (XSPEC-232) |
|
|
309
345
|
| 1.0.0 | 2025-12-30 | Initial release |
|
|
310
346
|
|