universal-dev-standards 5.17.0 → 6.1.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/options/commit-message/bilingual.ai.yaml +19 -1
- 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 +3 -3
- 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/documentation-writing-standards.ai.yaml +1 -1
- 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/frontend-design-standards.ai.yaml +33 -3
- 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/push-standards.ai.yaml +14 -3
- package/bundled/ai/standards/refactoring-standards.ai.yaml +68 -3
- package/bundled/ai/standards/requirement-engineering.ai.yaml +42 -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/self-review-protocol.ai.yaml +15 -10
- 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-evidence.ai.yaml +88 -5
- 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 +10 -3
- 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 +2 -2
- package/bundled/core/error-code-standards.md +4 -3
- package/bundled/core/feature-discovery-standards.md +191 -0
- 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/frontend-design-standards.md +93 -4
- 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/multi-environment-e2e-testing.md +195 -0
- 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/push-standards.md +82 -0
- package/bundled/core/refactoring-standards.md +44 -3
- package/bundled/core/replay-test.md +1 -1
- package/bundled/core/requirement-engineering.md +2 -2
- 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 +15 -10
- 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-evidence.md +170 -10
- package/bundled/core/verification-oracle.md +167 -0
- package/bundled/core/versioning.md +133 -109
- package/bundled/locales/COVERAGE.md +94 -77
- package/bundled/locales/zh-CN/CHANGELOG.md +94 -6
- package/bundled/locales/zh-CN/CLAUDE.md +1 -1
- package/bundled/locales/zh-CN/MAINTENANCE.md +42 -661
- package/bundled/locales/zh-CN/README.md +25 -12
- package/bundled/locales/zh-CN/SECURITY.md +2 -2
- package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +6 -1
- 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 +239 -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 +200 -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/frontend-design-standards.md +1 -1
- package/bundled/locales/zh-CN/core/full-coverage-testing.md +269 -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 +131 -0
- package/bundled/locales/zh-CN/core/llm-output-validation.md +192 -0
- package/bundled/locales/zh-CN/core/logging-standards.md +205 -7
- package/bundled/locales/zh-CN/core/mock-boundary.md +161 -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 +77 -5
- package/bundled/locales/zh-CN/core/pipeline-security-gates.md +146 -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/requirement-engineering.md +1 -1
- 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 +113 -0
- package/bundled/locales/zh-CN/core/self-review-protocol.md +172 -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/verification-evidence.md +252 -41
- package/bundled/locales/zh-CN/core/versioning.md +1 -1
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +36 -7
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +71 -53
- 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/commit-message/bilingual.md +10 -3
- 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 +115 -17
- package/bundled/locales/zh-CN/skills/brainstorm-assistant/guide.md +37 -12
- 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 +169 -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 +94 -6
- package/bundled/locales/zh-TW/CLAUDE.md +1 -1
- package/bundled/locales/zh-TW/MAINTENANCE.md +51 -4
- package/bundled/locales/zh-TW/README.md +25 -12
- package/bundled/locales/zh-TW/SECURITY.md +2 -2
- package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +2 -2
- package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +6 -1
- 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/frontend-design-standards.md +1 -1
- 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 +131 -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 +77 -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 +146 -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/requirement-engineering.md +1 -1
- 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 +113 -0
- package/bundled/locales/zh-TW/core/self-review-protocol.md +18 -13
- 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-evidence.md +260 -31
- 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 +36 -7
- package/bundled/locales/zh-TW/docs/DEV-WORKFLOW-MAPPING.md +6 -6
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +71 -53
- 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/commit-message/bilingual.md +10 -3
- 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 +116 -18
- package/bundled/locales/zh-TW/skills/brainstorm-assistant/guide.md +38 -11
- 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 +52 -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 +139 -15
- package/bundled/skills/brainstorm-assistant/guide.md +39 -8
- 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 +13 -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 +4 -4
- 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 +168 -75
- 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 +61 -149
- 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
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: skills/dev-methodology/runtime.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
status: current
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Methodology Runtime 指南
|
|
9
|
+
|
|
10
|
+
> **語言**: [English](../../../../skills/dev-methodology/runtime.md) | 繁體中文
|
|
11
|
+
|
|
12
|
+
> [!WARNING]
|
|
13
|
+
> **實驗性功能 / Experimental Feature**
|
|
14
|
+
>
|
|
15
|
+
> 此功能正在積極開發中,可能在 v4.0 中有重大變更。
|
|
16
|
+
> This feature is under active development and may change significantly in v4.0.
|
|
17
|
+
|
|
18
|
+
**版本**: 1.0.0
|
|
19
|
+
**最後更新**: 2026-01-12
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 總覽
|
|
24
|
+
|
|
25
|
+
本文件定義 AI 助理在某個開發 methodology 啟用時應有的行為。它提供 phase 追蹤、checkpoint 處理及使用者互動的指引。
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## AI 行為規格
|
|
30
|
+
|
|
31
|
+
### 1. Context 感知
|
|
32
|
+
|
|
33
|
+
當某個 methodology 啟用時,AI 應該:
|
|
34
|
+
|
|
35
|
+
- **始終知道目前的 phase**
|
|
36
|
+
- **在回應中顯示 phase 指示器**
|
|
37
|
+
- **建議符合該 phase 的動作**
|
|
38
|
+
|
|
39
|
+
#### Phase 狀態顯示
|
|
40
|
+
|
|
41
|
+
在相關回應的開頭加入 methodology 狀態:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
┌────────────────────────────────────────────────┐
|
|
45
|
+
│ 📋 Methodology: TDD │
|
|
46
|
+
│ 📍 Phase: 🔴 RED (writing failing test) │
|
|
47
|
+
│ ⏱️ Duration: 3 minutes │
|
|
48
|
+
└────────────────────────────────────────────────┘
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 2. 主動指引
|
|
52
|
+
|
|
53
|
+
根據目前的 phase 提供符合 context 的建議:
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
**Current Phase: 🔴 RED (TDD)**
|
|
57
|
+
|
|
58
|
+
You're writing a failing test for: user login validation
|
|
59
|
+
|
|
60
|
+
**Next step**: Write a test that describes the expected behavior.
|
|
61
|
+
|
|
62
|
+
Would you like me to:
|
|
63
|
+
1. Generate a test skeleton
|
|
64
|
+
2. Show TDD best practices for this scenario
|
|
65
|
+
3. Continue with your manual approach
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 3. Phase 轉換偵測
|
|
69
|
+
|
|
70
|
+
監控那些代表 phase 轉換的條件:
|
|
71
|
+
|
|
72
|
+
| Signal | Transition |
|
|
73
|
+
|--------|------------|
|
|
74
|
+
| Test 執行失敗 | RED → ready for GREEN |
|
|
75
|
+
| 所有 test 通過 | GREEN → ready for REFACTOR |
|
|
76
|
+
| 使用者確認 refactor 完成 | REFACTOR → next cycle or DONE |
|
|
77
|
+
| 時間超過 phase duration | 顯示提醒 |
|
|
78
|
+
| 偵測到 Git commit | 重置 phase 計時器 |
|
|
79
|
+
|
|
80
|
+
### 4. Checkpoint 行為
|
|
81
|
+
|
|
82
|
+
當 checkpoint 條件觸發時,顯示 checkpoint 通知:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
┌────────────────────────────────────────────────┐
|
|
86
|
+
│ 🔔 Methodology Checkpoint │
|
|
87
|
+
├────────────────────────────────────────────────┤
|
|
88
|
+
│ GREEN phase completed │
|
|
89
|
+
│ │
|
|
90
|
+
│ Checklist Status: │
|
|
91
|
+
│ ✅ Minimum code written │
|
|
92
|
+
│ ✅ Test passes │
|
|
93
|
+
│ ✅ All other tests pass │
|
|
94
|
+
│ ⬜ (Optional) Consider edge cases │
|
|
95
|
+
│ │
|
|
96
|
+
│ Change Statistics: │
|
|
97
|
+
│ - Files: 3 │
|
|
98
|
+
│ - Added: 45 lines │
|
|
99
|
+
│ - Deleted: 2 lines │
|
|
100
|
+
│ │
|
|
101
|
+
│ Suggested commit: │
|
|
102
|
+
│ test(auth): add email validation test │
|
|
103
|
+
│ feat(auth): implement email validation │
|
|
104
|
+
│ │
|
|
105
|
+
│ Options: │
|
|
106
|
+
│ [1] Commit now (show git commands) │
|
|
107
|
+
│ [2] Continue to REFACTOR phase │
|
|
108
|
+
│ [3] View detailed changes │
|
|
109
|
+
└────────────────────────────────────────────────┘
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 5. Skip 追蹤
|
|
113
|
+
|
|
114
|
+
追蹤連續的 skip 並適當地警告:
|
|
115
|
+
|
|
116
|
+
| Skip Count | Action |
|
|
117
|
+
|------------|--------|
|
|
118
|
+
| 1-2 | 不採取動作,記錄 skip |
|
|
119
|
+
| 3 | 警告通知 |
|
|
120
|
+
| 4+ | 強烈警告,建議 commit |
|
|
121
|
+
|
|
122
|
+
#### Skip 警告顯示
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
┌────────────────────────────────────────────────┐
|
|
126
|
+
│ ⚠️ Skip Warning │
|
|
127
|
+
├────────────────────────────────────────────────┤
|
|
128
|
+
│ You have skipped check-in 3 times consecutively│
|
|
129
|
+
│ │
|
|
130
|
+
│ Current accumulated changes: │
|
|
131
|
+
│ - Files: 8 │
|
|
132
|
+
│ - Added: 320 lines │
|
|
133
|
+
│ - Deleted: 45 lines │
|
|
134
|
+
│ │
|
|
135
|
+
│ Recommendation: Commit your changes now to │
|
|
136
|
+
│ avoid losing work and maintain atomic commits. │
|
|
137
|
+
│ │
|
|
138
|
+
│ [1] Commit now [2] Skip anyway [3] View diff │
|
|
139
|
+
└────────────────────────────────────────────────┘
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Methodology 偵測
|
|
145
|
+
|
|
146
|
+
### 自動偵測
|
|
147
|
+
|
|
148
|
+
AI 應從以下來源偵測 methodology context:
|
|
149
|
+
|
|
150
|
+
1. **Manifest 配置**
|
|
151
|
+
```json
|
|
152
|
+
// .standards/manifest.json
|
|
153
|
+
{ "methodology": { "active": "tdd" } }
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
2. **關鍵字偵測**
|
|
157
|
+
- "Let's use TDD for this"
|
|
158
|
+
- "Write a failing test first"
|
|
159
|
+
- "Given-When-Then"
|
|
160
|
+
- "Create a spec for this change"
|
|
161
|
+
|
|
162
|
+
3. **命令呼叫**
|
|
163
|
+
- `/tdd`, `/bdd`, `/sdd`, `/atdd`
|
|
164
|
+
- `/methodology switch <id>`
|
|
165
|
+
|
|
166
|
+
### 載入 Methodology 定義
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
Methodology Loading Priority:
|
|
170
|
+
1. Custom: .standards/methodologies/{id}.methodology.yaml
|
|
171
|
+
2. Built-in: methodologies/{id}.methodology.yaml
|
|
172
|
+
3. Fallback: Generic phase-less workflow
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Checklist 管理
|
|
178
|
+
|
|
179
|
+
### 顯示格式
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
### Phase Checklist
|
|
183
|
+
|
|
184
|
+
**Required:**
|
|
185
|
+
- [ ] Test describes expected behavior
|
|
186
|
+
- [x] Test name is clear
|
|
187
|
+
- [ ] Test follows AAA pattern
|
|
188
|
+
|
|
189
|
+
**Optional:**
|
|
190
|
+
- [ ] Consider edge cases
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### 追蹤
|
|
194
|
+
|
|
195
|
+
- 根據使用者動作與程式碼分析更新 checklist 項目
|
|
196
|
+
- 若 required 項目未完成則阻擋 phase 轉換(strict mode)
|
|
197
|
+
- 記錄完成狀態以供稽核軌跡使用
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## 整合點
|
|
202
|
+
|
|
203
|
+
### 與 Git 整合
|
|
204
|
+
|
|
205
|
+
- 偵測 commit 以重置 phase 計時器
|
|
206
|
+
- 根據 methodology 建議 commit message
|
|
207
|
+
- 自動納入 spec/story 參照
|
|
208
|
+
|
|
209
|
+
### 與 Test Runner 整合
|
|
210
|
+
|
|
211
|
+
- 偵測 test 通過/失敗以觸發 phase 轉換
|
|
212
|
+
- 回報與目前 phase 相關的 test 覆蓋率
|
|
213
|
+
|
|
214
|
+
### 與 Code Review 整合
|
|
215
|
+
|
|
216
|
+
- 加入 methodology 專屬的 review 檢查
|
|
217
|
+
- 在 PR 描述中參照啟用中的 methodology
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## 錯誤處理
|
|
222
|
+
|
|
223
|
+
### 找不到 Methodology
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
⚠️ Methodology 'custom-workflow' not found.
|
|
227
|
+
|
|
228
|
+
Available methodologies:
|
|
229
|
+
- tdd (built-in)
|
|
230
|
+
- bdd (built-in)
|
|
231
|
+
- sdd (built-in)
|
|
232
|
+
- atdd (built-in)
|
|
233
|
+
|
|
234
|
+
Use `/methodology list` to see all options.
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### 無效的 Phase 轉換
|
|
238
|
+
|
|
239
|
+
```
|
|
240
|
+
⚠️ Cannot transition from RED to REFACTOR.
|
|
241
|
+
|
|
242
|
+
TDD requires: RED → GREEN → REFACTOR
|
|
243
|
+
|
|
244
|
+
Current phase: RED
|
|
245
|
+
Valid next phases: GREEN
|
|
246
|
+
|
|
247
|
+
Complete the RED phase checklist first.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## 效能考量
|
|
253
|
+
|
|
254
|
+
- 首次載入後快取 methodology 定義
|
|
255
|
+
- 僅在 manifest 變更時才重新載入
|
|
256
|
+
- 最小化 checkpoint 頻率以避免打斷
|
|
257
|
+
- 批次執行 git status 檢查
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## 在地化(Localization)
|
|
262
|
+
|
|
263
|
+
所有面向使用者的文字都應使用適當的語言欄位:
|
|
264
|
+
|
|
265
|
+
```yaml
|
|
266
|
+
# If user's locale is zh-TW
|
|
267
|
+
name: nameZh || name
|
|
268
|
+
description: descriptionZh || description
|
|
269
|
+
prompt: promptZh || prompt
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## 6. Prerequisite 檢查 / Prerequisite Checking
|
|
275
|
+
|
|
276
|
+
在執行任何 slash 命令之前,請遵循定義於
|
|
277
|
+
[`prerequisite-check.md`](../../../../skills/dev-methodology/prerequisite-check.md) 的 prerequisite 檢查協議。
|
|
278
|
+
|
|
279
|
+
**Priority**: 此檢查會在 phase 追蹤與 methodology 偵測之前執行。
|
|
280
|
+
|
|
281
|
+
**與 Phase 追蹤的整合**:
|
|
282
|
+
- 若使用者處於啟用中的 methodology session,使用該 methodology 的 phase
|
|
283
|
+
序列作為主要的 prerequisite 來源
|
|
284
|
+
- 若無啟用中的 methodology,使用 [`workflow-prerequisites.yaml`](../../../../methodologies/workflow-prerequisites.yaml) 作為 fallback
|
|
285
|
+
- 若多個 workflow 都包含該命令,只需滿足其中一個即可
|
|
286
|
+
|
|
287
|
+
**Reference**: 完整的演算法、evidence 偵測規則及使用者提示模板,請參閱 [`prerequisite-check.md`](../../../../skills/dev-methodology/prerequisite-check.md)。
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## 版本歷史
|
|
292
|
+
|
|
293
|
+
| Version | Date | Changes |
|
|
294
|
+
|---------|------|---------|
|
|
295
|
+
| 1.1.0 | 2026-02-12 | 新增 §6 Prerequisite Checking 整合 |
|
|
296
|
+
| 1.0.0 | 2026-01-12 | Initial runtime specification |
|
|
@@ -34,7 +34,7 @@ V. Release ──► VI. Documentation ──► VII. Standards ──► VIII.
|
|
|
34
34
|
| **I. 規劃與設計** | `/brainstorm` `/requirement` `/sdd` `/reverse` `/api-design` `/database` | Requirements, specs, API/DB design | 需求、規格、API/DB 設計 |
|
|
35
35
|
| **II. 測試驅動開發** | `/bdd` `/atdd` `/tdd` `/coverage` `/derive` `/ac-coverage` | Design tests before code | 先寫測試再寫程式 |
|
|
36
36
|
| **III. 實作** | `/refactor` `/reverse` `/migrate` `/durable` | Write, improve, and migrate code | 撰寫、改善與遷移程式碼 |
|
|
37
|
-
| **IV. 品質關卡** | `/checkin` `/review` `/security` `/scan` `/incident` | Quality, security, incident response | 品質、安全、事故回應 |
|
|
37
|
+
| **IV. 品質關卡** | `/checkin` `/code-review` `/security` `/scan` `/incident` | Quality, security, incident response | 品質、安全、事故回應 |
|
|
38
38
|
| **V. 發布與提交** | `/commit` `/changelog` `/release` `/pr` `/ci-cd` | Version, commit, PR, CI/CD | 版本、提交、PR、CI/CD |
|
|
39
39
|
| **VI. 文件** | `/docs` `/docgen` | Docs and project structure | 文件與專案結構 |
|
|
40
40
|
| **VII. 工具與標準** | `/discover` `/guide` `/metrics` `/audit` | Reference guides, metrics, audit | 參考指南、指標、審計 |
|
|
@@ -162,7 +162,7 @@ API 設計與實作的推薦流程:
|
|
|
162
162
|
2. **階段參數**:顯示該階段的詳細指引,包含所有相關指令與範例
|
|
163
163
|
3. **場景參數**:顯示該場景的推薦逐步工作流程
|
|
164
164
|
|
|
165
|
-
此技能會從 [workflow-phases.md](
|
|
165
|
+
此技能會從 [workflow-phases.md](../../../../skills/dev-workflow-guide/workflow-phases.md) 讀取詳細的階段資訊。
|
|
166
166
|
|
|
167
167
|
## 下一步引導
|
|
168
168
|
|
|
@@ -179,10 +179,10 @@ API 設計與實作的推薦流程:
|
|
|
179
179
|
|
|
180
180
|
## 參考
|
|
181
181
|
|
|
182
|
-
- [詳細階段指引](
|
|
182
|
+
- [詳細階段指引](../../../../skills/dev-workflow-guide/workflow-phases.md) - 完整的逐階段參考
|
|
183
183
|
- [每日工作流程指南](../../adoption/DAILY-WORKFLOW-GUIDE.md) - 完整的每日工作流程指南
|
|
184
|
-
- [功能開發工作流程](
|
|
185
|
-
- [整合流程工作流程](
|
|
184
|
+
- [功能開發工作流程](../../../../skills/workflows/feature-dev.workflow.yaml) - 自動化功能開發工作流程
|
|
185
|
+
- [整合流程工作流程](../../../../skills/workflows/integrated-flow.workflow.yaml) - 完整的 ATDD/SDD/BDD/TDD 工作流程
|
|
186
186
|
|
|
187
187
|
---
|
|
188
188
|
|
|
@@ -139,7 +139,7 @@ docs/incidents/
|
|
|
139
139
|
|
|
140
140
|
> **事故回應指引已提供。建議下一步:**
|
|
141
141
|
> - 執行 `/commit` 建立修復提交 ⭐ **推薦**
|
|
142
|
-
> - 執行 `/review` 審查修復變更
|
|
142
|
+
> - 執行 `/code-review` 審查修復變更
|
|
143
143
|
> - 執行 `/docs` 更新文件
|
|
144
144
|
> - 執行 `/security` 檢查安全影響
|
|
145
145
|
> - 執行 `/retrospective`(SEV-1/SEV-2 建議)— 團隊回顧
|
|
@@ -148,4 +148,4 @@ docs/incidents/
|
|
|
148
148
|
## 參考
|
|
149
149
|
|
|
150
150
|
- 核心規範:[deployment-standards.md](../../../../core/deployment-standards.md)
|
|
151
|
-
- 核心規範:[logging.md](../../../../core/logging.md)
|
|
151
|
+
- 核心規範:[logging.md](../../../../core/logging-standards.md)
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
name: logging
|
|
3
3
|
description: "[UDS] 實作結構化日誌,包含正確的日誌層級和敏感資料處理"
|
|
4
4
|
source: ../../../../skills/logging-guide/SKILL.md
|
|
5
|
-
source_version: 1.
|
|
6
|
-
translation_version: 1.
|
|
7
|
-
last_synced: 2026-
|
|
5
|
+
source_version: 1.4.0
|
|
6
|
+
translation_version: 1.4.0
|
|
7
|
+
last_synced: 2026-07-08
|
|
8
|
+
source_hash: cf114de1df86
|
|
8
9
|
status: current
|
|
9
10
|
---
|
|
10
11
|
|
|
@@ -12,8 +13,8 @@ status: current
|
|
|
12
13
|
|
|
13
14
|
> **語言**: [English](../../../../skills/logging-guide/SKILL.md) | 繁體中文
|
|
14
15
|
|
|
15
|
-
**版本**: 1.
|
|
16
|
-
**最後更新**:
|
|
16
|
+
**版本**: 1.4.0
|
|
17
|
+
**最後更新**: 2026-06-19
|
|
17
18
|
**適用範圍**: Claude Code Skills
|
|
18
19
|
|
|
19
20
|
---
|
|
@@ -56,6 +57,28 @@ status: current
|
|
|
56
57
|
| **ERROR** | 失敗的操作、捕獲的例外、整合失敗 |
|
|
57
58
|
| **FATAL** | 無法恢復的錯誤、啟動失敗、失去關鍵資源 |
|
|
58
59
|
|
|
60
|
+
## 強制事件
|
|
61
|
+
|
|
62
|
+
把每則日誌格式化得再完美,但**在真正關鍵的時刻卻從不觸發**,比什麼都沒有還糟——它會在事故當下給人虛假的安心感。核心標準定義了**9 個必須產生日誌記錄的標準事件**。若日誌設定遵守層級/欄位規則卻遺漏這些事件,就是「規範上合格、實質上沉默」。務必全部實作這 9 項:
|
|
63
|
+
|
|
64
|
+
| 事件 id | 時機 | 層級 | 核心必要欄位 | 不可記錄 |
|
|
65
|
+
|----------|------|-------|----------------------|--------------|
|
|
66
|
+
| `application_startup` | 開機後、**接受請求前** | INFO | app_name, version, git_sha, environment, hostname, pid, listening_endpoints | secrets、完整連線字串 |
|
|
67
|
+
| `request_received` | Middleware 首次看到請求時 | INFO / DEBUG | method, path, source_ip, request_id | request body、auth headers |
|
|
68
|
+
| `validation_failure` | schema / ModelState / DTO 驗證拒絕時 | WARN | request_id, path, missing_fields[], payload_shape(僅 keys) | 欄位**值**、PII |
|
|
69
|
+
| `authentication_failure` | 登入 / token 驗證失敗時 | WARN | uid(嘗試值), source_ip, failure_reason | password、token 值 |
|
|
70
|
+
| `outbound_call_start` | 發起對外 HTTP/RPC 呼叫時 | INFO | target_url(host+path), 傳遞的 request_id, timeout_ms | credentials、bearer tokens |
|
|
71
|
+
| `outbound_call_complete` | 外部呼叫返回或失敗時 | INFO / WARN / ERROR | status_code **或** failure_phase(dns/tcp/tls/http), elapsed_ms, retries | 含 PII 的 response body |
|
|
72
|
+
| `business_event` | 具狀態改變的業務操作完成時 | INFO | operation_name, actor, target ids, outcome | 完整 record payload、PII |
|
|
73
|
+
| `heartbeat` | 長期執行的背景服務,≥ 1 次 / 60 秒 | INFO | service_name, queue_depth, items_processed_since_last_heartbeat | — |
|
|
74
|
+
| `shutdown` | 行程結束時(正常或致命錯誤) | INFO / ERROR | app_name, signal/reason, uptime_seconds, pending_work_count | — |
|
|
75
|
+
|
|
76
|
+
**為何是這些事件**——每一項都補上一個真實的事故盲區:靜默的 `validation_failure` 會隱藏未記錄的 payload;`authentication_failure` 若缺 `uid`/`source_ip` 就無法調查;缺少 `heartbeat` 代表 0-byte 的日誌檔不會被察覺;沒有 `outbound_call_*` 會讓「送出失敗」變成一場找不到任何呼叫痕跡、耗時 2 天的追查。
|
|
77
|
+
|
|
78
|
+
> 背景服務若在 60 秒內未寫入任何 INFO/WARN/ERROR,**必須**發出一則 `heartbeat`;若連續 ≥ 2 倍間隔(≥ 120 秒)都沒有出現,沉默偵測器**必須**告警。
|
|
79
|
+
|
|
80
|
+
完整目錄(每個事件的 `when`/`must_log`/`must_NOT_log`/`rationale` 及合規範例),請參閱核心[日誌標準](../../core/logging-standards.md#強制事件-mandatory-events)的**強制事件**章節。
|
|
81
|
+
|
|
59
82
|
## 結構化日誌
|
|
60
83
|
|
|
61
84
|
### 必要欄位
|
|
@@ -205,6 +228,21 @@ logger.error('處理訂單失敗', {
|
|
|
205
228
|
- 聚合指標而非個別日誌
|
|
206
229
|
- 使用獨立的日誌串流
|
|
207
230
|
|
|
231
|
+
## 日誌檔案輪替
|
|
232
|
+
|
|
233
|
+
基於檔案的 log sink **必須**同時設定兩種輪替觸發器——時間輪替**與**大小輪替。常見函式庫的預設大小上限(Serilog 1 GB、log4j/Winston/Python `RotatingFileHandler` 無上限)在正式環境中會造成靜默資料遺失。
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
✓ rollingInterval: Day # 時間輪替
|
|
237
|
+
✓ fileSizeLimitBytes: 104857600 (100 MB) # 大小輪替
|
|
238
|
+
✓ rollOnFileSizeLimit: true # 輪替,不要丟棄
|
|
239
|
+
✓ retainedFileCountLimit: ≥ N*7 # N = 每日最大輪替次數
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
當日誌檔案在預期的每日結束時達到 **`fileSizeLimitBytes` 的 ≥ 90%**,**調查噪音根因**(嘈雜的重試迴圈 / 不受限制的 debug 日誌 / stack trace 洪流),不要只提高上限。
|
|
243
|
+
|
|
244
|
+
> 含各語言設定範例(.NET Serilog / Python / Java log4j2 / Node Winston)及真實事故失敗模式參考的完整規格:請參閱核心標準的[日誌檔案輪替政策](../../core/logging-standards.md#日誌檔案輪替政策)。
|
|
245
|
+
|
|
208
246
|
## 檢查清單
|
|
209
247
|
|
|
210
248
|
### 必要欄位
|
|
@@ -223,6 +261,13 @@ logger.error('處理訂單失敗', {
|
|
|
223
261
|
- [ ] 信用卡從不記錄
|
|
224
262
|
- [ ] 保留政策已設定
|
|
225
263
|
|
|
264
|
+
### 輪替
|
|
265
|
+
|
|
266
|
+
- [ ] 已設定時間輪替(`rollingInterval: Day` 或等效設定)
|
|
267
|
+
- [ ] 已設定大小輪替(`fileSizeLimitBytes` + `rollOnFileSizeLimit: true`)
|
|
268
|
+
- [ ] `retainedFileCountLimit` ≥ N×7(N = 每日最大輪替次數)
|
|
269
|
+
- [ ] 已定義 90% 大小 SOP(調查噪音,勿只提高上限)
|
|
270
|
+
|
|
226
271
|
---
|
|
227
272
|
|
|
228
273
|
## 設定偵測
|
|
@@ -271,6 +316,8 @@ logger.error('處理訂單失敗', {
|
|
|
271
316
|
|
|
272
317
|
| 版本 | 日期 | 變更 |
|
|
273
318
|
|------|------|------|
|
|
319
|
+
| 1.4.0 | 2026-06-19 | 新增:強制事件章節(9 個標準事件),消弭技能與核心標準之間的內容漂移;版號與核心日誌標準 v1.4.0 對齊(XSPEC-070 Phase 2) |
|
|
320
|
+
| 1.1.0 | 2026-05-26 | 新增:日誌檔案輪替章節及指向核心標準輪替政策的交叉連結;輪替清單(XSPEC-232) |
|
|
274
321
|
| 1.0.0 | 2025-12-30 | 初始發布 |
|
|
275
322
|
|
|
276
323
|
---
|
|
@@ -291,25 +338,3 @@ After `/logging` completes, the AI assistant should suggest:
|
|
|
291
338
|
> - 執行 `/errors` 設計錯誤碼以配合日誌系統 — 讓錯誤追蹤更有效率 / Make error tracking more efficient
|
|
292
339
|
> - 執行 `/sdd` 將可觀測性需求納入規格 — 確保日誌需求在規格中有定義 / Ensure logging requirements are defined in specs
|
|
293
340
|
|
|
294
|
-
---
|
|
295
|
-
|
|
296
|
-
## Related Standards
|
|
297
|
-
|
|
298
|
-
- [Logging Standards](../../core/logging-standards.md)
|
|
299
|
-
- [Error Code Standards](../../core/error-code-standards.md)
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
## Version History
|
|
304
|
-
|
|
305
|
-
| Version | Date | Changes |
|
|
306
|
-
|---------|------|---------|
|
|
307
|
-
| 1.0.0 | 2025-12-30 | Initial release |
|
|
308
|
-
|
|
309
|
-
---
|
|
310
|
-
|
|
311
|
-
## License
|
|
312
|
-
|
|
313
|
-
This skill is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
|
314
|
-
|
|
315
|
-
**Source**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -185,7 +185,7 @@ AI: Migration Assessment: Vue 2 → Vue 3
|
|
|
185
185
|
|
|
186
186
|
## AI 代理行為
|
|
187
187
|
|
|
188
|
-
> 完整的 AI 行為定義請參閱對應的命令文件:[`/migrate`](
|
|
188
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/migrate`](../../../../skills/commands/migrate.md#ai-agent-behavior--ai-代理行為)
|
|
189
189
|
|
|
190
190
|
## 授權
|
|
191
191
|
|
|
@@ -12,6 +12,8 @@ description: "[UDS] 引導 Pull Request 建立、審查自動化和合併策略"
|
|
|
12
12
|
|
|
13
13
|
> **語言**: [English](../../../../skills/pr-automation-assistant/SKILL.md) | 繁體中文
|
|
14
14
|
|
|
15
|
+
> ⚠️ **狀態:參考用(非可執行流程)** — PR 生命週期協調(5 步驟 CREATE→REVIEW→APPROVE→MERGE→CLEANUP、>400 行 size gate、CI gate、squash/merge 策略、gh CLI 整合)已於 2026-04-28 移至 **adoption layer(XSPEC-095)**。此處保留 PR 描述模板、合併策略決策矩陣、auto-review 觸發規則供參考;需要強制執行的流程請改用你的 adoption layer 工具鏈。
|
|
16
|
+
|
|
15
17
|
簡化從建立到合併的 Pull Request 生命週期。
|
|
16
18
|
|
|
17
19
|
## PR 建立檢查清單
|
|
@@ -77,7 +79,7 @@ CREATE ──► REVIEW ──► APPROVE ──► MERGE ──► CLEANUP
|
|
|
77
79
|
`/pr` 完成後,AI 助手應建議:
|
|
78
80
|
|
|
79
81
|
> **PR 操作完成。建議下一步:**
|
|
80
|
-
> - 執行 `/review` 進行詳細程式碼審查
|
|
82
|
+
> - 執行 `/code-review` 進行詳細程式碼審查
|
|
81
83
|
> - 執行 `/commit` 修正審查發現的問題
|
|
82
84
|
> - 執行 `/changelog` 更新變更日誌
|
|
83
85
|
> - 檢查 CI 狀態 → `gh pr checks`
|
|
@@ -305,9 +305,9 @@ routes → controllers → services → repositories → database
|
|
|
305
305
|
- 根據現況評估發現撰寫新功能規格
|
|
306
306
|
- 在風險評估區段引用現況評估報告
|
|
307
307
|
|
|
308
|
-
### 搭配 /review(程式碼審查)
|
|
308
|
+
### 搭配 /code-review(程式碼審查)
|
|
309
309
|
|
|
310
|
-
步驟 0.4 的快照是 `/review` 的輕量版。在以下情況使用完整的 `/review`:
|
|
310
|
+
步驟 0.4 的快照是 `/code-review` 的輕量版。在以下情況使用完整的 `/code-review`:
|
|
311
311
|
- 現況評估發現重大品質疑慮
|
|
312
312
|
- 規劃變更前需要更深入的稽核
|
|
313
313
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
source: ../../../../skills/spec-derivation/guide.md
|
|
3
|
-
source_version:
|
|
4
|
-
translation_version:
|
|
5
|
-
last_synced: 2026-06-
|
|
6
|
-
source_hash:
|
|
3
|
+
source_version: 2.0.0
|
|
4
|
+
translation_version: 2.0.0
|
|
5
|
+
last_synced: 2026-06-10
|
|
6
|
+
source_hash: 3470ae083c12
|
|
7
7
|
status: current
|
|
8
8
|
scope: partial
|
|
9
9
|
description: |
|
|
@@ -101,7 +101,7 @@ Scenario: User login with valid credentials
|
|
|
101
101
|
|
|
102
102
|
### 3. 推演標籤(Derivation Tags,來自統一標籤系統)
|
|
103
103
|
|
|
104
|
-
此 skill 使用 **推演標籤(Derivation Tags)** 從規格生成新內容。完整的標籤參考請見 [Anti-Hallucination Standards](
|
|
104
|
+
此 skill 使用 **推演標籤(Derivation Tags)** 從規格生成新內容。完整的標籤參考請見 [Anti-Hallucination Standards](../../../../core/anti-hallucination.md#certainty-classification-tags)。
|
|
105
105
|
|
|
106
106
|
| 標籤 | 使用時機 | 範例 |
|
|
107
107
|
|-----|----------|---------|
|
|
@@ -220,18 +220,17 @@ Scenario: Login shows error for invalid credentials
|
|
|
220
220
|
# Generator: /derive-bdd v1.0.0
|
|
221
221
|
# Generated at: 2026-01-19T10:00:00Z
|
|
222
222
|
|
|
223
|
-
@SPEC-001
|
|
224
223
|
Feature: User Authentication
|
|
225
224
|
[Source] From SPEC-001 Summary
|
|
226
225
|
|
|
227
|
-
@AC-1 @happy-path
|
|
226
|
+
@SPEC-001 @AC-1 @happy-path
|
|
228
227
|
Scenario: User login with valid credentials
|
|
229
228
|
# [Source] From SPEC-001 AC-1
|
|
230
229
|
Given a registered user with valid credentials
|
|
231
230
|
When the user submits login form
|
|
232
231
|
Then the user is redirected to dashboard
|
|
233
232
|
|
|
234
|
-
@AC-2 @error-handling
|
|
233
|
+
@SPEC-001 @AC-2 @error-handling
|
|
235
234
|
Scenario: Login fails with invalid credentials
|
|
236
235
|
# [Source] From SPEC-001 AC-2
|
|
237
236
|
Given a user with invalid credentials
|
|
@@ -213,6 +213,6 @@ The system SHALL [behavior description].
|
|
|
213
213
|
|
|
214
214
|
## AI Agent Behavior | AI 代理行為
|
|
215
215
|
|
|
216
|
-
> 完整的 AI 行為定義請參閱對應的命令文件:[`/sdd`](
|
|
216
|
+
> 完整的 AI 行為定義請參閱對應的命令文件:[`/sdd`](../../../../skills/commands/sdd.md#ai-agent-behavior--ai-代理行為)
|
|
217
217
|
>
|
|
218
|
-
> For complete AI agent behavior definition, see the corresponding command file: [`/sdd`](
|
|
218
|
+
> For complete AI agent behavior definition, see the corresponding command file: [`/sdd`](../../../../skills/commands/sdd.md#ai-agent-behavior--ai-代理行為)
|
|
@@ -12,6 +12,8 @@ description: "[UDS] 引導測試驅動開發(TDD)流程:紅-綠-重構"
|
|
|
12
12
|
|
|
13
13
|
> **語言**: [English](../../../../skills/tdd-assistant/SKILL.md) | 繁體中文
|
|
14
14
|
|
|
15
|
+
> ⚠️ **狀態:參考用(非可執行流程)** — TDD 流程協調(RED→GREEN→REFACTOR 循環、測試執行 gates)已於 2026-04-28 移至 **adoption layer(XSPEC-095)**。此處保留 TDD 原則、FIRST 規則、AAA 格式、語言範例、流程指南供參考;需要強制執行的流程請改用你的 adoption layer 工具鏈。
|
|
16
|
+
|
|
15
17
|
引導測試驅動開發(TDD)流程:紅-綠-重構。
|
|
16
18
|
|
|
17
19
|
## TDD 循環
|
|
@@ -65,7 +67,7 @@ description: "[UDS] 引導測試驅動開發(TDD)流程:紅-綠-重構"
|
|
|
65
67
|
> **TDD 循環完成。建議下一步:**
|
|
66
68
|
> - 執行 `/checkin` 通過品質關卡
|
|
67
69
|
> - 執行 `/coverage` 確認測試覆蓋率
|
|
68
|
-
> - 執行 `/review` 自我審查程式碼
|
|
70
|
+
> - 執行 `/code-review` 自我審查程式碼
|
|
69
71
|
|
|
70
72
|
## 參考
|
|
71
73
|
|
|
@@ -98,7 +98,7 @@ UDS 提供 6 個與測試相關的 Skill。請使用以下決策樹找到合適
|
|
|
98
98
|
- [測試標準](../../core/testing-standards.md) - 可執行的規則
|
|
99
99
|
- [測試理論](./testing-theory.md) - 教學知識庫
|
|
100
100
|
- [測試金字塔](./testing-pyramid.md) - 詳細的金字塔比例
|
|
101
|
-
- [測試骨架範本](
|
|
101
|
+
- [測試骨架範本](../../../../skills/testing-guide/test-skeleton-templates.md) - UT/IT/ST/Perf/Contract 的多語言骨架
|
|
102
102
|
|
|
103
103
|
### AI 優化格式(Token 高效)
|
|
104
104
|
|
|
@@ -115,7 +115,7 @@ UDS 提供 6 個與測試相關的 Skill。請使用以下決策樹找到合適
|
|
|
115
115
|
- 安全測試:`ai/options/testing/security-testing.ai.yaml`
|
|
116
116
|
- 效能測試:`ai/options/testing/performance-testing.ai.yaml`
|
|
117
117
|
- 合約測試:`ai/options/testing/contract-testing.ai.yaml`
|
|
118
|
-
- 骨架範本(所有層級、多語言):[test-skeleton-templates.md](
|
|
118
|
+
- 骨架範本(所有層級、多語言):[test-skeleton-templates.md](../../../../skills/testing-guide/test-skeleton-templates.md)
|
|
119
119
|
|
|
120
120
|
## 命名慣例
|
|
121
121
|
|