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.
Use this skill to write, restructure, and verify software-repo documentation: READMEs, runbooks, API references, changelogs, onboarding docs, instruction files, and canonical docs libraries for humans and coding agents.
The goal is durable docs, not document sprawl. Keep one canonical doc per subject, wire in ownership and review cadence, and verify filesystem-backed claims before publishing summary docs.
| Documentation Type | Template | Notes |
|-------------------|----------|-------|
| project README | assets/project-management/readme-template.md | onboarding and project navigation |
| ADR or architecture note | assets/architecture/adr-template.md | decision record |
| gap analysis or migration assessment | assets/architecture/gap-analysis-template.md | architecture and readiness work |
| API reference | assets/api-reference/api-docs-template.md | REST, GraphQL, gRPC, AsyncAPI |
| changelog | assets/project-management/changelog-template.md | release history |
| contributing guide | assets/project-management/contributing-template.md | team and OSS contribution |
| docs IA or consolidation plan | assets/docs-as-code/docs-structure-template.md | large doc sets |
| ownership and review model | assets/docs-as-code/ownership-model.md | runbooks and critical docs |
| doc sync checklist | assets/project-management/template-doc-sync-checklist.md | status and path integrity |
| operational runbook | assets/operational/runbook-template.md | SLO, alerts → response, rollback, escalation, postmortems; use {{PLACEHOLDER}} format |
| CI markdownlint config | assets/ci/.markdownlint.yaml | drop into repo root; MD013 off, MD024 siblings_only, sensible defaults |
| CI Vale prose config | assets/ci/.vale.ini | Microsoft style base; passive voice as suggestion; per-rule overrides documented |
| CI docs quality workflow | assets/ci/docs-quality.yml | GitHub Actions: markdownlint + markdown-link-check + vale on docs/ PRs |
Use this skill when the main task is:
docs/ foldersRoute elsewhere when the main task is:
Before creating any new *.md file, prove all of these:
docs/context/ and have a rebuild pathIf any item fails, update an existing doc, add a small section to a canonical page, or keep the answer in chat. Do not create per-session notes, one-off summaries, or root-level Markdown reports unless the user explicitly asks for that artifact.
AGENTS.md / CLAUDE.md: hot execution policy, exact commands, constraints, and pointers. Not a codebase catalog, report archive, or general docs folder.README.md: human and agent navigation. Not a deep handbook.docs/: durable product, technical, operational, API, ADR, and onboarding docs.docs/operations/ or docs/runbooks/: operational procedures with owners and verification steps.docs/reports/: temporary evidence or analysis with pending-integration, integrated, or superseded status.docs/context/ or context/: generated or compiled LLM context artifacts. Prefer rebuild scripts and structured inputs; do not hand-edit generated pages as canonical truth..archive/: historical material excluded from normal search and context unless explicitly requested.assets/ only when a new or replacement doc is justified.Docs request
|
v
Classify document type + audience
|-- README / onboarding ------> project-management templates
|-- runbook / operations -----> operational templates
|-- API reference ------------> api-reference templates
|-- ADR / architecture -------> architecture templates
|-- docs IA / cleanup --------> docs-as-code templates
|
v
Inspect existing canonical docs
|
v
Markdown Creation Gate
|-- existing owner found -----> update canonical doc
|-- no owner, justified ------> create linked doc with owner + cadence
|-- temporary evidence -------> docs/reports with lifecycle state
|
v
Verify paths, links, counts, commands, and status claims
|
v
Publish through README / index / context hub
Use this mode when a repo has too many overlapping or LLM-generated docs:
pending-integration, integrated, or supersededREADME.md as the navigation anchorAGENTS.md and CLAUDE.md thin when possible, with shared guidance factored into canonical docslast_verified markers for volatile pagesRot detection beyond "old timestamp":
Agents and humans read the same doc differently; serve both:
AGENTS.md or CLAUDE.md gets run, not questioned, the way a human skimming a wiki might self-correct. Hold instruction files to a higher freshness bar than narrative docs.docs/, execution policy belongs in the thin instruction file.Ownership models fail in predictable ways:
Before merging:
complete list claims against the filesystemCore references
Craft and style
Advanced and AI-aware
docs-codebase owns technical documentation quality, structure, and canonicalizationdocs-ai-prd owns requirements, specs, acceptance criteria, and what context an implementation agent needsIf you are writing or cleaning docs, stay here. If you are deciding feature requirements or context strategy, use docs-ai-prd.
Before delivering output, verify:
Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer