universal-dev-standards 3.5.1-beta.1 → 3.5.1-beta.11
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 +2 -0
- package/bundled/core/ai-instruction-standards.md +205 -0
- package/bundled/core/anti-hallucination.md +684 -0
- package/bundled/core/changelog-standards.md +556 -0
- package/bundled/core/checkin-standards.md +935 -0
- package/bundled/core/code-review-checklist.md +684 -0
- package/bundled/core/commit-message-guide.md +915 -0
- package/bundled/core/documentation-structure.md +1117 -0
- package/bundled/core/documentation-writing-standards.md +487 -0
- package/bundled/core/error-code-standards.md +382 -0
- package/bundled/core/git-workflow.md +859 -0
- package/bundled/core/logging-standards.md +323 -0
- package/bundled/core/project-structure.md +354 -0
- package/bundled/core/refactoring-standards.md +636 -0
- package/bundled/core/spec-driven-development.md +207 -0
- package/bundled/core/test-completeness-dimensions.md +536 -0
- package/bundled/core/test-driven-development.md +995 -0
- package/bundled/core/testing-standards.md +3061 -0
- package/bundled/core/versioning.md +902 -0
- package/bundled/locales/README.md +88 -0
- package/bundled/locales/zh-CN/CHANGELOG.md +705 -0
- package/bundled/locales/zh-CN/CLAUDE.md +213 -0
- package/bundled/locales/zh-CN/MAINTENANCE.md +689 -0
- package/bundled/locales/zh-CN/README.md +707 -0
- package/bundled/locales/zh-CN/STANDARDS-MAPPING.md +177 -0
- package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +392 -0
- package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +302 -0
- package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +332 -0
- package/bundled/locales/zh-CN/adoption/checklists/minimal.md +141 -0
- package/bundled/locales/zh-CN/adoption/checklists/recommended.md +272 -0
- package/bundled/locales/zh-CN/ai/MAINTENANCE.md +739 -0
- package/bundled/locales/zh-CN/ai/options/changelog/auto-generated.ai.yaml +76 -0
- package/bundled/locales/zh-CN/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
- package/bundled/locales/zh-CN/ai/options/code-review/automated-review.ai.yaml +120 -0
- package/bundled/locales/zh-CN/ai/options/code-review/pair-programming.ai.yaml +109 -0
- package/bundled/locales/zh-CN/ai/options/code-review/pr-review.ai.yaml +104 -0
- package/bundled/locales/zh-CN/ai/options/commit-message/bilingual.ai.yaml +105 -0
- package/bundled/locales/zh-CN/ai/options/commit-message/english.ai.yaml +79 -0
- package/bundled/locales/zh-CN/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
- package/bundled/locales/zh-CN/ai/options/documentation/api-docs.ai.yaml +140 -0
- package/bundled/locales/zh-CN/ai/options/documentation/markdown-docs.ai.yaml +89 -0
- package/bundled/locales/zh-CN/ai/options/documentation/wiki-style.ai.yaml +119 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/gitflow.ai.yaml +133 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/github-flow.ai.yaml +73 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
- package/bundled/locales/zh-CN/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/dotnet.ai.yaml +108 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/go.ai.yaml +115 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/java.ai.yaml +113 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/kotlin.ai.yaml +123 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/nodejs.ai.yaml +101 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/php.ai.yaml +147 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/python.ai.yaml +116 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/ruby.ai.yaml +140 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/rust.ai.yaml +117 -0
- package/bundled/locales/zh-CN/ai/options/project-structure/swift.ai.yaml +143 -0
- package/bundled/locales/zh-CN/ai/options/testing/contract-testing.ai.yaml +254 -0
- package/bundled/locales/zh-CN/ai/options/testing/e2e-testing.ai.yaml +116 -0
- package/bundled/locales/zh-CN/ai/options/testing/industry-pyramid.ai.yaml +144 -0
- package/bundled/locales/zh-CN/ai/options/testing/integration-testing.ai.yaml +90 -0
- package/bundled/locales/zh-CN/ai/options/testing/istqb-framework.ai.yaml +108 -0
- package/bundled/locales/zh-CN/ai/options/testing/performance-testing.ai.yaml +272 -0
- package/bundled/locales/zh-CN/ai/options/testing/security-testing.ai.yaml +160 -0
- package/bundled/locales/zh-CN/ai/options/testing/system-testing.ai.yaml +101 -0
- package/bundled/locales/zh-CN/ai/options/testing/unit-testing.ai.yaml +82 -0
- package/bundled/locales/zh-CN/ai/standards/anti-hallucination.ai.yaml +145 -0
- package/bundled/locales/zh-CN/ai/standards/changelog.ai.yaml +146 -0
- package/bundled/locales/zh-CN/ai/standards/checkin-standards.ai.yaml +170 -0
- package/bundled/locales/zh-CN/ai/standards/code-review.ai.yaml +148 -0
- package/bundled/locales/zh-CN/ai/standards/commit-message.ai.yaml +175 -0
- package/bundled/locales/zh-CN/ai/standards/documentation-structure.ai.yaml +124 -0
- package/bundled/locales/zh-CN/ai/standards/documentation-writing-standards.ai.yaml +190 -0
- package/bundled/locales/zh-CN/ai/standards/error-codes.ai.yaml +139 -0
- package/bundled/locales/zh-CN/ai/standards/git-workflow.ai.yaml +95 -0
- package/bundled/locales/zh-CN/ai/standards/logging.ai.yaml +128 -0
- package/bundled/locales/zh-CN/ai/standards/project-structure.ai.yaml +134 -0
- package/bundled/locales/zh-CN/ai/standards/spec-driven-development.ai.yaml +169 -0
- package/bundled/locales/zh-CN/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
- package/bundled/locales/zh-CN/ai/standards/testing.ai.yaml +137 -0
- package/bundled/locales/zh-CN/ai/standards/versioning.ai.yaml +211 -0
- package/bundled/locales/zh-CN/core/ai-instruction-standards.md +213 -0
- package/bundled/locales/zh-CN/core/anti-hallucination.md +691 -0
- package/bundled/locales/zh-CN/core/changelog-standards.md +147 -0
- package/bundled/locales/zh-CN/core/checkin-standards.md +943 -0
- package/bundled/locales/zh-CN/core/code-review-guide.md +693 -0
- package/bundled/locales/zh-CN/core/commit-message-guide.md +129 -0
- package/bundled/locales/zh-CN/core/documentation-structure.md +173 -0
- package/bundled/locales/zh-CN/core/documentation-writing-standards.md +495 -0
- package/bundled/locales/zh-CN/core/error-code-standards.md +180 -0
- package/bundled/locales/zh-CN/core/git-workflow.md +193 -0
- package/bundled/locales/zh-CN/core/logging-standards.md +174 -0
- package/bundled/locales/zh-CN/core/project-structure.md +184 -0
- package/bundled/locales/zh-CN/core/refactoring-standards.md +642 -0
- package/bundled/locales/zh-CN/core/spec-driven-development.md +215 -0
- package/bundled/locales/zh-CN/core/test-completeness-dimensions.md +544 -0
- package/bundled/locales/zh-CN/core/test-driven-development.md +1002 -0
- package/bundled/locales/zh-CN/core/testing-standards.md +170 -0
- package/bundled/locales/zh-CN/core/versioning.md +177 -0
- package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +303 -0
- package/bundled/locales/zh-CN/docs/CLI-INIT-OPTIONS.md +990 -0
- package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +1064 -0
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +333 -0
- package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +215 -0
- package/bundled/locales/zh-CN/integrations/codex/AGENTS.md +115 -0
- package/bundled/locales/zh-CN/integrations/codex/README.md +67 -0
- package/bundled/locales/zh-CN/integrations/gemini-cli/GEMINI.md +102 -0
- package/bundled/locales/zh-CN/integrations/gemini-cli/README.md +140 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/README.md +167 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +263 -0
- package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +192 -0
- package/bundled/locales/zh-CN/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
- package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +84 -0
- package/bundled/locales/zh-CN/integrations/opencode/AGENTS.md +111 -0
- package/bundled/locales/zh-CN/integrations/opencode/README.md +176 -0
- package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +396 -0
- package/bundled/locales/zh-CN/integrations/openspec/AGENTS.md +301 -0
- package/bundled/locales/zh-CN/integrations/openspec/README.md +43 -0
- package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +184 -0
- package/bundled/locales/zh-CN/integrations/spec-kit/README.md +43 -0
- package/bundled/locales/zh-CN/options/commit-message/bilingual.md +161 -0
- package/bundled/locales/zh-CN/options/commit-message/english.md +137 -0
- package/bundled/locales/zh-CN/options/commit-message/traditional-chinese.md +162 -0
- package/bundled/locales/zh-CN/options/git-workflow/gitflow.md +147 -0
- package/bundled/locales/zh-CN/options/git-workflow/github-flow.md +124 -0
- package/bundled/locales/zh-CN/options/git-workflow/merge-commit.md +124 -0
- package/bundled/locales/zh-CN/options/git-workflow/rebase-ff.md +160 -0
- package/bundled/locales/zh-CN/options/git-workflow/squash-merge.md +117 -0
- package/bundled/locales/zh-CN/options/git-workflow/trunk-based.md +125 -0
- package/bundled/locales/zh-CN/options/project-structure/dotnet.md +183 -0
- package/bundled/locales/zh-CN/options/project-structure/go.md +226 -0
- package/bundled/locales/zh-CN/options/project-structure/java.md +213 -0
- package/bundled/locales/zh-CN/options/project-structure/nodejs.md +185 -0
- package/bundled/locales/zh-CN/options/project-structure/python.md +229 -0
- package/bundled/locales/zh-CN/options/testing/e2e-testing.md +207 -0
- package/bundled/locales/zh-CN/options/testing/integration-testing.md +230 -0
- package/bundled/locales/zh-CN/options/testing/system-testing.md +183 -0
- package/bundled/locales/zh-CN/options/testing/unit-testing.md +165 -0
- package/bundled/locales/zh-CN/skills/INTEGRATION-GUIDE.md +218 -0
- package/bundled/locales/zh-CN/skills/README.md +134 -0
- package/bundled/locales/zh-CN/skills/_shared/README.md +68 -0
- package/bundled/locales/zh-CN/skills/claude-code/CONTRIBUTING.template.md +151 -0
- package/bundled/locales/zh-CN/skills/claude-code/README.md +174 -0
- package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
- package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
- package/bundled/locales/zh-CN/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
- package/bundled/locales/zh-CN/skills/claude-code/changelog-guide/SKILL.md +237 -0
- package/bundled/locales/zh-CN/skills/claude-code/checkin-assistant/SKILL.md +407 -0
- package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/SKILL.md +154 -0
- package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
- package/bundled/locales/zh-CN/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
- package/bundled/locales/zh-CN/skills/claude-code/commands/bdd.md +142 -0
- package/bundled/locales/zh-CN/skills/claude-code/commands/methodology.md +274 -0
- package/bundled/locales/zh-CN/skills/claude-code/commit-standards/SKILL.md +191 -0
- package/bundled/locales/zh-CN/skills/claude-code/commit-standards/conventional-commits.md +264 -0
- package/bundled/locales/zh-CN/skills/claude-code/commit-standards/language-options.md +172 -0
- package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/SKILL.md +421 -0
- package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
- package/bundled/locales/zh-CN/skills/claude-code/documentation-guide/readme-template.md +412 -0
- package/bundled/locales/zh-CN/skills/claude-code/error-code-guide/SKILL.md +269 -0
- package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
- package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
- package/bundled/locales/zh-CN/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
- package/bundled/locales/zh-CN/skills/claude-code/logging-guide/SKILL.md +285 -0
- package/bundled/locales/zh-CN/skills/claude-code/methodology-system/SKILL.md +131 -0
- package/bundled/locales/zh-CN/skills/claude-code/methodology-system/create-methodology.md +350 -0
- package/bundled/locales/zh-CN/skills/claude-code/methodology-system/runtime.md +279 -0
- package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/SKILL.md +143 -0
- package/bundled/locales/zh-CN/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
- package/bundled/locales/zh-CN/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
- package/bundled/locales/zh-CN/skills/claude-code/release-standards/SKILL.md +191 -0
- package/bundled/locales/zh-CN/skills/claude-code/release-standards/changelog-format.md +247 -0
- package/bundled/locales/zh-CN/skills/claude-code/release-standards/release-workflow.md +345 -0
- package/bundled/locales/zh-CN/skills/claude-code/release-standards/semantic-versioning.md +250 -0
- package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/SKILL.md +227 -0
- package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
- package/bundled/locales/zh-CN/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
- package/bundled/locales/zh-CN/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
- package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/SKILL.md +332 -0
- package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/language-examples.md +639 -0
- package/bundled/locales/zh-CN/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
- package/bundled/locales/zh-CN/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
- package/bundled/locales/zh-CN/skills/claude-code/testing-guide/SKILL.md +234 -0
- package/bundled/locales/zh-CN/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
- package/bundled/locales/zh-CN/skills/cline/README.md +58 -0
- package/bundled/locales/zh-CN/skills/copilot/README.md +61 -0
- package/bundled/locales/zh-CN/skills/copilot/copilot-instructions.md +79 -0
- package/bundled/locales/zh-CN/skills/cursor/README.md +58 -0
- package/bundled/locales/zh-CN/skills/windsurf/README.md +59 -0
- package/bundled/locales/zh-TW/CHANGELOG.md +707 -0
- package/bundled/locales/zh-TW/CLAUDE.md +213 -0
- package/bundled/locales/zh-TW/MAINTENANCE.md +683 -0
- package/bundled/locales/zh-TW/README.md +687 -0
- package/bundled/locales/zh-TW/STANDARDS-MAPPING.md +177 -0
- package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +392 -0
- package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +299 -0
- package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +332 -0
- package/bundled/locales/zh-TW/adoption/checklists/minimal.md +141 -0
- package/bundled/locales/zh-TW/adoption/checklists/recommended.md +272 -0
- package/bundled/locales/zh-TW/ai/MAINTENANCE.md +754 -0
- package/bundled/locales/zh-TW/ai/options/changelog/auto-generated.ai.yaml +76 -0
- package/bundled/locales/zh-TW/ai/options/changelog/keep-a-changelog.ai.yaml +99 -0
- package/bundled/locales/zh-TW/ai/options/code-review/automated-review.ai.yaml +120 -0
- package/bundled/locales/zh-TW/ai/options/code-review/pair-programming.ai.yaml +109 -0
- package/bundled/locales/zh-TW/ai/options/code-review/pr-review.ai.yaml +104 -0
- package/bundled/locales/zh-TW/ai/options/commit-message/bilingual.ai.yaml +105 -0
- package/bundled/locales/zh-TW/ai/options/commit-message/english.ai.yaml +79 -0
- package/bundled/locales/zh-TW/ai/options/commit-message/traditional-chinese.ai.yaml +100 -0
- package/bundled/locales/zh-TW/ai/options/documentation/api-docs.ai.yaml +140 -0
- package/bundled/locales/zh-TW/ai/options/documentation/markdown-docs.ai.yaml +89 -0
- package/bundled/locales/zh-TW/ai/options/documentation/wiki-style.ai.yaml +119 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/gitflow.ai.yaml +133 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/github-flow.ai.yaml +73 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/merge-commit.ai.yaml +88 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/rebase-ff.ai.yaml +113 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/squash-merge.ai.yaml +85 -0
- package/bundled/locales/zh-TW/ai/options/git-workflow/trunk-based.ai.yaml +117 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/dotnet.ai.yaml +108 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/go.ai.yaml +115 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/java.ai.yaml +113 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/kotlin.ai.yaml +123 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/nodejs.ai.yaml +101 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/php.ai.yaml +147 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/python.ai.yaml +116 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/ruby.ai.yaml +140 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/rust.ai.yaml +117 -0
- package/bundled/locales/zh-TW/ai/options/project-structure/swift.ai.yaml +143 -0
- package/bundled/locales/zh-TW/ai/options/testing/contract-testing.ai.yaml +254 -0
- package/bundled/locales/zh-TW/ai/options/testing/e2e-testing.ai.yaml +116 -0
- package/bundled/locales/zh-TW/ai/options/testing/industry-pyramid.ai.yaml +144 -0
- package/bundled/locales/zh-TW/ai/options/testing/integration-testing.ai.yaml +90 -0
- package/bundled/locales/zh-TW/ai/options/testing/istqb-framework.ai.yaml +108 -0
- package/bundled/locales/zh-TW/ai/options/testing/performance-testing.ai.yaml +272 -0
- package/bundled/locales/zh-TW/ai/options/testing/security-testing.ai.yaml +160 -0
- package/bundled/locales/zh-TW/ai/options/testing/system-testing.ai.yaml +101 -0
- package/bundled/locales/zh-TW/ai/options/testing/unit-testing.ai.yaml +82 -0
- package/bundled/locales/zh-TW/ai/standards/anti-hallucination.ai.yaml +145 -0
- package/bundled/locales/zh-TW/ai/standards/changelog.ai.yaml +146 -0
- package/bundled/locales/zh-TW/ai/standards/checkin-standards.ai.yaml +170 -0
- package/bundled/locales/zh-TW/ai/standards/code-review.ai.yaml +148 -0
- package/bundled/locales/zh-TW/ai/standards/commit-message.ai.yaml +175 -0
- package/bundled/locales/zh-TW/ai/standards/documentation-structure.ai.yaml +124 -0
- package/bundled/locales/zh-TW/ai/standards/documentation-writing-standards.ai.yaml +190 -0
- package/bundled/locales/zh-TW/ai/standards/error-codes.ai.yaml +139 -0
- package/bundled/locales/zh-TW/ai/standards/git-workflow.ai.yaml +95 -0
- package/bundled/locales/zh-TW/ai/standards/logging.ai.yaml +128 -0
- package/bundled/locales/zh-TW/ai/standards/project-structure.ai.yaml +134 -0
- package/bundled/locales/zh-TW/ai/standards/spec-driven-development.ai.yaml +169 -0
- package/bundled/locales/zh-TW/ai/standards/test-completeness-dimensions.ai.yaml +220 -0
- package/bundled/locales/zh-TW/ai/standards/testing.ai.yaml +137 -0
- package/bundled/locales/zh-TW/ai/standards/versioning.ai.yaml +211 -0
- package/bundled/locales/zh-TW/core/ai-instruction-standards.md +213 -0
- package/bundled/locales/zh-TW/core/anti-hallucination.md +691 -0
- package/bundled/locales/zh-TW/core/changelog-standards.md +564 -0
- package/bundled/locales/zh-TW/core/checkin-standards.md +943 -0
- package/bundled/locales/zh-TW/core/code-review-checklist.md +693 -0
- package/bundled/locales/zh-TW/core/commit-message-guide.md +809 -0
- package/bundled/locales/zh-TW/core/documentation-structure.md +1125 -0
- package/bundled/locales/zh-TW/core/documentation-writing-standards.md +495 -0
- package/bundled/locales/zh-TW/core/error-code-standards.md +384 -0
- package/bundled/locales/zh-TW/core/git-workflow.md +860 -0
- package/bundled/locales/zh-TW/core/logging-standards.md +325 -0
- package/bundled/locales/zh-TW/core/project-structure.md +362 -0
- package/bundled/locales/zh-TW/core/refactoring-standards.md +642 -0
- package/bundled/locales/zh-TW/core/spec-driven-development.md +215 -0
- package/bundled/locales/zh-TW/core/test-completeness-dimensions.md +544 -0
- package/bundled/locales/zh-TW/core/test-driven-development.md +1004 -0
- package/bundled/locales/zh-TW/core/testing-standards.md +2158 -0
- package/bundled/locales/zh-TW/core/versioning.md +909 -0
- package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +303 -0
- package/bundled/locales/zh-TW/docs/CLI-INIT-OPTIONS.md +990 -0
- package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +1064 -0
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +333 -0
- package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +215 -0
- package/bundled/locales/zh-TW/integrations/codex/AGENTS.md +115 -0
- package/bundled/locales/zh-TW/integrations/codex/README.md +113 -0
- package/bundled/locales/zh-TW/integrations/gemini-cli/GEMINI.md +102 -0
- package/bundled/locales/zh-TW/integrations/gemini-cli/README.md +140 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +269 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/README.md +167 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +263 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +192 -0
- package/bundled/locales/zh-TW/integrations/google-antigravity/INSTRUCTIONS.md +61 -0
- package/bundled/locales/zh-TW/integrations/google-antigravity/README.md +84 -0
- package/bundled/locales/zh-TW/integrations/opencode/AGENTS.md +111 -0
- package/bundled/locales/zh-TW/integrations/opencode/README.md +176 -0
- package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +396 -0
- package/bundled/locales/zh-TW/integrations/openspec/AGENTS.md +301 -0
- package/bundled/locales/zh-TW/integrations/openspec/README.md +43 -0
- package/bundled/locales/zh-TW/integrations/spec-kit/AGENTS.md +184 -0
- package/bundled/locales/zh-TW/integrations/spec-kit/README.md +43 -0
- package/bundled/locales/zh-TW/options/commit-message/bilingual.md +161 -0
- package/bundled/locales/zh-TW/options/commit-message/english.md +137 -0
- package/bundled/locales/zh-TW/options/commit-message/traditional-chinese.md +162 -0
- package/bundled/locales/zh-TW/options/git-workflow/gitflow.md +147 -0
- package/bundled/locales/zh-TW/options/git-workflow/github-flow.md +124 -0
- package/bundled/locales/zh-TW/options/git-workflow/merge-commit.md +124 -0
- package/bundled/locales/zh-TW/options/git-workflow/rebase-ff.md +160 -0
- package/bundled/locales/zh-TW/options/git-workflow/squash-merge.md +117 -0
- package/bundled/locales/zh-TW/options/git-workflow/trunk-based.md +125 -0
- package/bundled/locales/zh-TW/options/project-structure/dotnet.md +183 -0
- package/bundled/locales/zh-TW/options/project-structure/go.md +226 -0
- package/bundled/locales/zh-TW/options/project-structure/java.md +213 -0
- package/bundled/locales/zh-TW/options/project-structure/nodejs.md +185 -0
- package/bundled/locales/zh-TW/options/project-structure/python.md +229 -0
- package/bundled/locales/zh-TW/options/testing/e2e-testing.md +207 -0
- package/bundled/locales/zh-TW/options/testing/integration-testing.md +230 -0
- package/bundled/locales/zh-TW/options/testing/system-testing.md +183 -0
- package/bundled/locales/zh-TW/options/testing/unit-testing.md +165 -0
- package/bundled/locales/zh-TW/skills/INTEGRATION-GUIDE.md +218 -0
- package/bundled/locales/zh-TW/skills/README.md +132 -0
- package/bundled/locales/zh-TW/skills/_shared/README.md +68 -0
- package/bundled/locales/zh-TW/skills/claude-code/CONTRIBUTING.template.md +151 -0
- package/bundled/locales/zh-TW/skills/claude-code/README.md +174 -0
- package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
- package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +223 -0
- package/bundled/locales/zh-TW/skills/claude-code/ai-collaboration-standards/certainty-labels.md +132 -0
- package/bundled/locales/zh-TW/skills/claude-code/changelog-guide/SKILL.md +237 -0
- package/bundled/locales/zh-TW/skills/claude-code/checkin-assistant/SKILL.md +407 -0
- package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/SKILL.md +154 -0
- package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/checkin-checklist.md +257 -0
- package/bundled/locales/zh-TW/skills/claude-code/code-review-assistant/review-checklist.md +246 -0
- package/bundled/locales/zh-TW/skills/claude-code/commands/bdd.md +142 -0
- package/bundled/locales/zh-TW/skills/claude-code/commands/methodology.md +274 -0
- package/bundled/locales/zh-TW/skills/claude-code/commit-standards/SKILL.md +191 -0
- package/bundled/locales/zh-TW/skills/claude-code/commit-standards/conventional-commits.md +264 -0
- package/bundled/locales/zh-TW/skills/claude-code/commit-standards/language-options.md +172 -0
- package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/SKILL.md +421 -0
- package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/documentation-structure.md +357 -0
- package/bundled/locales/zh-TW/skills/claude-code/documentation-guide/readme-template.md +412 -0
- package/bundled/locales/zh-TW/skills/claude-code/error-code-guide/SKILL.md +269 -0
- package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/SKILL.md +218 -0
- package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/branch-naming.md +220 -0
- package/bundled/locales/zh-TW/skills/claude-code/git-workflow-guide/git-workflow.md +321 -0
- package/bundled/locales/zh-TW/skills/claude-code/logging-guide/SKILL.md +285 -0
- package/bundled/locales/zh-TW/skills/claude-code/methodology-system/SKILL.md +131 -0
- package/bundled/locales/zh-TW/skills/claude-code/methodology-system/create-methodology.md +350 -0
- package/bundled/locales/zh-TW/skills/claude-code/methodology-system/runtime.md +279 -0
- package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/SKILL.md +143 -0
- package/bundled/locales/zh-TW/skills/claude-code/project-structure-guide/language-patterns.md +271 -0
- package/bundled/locales/zh-TW/skills/claude-code/refactoring-assistant/SKILL.md +162 -0
- package/bundled/locales/zh-TW/skills/claude-code/release-standards/SKILL.md +191 -0
- package/bundled/locales/zh-TW/skills/claude-code/release-standards/changelog-format.md +247 -0
- package/bundled/locales/zh-TW/skills/claude-code/release-standards/release-workflow.md +345 -0
- package/bundled/locales/zh-TW/skills/claude-code/release-standards/semantic-versioning.md +250 -0
- package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/SKILL.md +227 -0
- package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-checklist.md +325 -0
- package/bundled/locales/zh-TW/skills/claude-code/requirement-assistant/requirement-writing.md +399 -0
- package/bundled/locales/zh-TW/skills/claude-code/spec-driven-dev/SKILL.md +243 -0
- package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/SKILL.md +332 -0
- package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/language-examples.md +639 -0
- package/bundled/locales/zh-TW/skills/claude-code/tdd-assistant/tdd-workflow.md +486 -0
- package/bundled/locales/zh-TW/skills/claude-code/test-coverage-assistant/SKILL.md +282 -0
- package/bundled/locales/zh-TW/skills/claude-code/testing-guide/SKILL.md +234 -0
- package/bundled/locales/zh-TW/skills/claude-code/testing-guide/testing-pyramid.md +448 -0
- package/bundled/locales/zh-TW/skills/cline/README.md +58 -0
- package/bundled/locales/zh-TW/skills/copilot/README.md +61 -0
- package/bundled/locales/zh-TW/skills/copilot/copilot-instructions.md +79 -0
- package/bundled/locales/zh-TW/skills/cursor/README.md +58 -0
- package/bundled/locales/zh-TW/skills/windsurf/README.md +59 -0
- package/bundled/skills/claude-code/CONTRIBUTING.template.md +141 -0
- package/bundled/skills/claude-code/README.md +196 -0
- package/bundled/skills/claude-code/ai/standards/checkin.ai.yaml +21 -0
- package/bundled/skills/claude-code/ai/standards/commit.ai.yaml +20 -0
- package/bundled/skills/claude-code/ai/standards/refactoring.ai.yaml +34 -0
- package/bundled/skills/claude-code/ai/standards/testing.ai.yaml +41 -0
- package/bundled/skills/claude-code/ai-collaboration-standards/SKILL.md +175 -0
- package/bundled/skills/claude-code/ai-collaboration-standards/anti-hallucination.md +215 -0
- package/bundled/skills/claude-code/ai-collaboration-standards/certainty-labels.md +124 -0
- package/bundled/skills/claude-code/changelog-guide/SKILL.md +232 -0
- package/bundled/skills/claude-code/checkin-assistant/SKILL.md +402 -0
- package/bundled/skills/claude-code/code-review-assistant/SKILL.md +220 -0
- package/bundled/skills/claude-code/code-review-assistant/checkin-checklist.md +249 -0
- package/bundled/skills/claude-code/code-review-assistant/review-checklist.md +238 -0
- package/bundled/skills/claude-code/commands/README.md +78 -0
- package/bundled/skills/claude-code/commands/bdd.md +142 -0
- package/bundled/skills/claude-code/commands/changelog.md +57 -0
- package/bundled/skills/claude-code/commands/check.md +91 -0
- package/bundled/skills/claude-code/commands/commit.md +48 -0
- package/bundled/skills/claude-code/commands/config.md +97 -0
- package/bundled/skills/claude-code/commands/coverage.md +58 -0
- package/bundled/skills/claude-code/commands/docs.md +75 -0
- package/bundled/skills/claude-code/commands/init.md +88 -0
- package/bundled/skills/claude-code/commands/methodology.md +268 -0
- package/bundled/skills/claude-code/commands/release.md +50 -0
- package/bundled/skills/claude-code/commands/requirement.md +54 -0
- package/bundled/skills/claude-code/commands/review.md +50 -0
- package/bundled/skills/claude-code/commands/spec.md +69 -0
- package/bundled/skills/claude-code/commands/tdd.md +86 -0
- package/bundled/skills/claude-code/commands/update.md +122 -0
- package/bundled/skills/claude-code/commit-standards/SKILL.md +249 -0
- package/bundled/skills/claude-code/commit-standards/conventional-commits.md +256 -0
- package/bundled/skills/claude-code/commit-standards/language-options.md +164 -0
- package/bundled/skills/claude-code/documentation-guide/SKILL.md +416 -0
- package/bundled/skills/claude-code/documentation-guide/documentation-structure.md +349 -0
- package/bundled/skills/claude-code/documentation-guide/readme-template.md +404 -0
- package/bundled/skills/claude-code/error-code-guide/SKILL.md +264 -0
- package/bundled/skills/claude-code/git-workflow-guide/SKILL.md +226 -0
- package/bundled/skills/claude-code/git-workflow-guide/branch-naming.md +212 -0
- package/bundled/skills/claude-code/git-workflow-guide/git-workflow.md +313 -0
- package/bundled/skills/claude-code/logging-guide/SKILL.md +280 -0
- package/bundled/skills/claude-code/methodology-system/SKILL.md +215 -0
- package/bundled/skills/claude-code/methodology-system/create-methodology.md +450 -0
- package/bundled/skills/claude-code/methodology-system/runtime.md +271 -0
- package/bundled/skills/claude-code/project-structure-guide/SKILL.md +143 -0
- package/bundled/skills/claude-code/project-structure-guide/language-patterns.md +263 -0
- package/bundled/skills/claude-code/refactoring-assistant/SKILL.md +205 -0
- package/bundled/skills/claude-code/release-standards/SKILL.md +191 -0
- package/bundled/skills/claude-code/release-standards/changelog-format.md +239 -0
- package/bundled/skills/claude-code/release-standards/release-workflow.md +337 -0
- package/bundled/skills/claude-code/release-standards/semantic-versioning.md +242 -0
- package/bundled/skills/claude-code/requirement-assistant/SKILL.md +222 -0
- package/bundled/skills/claude-code/requirement-assistant/requirement-checklist.md +317 -0
- package/bundled/skills/claude-code/requirement-assistant/requirement-writing.md +391 -0
- package/bundled/skills/claude-code/spec-driven-dev/SKILL.md +238 -0
- package/bundled/skills/claude-code/tdd-assistant/SKILL.md +384 -0
- package/bundled/skills/claude-code/tdd-assistant/language-examples.md +1276 -0
- package/bundled/skills/claude-code/tdd-assistant/tdd-workflow.md +659 -0
- package/bundled/skills/claude-code/test-coverage-assistant/SKILL.md +277 -0
- package/bundled/skills/claude-code/testing-guide/SKILL.md +317 -0
- package/bundled/skills/claude-code/testing-guide/testing-pyramid.md +440 -0
- package/package.json +4 -2
- package/src/commands/check.js +38 -6
- package/src/commands/init.js +20 -6
- package/src/commands/list.js +7 -2
- package/src/commands/skills.js +0 -2
- package/src/commands/update.js +271 -0
- package/src/i18n/messages.js +161 -11
- package/src/utils/copier.js +63 -10
- package/src/utils/skills-installer.js +47 -11
- package/standards-registry.json +6 -3
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Pre-Commit Checklist
|
|
2
|
+
|
|
3
|
+
> **Language**: English | [繁體中文](../../../locales/zh-TW/skills/claude-code/code-review-assistant/checkin-checklist.md)
|
|
4
|
+
|
|
5
|
+
**Version**: 1.0.0
|
|
6
|
+
**Last Updated**: 2025-12-24
|
|
7
|
+
**Applicability**: Claude Code Skills
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This document provides a checklist for developers to verify before committing code changes.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Mandatory Checks
|
|
18
|
+
|
|
19
|
+
### 1. Build Verification
|
|
20
|
+
|
|
21
|
+
- [ ] **Code compiles successfully**
|
|
22
|
+
- Zero build errors
|
|
23
|
+
- Zero build warnings (or documented exceptions)
|
|
24
|
+
|
|
25
|
+
- [ ] **Dependencies are satisfied**
|
|
26
|
+
- All package dependencies installed
|
|
27
|
+
- Dependency versions locked
|
|
28
|
+
- No missing imports
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### 2. Test Verification
|
|
33
|
+
|
|
34
|
+
- [ ] **All existing tests pass**
|
|
35
|
+
- Unit tests: 100% pass rate
|
|
36
|
+
- Integration tests: 100% pass rate
|
|
37
|
+
|
|
38
|
+
- [ ] **New code is tested**
|
|
39
|
+
- New features have corresponding tests
|
|
40
|
+
- Bug fixes include regression tests
|
|
41
|
+
|
|
42
|
+
- [ ] **Test coverage maintained**
|
|
43
|
+
- Coverage percentage not decreased
|
|
44
|
+
- Critical paths tested
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
### 3. Code Quality
|
|
49
|
+
|
|
50
|
+
- [ ] **Follows coding standards**
|
|
51
|
+
- Naming conventions adhered to
|
|
52
|
+
- Code formatting consistent
|
|
53
|
+
- Comments present where needed
|
|
54
|
+
|
|
55
|
+
- [ ] **No code smells**
|
|
56
|
+
- Methods ≤50 lines
|
|
57
|
+
- Nesting depth ≤3 levels
|
|
58
|
+
- Cyclomatic complexity ≤10
|
|
59
|
+
- No duplicated code blocks
|
|
60
|
+
|
|
61
|
+
- [ ] **Security checked**
|
|
62
|
+
- No hardcoded secrets
|
|
63
|
+
- No SQL injection vulnerabilities
|
|
64
|
+
- No XSS vulnerabilities
|
|
65
|
+
- No insecure dependencies
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
### 4. Documentation
|
|
70
|
+
|
|
71
|
+
- [ ] **API documentation updated**
|
|
72
|
+
- Public APIs have doc comments
|
|
73
|
+
- Parameters explained
|
|
74
|
+
- Return values documented
|
|
75
|
+
|
|
76
|
+
- [ ] **README updated (if needed)**
|
|
77
|
+
- New features documented
|
|
78
|
+
- Breaking changes noted
|
|
79
|
+
|
|
80
|
+
- [ ] **CHANGELOG updated (if applicable)**
|
|
81
|
+
- User-facing changes added to `[Unreleased]`
|
|
82
|
+
- Breaking changes marked
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### 5. Workflow Compliance
|
|
87
|
+
|
|
88
|
+
- [ ] **Branch naming correct**
|
|
89
|
+
- Follows project convention (`feature/`, `fix/`)
|
|
90
|
+
|
|
91
|
+
- [ ] **Commit message formatted**
|
|
92
|
+
- Follows conventional commits or project standard
|
|
93
|
+
|
|
94
|
+
- [ ] **Synchronized with target branch**
|
|
95
|
+
- Merged latest changes from target branch
|
|
96
|
+
- No merge conflicts
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Commit Timing Guidelines
|
|
101
|
+
|
|
102
|
+
### ✅ Appropriate Times to Commit
|
|
103
|
+
|
|
104
|
+
1. **Completed Functional Unit**
|
|
105
|
+
- Feature fully implemented
|
|
106
|
+
- Tests written and passing
|
|
107
|
+
- Documentation updated
|
|
108
|
+
|
|
109
|
+
2. **Specific Bug Fixed**
|
|
110
|
+
- Bug reproduced and fixed
|
|
111
|
+
- Regression test added
|
|
112
|
+
|
|
113
|
+
3. **Independent Refactor**
|
|
114
|
+
- Refactoring complete
|
|
115
|
+
- No functional changes
|
|
116
|
+
- All tests still pass
|
|
117
|
+
|
|
118
|
+
4. **Runnable State**
|
|
119
|
+
- Code compiles without errors
|
|
120
|
+
- Application can run/start
|
|
121
|
+
- Core functionality not broken
|
|
122
|
+
|
|
123
|
+
### ❌ Inappropriate Times to Commit
|
|
124
|
+
|
|
125
|
+
1. **Build Failures**
|
|
126
|
+
- Compilation errors present
|
|
127
|
+
- Unresolved dependencies
|
|
128
|
+
|
|
129
|
+
2. **Test Failures**
|
|
130
|
+
- One or more tests failing
|
|
131
|
+
- Tests not yet written for new code
|
|
132
|
+
|
|
133
|
+
3. **Incomplete Features**
|
|
134
|
+
- Feature partially implemented
|
|
135
|
+
- Would break existing functionality
|
|
136
|
+
|
|
137
|
+
4. **Experimental Code**
|
|
138
|
+
- TODO comments scattered
|
|
139
|
+
- Debugging code left in
|
|
140
|
+
- Commented-out code blocks
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Commit Granularity
|
|
145
|
+
|
|
146
|
+
### Ideal Commit Size
|
|
147
|
+
|
|
148
|
+
| Metric | Recommended |
|
|
149
|
+
|--------|-------------|
|
|
150
|
+
| File Count | 1-10 files |
|
|
151
|
+
| Lines Changed | 50-300 lines |
|
|
152
|
+
| Scope | Single concern |
|
|
153
|
+
|
|
154
|
+
### Splitting Principles
|
|
155
|
+
|
|
156
|
+
**Combine into one commit**:
|
|
157
|
+
- Feature implementation + corresponding tests
|
|
158
|
+
- Tightly related multi-file changes
|
|
159
|
+
|
|
160
|
+
**Separate commits**:
|
|
161
|
+
- Feature A + Feature B → separate
|
|
162
|
+
- Refactoring + new feature → separate
|
|
163
|
+
- Bug fix + incidental refactoring → separate
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Special Scenarios
|
|
168
|
+
|
|
169
|
+
### Emergency Leave (WIP)
|
|
170
|
+
|
|
171
|
+
**Option 1: Git Stash (Recommended)**
|
|
172
|
+
```bash
|
|
173
|
+
git stash save "WIP: description of incomplete work"
|
|
174
|
+
# Resume later
|
|
175
|
+
git stash pop
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**Option 2: WIP Branch**
|
|
179
|
+
```bash
|
|
180
|
+
git checkout -b wip/feature-temp
|
|
181
|
+
git commit -m "WIP: progress save (do not merge)"
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Hotfix
|
|
185
|
+
|
|
186
|
+
1. Create hotfix branch from main
|
|
187
|
+
2. Minimize changes (only fix the problem)
|
|
188
|
+
3. Quick verification (ensure tests pass)
|
|
189
|
+
4. Mark urgency in commit message:
|
|
190
|
+
```
|
|
191
|
+
fix(module): [URGENT] fix critical issue
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## Common Violations
|
|
197
|
+
|
|
198
|
+
### ❌ "WIP" Commits
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
git commit -m "WIP"
|
|
202
|
+
git commit -m "save work"
|
|
203
|
+
git commit -m "trying stuff"
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
**Solution**: Use `git stash` or squash before merging
|
|
207
|
+
|
|
208
|
+
### ❌ Commented-Out Code
|
|
209
|
+
|
|
210
|
+
**Problem**: Clutters codebase, confuses future developers
|
|
211
|
+
|
|
212
|
+
**Solution**: Delete it. Git history preserves old code.
|
|
213
|
+
|
|
214
|
+
### ❌ Mixing Concerns
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
git commit -m "fix bug and refactor and add feature"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Solution**: Separate into multiple commits:
|
|
221
|
+
```
|
|
222
|
+
git commit -m "fix(module-a): resolve null pointer error"
|
|
223
|
+
git commit -m "refactor(module-b): extract validation logic"
|
|
224
|
+
git commit -m "feat(module-c): add export feature"
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Related Standards
|
|
230
|
+
|
|
231
|
+
- [Checkin Standards](../../../core/checkin-standards.md)
|
|
232
|
+
- [Code Review Checklist](./review-checklist.md)
|
|
233
|
+
- [Commit Message Guide](../../../core/commit-message-guide.md)
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Version History
|
|
238
|
+
|
|
239
|
+
| Version | Date | Changes |
|
|
240
|
+
|---------|------|---------|
|
|
241
|
+
| 1.0.0 | 2025-12-24 | Added: Standard sections (Purpose, Related Standards, Version History, License) |
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## License
|
|
246
|
+
|
|
247
|
+
This document is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
|
248
|
+
|
|
249
|
+
**Source**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# Code Review Checklist
|
|
2
|
+
|
|
3
|
+
> **Language**: English | [繁體中文](../../../locales/zh-TW/skills/claude-code/code-review-assistant/review-checklist.md)
|
|
4
|
+
|
|
5
|
+
**Version**: 1.0.0
|
|
6
|
+
**Last Updated**: 2025-12-24
|
|
7
|
+
**Applicability**: Claude Code Skills
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This document provides a comprehensive checklist for code review to ensure code quality and standards compliance.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## 1. Functionality
|
|
18
|
+
|
|
19
|
+
- [ ] **Code does what it's supposed to do**
|
|
20
|
+
- Requirement/spec alignment verified
|
|
21
|
+
- Acceptance criteria met
|
|
22
|
+
- Edge cases handled
|
|
23
|
+
|
|
24
|
+
- [ ] **No obvious bugs**
|
|
25
|
+
- Null/undefined checks present
|
|
26
|
+
- Array bounds checked
|
|
27
|
+
- Error conditions handled
|
|
28
|
+
|
|
29
|
+
- [ ] **Logic is correct**
|
|
30
|
+
- Conditions make sense
|
|
31
|
+
- Loops terminate properly
|
|
32
|
+
- Calculations are accurate
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 2. Design & Architecture
|
|
37
|
+
|
|
38
|
+
- [ ] **Follows project architecture**
|
|
39
|
+
- Layering respected
|
|
40
|
+
- Separation of concerns maintained
|
|
41
|
+
- Dependency direction correct
|
|
42
|
+
|
|
43
|
+
- [ ] **Appropriate design patterns used**
|
|
44
|
+
- Not over-engineered
|
|
45
|
+
- Not under-engineered
|
|
46
|
+
- Patterns applied correctly
|
|
47
|
+
|
|
48
|
+
- [ ] **Code is in the right place**
|
|
49
|
+
- Files organized logically
|
|
50
|
+
- Related code grouped together
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 3. Code Quality
|
|
55
|
+
|
|
56
|
+
- [ ] **Follows coding standards**
|
|
57
|
+
- Naming conventions adhered to
|
|
58
|
+
- Formatting consistent
|
|
59
|
+
- Style guide followed
|
|
60
|
+
|
|
61
|
+
- [ ] **No code smells**
|
|
62
|
+
- Methods ≤50 lines
|
|
63
|
+
- Classes have single responsibility
|
|
64
|
+
- Cyclomatic complexity ≤10
|
|
65
|
+
- No deeply nested conditionals (≤3 levels)
|
|
66
|
+
|
|
67
|
+
- [ ] **DRY principle applied**
|
|
68
|
+
- No duplicated code blocks
|
|
69
|
+
- Common logic extracted
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. Readability
|
|
74
|
+
|
|
75
|
+
- [ ] **Code is easy to understand**
|
|
76
|
+
- Variable names are descriptive
|
|
77
|
+
- Function names reveal intent
|
|
78
|
+
- Logic flows naturally
|
|
79
|
+
|
|
80
|
+
- [ ] **Comments are helpful**
|
|
81
|
+
- Complex logic explained
|
|
82
|
+
- WHY documented, not WHAT
|
|
83
|
+
- No commented-out code
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 5. Testing
|
|
88
|
+
|
|
89
|
+
- [ ] **Tests are present**
|
|
90
|
+
- New code has tests
|
|
91
|
+
- Tests cover happy path
|
|
92
|
+
- Tests cover error cases
|
|
93
|
+
- Edge cases tested
|
|
94
|
+
|
|
95
|
+
- [ ] **Tests are good quality**
|
|
96
|
+
- Tests are readable
|
|
97
|
+
- Test names describe scenarios
|
|
98
|
+
- Assertions are clear
|
|
99
|
+
- No flaky tests
|
|
100
|
+
|
|
101
|
+
- [ ] **Test coverage maintained**
|
|
102
|
+
- Coverage not decreased
|
|
103
|
+
- Critical paths covered
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 6. Security
|
|
108
|
+
|
|
109
|
+
- [ ] **No security vulnerabilities**
|
|
110
|
+
- No SQL injection risks
|
|
111
|
+
- No XSS vulnerabilities
|
|
112
|
+
- No hardcoded secrets
|
|
113
|
+
- No insecure dependencies
|
|
114
|
+
|
|
115
|
+
- [ ] **Input validation present**
|
|
116
|
+
- User input sanitized
|
|
117
|
+
- Type checking performed
|
|
118
|
+
- Size limits enforced
|
|
119
|
+
|
|
120
|
+
- [ ] **Auth/Authorization correct**
|
|
121
|
+
- Proper auth checks
|
|
122
|
+
- Role-based access enforced
|
|
123
|
+
- Sensitive data protected
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## 7. Performance
|
|
128
|
+
|
|
129
|
+
- [ ] **No obvious performance issues**
|
|
130
|
+
- No N+1 queries
|
|
131
|
+
- No unnecessary loops
|
|
132
|
+
- No blocking operations in hot paths
|
|
133
|
+
|
|
134
|
+
- [ ] **Efficient algorithms used**
|
|
135
|
+
- Complexity considered
|
|
136
|
+
- Appropriate data structures
|
|
137
|
+
- Caching where beneficial
|
|
138
|
+
|
|
139
|
+
- [ ] **Resource management proper**
|
|
140
|
+
- Connections closed
|
|
141
|
+
- Memory leaks prevented
|
|
142
|
+
- File handles released
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## 8. Error Handling
|
|
147
|
+
|
|
148
|
+
- [ ] **Errors handled appropriately**
|
|
149
|
+
- Try-catch blocks present
|
|
150
|
+
- Specific exceptions caught
|
|
151
|
+
- Generic catch avoided
|
|
152
|
+
|
|
153
|
+
- [ ] **Error messages helpful**
|
|
154
|
+
- Messages are descriptive
|
|
155
|
+
- Actionable information included
|
|
156
|
+
- No sensitive data exposed
|
|
157
|
+
|
|
158
|
+
- [ ] **Logging is adequate**
|
|
159
|
+
- Errors logged with context
|
|
160
|
+
- Log levels appropriate
|
|
161
|
+
- No excessive logging
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## 9. Documentation
|
|
166
|
+
|
|
167
|
+
- [ ] **API documentation present**
|
|
168
|
+
- Public methods documented
|
|
169
|
+
- Parameters explained
|
|
170
|
+
- Return values described
|
|
171
|
+
- Exceptions documented
|
|
172
|
+
|
|
173
|
+
- [ ] **README updated if needed**
|
|
174
|
+
- New features documented
|
|
175
|
+
- Setup instructions current
|
|
176
|
+
|
|
177
|
+
- [ ] **CHANGELOG updated (if applicable)**
|
|
178
|
+
- User-facing changes added to `[Unreleased]`
|
|
179
|
+
- Breaking changes marked with **BREAKING**
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## 10. Dependencies
|
|
184
|
+
|
|
185
|
+
- [ ] **Dependencies justified**
|
|
186
|
+
- New dependencies necessary
|
|
187
|
+
- License compatible
|
|
188
|
+
- No security vulnerabilities
|
|
189
|
+
- Actively maintained
|
|
190
|
+
|
|
191
|
+
- [ ] **Dependency versions locked**
|
|
192
|
+
- Exact versions specified
|
|
193
|
+
- Lock file updated
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## Quick Reference Card
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
┌─────────────────────────────────────────┐
|
|
201
|
+
│ Code Review Quick Checklist │
|
|
202
|
+
├─────────────────────────────────────────┤
|
|
203
|
+
│ ✓ Functionality - Does it work? │
|
|
204
|
+
│ ✓ Design - Right architecture? │
|
|
205
|
+
│ ✓ Quality - Clean code? │
|
|
206
|
+
│ ✓ Readability - Easy to understand? │
|
|
207
|
+
│ ✓ Tests - Adequate coverage? │
|
|
208
|
+
│ ✓ Security - No vulnerabilities? │
|
|
209
|
+
│ ✓ Performance - Efficient? │
|
|
210
|
+
│ ✓ Errors - Properly handled? │
|
|
211
|
+
│ ✓ Docs - Updated? │
|
|
212
|
+
│ ✓ Dependencies - Necessary? │
|
|
213
|
+
└─────────────────────────────────────────┘
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Related Standards
|
|
219
|
+
|
|
220
|
+
- [Code Review Checklist](../../../core/code-review-checklist.md)
|
|
221
|
+
- [Checkin Standards](../../../core/checkin-standards.md)
|
|
222
|
+
- [Pre-Commit Checklist](./checkin-checklist.md)
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Version History
|
|
227
|
+
|
|
228
|
+
| Version | Date | Changes |
|
|
229
|
+
|---------|------|---------|
|
|
230
|
+
| 1.0.0 | 2025-12-24 | Added: Standard sections (Purpose, Related Standards, Version History, License) |
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## License
|
|
235
|
+
|
|
236
|
+
This document is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
|
237
|
+
|
|
238
|
+
**Source**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Claude Code Custom Commands
|
|
2
|
+
|
|
3
|
+
Custom slash commands for Universal Development Standards.
|
|
4
|
+
|
|
5
|
+
## Available Commands | 可用命令
|
|
6
|
+
|
|
7
|
+
### Standards Management | 標準管理
|
|
8
|
+
|
|
9
|
+
Commands for managing Universal Development Standards in your project.
|
|
10
|
+
|
|
11
|
+
| Command | Description | 說明 |
|
|
12
|
+
|---------|-------------|------|
|
|
13
|
+
| [`/init`](./init.md) | Initialize standards in project | 初始化專案標準 |
|
|
14
|
+
| [`/update`](./update.md) | Update standards to latest version | 更新標準至最新版本 |
|
|
15
|
+
| [`/check`](./check.md) | Verify adoption status | 檢查採用狀態 |
|
|
16
|
+
| [`/config`](./config.md) | Configure standards settings | 配置標準設定 |
|
|
17
|
+
|
|
18
|
+
### Development Workflow | 開發工作流程
|
|
19
|
+
|
|
20
|
+
Commands for development workflow automation.
|
|
21
|
+
|
|
22
|
+
| Command | Description | 說明 |
|
|
23
|
+
|---------|-------------|------|
|
|
24
|
+
| [`/commit`](./commit.md) | Generate conventional commit messages | 產生 commit message |
|
|
25
|
+
| [`/review`](./review.md) | Perform systematic code review | 執行程式碼審查 |
|
|
26
|
+
| [`/release`](./release.md) | Guide through release process | 引導發布流程 |
|
|
27
|
+
| [`/changelog`](./changelog.md) | Update CHANGELOG.md | 更新 CHANGELOG |
|
|
28
|
+
| [`/requirement`](./requirement.md) | Write user stories and requirements | 撰寫需求文件 |
|
|
29
|
+
| [`/spec`](./spec.md) | Create specification documents | 建立規格文件 |
|
|
30
|
+
| [`/docs`](./docs.md) | Create/update documentation | 建立/更新文件 |
|
|
31
|
+
| [`/coverage`](./coverage.md) | Analyze test coverage | 分析測試覆蓋率 |
|
|
32
|
+
|
|
33
|
+
### Methodology | 方法論
|
|
34
|
+
|
|
35
|
+
Commands for development methodology workflows.
|
|
36
|
+
|
|
37
|
+
| Command | Description | 說明 |
|
|
38
|
+
|---------|-------------|------|
|
|
39
|
+
| [`/methodology`](./methodology.md) | Manage active methodology | 管理開發方法論 |
|
|
40
|
+
| [`/tdd`](./tdd.md) | Test-Driven Development workflow | TDD 開發流程 |
|
|
41
|
+
| [`/bdd`](./bdd.md) | Behavior-Driven Development workflow | BDD 開發流程 |
|
|
42
|
+
|
|
43
|
+
## Commands vs Skills | 命令與技能
|
|
44
|
+
|
|
45
|
+
| Aspect | Commands | Skills |
|
|
46
|
+
|--------|----------|--------|
|
|
47
|
+
| **Trigger** | Manual (`/command`) | Automatic (context-based) |
|
|
48
|
+
| **Location** | `commands/` | `skills/` or root |
|
|
49
|
+
| **Use Case** | Explicit action | Background assistance |
|
|
50
|
+
|
|
51
|
+
## Adding Custom Commands | 新增自訂命令
|
|
52
|
+
|
|
53
|
+
Create a `.md` file in the `commands/` directory:
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
---
|
|
57
|
+
description: Brief description of the command
|
|
58
|
+
allowed-tools: Read, Write, Bash(git:*)
|
|
59
|
+
argument-hint: "[optional arguments]"
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
# Command Name
|
|
63
|
+
|
|
64
|
+
Instructions for Claude...
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Installation | 安裝
|
|
68
|
+
|
|
69
|
+
Commands are automatically available after installing the plugin:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
/plugin marketplace add AsiaOstrich/universal-dev-standards
|
|
73
|
+
/plugin install universal-dev-standards@asia-ostrich
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## License | 授權
|
|
77
|
+
|
|
78
|
+
Dual-licensed: CC BY 4.0 (documentation) + MIT (code)
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Guide through Behavior-Driven Development workflow
|
|
3
|
+
allowed-tools: Read, Write, Grep, Glob, Bash(npm test:*), Bash(npx:*)
|
|
4
|
+
argument-hint: "[behavior or scenario to implement | 要實作的行為或場景]"
|
|
5
|
+
status: experimental
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# BDD Assistant | BDD 助手
|
|
9
|
+
|
|
10
|
+
> [!WARNING]
|
|
11
|
+
> **Experimental Feature / 實驗性功能**
|
|
12
|
+
>
|
|
13
|
+
> This feature is under active development and may change significantly in v4.0.
|
|
14
|
+
> 此功能正在積極開發中,可能在 v4.0 中有重大變更。
|
|
15
|
+
|
|
16
|
+
Guide through the Behavior-Driven Development (BDD) workflow using Given-When-Then format.
|
|
17
|
+
|
|
18
|
+
引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式。
|
|
19
|
+
|
|
20
|
+
## Methodology Integration | 方法論整合
|
|
21
|
+
|
|
22
|
+
When `/bdd` is invoked:
|
|
23
|
+
1. **Automatically activate BDD methodology** if not already active
|
|
24
|
+
2. **Set current phase to DISCOVERY** (exploring behavior)
|
|
25
|
+
3. **Track phase transitions** as work progresses
|
|
26
|
+
4. **Show phase indicators** in responses (🔍 Discovery, 📝 Formulation, 🤖 Automation, 📚 Living Docs)
|
|
27
|
+
|
|
28
|
+
當調用 `/bdd` 時:
|
|
29
|
+
1. **自動啟用 BDD 方法論**(如果尚未啟用)
|
|
30
|
+
2. **將當前階段設為探索**(探索行為)
|
|
31
|
+
3. **追蹤階段轉換**隨著工作進展
|
|
32
|
+
4. **在回應中顯示階段指示器**(🔍 探索、📝 制定、🤖 自動化、📚 活文件)
|
|
33
|
+
|
|
34
|
+
See [methodology-system](../methodology-system/SKILL.md) for full methodology tracking.
|
|
35
|
+
|
|
36
|
+
## BDD Cycle | BDD 循環
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
┌───────────────────────────────────────────────────────┐
|
|
40
|
+
│ │
|
|
41
|
+
│ ┌─────────┐ ┌───────────┐ ┌──────────┐ ┌────┐ │
|
|
42
|
+
│ │DISCOVERY│ ► │FORMULATION│ ► │AUTOMATION│ ► │DOCS│ │
|
|
43
|
+
│ └─────────┘ └───────────┘ └──────────┘ └────┘ │
|
|
44
|
+
│ ▲ │ │
|
|
45
|
+
│ └────────────────────────────────────┘ │
|
|
46
|
+
│ │
|
|
47
|
+
└───────────────────────────────────────────────────────┘
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Workflow | 工作流程
|
|
51
|
+
|
|
52
|
+
### 1. DISCOVERY - Explore Behavior | 探索行為
|
|
53
|
+
- Discuss with stakeholders
|
|
54
|
+
- Identify examples and edge cases
|
|
55
|
+
- Understand the "why" behind features
|
|
56
|
+
|
|
57
|
+
### 2. FORMULATION - Write Scenarios | 制定場景
|
|
58
|
+
- Write Gherkin scenarios (Given-When-Then)
|
|
59
|
+
- Use ubiquitous language
|
|
60
|
+
- Make scenarios concrete and specific
|
|
61
|
+
|
|
62
|
+
### 3. AUTOMATION - Implement Tests | 自動化測試
|
|
63
|
+
- Implement step definitions
|
|
64
|
+
- Write minimal code to pass
|
|
65
|
+
- Follow the TDD cycle within automation
|
|
66
|
+
|
|
67
|
+
### 4. LIVING DOCUMENTATION - Maintain | 活文件維護
|
|
68
|
+
- Keep scenarios up to date
|
|
69
|
+
- Use as documentation
|
|
70
|
+
- Share with stakeholders
|
|
71
|
+
|
|
72
|
+
## Gherkin Format | Gherkin 格式
|
|
73
|
+
|
|
74
|
+
```gherkin
|
|
75
|
+
Feature: User Login
|
|
76
|
+
As a registered user
|
|
77
|
+
I want to log in to my account
|
|
78
|
+
So that I can access my personal dashboard
|
|
79
|
+
|
|
80
|
+
Scenario: Successful login with valid credentials
|
|
81
|
+
Given I am on the login page
|
|
82
|
+
And I have a registered account with email "user@example.com"
|
|
83
|
+
When I enter my email "user@example.com"
|
|
84
|
+
And I enter my password "correctpassword"
|
|
85
|
+
And I click the login button
|
|
86
|
+
Then I should be redirected to my dashboard
|
|
87
|
+
And I should see a welcome message
|
|
88
|
+
|
|
89
|
+
Scenario: Failed login with invalid password
|
|
90
|
+
Given I am on the login page
|
|
91
|
+
When I enter my email "user@example.com"
|
|
92
|
+
And I enter my password "wrongpassword"
|
|
93
|
+
And I click the login button
|
|
94
|
+
Then I should see an error message "Invalid credentials"
|
|
95
|
+
And I should remain on the login page
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Three Amigos | 三劍客會議
|
|
99
|
+
|
|
100
|
+
BDD works best with collaboration:
|
|
101
|
+
|
|
102
|
+
| Role | Focus | 角色 | 關注點 |
|
|
103
|
+
|------|-------|------|--------|
|
|
104
|
+
| Business | What & Why | 業務 | 什麼和為什麼 |
|
|
105
|
+
| Development | How | 開發 | 如何實現 |
|
|
106
|
+
| Testing | What if | 測試 | 假設情況 |
|
|
107
|
+
|
|
108
|
+
## Usage | 使用方式
|
|
109
|
+
|
|
110
|
+
- `/bdd` - Start interactive BDD session
|
|
111
|
+
- `/bdd "user can reset password"` - BDD for specific feature
|
|
112
|
+
- `/bdd login-feature.feature` - Work with existing feature file
|
|
113
|
+
|
|
114
|
+
## Phase Checklist | 階段檢查清單
|
|
115
|
+
|
|
116
|
+
### Discovery Phase
|
|
117
|
+
- [ ] Stakeholders identified
|
|
118
|
+
- [ ] User stories discussed
|
|
119
|
+
- [ ] Examples collected
|
|
120
|
+
- [ ] Edge cases identified
|
|
121
|
+
|
|
122
|
+
### Formulation Phase
|
|
123
|
+
- [ ] Scenarios follow Given-When-Then
|
|
124
|
+
- [ ] Language is ubiquitous (shared vocabulary)
|
|
125
|
+
- [ ] Scenarios are specific and concrete
|
|
126
|
+
- [ ] No implementation details in scenarios
|
|
127
|
+
|
|
128
|
+
### Automation Phase
|
|
129
|
+
- [ ] Step definitions implemented
|
|
130
|
+
- [ ] Tests are executable
|
|
131
|
+
- [ ] Code passes all scenarios
|
|
132
|
+
- [ ] Refactoring complete
|
|
133
|
+
|
|
134
|
+
### Living Documentation Phase
|
|
135
|
+
- [ ] Scenarios are current
|
|
136
|
+
- [ ] Documentation is accessible
|
|
137
|
+
- [ ] Stakeholders can read and understand
|
|
138
|
+
|
|
139
|
+
## Reference | 參考
|
|
140
|
+
|
|
141
|
+
- Methodology: [bdd.methodology.yaml](../../../../methodologies/bdd.methodology.yaml)
|
|
142
|
+
- Methodology System: [methodology-system](../methodology-system/SKILL.md)
|