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,487 @@
|
|
|
1
|
+
# Documentation Writing Standards
|
|
2
|
+
|
|
3
|
+
> **English** | [繁體中文](../locales/zh-TW/core/documentation-writing-standards.md)
|
|
4
|
+
|
|
5
|
+
**Version**: 1.0.1
|
|
6
|
+
**Last Updated**: 2025-12-24
|
|
7
|
+
**Applicability**: All software projects (new, refactoring, migration, maintenance)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This standard defines documentation requirements based on project types and provides detailed writing guidelines for each document category.
|
|
14
|
+
|
|
15
|
+
**Relationship to Other Standards**:
|
|
16
|
+
- Complements [documentation-structure.md](documentation-structure.md) which defines file organization
|
|
17
|
+
- This standard focuses on **content requirements** and **project type mapping**
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Project Types and Required Documents
|
|
22
|
+
|
|
23
|
+
### Document Requirements Matrix
|
|
24
|
+
|
|
25
|
+
| Document | New Project | Refactoring | Migration | Maintenance | Description |
|
|
26
|
+
|----------|:-----------:|:-----------:|:---------:|:-----------:|-------------|
|
|
27
|
+
| **README.md** | ✅ Required | ✅ Required | ✅ Required | ✅ Required | Project entry point |
|
|
28
|
+
| **ARCHITECTURE.md** | ✅ Required | ✅ Required | ✅ Required | ⚪ Recommended | System architecture |
|
|
29
|
+
| **API.md** | ⚪ If applicable | ✅ Required | ✅ Required | ⚪ Recommended | API specification |
|
|
30
|
+
| **DATABASE.md** | ⚪ If applicable | ✅ Required | ✅ Required | ⚪ Recommended | Database schema |
|
|
31
|
+
| **DEPLOYMENT.md** | ✅ Required | ✅ Required | ✅ Required | ⚪ Recommended | Deployment guide |
|
|
32
|
+
| **MIGRATION.md** | ❌ Not needed | ✅ Required | ✅ Required | ❌ Not needed | Migration plan |
|
|
33
|
+
| **ADR/** | ⚪ Recommended | ✅ Required | ✅ Required | ⚪ If applicable | Architecture decisions |
|
|
34
|
+
| **CHANGELOG.md** | ✅ Required | ✅ Required | ✅ Required | ✅ Required | Version history |
|
|
35
|
+
| **CONTRIBUTING.md** | ⚪ Recommended | ⚪ Recommended | ⚪ Recommended | ⚪ If applicable | Contribution guide |
|
|
36
|
+
|
|
37
|
+
**Legend**: ✅ Required | ⚪ Recommended/If applicable | ❌ Not needed
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
### Project Type Descriptions
|
|
42
|
+
|
|
43
|
+
#### 🆕 New Project
|
|
44
|
+
|
|
45
|
+
Building software from scratch.
|
|
46
|
+
|
|
47
|
+
**Required Documents**:
|
|
48
|
+
- README.md - Project overview, quick start
|
|
49
|
+
- ARCHITECTURE.md - Design architecture (pre-development planning)
|
|
50
|
+
- DEPLOYMENT.md - Deployment process
|
|
51
|
+
- CHANGELOG.md - Version history
|
|
52
|
+
|
|
53
|
+
**Recommended Documents**:
|
|
54
|
+
- API.md - If exposing external APIs
|
|
55
|
+
- DATABASE.md - If using databases
|
|
56
|
+
- ADR/ - Record important technical decisions
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
#### 🔄 Refactoring Project
|
|
61
|
+
|
|
62
|
+
Improving existing system's code structure, architecture, or technology stack without changing external behavior.
|
|
63
|
+
|
|
64
|
+
**Required Documents**:
|
|
65
|
+
- README.md - Update technology stack description
|
|
66
|
+
- ARCHITECTURE.md - Compare old and new architecture
|
|
67
|
+
- API.md - API change documentation (if applicable)
|
|
68
|
+
- DATABASE.md - Schema change documentation (if applicable)
|
|
69
|
+
- DEPLOYMENT.md - New deployment process
|
|
70
|
+
- MIGRATION.md - Refactoring migration plan
|
|
71
|
+
- ADR/ - Document refactoring decisions
|
|
72
|
+
- CHANGELOG.md - Detailed change records
|
|
73
|
+
|
|
74
|
+
**Key Points**:
|
|
75
|
+
- MIGRATION.md must include rollback plan
|
|
76
|
+
- ADR/ must document "why refactor" and "why this approach"
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
#### 🚚 Migration Project
|
|
81
|
+
|
|
82
|
+
Moving system from one environment/platform to another (e.g., cloud migration, version upgrade).
|
|
83
|
+
|
|
84
|
+
**Required Documents**:
|
|
85
|
+
- README.md - New environment description
|
|
86
|
+
- ARCHITECTURE.md - New architecture diagram
|
|
87
|
+
- API.md - API compatibility documentation
|
|
88
|
+
- DATABASE.md - Data migration documentation
|
|
89
|
+
- DEPLOYMENT.md - New environment deployment
|
|
90
|
+
- MIGRATION.md - Migration steps and verification
|
|
91
|
+
- ADR/ - Migration decision records
|
|
92
|
+
- CHANGELOG.md - Migration change records
|
|
93
|
+
|
|
94
|
+
**Key Points**:
|
|
95
|
+
- MIGRATION.md is the core document
|
|
96
|
+
- Must include data migration verification, rollback plan, integration partner notification
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
#### 🔧 Maintenance Project
|
|
101
|
+
|
|
102
|
+
Day-to-day maintenance, bug fixes, minor feature enhancements of existing systems.
|
|
103
|
+
|
|
104
|
+
**Required Documents**:
|
|
105
|
+
- README.md - Keep updated
|
|
106
|
+
- CHANGELOG.md - Record every change
|
|
107
|
+
|
|
108
|
+
**Recommended Documents**:
|
|
109
|
+
- Other documents updated based on change scope
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Core Principles
|
|
114
|
+
|
|
115
|
+
> **Documentation is an extension of code and should be treated with equal importance. Good documentation reduces communication costs, accelerates onboarding, and lowers maintenance risks.**
|
|
116
|
+
|
|
117
|
+
### Documentation Pyramid
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
┌─────────────┐
|
|
121
|
+
│ README │ ← Entry point, quick overview
|
|
122
|
+
├─────────────┤
|
|
123
|
+
┌──┴─────────────┴──┐
|
|
124
|
+
│ ARCHITECTURE │ ← System overview
|
|
125
|
+
├───────────────────┤
|
|
126
|
+
┌──┴───────────────────┴──┐
|
|
127
|
+
│ API / DATABASE / DEPLOY │ ← Technical details
|
|
128
|
+
├─────────────────────────┤
|
|
129
|
+
┌──┴─────────────────────────┴──┐
|
|
130
|
+
│ ADR / MIGRATION / CHANGELOG │ ← Change history
|
|
131
|
+
└───────────────────────────────┘
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Document Categories and Standards
|
|
137
|
+
|
|
138
|
+
### 1. Architecture Documentation
|
|
139
|
+
|
|
140
|
+
#### ARCHITECTURE.md
|
|
141
|
+
|
|
142
|
+
**Purpose**: Describe overall system architecture, module division, technology choices
|
|
143
|
+
|
|
144
|
+
**Required Sections**:
|
|
145
|
+
|
|
146
|
+
| Section | Description | Required |
|
|
147
|
+
|---------|-------------|----------|
|
|
148
|
+
| System Overview | Purpose, scope, main functions | Required |
|
|
149
|
+
| Architecture Diagram | Use Mermaid or ASCII Art | Required |
|
|
150
|
+
| Module Description | Responsibilities, dependencies | Required |
|
|
151
|
+
| Technology Stack | Frameworks, languages, database versions | Required |
|
|
152
|
+
| Data Flow | Main business process data flow | Required |
|
|
153
|
+
| Deployment Architecture | Production deployment topology | Recommended |
|
|
154
|
+
| Design Decisions | Reasons for key decisions (or link to ADR) | Recommended |
|
|
155
|
+
|
|
156
|
+
**Template Structure**:
|
|
157
|
+
|
|
158
|
+
```markdown
|
|
159
|
+
# System Architecture
|
|
160
|
+
|
|
161
|
+
## 1. Overview
|
|
162
|
+
[System purpose and scope]
|
|
163
|
+
|
|
164
|
+
## 2. Architecture Diagram
|
|
165
|
+
[Mermaid or ASCII diagram]
|
|
166
|
+
|
|
167
|
+
## 3. Module Description
|
|
168
|
+
### 3.1 Presentation Layer
|
|
169
|
+
### 3.2 Business Logic Layer
|
|
170
|
+
### 3.3 Data Access Layer
|
|
171
|
+
|
|
172
|
+
## 4. Technology Stack
|
|
173
|
+
| Category | Technology | Version |
|
|
174
|
+
|----------|------------|---------|
|
|
175
|
+
|
|
176
|
+
## 5. Data Flow
|
|
177
|
+
[Main business process diagram]
|
|
178
|
+
|
|
179
|
+
## 6. Deployment Architecture
|
|
180
|
+
[Deployment topology diagram]
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
### 2. API Documentation
|
|
186
|
+
|
|
187
|
+
#### API.md
|
|
188
|
+
|
|
189
|
+
**Purpose**: Document external API interfaces
|
|
190
|
+
|
|
191
|
+
**Required Sections**:
|
|
192
|
+
|
|
193
|
+
| Section | Description | Required |
|
|
194
|
+
|---------|-------------|----------|
|
|
195
|
+
| API Overview | Version, base URL, authentication | Required |
|
|
196
|
+
| Authentication | Token acquisition, expiration | Required |
|
|
197
|
+
| Endpoint List | All API endpoints | Required |
|
|
198
|
+
| Endpoint Specifications | Request/response format for each | Required |
|
|
199
|
+
| Error Code Reference | Error codes and descriptions | Required |
|
|
200
|
+
| Code Examples | Examples in common languages | Recommended |
|
|
201
|
+
| Rate Limiting | API call frequency limits | If applicable |
|
|
202
|
+
|
|
203
|
+
**Endpoint Specification Format**:
|
|
204
|
+
|
|
205
|
+
```markdown
|
|
206
|
+
### POST /api/v1/resource
|
|
207
|
+
|
|
208
|
+
Description of what this endpoint does.
|
|
209
|
+
|
|
210
|
+
**Request**
|
|
211
|
+
|
|
212
|
+
| Field | Type | Required | Description |
|
|
213
|
+
|-------|------|----------|-------------|
|
|
214
|
+
| field1 | string | Yes | Description |
|
|
215
|
+
| field2 | integer | No | Description |
|
|
216
|
+
|
|
217
|
+
**Request Example**
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"field1": "value",
|
|
221
|
+
"field2": 123
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Response**
|
|
226
|
+
|
|
227
|
+
| Field | Type | Description |
|
|
228
|
+
|-------|------|-------------|
|
|
229
|
+
| success | boolean | Whether successful |
|
|
230
|
+
| data | object | Response data |
|
|
231
|
+
|
|
232
|
+
**Response Example**
|
|
233
|
+
```json
|
|
234
|
+
{
|
|
235
|
+
"success": true,
|
|
236
|
+
"data": {}
|
|
237
|
+
}
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Error Responses**
|
|
241
|
+
| Code | Description |
|
|
242
|
+
|------|-------------|
|
|
243
|
+
| 400 | Bad request |
|
|
244
|
+
| 401 | Unauthorized |
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### 3. Database Documentation
|
|
250
|
+
|
|
251
|
+
#### DATABASE.md
|
|
252
|
+
|
|
253
|
+
**Purpose**: Document database structure, relationships, indexing strategy
|
|
254
|
+
|
|
255
|
+
**Required Sections**:
|
|
256
|
+
|
|
257
|
+
| Section | Description | Required |
|
|
258
|
+
|---------|-------------|----------|
|
|
259
|
+
| Database Overview | Type, version, connection info | Required |
|
|
260
|
+
| ER Diagram | Entity relationship diagram | Required |
|
|
261
|
+
| Table List | All tables with purposes | Required |
|
|
262
|
+
| Table Specifications | Column definitions for each table | Required |
|
|
263
|
+
| Index Documentation | Indexing strategy and performance | Required |
|
|
264
|
+
| Migration Scripts | Script locations and execution order | Required |
|
|
265
|
+
| Backup Strategy | Backup frequency, retention | Recommended |
|
|
266
|
+
|
|
267
|
+
**Table Specification Format**:
|
|
268
|
+
|
|
269
|
+
```markdown
|
|
270
|
+
### TableName
|
|
271
|
+
|
|
272
|
+
Description of table purpose.
|
|
273
|
+
|
|
274
|
+
**Column Definition**
|
|
275
|
+
|
|
276
|
+
| Column | Data Type | Nullable | Default | Description |
|
|
277
|
+
|--------|-----------|----------|---------|-------------|
|
|
278
|
+
| id | bigint | No | IDENTITY | Primary key |
|
|
279
|
+
| name | varchar(100) | No | - | Name field |
|
|
280
|
+
| status | tinyint | No | 0 | Status flag |
|
|
281
|
+
|
|
282
|
+
**Indexes**
|
|
283
|
+
|
|
284
|
+
| Index Name | Columns | Type | Description |
|
|
285
|
+
|------------|---------|------|-------------|
|
|
286
|
+
| PK_TableName | id | CLUSTERED | Primary key |
|
|
287
|
+
| IX_Status | status, created_at | NONCLUSTERED | Query optimization |
|
|
288
|
+
|
|
289
|
+
**Relationships**
|
|
290
|
+
|
|
291
|
+
| Related Table | Join Columns | Relationship |
|
|
292
|
+
|---------------|--------------|--------------|
|
|
293
|
+
| OtherTable | id = other_id | 1:N |
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
### 4. Deployment Documentation
|
|
299
|
+
|
|
300
|
+
#### DEPLOYMENT.md
|
|
301
|
+
|
|
302
|
+
**Purpose**: Document deployment steps, environment configuration, troubleshooting
|
|
303
|
+
|
|
304
|
+
**Required Sections**:
|
|
305
|
+
|
|
306
|
+
| Section | Description | Required |
|
|
307
|
+
|---------|-------------|----------|
|
|
308
|
+
| Environment Requirements | Hardware, software, network | Required |
|
|
309
|
+
| Installation Steps | Detailed installation process | Required |
|
|
310
|
+
| Configuration | Configuration file parameters | Required |
|
|
311
|
+
| Verification | How to confirm successful deployment | Required |
|
|
312
|
+
| Troubleshooting | Common issues and solutions | Required |
|
|
313
|
+
| Monitoring | Health checks, log locations | Recommended |
|
|
314
|
+
| Scaling Guide | How to scale horizontally/vertically | If applicable |
|
|
315
|
+
|
|
316
|
+
**Configuration Documentation Format**:
|
|
317
|
+
|
|
318
|
+
```markdown
|
|
319
|
+
### config.yaml Settings
|
|
320
|
+
|
|
321
|
+
| Parameter | Default | Description | Example |
|
|
322
|
+
|-----------|---------|-------------|---------|
|
|
323
|
+
| db.host | localhost | Database host | `192.168.1.100` |
|
|
324
|
+
| db.port | 5432 | Database port | - |
|
|
325
|
+
| app.timeout | 300 | Request timeout (seconds) | - |
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
### 5. Migration Documentation
|
|
331
|
+
|
|
332
|
+
#### MIGRATION.md
|
|
333
|
+
|
|
334
|
+
**Purpose**: Document migration plan, backward compatibility strategy, rollback procedures
|
|
335
|
+
|
|
336
|
+
**Required Sections**:
|
|
337
|
+
|
|
338
|
+
| Section | Description | Required |
|
|
339
|
+
|---------|-------------|----------|
|
|
340
|
+
| Migration Overview | Goals, scope, timeline | Required |
|
|
341
|
+
| Prerequisites | Required preparation before migration | Required |
|
|
342
|
+
| Migration Steps | Detailed migration process | Required |
|
|
343
|
+
| Verification Checklist | Post-migration verification items | Required |
|
|
344
|
+
| Rollback Plan | Steps to rollback on failure | Required |
|
|
345
|
+
| Backward Compatibility | API/database compatibility notes | Required |
|
|
346
|
+
| Integration Partner Notification | External systems to notify | If applicable |
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
### 6. Architecture Decision Records (ADR)
|
|
351
|
+
|
|
352
|
+
#### docs/ADR/NNN-title.md
|
|
353
|
+
|
|
354
|
+
**Purpose**: Record important architectural decisions and their rationale
|
|
355
|
+
|
|
356
|
+
**File Naming**: `NNN-kebab-case-title.md` (e.g., `001-use-postgresql.md`)
|
|
357
|
+
|
|
358
|
+
**Required Sections**:
|
|
359
|
+
|
|
360
|
+
| Section | Description | Required |
|
|
361
|
+
|---------|-------------|----------|
|
|
362
|
+
| Title | Decision name | Required |
|
|
363
|
+
| Status | proposed/accepted/deprecated/superseded | Required |
|
|
364
|
+
| Context | Why this decision is needed | Required |
|
|
365
|
+
| Decision | Specific decision content | Required |
|
|
366
|
+
| Consequences | Impact of decision (positive/negative) | Required |
|
|
367
|
+
| Alternatives | Other options considered | Recommended |
|
|
368
|
+
|
|
369
|
+
**Template**:
|
|
370
|
+
|
|
371
|
+
```markdown
|
|
372
|
+
# ADR-001: [Decision Title]
|
|
373
|
+
|
|
374
|
+
## Status
|
|
375
|
+
Accepted
|
|
376
|
+
|
|
377
|
+
## Context
|
|
378
|
+
[Why this decision is needed...]
|
|
379
|
+
|
|
380
|
+
## Decision
|
|
381
|
+
[Specific decision...]
|
|
382
|
+
|
|
383
|
+
## Consequences
|
|
384
|
+
|
|
385
|
+
### Positive
|
|
386
|
+
- Benefit 1
|
|
387
|
+
- Benefit 2
|
|
388
|
+
|
|
389
|
+
### Negative
|
|
390
|
+
- Drawback 1
|
|
391
|
+
- Drawback 2
|
|
392
|
+
|
|
393
|
+
## Alternatives Considered
|
|
394
|
+
1. Alternative A - Rejected because...
|
|
395
|
+
2. Alternative B - Rejected because...
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
## Quality Standards
|
|
401
|
+
|
|
402
|
+
### Format Requirements
|
|
403
|
+
|
|
404
|
+
| Item | Standard |
|
|
405
|
+
|------|----------|
|
|
406
|
+
| Language | English |
|
|
407
|
+
| Encoding | UTF-8 |
|
|
408
|
+
| Line Length | Recommended ≤ 120 characters |
|
|
409
|
+
| Diagrams | Prefer Mermaid, then ASCII Art |
|
|
410
|
+
| Links | Use relative paths for internal links |
|
|
411
|
+
|
|
412
|
+
### Maintenance Requirements
|
|
413
|
+
|
|
414
|
+
| Item | Standard |
|
|
415
|
+
|------|----------|
|
|
416
|
+
| Sync Updates | Update docs when code changes |
|
|
417
|
+
| Version Marking | Mark version and update date at top |
|
|
418
|
+
| Review Inclusion | Include doc changes in code review |
|
|
419
|
+
| Periodic Review | Review docs quarterly for staleness |
|
|
420
|
+
|
|
421
|
+
### Review Checklist
|
|
422
|
+
|
|
423
|
+
Before submitting documentation:
|
|
424
|
+
|
|
425
|
+
- [ ] Required sections complete
|
|
426
|
+
- [ ] No outdated or incorrect information
|
|
427
|
+
- [ ] All links working
|
|
428
|
+
- [ ] Examples are executable/accurate
|
|
429
|
+
- [ ] Format follows standards
|
|
430
|
+
|
|
431
|
+
---
|
|
432
|
+
|
|
433
|
+
## File Location Standards
|
|
434
|
+
|
|
435
|
+
```
|
|
436
|
+
project-root/
|
|
437
|
+
├── README.md # Project entry document
|
|
438
|
+
├── CONTRIBUTING.md # Contribution guide
|
|
439
|
+
├── CHANGELOG.md # Change log
|
|
440
|
+
├── .standards/ or .claude/ # Development standards
|
|
441
|
+
│ ├── documentation-writing-standards.md
|
|
442
|
+
│ └── ...
|
|
443
|
+
└── docs/ # Documentation directory
|
|
444
|
+
├── INDEX.md # Documentation index
|
|
445
|
+
├── ARCHITECTURE.md # Architecture document
|
|
446
|
+
├── API.md # API document
|
|
447
|
+
├── DATABASE.md # Database document
|
|
448
|
+
├── DEPLOYMENT.md # Deployment document
|
|
449
|
+
├── MIGRATION.md # Migration document
|
|
450
|
+
├── ADR/ # Architecture decision records
|
|
451
|
+
│ ├── 001-xxx.md
|
|
452
|
+
│ └── ...
|
|
453
|
+
└── DB/ # Database scripts
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Recommended Tools
|
|
459
|
+
|
|
460
|
+
| Purpose | Tools |
|
|
461
|
+
|---------|-------|
|
|
462
|
+
| Markdown Editing | VS Code + Markdown Preview Enhanced |
|
|
463
|
+
| Diagram Drawing | Mermaid / draw.io / PlantUML |
|
|
464
|
+
| API Documentation | OpenAPI (Swagger) / Redoc |
|
|
465
|
+
| ER Diagram | dbdiagram.io / DBeaver |
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Related Standards
|
|
470
|
+
|
|
471
|
+
- [Documentation Structure Standard](documentation-structure.md)
|
|
472
|
+
- [Changelog Standards](changelog-standards.md)
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
## Version History
|
|
477
|
+
|
|
478
|
+
| Version | Date | Changes |
|
|
479
|
+
|---------|------|---------|
|
|
480
|
+
| 1.0.1 | 2025-12-24 | Added: Related Standards section |
|
|
481
|
+
| 1.0.0 | 2025-12-10 | Initial documentation writing standards |
|
|
482
|
+
|
|
483
|
+
---
|
|
484
|
+
|
|
485
|
+
## License
|
|
486
|
+
|
|
487
|
+
This standard is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|