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,88 @@
|
|
|
1
|
+
# 合併提交 - AI 優化選項
|
|
2
|
+
# 父項: git-workflow
|
|
3
|
+
|
|
4
|
+
id: merge-commit
|
|
5
|
+
meta:
|
|
6
|
+
parent: git-workflow
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 使用合併提交保留完整分支歷史
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
best_for:
|
|
12
|
+
- 保留完整歷史
|
|
13
|
+
- 長期功能分支
|
|
14
|
+
- GitFlow 工作流程
|
|
15
|
+
- 稽核要求
|
|
16
|
+
|
|
17
|
+
characteristics:
|
|
18
|
+
history: 非線性(有合併點)
|
|
19
|
+
commit_count: 保留所有提交
|
|
20
|
+
reversibility: 可還原整個合併
|
|
21
|
+
bisect_friendly: 非常友好
|
|
22
|
+
|
|
23
|
+
rules:
|
|
24
|
+
- id: no-fast-forward
|
|
25
|
+
trigger: 合併分支時
|
|
26
|
+
instruction: 使用 --no-ff 建立合併提交
|
|
27
|
+
priority: required
|
|
28
|
+
|
|
29
|
+
- id: meaningful-merge-message
|
|
30
|
+
trigger: 建立合併提交時
|
|
31
|
+
instruction: 撰寫描述性的合併訊息
|
|
32
|
+
priority: recommended
|
|
33
|
+
|
|
34
|
+
- id: clean-branch-history
|
|
35
|
+
trigger: 合併前
|
|
36
|
+
instruction: 確保分支有乾淨、有意義的提交
|
|
37
|
+
priority: recommended
|
|
38
|
+
|
|
39
|
+
workflow:
|
|
40
|
+
- step: 建立功能分支
|
|
41
|
+
commands:
|
|
42
|
+
- git checkout main
|
|
43
|
+
- git checkout -b feature/{功能名稱}
|
|
44
|
+
|
|
45
|
+
- step: 進行多次有意義的提交
|
|
46
|
+
commands:
|
|
47
|
+
- git commit -m "feat: add user model"
|
|
48
|
+
- git commit -m "feat: add user service"
|
|
49
|
+
- git commit -m "test: add user tests"
|
|
50
|
+
|
|
51
|
+
- step: 使用合併提交合併
|
|
52
|
+
commands:
|
|
53
|
+
- git checkout main
|
|
54
|
+
- git merge --no-ff feature/{功能名稱} -m "Merge feature/{功能名稱}"
|
|
55
|
+
|
|
56
|
+
example:
|
|
57
|
+
result: |
|
|
58
|
+
* merge123 Merge branch 'feature/oauth'
|
|
59
|
+
|\
|
|
60
|
+
| * abc1234 test: add OAuth tests
|
|
61
|
+
| * def5678 feat: add OAuth service
|
|
62
|
+
| * ghi9012 feat: add OAuth model
|
|
63
|
+
|/
|
|
64
|
+
* xyz7890 previous commit on main
|
|
65
|
+
|
|
66
|
+
pros:
|
|
67
|
+
- 保留完整開發歷史
|
|
68
|
+
- 清楚的功能邊界
|
|
69
|
+
- 適合 git bisect 偵錯
|
|
70
|
+
- 簡單還原整個功能
|
|
71
|
+
|
|
72
|
+
cons:
|
|
73
|
+
- 歷史可能變得複雜
|
|
74
|
+
- 較難閱讀線性流程
|
|
75
|
+
- 更多合併衝突可能性
|
|
76
|
+
|
|
77
|
+
commands:
|
|
78
|
+
merge_no_ff: git merge --no-ff {branch}
|
|
79
|
+
revert_merge: git revert -m 1 {merge-commit}
|
|
80
|
+
view_history: git log --oneline --graph
|
|
81
|
+
|
|
82
|
+
quick_reference:
|
|
83
|
+
options:
|
|
84
|
+
columns: [選項, 說明]
|
|
85
|
+
rows:
|
|
86
|
+
- ["--no-ff", 即使可快進也建立合併提交]
|
|
87
|
+
- ["-m", 指定合併訊息]
|
|
88
|
+
- ["--log", 在合併訊息中包含提交日誌]
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# 變基快進 - AI 優化選項
|
|
2
|
+
# 父項: git-workflow
|
|
3
|
+
|
|
4
|
+
id: rebase-ff
|
|
5
|
+
meta:
|
|
6
|
+
parent: git-workflow
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 變基然後快進合併以獲得線性歷史
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
best_for:
|
|
12
|
+
- 完美線性歷史
|
|
13
|
+
- 主幹開發
|
|
14
|
+
- 短期功能分支
|
|
15
|
+
- 資深 Git 使用者
|
|
16
|
+
|
|
17
|
+
characteristics:
|
|
18
|
+
history: 完全線性
|
|
19
|
+
commit_count: 保留所有提交(重寫)
|
|
20
|
+
reversibility: 需要還原每個提交
|
|
21
|
+
bisect_friendly: 優秀
|
|
22
|
+
|
|
23
|
+
rules:
|
|
24
|
+
- id: never-rebase-shared
|
|
25
|
+
trigger: 變基時
|
|
26
|
+
instruction: 永不變基已推送/共享的分支
|
|
27
|
+
priority: required
|
|
28
|
+
|
|
29
|
+
- id: rebase-before-merge
|
|
30
|
+
trigger: 合併前
|
|
31
|
+
instruction: 總是在合併前變基到最新 main
|
|
32
|
+
priority: required
|
|
33
|
+
|
|
34
|
+
- id: clean-commits
|
|
35
|
+
trigger: 變基前
|
|
36
|
+
instruction: 確保提交是原子性且有意義的
|
|
37
|
+
priority: recommended
|
|
38
|
+
|
|
39
|
+
- id: interactive-rebase
|
|
40
|
+
trigger: 清理歷史時
|
|
41
|
+
instruction: 使用互動式變基壓縮 WIP 提交
|
|
42
|
+
priority: recommended
|
|
43
|
+
|
|
44
|
+
workflow:
|
|
45
|
+
- step: 建立功能分支
|
|
46
|
+
commands:
|
|
47
|
+
- git checkout main
|
|
48
|
+
- git checkout -b feature/{功能名稱}
|
|
49
|
+
|
|
50
|
+
- step: 進行提交
|
|
51
|
+
commands:
|
|
52
|
+
- git commit -m "feat: implement feature part 1"
|
|
53
|
+
- git commit -m "feat: implement feature part 2"
|
|
54
|
+
|
|
55
|
+
- step: 變基到最新 main
|
|
56
|
+
commands:
|
|
57
|
+
- git fetch origin
|
|
58
|
+
- git rebase origin/main
|
|
59
|
+
|
|
60
|
+
- step: 快進合併
|
|
61
|
+
commands:
|
|
62
|
+
- git checkout main
|
|
63
|
+
- git merge --ff-only feature/{功能名稱}
|
|
64
|
+
|
|
65
|
+
- step: 推送並刪除分支
|
|
66
|
+
commands:
|
|
67
|
+
- git push origin main
|
|
68
|
+
- git branch -d feature/{功能名稱}
|
|
69
|
+
|
|
70
|
+
interactive_rebase:
|
|
71
|
+
description: 清理提交歷史
|
|
72
|
+
commands:
|
|
73
|
+
- git rebase -i HEAD~3
|
|
74
|
+
actions:
|
|
75
|
+
- pick: 保留提交原樣
|
|
76
|
+
- reword: 變更提交訊息
|
|
77
|
+
- squash: 與前一個合併
|
|
78
|
+
- fixup: 與前一個合併(丟棄訊息)
|
|
79
|
+
- drop: 移除提交
|
|
80
|
+
|
|
81
|
+
example:
|
|
82
|
+
before: |
|
|
83
|
+
main: A---B---C
|
|
84
|
+
\
|
|
85
|
+
feature: D---E---F
|
|
86
|
+
after_rebase: |
|
|
87
|
+
main: A---B---C
|
|
88
|
+
\
|
|
89
|
+
feature: D'---E'---F'
|
|
90
|
+
after_ff: |
|
|
91
|
+
main: A---B---C---D'---E'---F'
|
|
92
|
+
|
|
93
|
+
pros:
|
|
94
|
+
- 完美線性歷史
|
|
95
|
+
- 每個提交都有意義
|
|
96
|
+
- 優秀的 bisect 支援
|
|
97
|
+
- 乾淨的 git log
|
|
98
|
+
|
|
99
|
+
cons:
|
|
100
|
+
- 重寫歷史風險
|
|
101
|
+
- 需要更多 Git 知識
|
|
102
|
+
- 不適合共享分支
|
|
103
|
+
- 合併衝突需解決多次
|
|
104
|
+
|
|
105
|
+
quick_reference:
|
|
106
|
+
commands:
|
|
107
|
+
columns: [操作, 指令]
|
|
108
|
+
rows:
|
|
109
|
+
- [變基到 main, "git rebase origin/main"]
|
|
110
|
+
- [互動式變基, "git rebase -i HEAD~n"]
|
|
111
|
+
- [快進合併, "git merge --ff-only branch"]
|
|
112
|
+
- [中止變基, "git rebase --abort"]
|
|
113
|
+
- [繼續變基, "git rebase --continue"]
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# 壓縮合併 - AI 優化選項
|
|
2
|
+
# 父項: git-workflow
|
|
3
|
+
|
|
4
|
+
id: squash-merge
|
|
5
|
+
meta:
|
|
6
|
+
parent: git-workflow
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 將所有分支提交壓縮為單一提交
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
best_for:
|
|
12
|
+
- 乾淨線性歷史
|
|
13
|
+
- 功能分支工作流程
|
|
14
|
+
- 每 PR 一個提交的偏好
|
|
15
|
+
|
|
16
|
+
characteristics:
|
|
17
|
+
history: 線性
|
|
18
|
+
commit_count: 每 PR 一個提交
|
|
19
|
+
reversibility: 簡單還原
|
|
20
|
+
bisect_friendly: 中等
|
|
21
|
+
|
|
22
|
+
rules:
|
|
23
|
+
- id: meaningful-squash-message
|
|
24
|
+
trigger: 壓縮合併時
|
|
25
|
+
instruction: 撰寫完整的提交訊息總結所有變更
|
|
26
|
+
priority: required
|
|
27
|
+
|
|
28
|
+
- id: pr-title-as-commit
|
|
29
|
+
trigger: 合併 PR 時
|
|
30
|
+
instruction: 使用 PR 標題作為壓縮提交的主旨
|
|
31
|
+
priority: recommended
|
|
32
|
+
|
|
33
|
+
- id: include-pr-reference
|
|
34
|
+
trigger: 撰寫壓縮訊息時
|
|
35
|
+
instruction: 在提交訊息中包含 PR 編號
|
|
36
|
+
priority: recommended
|
|
37
|
+
|
|
38
|
+
workflow:
|
|
39
|
+
- step: 建立功能分支
|
|
40
|
+
commands:
|
|
41
|
+
- git checkout main
|
|
42
|
+
- git checkout -b feature/{功能名稱}
|
|
43
|
+
|
|
44
|
+
- step: 進行多次提交
|
|
45
|
+
commands:
|
|
46
|
+
- git commit -m "wip: initial implementation"
|
|
47
|
+
- git commit -m "wip: add tests"
|
|
48
|
+
- git commit -m "wip: fix lint errors"
|
|
49
|
+
|
|
50
|
+
- step: 壓縮合併(通過 GitHub/GitLab)
|
|
51
|
+
commands:
|
|
52
|
+
- "# 在 GitHub/GitLab 中合併時選擇 'Squash and merge'"
|
|
53
|
+
- "# 結果:所有提交壓縮為一個"
|
|
54
|
+
|
|
55
|
+
- step: 或使用命令列
|
|
56
|
+
commands:
|
|
57
|
+
- git checkout main
|
|
58
|
+
- git merge --squash feature/{功能名稱}
|
|
59
|
+
- git commit -m "feat(scope): 總結訊息 (#PR號)"
|
|
60
|
+
|
|
61
|
+
example:
|
|
62
|
+
before: |
|
|
63
|
+
* abc1234 wip: fix lint
|
|
64
|
+
* def5678 wip: add tests
|
|
65
|
+
* ghi9012 wip: initial
|
|
66
|
+
after: |
|
|
67
|
+
* xyz7890 feat(auth): implement OAuth login (#123)
|
|
68
|
+
|
|
69
|
+
pros:
|
|
70
|
+
- 乾淨、可讀的歷史
|
|
71
|
+
- 簡單還原功能
|
|
72
|
+
- 每個功能一個提交
|
|
73
|
+
|
|
74
|
+
cons:
|
|
75
|
+
- 失去詳細提交歷史
|
|
76
|
+
- 較難追蹤個別變更
|
|
77
|
+
- 在 bisect 偵錯時可能較困難
|
|
78
|
+
|
|
79
|
+
quick_reference:
|
|
80
|
+
commands:
|
|
81
|
+
columns: [操作, 指令]
|
|
82
|
+
rows:
|
|
83
|
+
- [壓縮合併, "git merge --squash branch"]
|
|
84
|
+
- [還原壓縮提交, "git revert <commit>"]
|
|
85
|
+
- [查看線性歷史, "git log --oneline"]
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# 主幹開發 - AI 優化選項
|
|
2
|
+
# 父項: git-workflow
|
|
3
|
+
|
|
4
|
+
id: trunk-based
|
|
5
|
+
meta:
|
|
6
|
+
parent: git-workflow
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: 直接提交到主幹的持續整合工作流程
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
best_for:
|
|
12
|
+
- 持續部署(每天多次)
|
|
13
|
+
- 成熟的 CI/CD 管線
|
|
14
|
+
- 資深開發團隊
|
|
15
|
+
- 微服務架構
|
|
16
|
+
|
|
17
|
+
branches:
|
|
18
|
+
- name: main (trunk)
|
|
19
|
+
purpose: 永遠可部署的單一真相來源
|
|
20
|
+
lifetime: 永久
|
|
21
|
+
|
|
22
|
+
- name: feature/*
|
|
23
|
+
purpose: 非常短期的功能分支(選用)
|
|
24
|
+
lifetime: 最多 1-2 天
|
|
25
|
+
note: 許多團隊直接提交到 trunk
|
|
26
|
+
|
|
27
|
+
rules:
|
|
28
|
+
- id: small-frequent-commits
|
|
29
|
+
trigger: 提交程式碼時
|
|
30
|
+
instruction: 小而頻繁的提交(每天多次)
|
|
31
|
+
priority: required
|
|
32
|
+
|
|
33
|
+
- id: feature-flags
|
|
34
|
+
trigger: 開發新功能時
|
|
35
|
+
instruction: 使用功能旗標隱藏未完成功能
|
|
36
|
+
priority: required
|
|
37
|
+
|
|
38
|
+
- id: trunk-always-green
|
|
39
|
+
trigger: 合併到 trunk 時
|
|
40
|
+
instruction: 所有測試必須通過;trunk 永遠可部署
|
|
41
|
+
priority: required
|
|
42
|
+
|
|
43
|
+
- id: no-long-lived-branches
|
|
44
|
+
trigger: 建立分支時
|
|
45
|
+
instruction: 分支存活不超過 2 天
|
|
46
|
+
priority: required
|
|
47
|
+
|
|
48
|
+
- id: ci-required
|
|
49
|
+
trigger: 推送變更時
|
|
50
|
+
instruction: 每次推送都必須觸發 CI 管線
|
|
51
|
+
priority: required
|
|
52
|
+
|
|
53
|
+
workflow:
|
|
54
|
+
direct_commit:
|
|
55
|
+
- step: 從最新 trunk 開始
|
|
56
|
+
commands:
|
|
57
|
+
- git checkout main
|
|
58
|
+
- git pull origin main
|
|
59
|
+
|
|
60
|
+
- step: 進行小變更
|
|
61
|
+
commands:
|
|
62
|
+
- "# 進行小而聚焦的變更"
|
|
63
|
+
- git add .
|
|
64
|
+
- git commit -m "feat: {描述}"
|
|
65
|
+
|
|
66
|
+
- step: 推送到 trunk
|
|
67
|
+
commands:
|
|
68
|
+
- git pull --rebase origin main
|
|
69
|
+
- git push origin main
|
|
70
|
+
|
|
71
|
+
short_branch:
|
|
72
|
+
- step: 建立短期分支
|
|
73
|
+
commands:
|
|
74
|
+
- git checkout main
|
|
75
|
+
- git pull origin main
|
|
76
|
+
- git checkout -b feature/{小功能}
|
|
77
|
+
|
|
78
|
+
- step: 快速開發(最多 2 天)
|
|
79
|
+
commands:
|
|
80
|
+
- "# 進行變更..."
|
|
81
|
+
- git add .
|
|
82
|
+
- git commit -m "feat: {描述}"
|
|
83
|
+
|
|
84
|
+
- step: 快速合併
|
|
85
|
+
commands:
|
|
86
|
+
- git checkout main
|
|
87
|
+
- git pull origin main
|
|
88
|
+
- git merge --ff-only feature/{小功能}
|
|
89
|
+
- git push origin main
|
|
90
|
+
|
|
91
|
+
feature_flags:
|
|
92
|
+
description: 使用功能旗標允許不完整程式碼進入 trunk
|
|
93
|
+
example: |
|
|
94
|
+
if (featureFlags.isEnabled('new-checkout')) {
|
|
95
|
+
return <NewCheckout />;
|
|
96
|
+
}
|
|
97
|
+
return <OldCheckout />;
|
|
98
|
+
|
|
99
|
+
practices:
|
|
100
|
+
- name: 結對程式設計
|
|
101
|
+
benefit: 即時程式碼審查
|
|
102
|
+
- name: 測試驅動開發
|
|
103
|
+
benefit: 高信心的頻繁合併
|
|
104
|
+
- name: 功能旗標
|
|
105
|
+
benefit: 不完整功能的安全部署
|
|
106
|
+
- name: 監控
|
|
107
|
+
benefit: 快速偵測問題
|
|
108
|
+
|
|
109
|
+
quick_reference:
|
|
110
|
+
principles:
|
|
111
|
+
columns: [原則, 說明]
|
|
112
|
+
rows:
|
|
113
|
+
- [小提交, 每次變更少於 200 行]
|
|
114
|
+
- [頻繁整合, 每天多次合併到 trunk]
|
|
115
|
+
- [功能旗標, 隱藏進行中功能]
|
|
116
|
+
- [永遠綠燈, Trunk 永遠可部署]
|
|
117
|
+
- [快速回饋, CI 在數分鐘內完成]
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# .NET 專案結構 - AI 優化選項
|
|
2
|
+
# 父項: project-structure
|
|
3
|
+
|
|
4
|
+
id: dotnet
|
|
5
|
+
meta:
|
|
6
|
+
parent: project-structure
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: .NET/C# 專案的標準目錄結構
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
structure:
|
|
12
|
+
template: |
|
|
13
|
+
SolutionName/
|
|
14
|
+
├── src/
|
|
15
|
+
│ ├── SolutionName.Api/ # Web API 專案
|
|
16
|
+
│ │ ├── Controllers/
|
|
17
|
+
│ │ ├── Middleware/
|
|
18
|
+
│ │ ├── Program.cs
|
|
19
|
+
│ │ └── appsettings.json
|
|
20
|
+
│ ├── SolutionName.Core/ # 核心業務邏輯
|
|
21
|
+
│ │ ├── Entities/
|
|
22
|
+
│ │ ├── Interfaces/
|
|
23
|
+
│ │ └── Services/
|
|
24
|
+
│ ├── SolutionName.Infrastructure/ # 外部服務實作
|
|
25
|
+
│ │ ├── Data/
|
|
26
|
+
│ │ ├── Repositories/
|
|
27
|
+
│ │ └── ExternalServices/
|
|
28
|
+
│ └── SolutionName.Shared/ # 共用程式碼
|
|
29
|
+
│ ├── DTOs/
|
|
30
|
+
│ ├── Extensions/
|
|
31
|
+
│ └── Utils/
|
|
32
|
+
├── tests/
|
|
33
|
+
│ ├── SolutionName.UnitTests/
|
|
34
|
+
│ ├── SolutionName.IntegrationTests/
|
|
35
|
+
│ └── SolutionName.FunctionalTests/
|
|
36
|
+
├── docs/
|
|
37
|
+
├── scripts/
|
|
38
|
+
├── SolutionName.sln
|
|
39
|
+
├── .editorconfig
|
|
40
|
+
├── Directory.Build.props
|
|
41
|
+
└── README.md
|
|
42
|
+
|
|
43
|
+
layers:
|
|
44
|
+
- name: Api
|
|
45
|
+
responsibility: HTTP 端點、中介軟體、DI 設定
|
|
46
|
+
depends_on: [Core, Infrastructure]
|
|
47
|
+
|
|
48
|
+
- name: Core
|
|
49
|
+
responsibility: 業務邏輯、實體、介面
|
|
50
|
+
depends_on: []
|
|
51
|
+
|
|
52
|
+
- name: Infrastructure
|
|
53
|
+
responsibility: 資料存取、外部服務
|
|
54
|
+
depends_on: [Core]
|
|
55
|
+
|
|
56
|
+
- name: Shared
|
|
57
|
+
responsibility: 共用 DTO、擴充方法
|
|
58
|
+
depends_on: []
|
|
59
|
+
|
|
60
|
+
conventions:
|
|
61
|
+
naming:
|
|
62
|
+
files: PascalCase.cs
|
|
63
|
+
directories: PascalCase
|
|
64
|
+
classes: PascalCase
|
|
65
|
+
interfaces: IPascalCase
|
|
66
|
+
methods: PascalCase
|
|
67
|
+
private_fields: _camelCase
|
|
68
|
+
constants: PascalCase
|
|
69
|
+
|
|
70
|
+
rules:
|
|
71
|
+
- id: clean-architecture
|
|
72
|
+
trigger: 組織專案時
|
|
73
|
+
instruction: 遵循 Clean Architecture 原則(相依性向內)
|
|
74
|
+
priority: required
|
|
75
|
+
|
|
76
|
+
- id: interface-segregation
|
|
77
|
+
trigger: 定義介面時
|
|
78
|
+
instruction: 在 Core 定義介面,在 Infrastructure 實作
|
|
79
|
+
priority: required
|
|
80
|
+
|
|
81
|
+
- id: project-references
|
|
82
|
+
trigger: 加入參考時
|
|
83
|
+
instruction: Api → Infrastructure → Core,Shared 可被任何專案參考
|
|
84
|
+
priority: required
|
|
85
|
+
|
|
86
|
+
project_files:
|
|
87
|
+
directory_build_props: |
|
|
88
|
+
<Project>
|
|
89
|
+
<PropertyGroup>
|
|
90
|
+
<TargetFramework>net8.0</TargetFramework>
|
|
91
|
+
<ImplicitUsings>enable</ImplicitUsings>
|
|
92
|
+
<Nullable>enable</Nullable>
|
|
93
|
+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
94
|
+
</PropertyGroup>
|
|
95
|
+
</Project>
|
|
96
|
+
|
|
97
|
+
tools:
|
|
98
|
+
build: dotnet CLI, MSBuild
|
|
99
|
+
testing:
|
|
100
|
+
- xUnit(推薦)
|
|
101
|
+
- NUnit
|
|
102
|
+
- MSTest
|
|
103
|
+
mocking:
|
|
104
|
+
- Moq
|
|
105
|
+
- NSubstitute
|
|
106
|
+
orm:
|
|
107
|
+
- Entity Framework Core
|
|
108
|
+
- Dapper
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Go 專案結構 - AI 優化選項
|
|
2
|
+
# 父項: project-structure
|
|
3
|
+
|
|
4
|
+
id: go
|
|
5
|
+
meta:
|
|
6
|
+
parent: project-structure
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
description: Go 專案的標準目錄結構
|
|
9
|
+
language: zh-TW
|
|
10
|
+
|
|
11
|
+
structure:
|
|
12
|
+
template: |
|
|
13
|
+
project-root/
|
|
14
|
+
├── cmd/ # 主要應用程式
|
|
15
|
+
│ ├── api/
|
|
16
|
+
│ │ └── main.go # API 伺服器進入點
|
|
17
|
+
│ └── worker/
|
|
18
|
+
│ └── main.go # 背景 worker 進入點
|
|
19
|
+
├── internal/ # 私有應用程式程式碼
|
|
20
|
+
│ ├── config/ # 設定
|
|
21
|
+
│ │ └── config.go
|
|
22
|
+
│ ├── handlers/ # HTTP 處理器
|
|
23
|
+
│ │ └── user_handler.go
|
|
24
|
+
│ ├── services/ # 業務邏輯
|
|
25
|
+
│ │ └── user_service.go
|
|
26
|
+
│ ├── repositories/ # 資料存取
|
|
27
|
+
│ │ └── user_repository.go
|
|
28
|
+
│ ├── models/ # 資料模型
|
|
29
|
+
│ │ └── user.go
|
|
30
|
+
│ └── middleware/ # HTTP 中介軟體
|
|
31
|
+
├── pkg/ # 公開函式庫程式碼
|
|
32
|
+
│ └── utils/
|
|
33
|
+
├── api/ # API 定義
|
|
34
|
+
│ └── openapi.yaml
|
|
35
|
+
├── scripts/ # 建置/部署腳本
|
|
36
|
+
├── docs/ # 文件
|
|
37
|
+
├── go.mod
|
|
38
|
+
├── go.sum
|
|
39
|
+
├── Makefile
|
|
40
|
+
└── README.md
|
|
41
|
+
|
|
42
|
+
directories:
|
|
43
|
+
- name: cmd/
|
|
44
|
+
purpose: 應用程式進入點
|
|
45
|
+
note: 每個子目錄是一個可執行檔
|
|
46
|
+
|
|
47
|
+
- name: internal/
|
|
48
|
+
purpose: 私有程式碼(Go 強制)
|
|
49
|
+
note: 無法被外部套件導入
|
|
50
|
+
|
|
51
|
+
- name: pkg/
|
|
52
|
+
purpose: 可被外部使用的函式庫程式碼
|
|
53
|
+
note: 小心使用,僅用於真正可重用的程式碼
|
|
54
|
+
|
|
55
|
+
conventions:
|
|
56
|
+
naming:
|
|
57
|
+
files: snake_case.go
|
|
58
|
+
packages: 簡短、小寫、單一單字
|
|
59
|
+
interfaces: 動詞 + "er"(Reader, Writer)
|
|
60
|
+
structs: 名詞(User, Config)
|
|
61
|
+
functions: camelCase(exported 用 PascalCase)
|
|
62
|
+
|
|
63
|
+
file_organization:
|
|
64
|
+
- 一個檔案一個主要類型
|
|
65
|
+
- 測試檔案命名為 *_test.go
|
|
66
|
+
- 測試與原始碼放一起
|
|
67
|
+
|
|
68
|
+
rules:
|
|
69
|
+
- id: flat-structure
|
|
70
|
+
trigger: 組織套件時
|
|
71
|
+
instruction: 優先扁平結構,避免過深巢狀
|
|
72
|
+
priority: recommended
|
|
73
|
+
|
|
74
|
+
- id: internal-private
|
|
75
|
+
trigger: 放置私有程式碼時
|
|
76
|
+
instruction: 使用 internal/ 保護應用程式程式碼
|
|
77
|
+
priority: required
|
|
78
|
+
|
|
79
|
+
- id: interface-consumers
|
|
80
|
+
trigger: 定義介面時
|
|
81
|
+
instruction: 在消費者套件定義介面,而非提供者
|
|
82
|
+
priority: recommended
|
|
83
|
+
|
|
84
|
+
- id: small-interfaces
|
|
85
|
+
trigger: 設計介面時
|
|
86
|
+
instruction: 優先使用小介面(1-3 個方法)
|
|
87
|
+
priority: recommended
|
|
88
|
+
|
|
89
|
+
makefile:
|
|
90
|
+
example: |
|
|
91
|
+
.PHONY: build test run lint
|
|
92
|
+
|
|
93
|
+
build:
|
|
94
|
+
go build -o bin/api ./cmd/api
|
|
95
|
+
|
|
96
|
+
test:
|
|
97
|
+
go test ./...
|
|
98
|
+
|
|
99
|
+
run:
|
|
100
|
+
go run ./cmd/api
|
|
101
|
+
|
|
102
|
+
lint:
|
|
103
|
+
golangci-lint run
|
|
104
|
+
|
|
105
|
+
tools:
|
|
106
|
+
build: go build, Makefile
|
|
107
|
+
testing:
|
|
108
|
+
- go test
|
|
109
|
+
- testify
|
|
110
|
+
linting:
|
|
111
|
+
- golangci-lint
|
|
112
|
+
- staticcheck
|
|
113
|
+
mocking:
|
|
114
|
+
- mockgen
|
|
115
|
+
- mockery
|