Claude-skill-registry docs-codebase

Technical writing patterns for README files, API documentation, architecture decision records (ADRs), changelogs, contributing guides, code comments, and docs-as-code workflows. Covers documentation structure, style guides, Markdown best practices, and documentation testing.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/docs-codebase" ~/.claude/skills/majiayu000-claude-skill-registry-docs-codebase && rm -rf "$T"
manifest: skills/data/docs-codebase/SKILL.md
source content

Technical Documentation

Execution-ready patterns for clear, maintainable technical documentation.

Modern best practices (January 2026): docs-as-code, ownership + review cadence, documentation QA gates (links/style/spelling), AI-assisted drafting + review, OpenAPI 3.2.0 where streaming schemas matter, and GEO (Generative Engine Optimization) for AI search.

Quick Reference

Documentation TypeTemplateWhen to Use
Project READMEreadme-template.mdNew project, onboarding
Architecture Decisionadr-template.mdTechnical decisions
API Referenceapi-docs-template.mdREST/GraphQL APIs
Changelogchangelog-template.mdVersion history
Contributing Guidecontributing-template.mdOpen source, teams

Workflow

  1. Identify the documentation type and audience.
  2. Find existing patterns in the repo; follow local conventions.
  3. Start from the closest template in
    assets/
    and adapt.
  4. Add ownership + review cadence for critical docs (runbooks, onboarding, API reference).
  5. Run documentation QA (links, formatting, spelling, examples) before merging.

Decision Tree

User needs: [Documentation Task]
    ├─ New project? → **README.md**
    ├─ Technical decision? → **ADR**
    ├─ Building API? → **OpenAPI spec** + api-docs-template
    ├─ New version? → **CHANGELOG.md**
    ├─ Team collaboration? → **CONTRIBUTING.md**
    ├─ Documenting code? → **Docstrings** (JSDoc, Python)
    └─ Building docs site? → **MkDocs** (Python) or **Docusaurus** (JS)

Cross-Platform AI Documentation

AGENTS.md Standard

Prefer

AGENTS.md
as the cross-tool source of truth. If a specific tool requires a different filename (example: Claude Code uses
CLAUDE.md
), keep it aligned via a symlink only when you want identical content across tools.

# If `CLAUDE.md` does not exist and you want identical content:
ln -s AGENTS.md CLAUDE.md

Do / Avoid

Do

  • Assign owners and review cadences to critical docs
  • Add CI checks for links, style, and staleness
  • Prefer small, task-oriented docs over big wiki pages
  • Use Keep a Changelog format with semantic versioning

Avoid

  • Docs without owners (guaranteed to rot)
  • Stale runbooks (dangerous during incidents)
  • Copy/paste docs that drift from code

Resources

ResourcePurpose
references/readme-best-practices.mdREADME structure, badges
references/adr-writing-guide.mdADR lifecycle, examples
references/changelog-best-practices.mdKeep a Changelog format
references/api-documentation-standards.mdREST, GraphQL, gRPC docs
references/code-commenting-guide.mdDocstrings, inline comments
references/contributing-guide-standards.mdCONTRIBUTING.md structure
references/docs-as-code-setup.mdMkDocs, Docusaurus, CI/CD
references/writing-best-practices.mdClear communication
references/markdown-style-guide.mdMarkdown formatting
references/documentation-testing.mdVale, markdownlint, cspell
references/ai-documentation-tools.mdMintlify, DocuWriter, GEO
references/production-gotchas-guide.mdDocumenting platform issues

Templates

CategoryTemplates
Architectureadr-template.md
API Referenceapi-docs-template.md
Project Managementreadme-template.md, changelog-template.md, contributing-template.md
Docs-as-Codedocs-structure-template.md, ownership-model.md

Related Skills

SkillPurpose
qa-docs-coverageDocumentation gap audit
dev-api-designREST API patterns
git-workflowConventional Commits
docs-ai-prdPRD templates