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,1117 @@
|
|
|
1
|
+
# Documentation Structure Standard
|
|
2
|
+
|
|
3
|
+
> **Language**: English | [繁體中文](../locales/zh-TW/core/documentation-structure.md)
|
|
4
|
+
|
|
5
|
+
**Version**: 1.2.2
|
|
6
|
+
**Last Updated**: 2025-12-24
|
|
7
|
+
**Applicability**: All software projects requiring documentation
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
This standard defines a consistent documentation structure for software projects, ensuring information is organized, discoverable, and maintainable.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Standard Documentation Structure
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
project-root/
|
|
21
|
+
├── README.md # Project overview (REQUIRED)
|
|
22
|
+
├── CONTRIBUTING.md # Contribution guidelines
|
|
23
|
+
├── CHANGELOG.md # Version history
|
|
24
|
+
├── LICENSE # License file
|
|
25
|
+
├── .claude/ or .standards/ # Development standards
|
|
26
|
+
│ ├── anti-hallucination.md
|
|
27
|
+
│ ├── checkin-standards.md
|
|
28
|
+
│ ├── commit-guide.md
|
|
29
|
+
│ └── ...
|
|
30
|
+
├── docs/ # Detailed documentation
|
|
31
|
+
│ ├── index.md # Documentation index
|
|
32
|
+
│ ├── getting-started.md # Quick start guide
|
|
33
|
+
│ ├── architecture.md # System architecture
|
|
34
|
+
│ ├── api-reference.md # API documentation
|
|
35
|
+
│ ├── deployment.md # Deployment guide
|
|
36
|
+
│ ├── troubleshooting.md # Common issues
|
|
37
|
+
│ ├── flows/ # Flow documentation (NEW)
|
|
38
|
+
│ │ ├── README.md # Flow index (REQUIRED when >5 flows)
|
|
39
|
+
│ │ ├── templates/
|
|
40
|
+
│ │ │ └── flow-template.md
|
|
41
|
+
│ │ └── {module}/
|
|
42
|
+
│ │ └── {module}-flow.md
|
|
43
|
+
│ ├── ADR/ # Architecture Decision Records
|
|
44
|
+
│ │ ├── README.md
|
|
45
|
+
│ │ └── NNN-title.md
|
|
46
|
+
│ └── diagrams/ # Architecture diagrams
|
|
47
|
+
│ ├── system-overview.mmd
|
|
48
|
+
│ ├── data-flow.mmd
|
|
49
|
+
│ └── README.md
|
|
50
|
+
└── examples/ # Code examples
|
|
51
|
+
├── basic-usage/
|
|
52
|
+
├── advanced-usage/
|
|
53
|
+
└── README.md
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## File Naming Conventions
|
|
59
|
+
|
|
60
|
+
### Root Directory Files
|
|
61
|
+
|
|
62
|
+
Root-level documentation files should use **UPPERCASE** naming for GitHub/GitLab auto-recognition:
|
|
63
|
+
|
|
64
|
+
| File | Naming | Reason |
|
|
65
|
+
|------|--------|--------|
|
|
66
|
+
| `README.md` | UPPERCASE | GitHub/GitLab auto-displays on repo page |
|
|
67
|
+
| `CONTRIBUTING.md` | UPPERCASE | GitHub auto-links in PR creation |
|
|
68
|
+
| `CHANGELOG.md` | UPPERCASE | Keep a Changelog convention |
|
|
69
|
+
| `LICENSE` | UPPERCASE (no extension) | GitHub auto-detects license type |
|
|
70
|
+
| `CODE_OF_CONDUCT.md` | UPPERCASE | GitHub community standard |
|
|
71
|
+
| `SECURITY.md` | UPPERCASE | GitHub security advisory standard |
|
|
72
|
+
|
|
73
|
+
### docs/ Directory Files
|
|
74
|
+
|
|
75
|
+
All files within `docs/` should use **lowercase-kebab-case** for URL friendliness:
|
|
76
|
+
|
|
77
|
+
✅ **Correct**:
|
|
78
|
+
```
|
|
79
|
+
docs/
|
|
80
|
+
├── index.md
|
|
81
|
+
├── getting-started.md
|
|
82
|
+
├── api-reference.md
|
|
83
|
+
└── user-guide.md
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
❌ **Incorrect**:
|
|
87
|
+
```
|
|
88
|
+
docs/
|
|
89
|
+
├── INDEX.md # Inconsistent casing
|
|
90
|
+
├── GettingStarted.md # PascalCase not URL-friendly
|
|
91
|
+
├── API_Reference.md # snake_case inconsistent
|
|
92
|
+
└── User Guide.md # Spaces cause URL issues
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Rationale**:
|
|
96
|
+
- Lowercase avoids case-sensitivity issues across OS (Windows vs Linux)
|
|
97
|
+
- Kebab-case produces clean URLs: `docs/getting-started` vs `docs/GettingStarted`
|
|
98
|
+
- Consistent naming improves discoverability and automation
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Document Requirements Matrix
|
|
103
|
+
|
|
104
|
+
Different project types require different documentation:
|
|
105
|
+
|
|
106
|
+
| Document | New Project | Refactor | Migration | Maintenance | Description |
|
|
107
|
+
|----------|:-----------:|:--------:|:---------:|:-----------:|-------------|
|
|
108
|
+
| **README.md** | ✅ | ✅ | ✅ | ✅ | Project entry point |
|
|
109
|
+
| **ARCHITECTURE.md** | ✅ | ✅ | ✅ | ⚪ | System architecture |
|
|
110
|
+
| **API.md** | ⚪ | ✅ | ✅ | ⚪ | External API specs |
|
|
111
|
+
| **DATABASE.md** | ⚪ | ✅ | ✅ | ⚪ | Database structure |
|
|
112
|
+
| **DEPLOYMENT.md** | ✅ | ✅ | ✅ | ⚪ | Deployment guide |
|
|
113
|
+
| **MIGRATION.md** | ❌ | ✅ | ✅ | ❌ | Migration plan |
|
|
114
|
+
| **ADR/** | ⚪ | ✅ | ✅ | ⚪ | Decision records |
|
|
115
|
+
| **CHANGELOG.md** | ✅ | ✅ | ✅ | ✅ | Change history |
|
|
116
|
+
| **flows/README.md** | ⚪ | ✅ | ✅ | ⚪ | Flow index (when >5 flows) |
|
|
117
|
+
|
|
118
|
+
**Legend**: ✅ Required | ⚪ Recommended | ❌ Not needed
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Cross-Reference Standards (NEW)
|
|
123
|
+
|
|
124
|
+
### Why Cross-References Matter
|
|
125
|
+
|
|
126
|
+
Isolated documents create navigation problems. Cross-references enable:
|
|
127
|
+
- Contextual discovery
|
|
128
|
+
- Reduced duplication
|
|
129
|
+
- Consistent information
|
|
130
|
+
|
|
131
|
+
### Required Cross-Reference Matrix
|
|
132
|
+
|
|
133
|
+
When adding new documents, update related documents' reference sections:
|
|
134
|
+
|
|
135
|
+
| When Adding... | Must Update |
|
|
136
|
+
|----------------|-------------|
|
|
137
|
+
| `flows/*.md` | ARCHITECTURE.md, index.md, related API.md / DATABASE.md |
|
|
138
|
+
| `ADR/*.md` | index.md, ARCHITECTURE.md, MIGRATION.md |
|
|
139
|
+
| Any new document | docs/index.md |
|
|
140
|
+
|
|
141
|
+
### Link Direction Principles
|
|
142
|
+
|
|
143
|
+
1. **Upward Links**: Flow docs should link to ARCHITECTURE.md (overall view)
|
|
144
|
+
2. **Horizontal Links**: Related flows should link to each other (e.g., sms-flow → credit-flow)
|
|
145
|
+
3. **Downward Links**: Architecture docs should link to flow index
|
|
146
|
+
|
|
147
|
+
### References Section Format
|
|
148
|
+
|
|
149
|
+
Every document should end with a References section:
|
|
150
|
+
|
|
151
|
+
```markdown
|
|
152
|
+
## References
|
|
153
|
+
|
|
154
|
+
- [ARCHITECTURE.md](../ARCHITECTURE.md) - System architecture
|
|
155
|
+
- [Related Flow](flows/xxx-flow.md) - Related flow documentation
|
|
156
|
+
- [API Reference](api-reference.md) - API specifications
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Flow Documentation (NEW)
|
|
162
|
+
|
|
163
|
+
### Purpose
|
|
164
|
+
|
|
165
|
+
Flow documentation describes dynamic system behavior—how data flows between components during specific operations.
|
|
166
|
+
|
|
167
|
+
### When to Create Flow Documentation
|
|
168
|
+
|
|
169
|
+
| Priority | Flow Type | Criteria | Examples |
|
|
170
|
+
|:--------:|-----------|----------|----------|
|
|
171
|
+
| **P0** | Financial | Involves billing, credits, refunds | Credit deduction, fee calculation |
|
|
172
|
+
| **P0** | Integration | External system API interaction | SSO login, gateway integration |
|
|
173
|
+
| **P1** | Core Business | Main functional flows | Message sending, report queries |
|
|
174
|
+
| **P2** | Batch Processing | Background services, scheduled jobs | Daemon services, cleanup jobs |
|
|
175
|
+
| **P3** | Management | Admin and maintenance functions | Account management, system config |
|
|
176
|
+
|
|
177
|
+
### Flow Documentation Structure
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
docs/flows/
|
|
181
|
+
├── README.md # Flow index (REQUIRED when >5 flows)
|
|
182
|
+
├── templates/
|
|
183
|
+
│ └── flow-template.md # Standard template
|
|
184
|
+
└── {module}/
|
|
185
|
+
└── {module}-flow.md
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### flows/README.md Requirements
|
|
189
|
+
|
|
190
|
+
When you have more than 5 flow documents, `flows/README.md` is **required** and must include:
|
|
191
|
+
|
|
192
|
+
| Section | Description | Required |
|
|
193
|
+
|---------|-------------|:--------:|
|
|
194
|
+
| System Architecture Overview | ASCII or Mermaid diagram | ✅ |
|
|
195
|
+
| Flow Document List | With status (✅ Complete / 🚧 In Progress / ⏳ Planned) | ✅ |
|
|
196
|
+
| Module Relationship Diagram | Mermaid flowchart showing module interactions | ✅ |
|
|
197
|
+
| Status Code Reference | Centralized definitions to avoid duplication | ⚪ |
|
|
198
|
+
| Directory Structure | File organization | ✅ |
|
|
199
|
+
|
|
200
|
+
### Flow Document Required Sections
|
|
201
|
+
|
|
202
|
+
| Section | Description | Required |
|
|
203
|
+
|---------|-------------|:--------:|
|
|
204
|
+
| Overview | Purpose, scope, pre/post conditions | ✅ |
|
|
205
|
+
| Triggers | What initiates this flow | ✅ |
|
|
206
|
+
| Components | Component list, relationships, code links | ✅ |
|
|
207
|
+
| Flow Diagram | Sequence diagram for main flow | ✅ |
|
|
208
|
+
| Step Details | Input/output/code location per step | ✅ |
|
|
209
|
+
| Error Handling | Error codes, retry mechanisms | ✅ |
|
|
210
|
+
| Data Changes | Affected tables + DFD diagram | ✅ |
|
|
211
|
+
| Performance | TPS, response time, bottlenecks | ⚪ |
|
|
212
|
+
| Monitoring | Log points, metrics | ⚪ |
|
|
213
|
+
| References | Links to API.md, DATABASE.md | ✅ |
|
|
214
|
+
|
|
215
|
+
### Centralized Status Code Management
|
|
216
|
+
|
|
217
|
+
**Problem**: Status codes scattered across flow documents become inconsistent.
|
|
218
|
+
|
|
219
|
+
**Solution**:
|
|
220
|
+
|
|
221
|
+
1. **Define centrally** in `flows/README.md` or `DATABASE.md`
|
|
222
|
+
2. **Reference in flow docs**: List only relevant codes, with note:
|
|
223
|
+
> Complete definitions at [flows/README.md](../README.md#status-codes)
|
|
224
|
+
3. **Version control**: Status code changes must be recorded in CHANGELOG.md
|
|
225
|
+
|
|
226
|
+
**Status Code Definition Format**:
|
|
227
|
+
|
|
228
|
+
```markdown
|
|
229
|
+
### Status Codes
|
|
230
|
+
|
|
231
|
+
| Code | Name | Description | Used By |
|
|
232
|
+
|------|------|-------------|---------|
|
|
233
|
+
| 0000 | Success | Operation successful | All modules |
|
|
234
|
+
| 9997 | AuthFailed | Authentication failed | API, WebService |
|
|
235
|
+
| 9998 | NotFound | Resource not found | All modules |
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## Index Document Standards (NEW)
|
|
241
|
+
|
|
242
|
+
### docs/index.md Required Sections
|
|
243
|
+
|
|
244
|
+
| Section | Description | Required |
|
|
245
|
+
|---------|-------------|:--------:|
|
|
246
|
+
| Directory Structure | Document tree (ASCII or table) | ✅ |
|
|
247
|
+
| By Role | Developer/Reviewer/Admin/QA perspectives | ⚪ |
|
|
248
|
+
| By Topic | Architecture/API/Database/Flows/Migration/ADR | ✅ |
|
|
249
|
+
| Flow Documentation | flows/ directory index | ✅ (when flows exist) |
|
|
250
|
+
| External Resources | Related tech doc links | ⚪ |
|
|
251
|
+
| Maintenance Guide | Update principles, contribution guidelines | ⚪ |
|
|
252
|
+
| Last Updated | Index maintenance date | ✅ |
|
|
253
|
+
|
|
254
|
+
### Index Template
|
|
255
|
+
|
|
256
|
+
```markdown
|
|
257
|
+
# Documentation Index
|
|
258
|
+
|
|
259
|
+
## Directory Structure
|
|
260
|
+
[Document tree diagram]
|
|
261
|
+
|
|
262
|
+
## By Topic
|
|
263
|
+
|
|
264
|
+
### Architecture
|
|
265
|
+
- [architecture.md](architecture.md) - System architecture
|
|
266
|
+
- [ADR/](ADR/) - Architecture Decision Records
|
|
267
|
+
|
|
268
|
+
### Flow Documentation
|
|
269
|
+
Located in `flows/`, full index at [flows/README.md](flows/README.md):
|
|
270
|
+
|
|
271
|
+
| Module | Document | Description |
|
|
272
|
+
|--------|----------|-------------|
|
|
273
|
+
| SMS | [sms-flow.md](flows/sms/sms-flow.md) | Message sending flow |
|
|
274
|
+
| Auth | [auth-flow.md](flows/auth/auth-flow.md) | Authentication flow |
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
*Last Updated: YYYY-MM-DD*
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## CHANGELOG Documentation Integration (NEW)
|
|
283
|
+
|
|
284
|
+
### When to Record Document Changes
|
|
285
|
+
|
|
286
|
+
| Change Type | Record In | Example |
|
|
287
|
+
|-------------|-----------|---------|
|
|
288
|
+
| New document | Added | New flow documentation `docs/flows/xxx.md` |
|
|
289
|
+
| Major update | Changed | Updated `docs/API.md` with v2 API specs |
|
|
290
|
+
| Restructure | Changed | Reorganized `docs/` directory structure |
|
|
291
|
+
| Deprecated | Deprecated | `docs/old-api.md` marked as deprecated |
|
|
292
|
+
| Removed | Removed | Removed outdated `docs/legacy.md` |
|
|
293
|
+
|
|
294
|
+
### When NOT to Record
|
|
295
|
+
|
|
296
|
+
- Typo fixes
|
|
297
|
+
- Formatting adjustments (indentation, spacing)
|
|
298
|
+
- Link repairs
|
|
299
|
+
- Date stamp updates
|
|
300
|
+
|
|
301
|
+
### Recording Format
|
|
302
|
+
|
|
303
|
+
```markdown
|
|
304
|
+
## [Unreleased]
|
|
305
|
+
|
|
306
|
+
### Added
|
|
307
|
+
- New flow documentation (Mermaid sequence/flowchart/DFD)
|
|
308
|
+
- `docs/flows/README.md` - Flow index with module relationship diagram
|
|
309
|
+
- `docs/flows/sms/sms-flow.md` - SMS sending flow
|
|
310
|
+
|
|
311
|
+
### Changed
|
|
312
|
+
- Updated existing documents with flow references
|
|
313
|
+
- `docs/ARCHITECTURE.md` - Added flow index link in references
|
|
314
|
+
- `docs/index.md` - Added flow documentation section
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
## Core Documentation Files
|
|
320
|
+
|
|
321
|
+
### 1. README.md (REQUIRED)
|
|
322
|
+
|
|
323
|
+
**Purpose**: First impression, quick overview
|
|
324
|
+
|
|
325
|
+
**Template**:
|
|
326
|
+
```markdown
|
|
327
|
+
# Project Name
|
|
328
|
+
|
|
329
|
+
Brief one-liner description
|
|
330
|
+
|
|
331
|
+
## Features
|
|
332
|
+
|
|
333
|
+
- Feature 1
|
|
334
|
+
- Feature 2
|
|
335
|
+
- Feature 3
|
|
336
|
+
|
|
337
|
+
## Quick Start
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
# Installation
|
|
341
|
+
npm install your-package
|
|
342
|
+
|
|
343
|
+
# Usage
|
|
344
|
+
npm start
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
## Documentation
|
|
348
|
+
|
|
349
|
+
See [docs/](docs/) for full documentation.
|
|
350
|
+
|
|
351
|
+
## Contributing
|
|
352
|
+
|
|
353
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
354
|
+
|
|
355
|
+
## License
|
|
356
|
+
|
|
357
|
+
[License Name](LICENSE)
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
**Must Include**:
|
|
361
|
+
- [ ] Project name and description
|
|
362
|
+
- [ ] Quick start / installation
|
|
363
|
+
- [ ] Link to full docs
|
|
364
|
+
- [ ] License information
|
|
365
|
+
|
|
366
|
+
---
|
|
367
|
+
|
|
368
|
+
### 2. CONTRIBUTING.md (Recommended)
|
|
369
|
+
|
|
370
|
+
**Purpose**: How to contribute to the project
|
|
371
|
+
|
|
372
|
+
**Template**:
|
|
373
|
+
```markdown
|
|
374
|
+
# Contributing Guidelines
|
|
375
|
+
|
|
376
|
+
## Development Setup
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
git clone https://github.com/org/repo
|
|
380
|
+
cd repo
|
|
381
|
+
npm install
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
## Workflow
|
|
385
|
+
|
|
386
|
+
1. Fork the repository
|
|
387
|
+
2. Create feature branch: `git checkout -b feature/my-feature`
|
|
388
|
+
3. Commit changes: `git commit -m "feat: add feature"`
|
|
389
|
+
4. Push branch: `git push origin feature/my-feature`
|
|
390
|
+
5. Create pull request
|
|
391
|
+
|
|
392
|
+
## Coding Standards
|
|
393
|
+
|
|
394
|
+
- Follow [.claude/csharp-style.md](.claude/csharp-style.md)
|
|
395
|
+
- Run `npm run lint` before committing
|
|
396
|
+
- Ensure tests pass: `npm test`
|
|
397
|
+
|
|
398
|
+
## Commit Message Format
|
|
399
|
+
|
|
400
|
+
See [.claude/commit-guide.md](.claude/commit-guide.md)
|
|
401
|
+
|
|
402
|
+
## Code Review Process
|
|
403
|
+
|
|
404
|
+
See [.claude/code-review-checklist.md](.claude/code-review-checklist.md)
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
**Must Include**:
|
|
408
|
+
- [ ] Development setup instructions
|
|
409
|
+
- [ ] Contribution workflow
|
|
410
|
+
- [ ] Coding standards reference
|
|
411
|
+
- [ ] Testing requirements
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
### 3. CHANGELOG.md (Recommended)
|
|
416
|
+
|
|
417
|
+
**Purpose**: Track changes between versions
|
|
418
|
+
|
|
419
|
+
**Format**: Follow [Keep a Changelog](https://keepachangelog.com/)
|
|
420
|
+
|
|
421
|
+
```markdown
|
|
422
|
+
# Changelog
|
|
423
|
+
|
|
424
|
+
## [Unreleased]
|
|
425
|
+
|
|
426
|
+
### Added
|
|
427
|
+
- New feature X
|
|
428
|
+
|
|
429
|
+
### Fixed
|
|
430
|
+
- Bug fix Y
|
|
431
|
+
|
|
432
|
+
## [1.2.0] - 2025-11-12
|
|
433
|
+
|
|
434
|
+
### Added
|
|
435
|
+
- OAuth2 authentication support
|
|
436
|
+
|
|
437
|
+
### Changed
|
|
438
|
+
- Updated API response format
|
|
439
|
+
|
|
440
|
+
### Deprecated
|
|
441
|
+
- Old API endpoint (will be removed in v2.0)
|
|
442
|
+
|
|
443
|
+
## [1.1.0] - 2025-10-01
|
|
444
|
+
|
|
445
|
+
### Added
|
|
446
|
+
- Email notification system
|
|
447
|
+
|
|
448
|
+
[Unreleased]: https://github.com/org/repo/compare/v1.2.0...HEAD
|
|
449
|
+
[1.2.0]: https://github.com/org/repo/compare/v1.1.0...v1.2.0
|
|
450
|
+
[1.1.0]: https://github.com/org/repo/releases/tag/v1.1.0
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
### 4. LICENSE (REQUIRED for open source)
|
|
456
|
+
|
|
457
|
+
**Common Licenses**:
|
|
458
|
+
- MIT: Permissive
|
|
459
|
+
- Apache 2.0: Permissive with patent grant
|
|
460
|
+
- GPL v3: Copyleft
|
|
461
|
+
- BSD: Permissive
|
|
462
|
+
- CC BY 4.0: Documentation/content
|
|
463
|
+
|
|
464
|
+
---
|
|
465
|
+
|
|
466
|
+
## Document Version Alignment
|
|
467
|
+
|
|
468
|
+
### Principle
|
|
469
|
+
|
|
470
|
+
**Document version MUST align with software version.**
|
|
471
|
+
|
|
472
|
+
The version number in a document represents "applicable to software version X.Y.Z", not an independent document revision number.
|
|
473
|
+
|
|
474
|
+
### Rationale
|
|
475
|
+
|
|
476
|
+
| Approach | Problems |
|
|
477
|
+
|----------|----------|
|
|
478
|
+
| Independent doc version | Requires tracking "which doc version maps to which software version"; confusing |
|
|
479
|
+
| **Aligned version** ✓ | Clear: doc v1.2.0 = applies to software v1.2.0 |
|
|
480
|
+
|
|
481
|
+
### Document Header Template
|
|
482
|
+
|
|
483
|
+
```markdown
|
|
484
|
+
# Document Title
|
|
485
|
+
|
|
486
|
+
**Applicable Version**: 1.2.0 ← Aligned with software version
|
|
487
|
+
**Document Type**: [Guide/Reference/Specification]
|
|
488
|
+
**Target Audience**: [Developers/Operators/Users]
|
|
489
|
+
**Last Updated**: 2025-12-11 ← Date of last edit
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### Field Definitions
|
|
495
|
+
|
|
496
|
+
| Field | Required | Description |
|
|
497
|
+
|-------|----------|-------------|
|
|
498
|
+
| Applicable Version | ✅ Yes | The software version this document applies to |
|
|
499
|
+
| Document Type | Recommended | Category: Guide, Reference, Specification, Tutorial |
|
|
500
|
+
| Target Audience | Recommended | Intended readers |
|
|
501
|
+
| Last Updated | ✅ Yes | Date of last edit |
|
|
502
|
+
|
|
503
|
+
### When to Update Version
|
|
504
|
+
|
|
505
|
+
| Scenario | Action |
|
|
506
|
+
|----------|--------|
|
|
507
|
+
| Software releases new version with feature changes | Update doc version to match |
|
|
508
|
+
| Minor doc typo fix (no software change) | Keep version, update Last Updated date only |
|
|
509
|
+
| Doc updated for upcoming release | Use new version number |
|
|
510
|
+
|
|
511
|
+
### Examples
|
|
512
|
+
|
|
513
|
+
✅ **Correct**:
|
|
514
|
+
```markdown
|
|
515
|
+
# Upgrade Guide
|
|
516
|
+
|
|
517
|
+
**Applicable Version**: 1.2.0
|
|
518
|
+
**Last Updated**: 2025-12-11
|
|
519
|
+
```
|
|
520
|
+
This means: "Use this guide when upgrading to v1.2.0"
|
|
521
|
+
|
|
522
|
+
❌ **Incorrect**:
|
|
523
|
+
```markdown
|
|
524
|
+
# Upgrade Guide
|
|
525
|
+
|
|
526
|
+
**Version**: 1.1 ← Ambiguous: document revision or software version?
|
|
527
|
+
**Updated**: 2025-12-11
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
---
|
|
531
|
+
|
|
532
|
+
## Detailed Documentation (`docs/`)
|
|
533
|
+
|
|
534
|
+
### docs/index.md
|
|
535
|
+
|
|
536
|
+
**Purpose**: Navigation hub for all documentation
|
|
537
|
+
|
|
538
|
+
**Template**:
|
|
539
|
+
```markdown
|
|
540
|
+
# Documentation Index
|
|
541
|
+
|
|
542
|
+
## By Role
|
|
543
|
+
|
|
544
|
+
### For Users
|
|
545
|
+
- [Getting Started](getting-started.md)
|
|
546
|
+
- [User Guide](user-guide.md)
|
|
547
|
+
- [FAQ](faq.md)
|
|
548
|
+
|
|
549
|
+
### For Developers
|
|
550
|
+
- [Architecture](architecture.md)
|
|
551
|
+
- [API Reference](api-reference.md)
|
|
552
|
+
- [Development Guide](development-guide.md)
|
|
553
|
+
|
|
554
|
+
### For Operators
|
|
555
|
+
- [Deployment Guide](deployment.md)
|
|
556
|
+
- [Configuration](configuration.md)
|
|
557
|
+
- [Troubleshooting](troubleshooting.md)
|
|
558
|
+
|
|
559
|
+
## By Topic
|
|
560
|
+
|
|
561
|
+
### Authentication
|
|
562
|
+
- [Architecture](architecture.md#authentication)
|
|
563
|
+
- [API Endpoints](api-reference.md#authentication)
|
|
564
|
+
|
|
565
|
+
### Database
|
|
566
|
+
- [Schema](architecture.md#database-schema)
|
|
567
|
+
- [Migrations](development-guide.md#database-migrations)
|
|
568
|
+
|
|
569
|
+
### Flow Documentation
|
|
570
|
+
See [flows/README.md](flows/README.md) for complete index.
|
|
571
|
+
|
|
572
|
+
## Quick Links
|
|
573
|
+
|
|
574
|
+
- [GitHub Repository](https://github.com/org/repo)
|
|
575
|
+
- [Issue Tracker](https://github.com/org/repo/issues)
|
|
576
|
+
- [Changelog](../CHANGELOG.md)
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
---
|
|
580
|
+
|
|
581
|
+
### docs/getting-started.md
|
|
582
|
+
|
|
583
|
+
**Purpose**: Quick start for new users
|
|
584
|
+
|
|
585
|
+
**Structure**:
|
|
586
|
+
1. Prerequisites
|
|
587
|
+
2. Installation
|
|
588
|
+
3. Basic Configuration
|
|
589
|
+
4. First Example
|
|
590
|
+
5. Next Steps
|
|
591
|
+
|
|
592
|
+
---
|
|
593
|
+
|
|
594
|
+
### docs/architecture.md
|
|
595
|
+
|
|
596
|
+
**Purpose**: System design and technical architecture
|
|
597
|
+
|
|
598
|
+
**Structure**:
|
|
599
|
+
1. Overview
|
|
600
|
+
2. System Components
|
|
601
|
+
3. Data Flow
|
|
602
|
+
4. Design Decisions
|
|
603
|
+
5. Technology Stack
|
|
604
|
+
6. Security Architecture
|
|
605
|
+
7. Performance Considerations
|
|
606
|
+
|
|
607
|
+
**Include Diagrams**:
|
|
608
|
+
- System overview diagram
|
|
609
|
+
- Component diagram
|
|
610
|
+
- Data flow diagram
|
|
611
|
+
- Deployment diagram
|
|
612
|
+
|
|
613
|
+
**Must Include in References**:
|
|
614
|
+
- Link to `flows/README.md` for detailed flow documentation
|
|
615
|
+
|
|
616
|
+
---
|
|
617
|
+
|
|
618
|
+
### docs/api-reference.md
|
|
619
|
+
|
|
620
|
+
**Purpose**: Complete API documentation
|
|
621
|
+
|
|
622
|
+
**Structure**:
|
|
623
|
+
1. API Overview
|
|
624
|
+
2. Authentication
|
|
625
|
+
3. Endpoints (grouped by resource)
|
|
626
|
+
4. Request/Response Examples
|
|
627
|
+
5. Error Codes
|
|
628
|
+
6. Rate Limiting
|
|
629
|
+
|
|
630
|
+
**Endpoint Template**:
|
|
631
|
+
```markdown
|
|
632
|
+
## POST /api/users/authenticate
|
|
633
|
+
|
|
634
|
+
Authenticates a user and returns access token.
|
|
635
|
+
|
|
636
|
+
### Request
|
|
637
|
+
|
|
638
|
+
**Headers**:
|
|
639
|
+
```
|
|
640
|
+
Content-Type: application/json
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
**Body**:
|
|
644
|
+
```json
|
|
645
|
+
{
|
|
646
|
+
"username": "string",
|
|
647
|
+
"password": "string"
|
|
648
|
+
}
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### Response
|
|
652
|
+
|
|
653
|
+
**Success (200 OK)**:
|
|
654
|
+
```json
|
|
655
|
+
{
|
|
656
|
+
"accessToken": "string",
|
|
657
|
+
"expiresIn": 3600
|
|
658
|
+
}
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
**Error (401 Unauthorized)**:
|
|
662
|
+
```json
|
|
663
|
+
{
|
|
664
|
+
"error": "INVALID_CREDENTIALS",
|
|
665
|
+
"message": "Invalid username or password"
|
|
666
|
+
}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
### Examples
|
|
670
|
+
|
|
671
|
+
```bash
|
|
672
|
+
curl -X POST https://api.example.com/api/users/authenticate \
|
|
673
|
+
-H "Content-Type: application/json" \
|
|
674
|
+
-d '{"username":"user@example.com","password":"secret"}'
|
|
675
|
+
```
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
**Must Include in References**:
|
|
679
|
+
- Link to relevant flow documentation (e.g., `flows/auth/auth-flow.md`)
|
|
680
|
+
|
|
681
|
+
---
|
|
682
|
+
|
|
683
|
+
### docs/deployment.md
|
|
684
|
+
|
|
685
|
+
**Purpose**: How to deploy the application
|
|
686
|
+
|
|
687
|
+
**Structure**:
|
|
688
|
+
1. Prerequisites
|
|
689
|
+
2. Environment Setup
|
|
690
|
+
3. Configuration
|
|
691
|
+
4. Deployment Steps
|
|
692
|
+
5. Verification
|
|
693
|
+
6. Rollback Procedure
|
|
694
|
+
7. Monitoring
|
|
695
|
+
|
|
696
|
+
**Must Include in References**:
|
|
697
|
+
- Link to relevant daemon/service flow documentation
|
|
698
|
+
|
|
699
|
+
---
|
|
700
|
+
|
|
701
|
+
### docs/troubleshooting.md
|
|
702
|
+
|
|
703
|
+
**Purpose**: Common problems and solutions
|
|
704
|
+
|
|
705
|
+
**Structure**:
|
|
706
|
+
```markdown
|
|
707
|
+
# Troubleshooting Guide
|
|
708
|
+
|
|
709
|
+
## Installation Issues
|
|
710
|
+
|
|
711
|
+
### Problem: npm install fails with EACCES error
|
|
712
|
+
|
|
713
|
+
**Symptoms**:
|
|
714
|
+
```
|
|
715
|
+
Error: EACCES: permission denied
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
**Solution**:
|
|
719
|
+
```bash
|
|
720
|
+
sudo chown -R $(whoami) ~/.npm
|
|
721
|
+
npm install
|
|
722
|
+
```
|
|
723
|
+
|
|
724
|
+
---
|
|
725
|
+
|
|
726
|
+
## Runtime Issues
|
|
727
|
+
|
|
728
|
+
### Problem: Application crashes with "Cannot find module"
|
|
729
|
+
|
|
730
|
+
**Symptoms**:
|
|
731
|
+
- Error: Cannot find module 'express'
|
|
732
|
+
- Application exits immediately
|
|
733
|
+
|
|
734
|
+
**Solution**:
|
|
735
|
+
1. Check node_modules exists
|
|
736
|
+
2. Run `npm install`
|
|
737
|
+
3. Verify package.json dependencies
|
|
738
|
+
|
|
739
|
+
**Prevention**:
|
|
740
|
+
- Always run `npm install` after pulling changes
|
|
741
|
+
- Commit package-lock.json to version control
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
---
|
|
745
|
+
|
|
746
|
+
## Diagram Documentation
|
|
747
|
+
|
|
748
|
+
### Flows vs Diagrams Separation
|
|
749
|
+
|
|
750
|
+
Understanding the distinction between `flows/` and `diagrams/` directories:
|
|
751
|
+
|
|
752
|
+
- **`docs/diagrams/`**: Static architecture diagrams (DFD, ER, C4 Model, Deployment, Class diagrams)
|
|
753
|
+
- **`docs/flows/`**: Dynamic flow documentation (Sequence Diagrams, API call flows, Job scheduling flows)
|
|
754
|
+
|
|
755
|
+
| Type | Description | Directory | Examples |
|
|
756
|
+
|------|-------------|-----------|----------|
|
|
757
|
+
| **Flow** | Dynamic behavior: how data flows, step sequences | `docs/flows/` | Sequence diagrams, API call flows, job scheduling |
|
|
758
|
+
| **Diagram** | Static structure: system composition, relationships, data models | `docs/diagrams/` | DFD, ER diagrams, C4 architecture, deployment diagrams |
|
|
759
|
+
|
|
760
|
+
**Rationale**:
|
|
761
|
+
- Clear separation reduces confusion about where to place new documentation
|
|
762
|
+
- Static diagrams rarely change; dynamic flows may update with feature changes
|
|
763
|
+
- Different audiences: diagrams for architects, flows for developers and operators
|
|
764
|
+
|
|
765
|
+
### Recommended Tools
|
|
766
|
+
|
|
767
|
+
- **Mermaid**: Text-based diagrams (GitHub/GitLab native support)
|
|
768
|
+
- **PlantUML**: UML diagrams from text
|
|
769
|
+
- **Draw.io / Excalidraw**: Visual diagram editors
|
|
770
|
+
- **ASCII Art**: Simple text diagrams
|
|
771
|
+
|
|
772
|
+
### Mermaid Examples
|
|
773
|
+
|
|
774
|
+
**System Flow**:
|
|
775
|
+
```mermaid
|
|
776
|
+
graph LR
|
|
777
|
+
A[User] --> B[API Gateway]
|
|
778
|
+
B --> C[Auth Service]
|
|
779
|
+
B --> D[Business Logic]
|
|
780
|
+
D --> E[Database]
|
|
781
|
+
```
|
|
782
|
+
|
|
783
|
+
**Sequence Diagram**:
|
|
784
|
+
```mermaid
|
|
785
|
+
sequenceDiagram
|
|
786
|
+
User->>+API: POST /login
|
|
787
|
+
API->>+Auth: Validate credentials
|
|
788
|
+
Auth->>+DB: Query user
|
|
789
|
+
DB-->>-Auth: User data
|
|
790
|
+
Auth-->>-API: Token
|
|
791
|
+
API-->>-User: 200 OK + Token
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
### DFD (Data Flow Diagram) Standards
|
|
795
|
+
|
|
796
|
+
Flow documents should include DFD diagrams:
|
|
797
|
+
|
|
798
|
+
| DFD Level | Description | Required |
|
|
799
|
+
|-----------|-------------|:--------:|
|
|
800
|
+
| Context Diagram | System and external entity relationships | ✅ |
|
|
801
|
+
| Level 0 DFD | Main processes and data stores | ✅ |
|
|
802
|
+
| Level 1 DFD | Expanded sub-processes | ⚪ (based on complexity) |
|
|
803
|
+
| Physical DFD | Implementation mapping (technology stack, DB tables, API endpoints) | ⚪ (advanced) |
|
|
804
|
+
|
|
805
|
+
**Logical vs Physical DFD**:
|
|
806
|
+
|
|
807
|
+
| Type | Describes | Audience | Example Content |
|
|
808
|
+
|------|-----------|----------|-----------------|
|
|
809
|
+
| **Logical DFD** (Level 0/1) | WHAT the system does (business processes) | Business analysts, PMs, new developers | Process names, data flows, business rules |
|
|
810
|
+
| **Physical DFD** | HOW it's implemented (technology details) | Operations engineers, DBAs, system integrators | Database tables, API endpoints, file paths, config parameters |
|
|
811
|
+
|
|
812
|
+
**DFD Symbol Standards (Mermaid)**:
|
|
813
|
+
|
|
814
|
+
| Symbol | Represents | Mermaid Syntax |
|
|
815
|
+
|--------|------------|----------------|
|
|
816
|
+
| Rectangle | External Entity | `[Name]` |
|
|
817
|
+
| Double Circle | Process | `((ID<br/>Name))` |
|
|
818
|
+
| Cylinder | Data Store | `[(D# Name)]` |
|
|
819
|
+
| Solid Arrow | Data Flow | `-->|label|` |
|
|
820
|
+
| Dashed Arrow | Error/Exception | `-.->|label|` |
|
|
821
|
+
|
|
822
|
+
**DFD Color Standards**:
|
|
823
|
+
|
|
824
|
+
| Color | Usage | Mermaid Style |
|
|
825
|
+
|-------|-------|---------------|
|
|
826
|
+
| 🟦 Blue | External Entity | `fill:#e3f2fd,stroke:#1976d2` |
|
|
827
|
+
| 🟩 Green | Primary Data Table | `fill:#c8e6c9,stroke:#388e3c` |
|
|
828
|
+
| 🟨 Yellow | Cache/Tracking Data | `fill:#fff9c4,stroke:#f9a825` |
|
|
829
|
+
| 🟧 Orange | Updated Data | `fill:#ffccbc,stroke:#e64a19` |
|
|
830
|
+
|
|
831
|
+
---
|
|
832
|
+
|
|
833
|
+
## Code Examples (`examples/`)
|
|
834
|
+
|
|
835
|
+
### Structure
|
|
836
|
+
|
|
837
|
+
```
|
|
838
|
+
examples/
|
|
839
|
+
├── README.md # Overview of examples
|
|
840
|
+
├── basic-usage/
|
|
841
|
+
│ ├── simple-auth.js # Simple authentication example
|
|
842
|
+
│ ├── README.md # Explanation
|
|
843
|
+
│ └── package.json # Dependencies
|
|
844
|
+
├── advanced-usage/
|
|
845
|
+
│ ├── custom-auth.js # Advanced authentication
|
|
846
|
+
│ ├── README.md
|
|
847
|
+
│ └── package.json
|
|
848
|
+
└── integration-tests/
|
|
849
|
+
└── ...
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Example README Template
|
|
853
|
+
|
|
854
|
+
```markdown
|
|
855
|
+
# Basic Usage Examples
|
|
856
|
+
|
|
857
|
+
## Simple Authentication
|
|
858
|
+
|
|
859
|
+
Demonstrates basic user authentication flow.
|
|
860
|
+
|
|
861
|
+
### Prerequisites
|
|
862
|
+
|
|
863
|
+
- Node.js 18+
|
|
864
|
+
- npm 9+
|
|
865
|
+
|
|
866
|
+
### Setup
|
|
867
|
+
|
|
868
|
+
```bash
|
|
869
|
+
cd examples/basic-usage
|
|
870
|
+
npm install
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
### Run
|
|
874
|
+
|
|
875
|
+
```bash
|
|
876
|
+
node simple-auth.js
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
### Expected Output
|
|
880
|
+
|
|
881
|
+
```
|
|
882
|
+
User authenticated successfully!
|
|
883
|
+
Token: eyJhbGc...
|
|
884
|
+
```
|
|
885
|
+
|
|
886
|
+
### Code Walkthrough
|
|
887
|
+
|
|
888
|
+
```javascript
|
|
889
|
+
// 1. Import library
|
|
890
|
+
const { AuthClient } = require('your-lib');
|
|
891
|
+
|
|
892
|
+
// 2. Create client
|
|
893
|
+
const client = new AuthClient({
|
|
894
|
+
apiUrl: 'https://api.example.com'
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
// 3. Authenticate
|
|
898
|
+
const token = await client.authenticate('user', 'pass');
|
|
899
|
+
console.log('Token:', token);
|
|
900
|
+
```
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
---
|
|
904
|
+
|
|
905
|
+
## Documentation Maintenance
|
|
906
|
+
|
|
907
|
+
### Documentation Updates Checklist
|
|
908
|
+
|
|
909
|
+
When making code changes, update documentation:
|
|
910
|
+
|
|
911
|
+
- [ ] **README.md** if:
|
|
912
|
+
- Installation process changed
|
|
913
|
+
- Quick start example changed
|
|
914
|
+
- New major feature added
|
|
915
|
+
|
|
916
|
+
- [ ] **API Reference** if:
|
|
917
|
+
- API endpoints added/changed/removed
|
|
918
|
+
- Request/response format changed
|
|
919
|
+
- New error codes introduced
|
|
920
|
+
|
|
921
|
+
- [ ] **Architecture Docs** if:
|
|
922
|
+
- System design changed
|
|
923
|
+
- New components added
|
|
924
|
+
- Technology stack changed
|
|
925
|
+
|
|
926
|
+
- [ ] **Flow Documentation** if:
|
|
927
|
+
- Business logic changed
|
|
928
|
+
- New integration added
|
|
929
|
+
- Data flow modified
|
|
930
|
+
|
|
931
|
+
- [ ] **CHANGELOG.md** (always):
|
|
932
|
+
- Add entry for every release
|
|
933
|
+
- Document breaking changes
|
|
934
|
+
- List new features and fixes
|
|
935
|
+
- **Record documentation additions/changes**
|
|
936
|
+
|
|
937
|
+
- [ ] **Cross-References**:
|
|
938
|
+
- Update related documents' reference sections
|
|
939
|
+
- Update index.md if new documents added
|
|
940
|
+
|
|
941
|
+
---
|
|
942
|
+
|
|
943
|
+
## Documentation Quality Standards
|
|
944
|
+
|
|
945
|
+
### Readability
|
|
946
|
+
|
|
947
|
+
- [ ] Clear, concise language
|
|
948
|
+
- [ ] Short paragraphs (≤5 sentences)
|
|
949
|
+
- [ ] Active voice preferred
|
|
950
|
+
- [ ] Technical jargon explained
|
|
951
|
+
|
|
952
|
+
### Accuracy
|
|
953
|
+
|
|
954
|
+
- [ ] Code examples tested and working
|
|
955
|
+
- [ ] Screenshots/diagrams up-to-date
|
|
956
|
+
- [ ] Version numbers correct
|
|
957
|
+
- [ ] Links not broken
|
|
958
|
+
|
|
959
|
+
### Completeness
|
|
960
|
+
|
|
961
|
+
- [ ] Prerequisites listed
|
|
962
|
+
- [ ] All steps documented
|
|
963
|
+
- [ ] Expected outcomes described
|
|
964
|
+
- [ ] Troubleshooting included
|
|
965
|
+
|
|
966
|
+
### Cross-Referencing
|
|
967
|
+
|
|
968
|
+
- [ ] Related documents linked
|
|
969
|
+
- [ ] Index updated
|
|
970
|
+
- [ ] References section complete
|
|
971
|
+
|
|
972
|
+
---
|
|
973
|
+
|
|
974
|
+
## Localization
|
|
975
|
+
|
|
976
|
+
### Bilingual Documentation
|
|
977
|
+
|
|
978
|
+
For international projects:
|
|
979
|
+
|
|
980
|
+
```
|
|
981
|
+
docs/
|
|
982
|
+
├── en/ # English documentation
|
|
983
|
+
│ ├── README.md
|
|
984
|
+
│ ├── getting-started.md
|
|
985
|
+
│ └── ...
|
|
986
|
+
├── zh-tw/ # Traditional Chinese
|
|
987
|
+
│ ├── README.md
|
|
988
|
+
│ ├── getting-started.md
|
|
989
|
+
│ └── ...
|
|
990
|
+
└── README.md # Language selector
|
|
991
|
+
```
|
|
992
|
+
|
|
993
|
+
**Language Selector (root docs/README.md)**:
|
|
994
|
+
```markdown
|
|
995
|
+
# Documentation
|
|
996
|
+
|
|
997
|
+
Select your language:
|
|
998
|
+
- [English](en/README.md)
|
|
999
|
+
- [繁體中文](zh-tw/README.md)
|
|
1000
|
+
- [日本語](ja/README.md)
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
---
|
|
1004
|
+
|
|
1005
|
+
## Documentation Automation
|
|
1006
|
+
|
|
1007
|
+
### API Documentation Generation
|
|
1008
|
+
|
|
1009
|
+
**Tools**:
|
|
1010
|
+
- **Swagger/OpenAPI**: REST API documentation
|
|
1011
|
+
- **GraphQL**: Auto-generated schema docs
|
|
1012
|
+
- **JSDoc**: JavaScript API docs
|
|
1013
|
+
- **Doxygen**: C/C++ documentation
|
|
1014
|
+
- **Sphinx**: Python documentation
|
|
1015
|
+
- **Docusaurus**: Full documentation sites
|
|
1016
|
+
|
|
1017
|
+
### Example: Swagger Integration
|
|
1018
|
+
|
|
1019
|
+
```yaml
|
|
1020
|
+
# openapi.yaml
|
|
1021
|
+
openapi: 3.0.0
|
|
1022
|
+
info:
|
|
1023
|
+
title: User API
|
|
1024
|
+
version: 1.0.0
|
|
1025
|
+
|
|
1026
|
+
paths:
|
|
1027
|
+
/users/authenticate:
|
|
1028
|
+
post:
|
|
1029
|
+
summary: Authenticate user
|
|
1030
|
+
requestBody:
|
|
1031
|
+
required: true
|
|
1032
|
+
content:
|
|
1033
|
+
application/json:
|
|
1034
|
+
schema:
|
|
1035
|
+
type: object
|
|
1036
|
+
properties:
|
|
1037
|
+
username:
|
|
1038
|
+
type: string
|
|
1039
|
+
password:
|
|
1040
|
+
type: string
|
|
1041
|
+
responses:
|
|
1042
|
+
'200':
|
|
1043
|
+
description: Success
|
|
1044
|
+
content:
|
|
1045
|
+
application/json:
|
|
1046
|
+
schema:
|
|
1047
|
+
type: object
|
|
1048
|
+
properties:
|
|
1049
|
+
accessToken:
|
|
1050
|
+
type: string
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
---
|
|
1054
|
+
|
|
1055
|
+
## Documentation Hosting
|
|
1056
|
+
|
|
1057
|
+
### Options
|
|
1058
|
+
|
|
1059
|
+
| Platform | Best For | Cost |
|
|
1060
|
+
|----------|----------|------|
|
|
1061
|
+
| **GitHub Pages** | Open source projects | Free |
|
|
1062
|
+
| **GitLab Pages** | GitLab projects | Free |
|
|
1063
|
+
| **Read the Docs** | Python projects | Free |
|
|
1064
|
+
| **Docusaurus** | Full documentation sites | Free (self-hosted) |
|
|
1065
|
+
| **GitBook** | Beautiful docs UI | Free tier available |
|
|
1066
|
+
|
|
1067
|
+
### GitHub Pages Setup
|
|
1068
|
+
|
|
1069
|
+
```bash
|
|
1070
|
+
# 1. Create docs branch
|
|
1071
|
+
git checkout --orphan gh-pages
|
|
1072
|
+
|
|
1073
|
+
# 2. Add documentation
|
|
1074
|
+
cp -r docs/* .
|
|
1075
|
+
|
|
1076
|
+
# 3. Push to GitHub
|
|
1077
|
+
git add .
|
|
1078
|
+
git commit -m "docs: initial documentation"
|
|
1079
|
+
git push origin gh-pages
|
|
1080
|
+
|
|
1081
|
+
# 4. Enable in GitHub Settings → Pages
|
|
1082
|
+
# Choose gh-pages branch
|
|
1083
|
+
```
|
|
1084
|
+
|
|
1085
|
+
---
|
|
1086
|
+
|
|
1087
|
+
## Related Standards
|
|
1088
|
+
|
|
1089
|
+
- [Documentation Writing Standards](documentation-writing-standards.md)
|
|
1090
|
+
- [Changelog Standards](changelog-standards.md)
|
|
1091
|
+
- [Project Structure Standard](project-structure.md)
|
|
1092
|
+
|
|
1093
|
+
---
|
|
1094
|
+
|
|
1095
|
+
## Version History
|
|
1096
|
+
|
|
1097
|
+
| Version | Date | Changes |
|
|
1098
|
+
|---------|------|---------|
|
|
1099
|
+
| 1.2.2 | 2025-12-24 | Added: Related Standards section |
|
|
1100
|
+
| 1.2.1 | 2025-12-12 | Added: Physical DFD layer, Flows vs Diagrams separation clarification |
|
|
1101
|
+
| 1.2.0 | 2025-12-11 | Added: Flow documentation standards, Cross-reference standards, Index document standards, CHANGELOG documentation integration, Document requirements matrix, DFD standards |
|
|
1102
|
+
| 1.1.0 | 2025-12-11 | Added: File naming conventions, Document version alignment standard |
|
|
1103
|
+
| 1.0.0 | 2025-11-12 | Initial documentation structure standard |
|
|
1104
|
+
|
|
1105
|
+
---
|
|
1106
|
+
|
|
1107
|
+
## References
|
|
1108
|
+
|
|
1109
|
+
- [Write the Docs](https://www.writethedocs.org/)
|
|
1110
|
+
- [Google Developer Documentation Style Guide](https://developers.google.com/style)
|
|
1111
|
+
- [Microsoft Writing Style Guide](https://docs.microsoft.com/en-us/style-guide/)
|
|
1112
|
+
|
|
1113
|
+
---
|
|
1114
|
+
|
|
1115
|
+
## License
|
|
1116
|
+
|
|
1117
|
+
This standard is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|