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,407 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: skills/claude-code/checkin-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-01-12
|
|
6
|
+
status: current
|
|
7
|
+
name: checkin-assistant
|
|
8
|
+
description: |
|
|
9
|
+
引導提交前品质关卡和簽入工作流程。
|
|
10
|
+
使用时机:提交程序码、准备提交、品质关卡验证。
|
|
11
|
+
关鍵字:commit, checkin, pre-commit, quality gate, git add, 提交, 簽入, 品质关卡.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 簽入助手
|
|
15
|
+
|
|
16
|
+
> **语言**:[English](../../../../../skills/claude-code/checkin-assistant/SKILL.md) | 简体中文
|
|
17
|
+
|
|
18
|
+
**版本**:1.0.0
|
|
19
|
+
**最後更新**:2026-01-12
|
|
20
|
+
**適用範圍**:Claude Code Skills
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 目的
|
|
25
|
+
|
|
26
|
+
此技能引導开发人員完成提交前的品质关卡,确保每次提交都能維護程序码庫的穩定性并遵循最佳实踐。
|
|
27
|
+
|
|
28
|
+
**注意**:此技能專注於**何时以及如何提交**。有关 PR 期间的程序码审查,請參阅[程序码审查助手](../code-review-assistant/SKILL.md)。
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 快速參考(YAML 壓縮格式)
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
# === 核心理念 ===
|
|
36
|
+
每次提交应該:
|
|
37
|
+
- "是一个完整的邏辑工作单元"
|
|
38
|
+
- "讓程序码庫保持可运行状态"
|
|
39
|
+
- "可以回滾而不破壞功能"
|
|
40
|
+
- "包含自己的测试(新功能)"
|
|
41
|
+
- "讓未來的开发者能夠理解"
|
|
42
|
+
|
|
43
|
+
# === 強制检查清单 ===
|
|
44
|
+
checklist:
|
|
45
|
+
建置:
|
|
46
|
+
- "程序码编譯成功(零错误)"
|
|
47
|
+
- "所有相依套件已滿足"
|
|
48
|
+
验证: "执行建置指令,退出码为 0"
|
|
49
|
+
|
|
50
|
+
测试:
|
|
51
|
+
- "所有現有测试通過(100%)"
|
|
52
|
+
- "新程序码有对应测试"
|
|
53
|
+
- "覆蓋率没有下降"
|
|
54
|
+
验证: "执行测试套件,检查覆蓋率"
|
|
55
|
+
|
|
56
|
+
品质:
|
|
57
|
+
- "遵循编码标准"
|
|
58
|
+
- "無程序码異味(方法≤50行,巢状≤3层,複雜度≤10)"
|
|
59
|
+
- "無写死的密鑰"
|
|
60
|
+
- "無安全漏洞"
|
|
61
|
+
验证: "执行 linter、安全掃描器"
|
|
62
|
+
|
|
63
|
+
文件:
|
|
64
|
+
- "API 文件已更新"
|
|
65
|
+
- "README 已更新(如需要)"
|
|
66
|
+
- "CHANGELOG 已更新(使用者可見变更 → [Unreleased])"
|
|
67
|
+
|
|
68
|
+
工作流程:
|
|
69
|
+
- "分支命名正确(feature/, fix/, docs/, chore/)"
|
|
70
|
+
- "提交消息格式正确(conventional commits)"
|
|
71
|
+
- "已与目標分支同步"
|
|
72
|
+
|
|
73
|
+
# === 絕不在以下情况提交 ===
|
|
74
|
+
阻擋条件:
|
|
75
|
+
- "建置有错误"
|
|
76
|
+
- "测试失败"
|
|
77
|
+
- "功能不完整(会破壞功能)"
|
|
78
|
+
- "关鍵邏辑中包含 WIP/TODO"
|
|
79
|
+
- "包含除錯程序码(console.log, print)"
|
|
80
|
+
- "包含被註解的程序码區塊"
|
|
81
|
+
|
|
82
|
+
# === 提交时机 ===
|
|
83
|
+
好的时机:
|
|
84
|
+
- 完成单元: "功能完整实作并附帶测试"
|
|
85
|
+
- 修復错误: "错误已修復并有回歸测试"
|
|
86
|
+
- 獨立重構: "重構完成,所有测试通過"
|
|
87
|
+
- 可运行状态: "程序码编譯通過,应用程序可执行"
|
|
88
|
+
|
|
89
|
+
不好的时机:
|
|
90
|
+
- "建置失败"
|
|
91
|
+
- "测试失败"
|
|
92
|
+
- "功能不完整"
|
|
93
|
+
- "实驗性程序码散佈著 TODO"
|
|
94
|
+
|
|
95
|
+
# === 粒度 ===
|
|
96
|
+
理想提交:
|
|
97
|
+
文件數: "1-10(超過 10 則考慮拆分)"
|
|
98
|
+
行數: "50-300"
|
|
99
|
+
範圍: "单一关注点"
|
|
100
|
+
|
|
101
|
+
拆分原則:
|
|
102
|
+
合併: ["功能 + 其测试", "緊密相关的多文件变更"]
|
|
103
|
+
分開: ["功能 A + B", "重構 + 新功能", "错误修復 + 順便重構"]
|
|
104
|
+
|
|
105
|
+
# === 特殊情境 ===
|
|
106
|
+
緊急離開:
|
|
107
|
+
建议: "git stash save 'WIP: 描述'"
|
|
108
|
+
替代方案: "建立 wip/ 分支"
|
|
109
|
+
禁止: "直接在功能分支上提交 WIP"
|
|
110
|
+
|
|
111
|
+
实驗性开发:
|
|
112
|
+
分支: "experiment/主題名称"
|
|
113
|
+
規則: "自由提交(無嚴格格式)"
|
|
114
|
+
成功: "清理、壓縮、合併到功能分支"
|
|
115
|
+
失败: "记录教訓、刪除分支"
|
|
116
|
+
|
|
117
|
+
緊急修復:
|
|
118
|
+
分支: "hotfix/問題名称,從 main 分出"
|
|
119
|
+
規則: "最小化变更,只修復問題"
|
|
120
|
+
消息: "fix(scope): [URGENT] 描述"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## 检查清单视覺格式
|
|
126
|
+
|
|
127
|
+
每次提交前使用此检查清单:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
131
|
+
│ 📋 提交前检查清单 │
|
|
132
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
133
|
+
│ 🔨 建置 │
|
|
134
|
+
│ □ 程序码编譯成功(零错误) │
|
|
135
|
+
│ □ 所有相依套件已滿足 │
|
|
136
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
137
|
+
│ 🧪 测试 │
|
|
138
|
+
│ □ 所有現有测试通過(100%) │
|
|
139
|
+
│ □ 新程序码有对应测试 │
|
|
140
|
+
│ □ 测试覆蓋率没有下降 │
|
|
141
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
142
|
+
│ ✨ 程序码品质 │
|
|
143
|
+
│ □ 遵循项目编码标准 │
|
|
144
|
+
│ □ 無写死的密鑰或憑证 │
|
|
145
|
+
│ □ 無安全漏洞 │
|
|
146
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
147
|
+
│ 📝 文件 │
|
|
148
|
+
│ □ API 文件已更新(如適用) │
|
|
149
|
+
│ □ CHANGELOG 已更新(使用者可見变更) │
|
|
150
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
151
|
+
│ 🔄 工作流程 │
|
|
152
|
+
│ □ 分支命名遵循规范 │
|
|
153
|
+
│ □ 提交消息遵循 conventional commits │
|
|
154
|
+
│ □ 已与目標分支同步(無衝突) │
|
|
155
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 簽入觸發点
|
|
161
|
+
|
|
162
|
+
### 何时提示提交
|
|
163
|
+
|
|
164
|
+
| 觸發条件 | 状况 | 提醒強度 |
|
|
165
|
+
|---------|------|----------|
|
|
166
|
+
| 阶段完成 | 完成一个开发阶段 | 建议 |
|
|
167
|
+
| 检查点 | 达到定義的检查点 | 建议 |
|
|
168
|
+
| 变更累積 | 文件 ≥5 或行數 ≥200 | 建议 |
|
|
169
|
+
| 連續跳過 | 連續跳過提交 3 次 | 警告 |
|
|
170
|
+
| 工作完成 | 完成前有未提交的变更 | 強烈建议 |
|
|
171
|
+
|
|
172
|
+
### 提醒格式
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
┌────────────────────────────────────────────────┐
|
|
176
|
+
│ 🔔 簽入检查点 │
|
|
177
|
+
├────────────────────────────────────────────────┤
|
|
178
|
+
│ 阶段 1 已完成 │
|
|
179
|
+
│ │
|
|
180
|
+
│ 变更统计: │
|
|
181
|
+
│ - 文件數:5 │
|
|
182
|
+
│ - 新增:180 行 │
|
|
183
|
+
│ - 刪除:12 行 │
|
|
184
|
+
│ │
|
|
185
|
+
│ 测试状态:✅ 通過 │
|
|
186
|
+
│ │
|
|
187
|
+
│ 建议的提交消息: │
|
|
188
|
+
│ feat(module): 完成阶段 1 设置 │
|
|
189
|
+
│ │
|
|
190
|
+
│ 选项: │
|
|
191
|
+
│ [1] 現在提交(会顯示 git 指令) │
|
|
192
|
+
│ [2] 稍後提交,繼續下一阶段 │
|
|
193
|
+
│ [3] 查看详细变更 │
|
|
194
|
+
└────────────────────────────────────────────────┘
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### 跳過警告
|
|
198
|
+
|
|
199
|
+
連續跳過 3 次後:
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
⚠️ 警告:您已連續跳過簽入 3 次
|
|
203
|
+
目前累積变更:15 个文件,+520 行
|
|
204
|
+
建议盡快提交,避免变更過大難以审查
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## AI 助手工作流程
|
|
210
|
+
|
|
211
|
+
當 AI 完成程序码变更时,遵循此工作流程:
|
|
212
|
+
|
|
213
|
+
### 步骤 1:评估时机
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
✅ 完整:"实作了使用者註冊,包含验证、测试和文件"
|
|
217
|
+
⚠️ 不完整:"新增了註冊表单,但後端验证尚未完成"
|
|
218
|
+
❌ 未就緒:"開始处理註冊功能,还有多个 TODO"
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### 步骤 2:执行检查清单
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
### 检查清单結果
|
|
225
|
+
|
|
226
|
+
✅ 建置:npm run build 成功
|
|
227
|
+
✅ 程序码品质:遵循项目标准
|
|
228
|
+
⚠️ 测试:单元测试通過,集成测试需要验证
|
|
229
|
+
✅ 文件:已新增 JSDoc 註解
|
|
230
|
+
✅ 提交消息:已按照 conventional commits 格式准备
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### 步骤 3:提示使用者
|
|
234
|
+
|
|
235
|
+
```markdown
|
|
236
|
+
## 請确认簽入
|
|
237
|
+
|
|
238
|
+
已完成:[簡短描述]
|
|
239
|
+
|
|
240
|
+
### 检查清单結果
|
|
241
|
+
✅ 建置通過
|
|
242
|
+
✅ 测试通過
|
|
243
|
+
✅ 程序码品质已验证
|
|
244
|
+
✅ 文件已更新
|
|
245
|
+
|
|
246
|
+
建议的提交消息:
|
|
247
|
+
```
|
|
248
|
+
feat(auth): 新增 OAuth2 Google 登入支援
|
|
249
|
+
|
|
250
|
+
- 实作 Google 提供者的 OAuth2 流程
|
|
251
|
+
- 新增使用者工作阶段管理
|
|
252
|
+
- 包含 auth 服务的单元测试
|
|
253
|
+
|
|
254
|
+
Refs #123
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
是否繼續提交?
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### 步骤 4:等待确认
|
|
261
|
+
|
|
262
|
+
**AI 必須**:
|
|
263
|
+
- ✅ 等待使用者明确同意
|
|
264
|
+
- ✅ 提供清晰的检查清单摘要
|
|
265
|
+
- ✅ 允許使用者拒絕或要求修改
|
|
266
|
+
|
|
267
|
+
**AI 不得**:
|
|
268
|
+
- ❌ 自动执行 `git add`
|
|
269
|
+
- ❌ 自动执行 `git commit`
|
|
270
|
+
- ❌ 自动执行 `git push`
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## 常見違規
|
|
275
|
+
|
|
276
|
+
### ❌ WIP 提交
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# 不好
|
|
280
|
+
git commit -m "WIP"
|
|
281
|
+
git commit -m "save work"
|
|
282
|
+
|
|
283
|
+
# 解决方案:使用 git stash
|
|
284
|
+
git stash save "WIP: 功能描述"
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### ❌ 註解的程序码
|
|
288
|
+
|
|
289
|
+
```javascript
|
|
290
|
+
// 不好:提交被註解的舊程序码
|
|
291
|
+
// const oldValue = calculate(x);
|
|
292
|
+
const newValue = calculateV2(x);
|
|
293
|
+
|
|
294
|
+
// 解决方案:刪除註解的程序码,依賴 git 历史
|
|
295
|
+
const newValue = calculateV2(x);
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### ❌ 混合关注点
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
# 不好:一个提交包含多个不相关的变更
|
|
302
|
+
git commit -m "fix bug and refactor and add feature"
|
|
303
|
+
|
|
304
|
+
# 解决方案:分開提交
|
|
305
|
+
git commit -m "fix(module-a): 解决空指標問題"
|
|
306
|
+
git commit -m "refactor(module-b): 提取验证邏辑"
|
|
307
|
+
git commit -m "feat(module-c): 新增 CSV 匯出"
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## 目录衛生
|
|
313
|
+
|
|
314
|
+
提交前,验证没有不需要的文件:
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
# 检查暫存區中的 IDE 产出物
|
|
318
|
+
git diff --cached --name-only | grep -E '\.idea|\.vs/|\.DS_Store'
|
|
319
|
+
|
|
320
|
+
# 检查異常目录
|
|
321
|
+
git ls-files | grep -E '^\$'
|
|
322
|
+
|
|
323
|
+
# 取消暫存不需要的文件
|
|
324
|
+
git reset HEAD <file>
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### 常見应排除的产出物
|
|
328
|
+
|
|
329
|
+
| 模式 | 來源 | 处理方式 |
|
|
330
|
+
|------|------|----------|
|
|
331
|
+
| `.idea/` | JetBrains | gitignore |
|
|
332
|
+
| `.vs/` | Visual Studio | gitignore |
|
|
333
|
+
| `.DS_Store` | macOS | gitignore |
|
|
334
|
+
| `Thumbs.db` | Windows | gitignore |
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 配置偵测
|
|
339
|
+
|
|
340
|
+
### 偵测順序
|
|
341
|
+
|
|
342
|
+
1. 检查 `CONTRIBUTING.md` 的「Disabled Skills」區段
|
|
343
|
+
2. 检查 `CONTRIBUTING.md` 的「Check-in Standards」區段
|
|
344
|
+
3. 检查 pre-commit hooks 配置
|
|
345
|
+
4. 如果都没找到,**使用标准检查清单**
|
|
346
|
+
|
|
347
|
+
### 首次设置
|
|
348
|
+
|
|
349
|
+
如果没有找到配置:
|
|
350
|
+
|
|
351
|
+
1. 建议在 `CONTRIBUTING.md` 中记录:
|
|
352
|
+
|
|
353
|
+
```markdown
|
|
354
|
+
## 簽入标准
|
|
355
|
+
|
|
356
|
+
### 建置指令
|
|
357
|
+
```bash
|
|
358
|
+
npm run build
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
### 测试指令
|
|
362
|
+
```bash
|
|
363
|
+
npm test
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### 品质指令
|
|
367
|
+
```bash
|
|
368
|
+
npm run lint
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### 最低覆蓋率
|
|
372
|
+
- 行覆蓋率:80%
|
|
373
|
+
- 分支覆蓋率:75%
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## 详细指南
|
|
379
|
+
|
|
380
|
+
完整标准請參見:
|
|
381
|
+
- [簽入标准](../../../core/checkin-standards.md)
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
## 相关标准
|
|
386
|
+
|
|
387
|
+
- [簽入标准](../../../core/checkin-standards.md) - 核心标准
|
|
388
|
+
- [提交消息指南](../../../core/commit-message-guide.md) - 消息格式
|
|
389
|
+
- [程序码审查检查清单](../../../core/code-review-checklist.md) - PR 审查
|
|
390
|
+
- [程序码审查助手](../code-review-assistant/SKILL.md) - 审查技能
|
|
391
|
+
- [提交标准技能](../commit-standards/SKILL.md) - 提交消息技能
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## 版本历史
|
|
396
|
+
|
|
397
|
+
| 版本 | 日期 | 变更 |
|
|
398
|
+
|------|------|------|
|
|
399
|
+
| 1.0.0 | 2026-01-12 | 初始發布 |
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## 授权
|
|
404
|
+
|
|
405
|
+
此技能以 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授权釋出。
|
|
406
|
+
|
|
407
|
+
**來源**:[universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: skills/claude-code/code-review-assistant/SKILL.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2025-12-25
|
|
6
|
+
status: current
|
|
7
|
+
name: code-review-assistant
|
|
8
|
+
description: |
|
|
9
|
+
系统化的程序码审查检查清单和提交前品质关卡。
|
|
10
|
+
使用时机:审查 pull request、检查程序码品质、提交程序码前。
|
|
11
|
+
关鍵字:review, PR, pull request, checklist, quality, commit, 审查, 检查, 簽入。
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 程序码审查助理
|
|
15
|
+
|
|
16
|
+
> **语言**: [English](../../../../../skills/claude-code/code-review-assistant/SKILL.md) | 简体中文
|
|
17
|
+
|
|
18
|
+
**版本**: 1.0.0
|
|
19
|
+
**最後更新**: 2025-12-24
|
|
20
|
+
**適用範圍**: Claude Code Skills
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 目的
|
|
25
|
+
|
|
26
|
+
此技能提供系统化的程序码审查和提交前验证检查清单。
|
|
27
|
+
|
|
28
|
+
## 快速參考
|
|
29
|
+
|
|
30
|
+
### 註解前綴
|
|
31
|
+
|
|
32
|
+
| 前綴 | 意義 | 需要採取的行动 |
|
|
33
|
+
|--------|---------|------------------|
|
|
34
|
+
| **❗ BLOCKING** | 合併前必須修正 | 🔴 必要 |
|
|
35
|
+
| **⚠️ IMPORTANT** | 应該修正,但不阻擋合併 | 🟡 建议 |
|
|
36
|
+
| **💡 SUGGESTION** | 可改进之处 | 🟢 选择性 |
|
|
37
|
+
| **❓ QUESTION** | 需要釐清 | 🔵 討論 |
|
|
38
|
+
| **📝 NOTE** | 信息性质,無需行动 | ⚪ 信息 |
|
|
39
|
+
|
|
40
|
+
### 审查检查清单类别
|
|
41
|
+
|
|
42
|
+
1. **功能性** - 是否正常运作?
|
|
43
|
+
2. **设计** - 架構是否正确?
|
|
44
|
+
3. **品质** - 程序码是否乾淨?
|
|
45
|
+
4. **可读性** - 是否容易理解?
|
|
46
|
+
5. **测试** - 涵蓋率是否足夠?
|
|
47
|
+
6. **安全性** - 是否有漏洞?
|
|
48
|
+
7. **效能** - 是否高效?
|
|
49
|
+
8. **错误处理** - 是否妥善处理?
|
|
50
|
+
9. **文件** - 是否更新?
|
|
51
|
+
10. **依賴项** - 是否必要?
|
|
52
|
+
|
|
53
|
+
### 提交前检查清单
|
|
54
|
+
|
|
55
|
+
- [ ] 建置成功(零错误、零警告)
|
|
56
|
+
- [ ] 所有测试通過
|
|
57
|
+
- [ ] 程序码符合项目标准
|
|
58
|
+
- [ ] 無安全漏洞
|
|
59
|
+
- [ ] 文件已更新
|
|
60
|
+
- [ ] 分支已与目標同步
|
|
61
|
+
|
|
62
|
+
## 详细指南
|
|
63
|
+
|
|
64
|
+
完整标准請參阅:
|
|
65
|
+
- [审查检查清单](./review-checklist.md)
|
|
66
|
+
- [提交前检查清单](./checkin-checklist.md)
|
|
67
|
+
|
|
68
|
+
## 审查註解範例
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
❗ BLOCKING: 此处有潛在的 SQL injection 漏洞。
|
|
72
|
+
請使用參數化查詢而非字串串接。
|
|
73
|
+
|
|
74
|
+
⚠️ IMPORTANT: 此方法做太多事情了(120 行)。
|
|
75
|
+
考慮將验证邏辑提取到獨立方法。
|
|
76
|
+
|
|
77
|
+
💡 SUGGESTION: 考慮在此使用 Map 而非陣列以达到 O(1) 查找。
|
|
78
|
+
|
|
79
|
+
❓ QUESTION: 为什麼这里使用 setTimeout 而不是 async/await?
|
|
80
|
+
|
|
81
|
+
📝 NOTE: 这是个聰明的解决方案!很好地运用了 reduce。
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 核心原則
|
|
85
|
+
|
|
86
|
+
1. **保持尊重** - 审查程序码,而非审查人
|
|
87
|
+
2. **保持徹底** - 检查功能性,而非僅检查語法
|
|
88
|
+
3. **保持及时** - 在 24 小时內完成审查
|
|
89
|
+
4. **保持清晰** - 解釋「为什麼」,而非僅「是什麼」
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 配置偵测
|
|
94
|
+
|
|
95
|
+
此技能支援项目特定配置。
|
|
96
|
+
|
|
97
|
+
### 偵测順序
|
|
98
|
+
|
|
99
|
+
1. 检查 `CONTRIBUTING.md` 的「Disabled Skills」區段
|
|
100
|
+
- 如果此技能被列出,則在此项目中停用
|
|
101
|
+
2. 检查 `CONTRIBUTING.md` 的「Code Review Language」區段
|
|
102
|
+
3. 若未找到,**预设使用英文**
|
|
103
|
+
|
|
104
|
+
### 首次设置
|
|
105
|
+
|
|
106
|
+
如果未找到配置且情境不明确:
|
|
107
|
+
|
|
108
|
+
1. 詢問使用者:「此项目尚未配置程序码审查语言。您想使用哪个选项?(English / 中文)」
|
|
109
|
+
2. 使用者选择後,建议在 `CONTRIBUTING.md` 中记录:
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
## Code Review Language
|
|
113
|
+
|
|
114
|
+
This project uses **[chosen option]** for code review comments.
|
|
115
|
+
<!-- Options: English | 中文 -->
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### 配置範例
|
|
119
|
+
|
|
120
|
+
在项目的 `CONTRIBUTING.md` 中:
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
## Code Review Language
|
|
124
|
+
|
|
125
|
+
This project uses **English** for code review comments.
|
|
126
|
+
<!-- Options: English | 中文 -->
|
|
127
|
+
|
|
128
|
+
### Comment Prefixes
|
|
129
|
+
BLOCKING, IMPORTANT, SUGGESTION, QUESTION, NOTE
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## 相关标准
|
|
135
|
+
|
|
136
|
+
- [Code Review Checklist](../../core/code-review-checklist.md)
|
|
137
|
+
- [Checkin Standards](../../core/checkin-standards.md)
|
|
138
|
+
- [Testing Standards](../../core/testing-standards.md)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 版本历史
|
|
143
|
+
|
|
144
|
+
| 版本 | 日期 | 变更内容 |
|
|
145
|
+
|---------|------|---------|
|
|
146
|
+
| 1.0.0 | 2025-12-24 | 新增:标准區段(目的、相关标准、版本历史、授权) |
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 授权
|
|
151
|
+
|
|
152
|
+
此技能依据 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授权釋出。
|
|
153
|
+
|
|
154
|
+
**來源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|