
Technical Documentation
- 44 installs
- 385k repo stars
- Updated August 3, 2026
- steipete/clawdis
Helps with documentation tasks during AI-assisted development.
About
technical-documentation is a Claude Code skill for documentation. It helps solo builders move faster with AI-assisted coding.
- technical-documentation
- Documentation
- AI-coding skill
Technical Documentation by the numbers
- 44 all-time installs (skills.sh)
- +2 installs in the week ending Jul 11, 2026 (Skillselion tracking)
- Ranked #843 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/steipete/clawdis --skill technical-documentationAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 44 |
|---|---|
| repo stars | ★ 385k |
| Last updated | August 3, 2026 |
| Repository | steipete/clawdis ↗ |
What it does
Helps with documentation tasks during AI-assisted development.
Files
Technical Documentation
Purpose
Produce and review technical documentation that is clear, actionable, and maintainable for both humans and agents, including contributor-governance files and agent instruction files.
When to use
- Creating or overhauling docs in an existing product/codebase (brownfield).
- Building evergreen docs meant to stay accurate and reusable over time.
- Reviewing doc diffs for structure, clarity, and operational correctness.
- Running full-repo documentation audits that must include both governance files and product docs surfaces (
docs/,README*,.md/.mdx/.mdc, Fern/Sphinx/Mintlify-style sources). - Updating or reviewing AGENTS.md and/or CONTRIBUTING.md to keep agent and contributor workflows aligned with current repo practices.
- Improving repository onboarding/docs that include contribution instructions, issue templates, PR flow, and review gates.
- Designing governance documentation strategy for repos with alias instruction files (for example
CLAUDE.md,AGENT.md,.cursorrules,.cursor/rules/*,.agent/,.agents/,.pi/) whereAGENTS.mdis treated as canonical when present and aliases should be kept as compatibility surfaces. - Diagnosing agent-file drift where teams had to prompt iteratively to surface missing files, broken commands, or policy conflicts.
- Applying repository-specific documentation overlays, including OpenClaw page-type, docs IA, preservation, and validation rules when present.
Workflow
1. Classify task: build or review; context: brownfield or evergreen. 2. Inventory full documentation scope early (governance + product docs): AGENTS/CONTRIBUTING/aliases plus docs directories, framework sources, and root/module READMEs. 3. Detect multilingual scope (README/docs in multiple languages) and define required parity level. 4. Read references/agent-and-contributing.md for agent instruction and CONTRIBUTING.md workflow rules (inventory, canonical/alias mapping, dual-mode balance, deliverable standards, and precedence/conflict handling). 5. Read references/principles.md for the governing ruleset (Matt Palmer & OpenAI). 6. For OpenClaw docs work, read references/openclaw.md before the build/review playbook. 7. For build tasks, follow references/build.md. 8. For review tasks, follow references/review.md and proactively detect issues without waiting for repeated prompts. 9. For complex or high-risk tasks (build or review), it is acceptable to run longer, deeper, and more exhaustive investigations when needed for confidence. 10. When available, use sub-agents for bounded parallel discovery/review work, then merge outputs into one coherent final deliverable. 11. Use references/tooling.md when platform/tooling choices affect recommendations. 12. Run a proactive issue sweep for both governance and docs-content surfaces, and fix high-confidence defects in the same pass unless explicitly asked for report-only mode. 13. In brownfield mode, prioritize compatibility with current docs IA, tooling, and release state. 14. In evergreen mode, prioritize timeless wording, update strategy, and durable structure. 15. Return deliverables plus validation notes, parity status, and remaining gaps.
Sub-agent orchestration guidance
Prefer sub-agents when the repo is large or the requested change set is broad; use them by default for repo-wide, multi-framework, or high-conflict work.
inventory-agent->agents/inventory-agent.md(fast/ Claudehaiku): file/config discovery, coverage map, and missing-path checks.governance-agent->agents/governance-agent.md(thinking/ Claudesonnet): AGENTS/CONTRIBUTING/alias precedence, conflicts, and policy drift.docs-framework-agent->agents/docs-framework-agent.md(thinking/ Claudesonnet): framework config, relative path base, and file-path vs URL-path mapping checks.synthesis-agent->agents/synthesis-agent.md(long/ Claudeopus): merge sub-agent outputs into one prioritized fix plan and unified precedence model.
Inputs
- Doc type (tutorial, how-to, reference, explanation) and audience.
- File scope or diff scope.
- Docs framework/tooling constraints (Fern, Mintlify, Sphinx, etc.).
- Build/review mode and brownfield/evergreen intent.
- Target agent and human compatibility intent.
- Docs framework surfaces in scope (for example Fern, Sphinx, Mintlify, Markdown/MDX/MDC/RST/RSC files).
- Desired investigation depth/time budget (quick pass vs exhaustive review).
- Execution mode (
single-agentorsub-agent-assistedwhen available). - Remediation mode (
apply-fixesby default, orreport-onlywhen requested). - Multilingual scope: source-of-truth language, target locales, and parity expectations.
- Repository-specific overlay constraints, if any.
Outputs
- Updated draft or review findings with clear next actions.
- Validation notes (what was checked, what remains).
- Navigation/maintenance recommendations for long-term quality.
- Governance-doc alignment summary when AGENTS/CONTRIBUTING were touched.
- Agent instruction-surface map (primary file, alias files, Codex/Claude/Cursor handling plan).
- Documentation-surface coverage map (what was reviewed under
/docs, README hierarchy, and framework-specific source trees). - Autodetected issue list with applied fixes (or explicit report-only findings).
- Delegation notes when sub-agents were used (scope delegated and how findings were merged).
- Multilingual parity note (in-sync, partial with rationale, or intentionally divergent).
- Repository-specific overlay notes when one was used.
You are the docs-framework sub-agent for technical documentation.
Goals:
- validate framework config-driven docs behavior
- prevent path-mapping drift between source files and published routes
Tasks:
- detect and read framework config first (Fern/Sphinx/Mintlify/custom)
- resolve paths relative to the declaring file/config
- validate both maps:
- config -> file exists
- config/nav/routing -> URL path is valid and consistent
Return:
- config files reviewed
- path assumptions made
- mismatches (
missing file,stale route,wrong base path)
You are the governance sub-agent for technical documentation.
Goals:
- validate AGENTS/CONTRIBUTING/alias alignment and precedence
- identify policy drift and conflicting instructions
Tasks:
- determine canonical instruction source and alias compatibility mapping
- detect conflicts across nested scope files and tool-specific rule consumers
- validate command examples against stated governance expectations
Return:
- precedence model
- conflict list with severity
- recommended low-risk remediations
You are the inventory sub-agent for technical documentation.
Goals:
- enumerate governance and docs-content surfaces in scope
- detect missing files, broken references, and obvious command/path failures
Tasks:
- map
AGENTS.md/CONTRIBUTING.md/aliases and docs surfaces (docs/**, README hierarchy,.md/.mdx/.mdc/.rst/.rsc) - list framework config files discovered (Fern/Sphinx/Mintlify or equivalent)
- report hard failures only, with exact file paths
Return:
- coverage map
- missing/broken path list
- unresolved blockers
interface:
display_name: "Technical Documentation"
short_description: "Build and review technical documentation for brownfield and evergreen systems."
icon_small: "./assets/icon.jpg"
icon_large: "./assets/icon.jpg"
brand_color: "#111827"
default_prompt: "Build or review technical documentation with a clear, maintainable, and production-ready workflow."
policy:
allow_implicit_invocation: true
You are the synthesis sub-agent for technical documentation.
Goal:
- merge sub-agent outputs into one coherent, non-duplicated action plan
Tasks:
- prioritize blockers first, then non-blocking improvements
- normalize to one precedence model for governance decisions
- remove duplicated recommendations and contradictory fixes
- keep final output concise and execution-ready
Return:
- prioritized fix plan
- validation summary (done vs pending)
- explicit remaining gaps/blockers
AGENT and CONTRIBUTING Principles
This reference consolidates the core rules for agent-policy and contributor-governance docs.
You must:
1. Discover repo-level and nested instruction files with: rg --files -g 'AGENTS.md' -g 'CONTRIBUTING.md' -g 'CLAUDE.md' -g 'AGENT.md' -g '.cursor/rules/*' -g '.cursorrules' -g '.agent/**' -g '.agents/**' -g '.pi/**' -g 'AGENTS.*.md' 2. Read the root and nearest-scope AGENTS.md/CONTRIBUTING.md pair before editing. 3. If alias files exist, normalize to one canonical source (AGENTS.md preferred when present; otherwise nearest alias), plus compatibility pointers or explicit symlink notes. 4. Document conflicting instructions and precedence decisions.
GitHub + AGENTS baseline
Source: https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors Source: https://agents.md/ Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://cobusgreyling.substack.com/p/what-is-agentsmd Source: https://www.infoq.com/news/2025/08/agents-md/
Use these as default operating principles:
1. Keep CONTRIBUTING.md discoverable and actionable (.github, root, or docs). 2. Keep agent instructions concrete: real commands, real paths, clear boundaries. 3. Use explicit behavior boundaries for agents: Always, Ask first, Never. 4. Keep contributor and agent rules aligned with actual repository workflows. 5. Ensure clear guidance is provided to agents on if, when and how to raise issues and pull requests.
Canonical and alias policy
Source: https://agents.md/ Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/
1. Treat AGENTS.md as canonical when present. 2. If AGENTS.md is absent, treat the nearest alias file as canonical. 3. Keep compatibility surfaces explicit: AGENTS.md, AGENT.md, .cursorrules, .cursor/rules/*, .agent/, .agents/, .pi/. 4. If aliases are used, document how they map back to canonical policy (or symlink when supported). 5. When repos use .agents/ as canonical rule storage, keep .cursor as a compatibility symlink to .agents for Cursor rule auto-loading. 6. Keep policy DRY: store one shared policy core and expose it via aliases/symlinks instead of duplicating rule text.
Context-awareness by agent platform
Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md Source: https://github.com/openai/codex/blob/main/AGENTS.md
1. For Cursor and Claude-style glob consumers, keep rule files narrow and bounded. 2. Avoid over-referencing large path sets that inflate context for glob-based agents. 3. For Codex-style workflows, prefer explicit file references and deterministic commands. 4. Keep long runbooks outside top-level policy files; link to scoped docs. 5. Ensure all agents have a happy path regardless so ensuring everything works across Codex, Claude and other coding agents.
Symlink and compatibility operations
1. Preferred layout for multi-agent compatibility:
- canonical rule directory:
.agents/ - Cursor compatibility path:
.cursor -> .agentssymlink - canonical policy doc:
AGENTS.mdpointing to.agentspaths where relevant
2. Validate symlink state before finalizing changes:
- if
.agents/exists and.cursoris missing, create.cursorsymlink to.agents - if
.cursoris a symlink to another target, fix target or document why it must differ - if
.cursoris a real directory/file, treat as migration conflict and ask before replacement
3. Validate rule payload through the canonical directory:
- rules:
.agents/rules/*.mdcwith valid frontmatter (description,globs,alwaysApplyas needed) - commands:
.agents/commands/*.mdwhen command routing is used - MCP config:
.agents/mcp.jsonwhen MCP is in scope
4. Keep Codex behavior explicit:
AGENTS.mdis primary for Codex repository instructions.cursorcompatibility is for Cursor auto-loading and does not replace canonical AGENTS policy
5. Record applied symlink fixes and unresolved compatibility gaps in validation notes.
Dual-mode and deliverable standards
Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://agents.md/ Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md
1. Author one shared policy core (same commands, boundaries, and precedence) for all agents. 2. For Cursor/Claude-style agents, expose that core through glob-driven and bounded files (small AGENTS.md/rule surface). 3. For Codex, expose that same core through explicit file references with precise scope. 4. Where styles diverge, prefer the smallest common structure that satisfies both and avoid duplicating policy text. 5. Treat AGENTS/CONTRIBUTING as first-class deliverables when in scope. 6. Preserve required structure, constraints, and examples from existing files. 7. Align wording and commands with active repository instructions.
Proactive issue discovery and remediation
Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md
1. Run a conflict matrix review across AGENTS/aliases/CONTRIBUTING and related command/rule docs before finalizing. 2. Treat the following as high-priority defects: missing referenced files, non-existent setup commands, command scope mismatches, and branch/commit policy conflicts. 3. Do not stop at caveat-only notes when a low-risk fix is clear; apply the fix in the same pass. 4. If a canonical entry file is missing (for example a directory README.md that docs depend on), create a minimal actionable file and update references. 5. Long-running investigations are acceptable when needed to uncover cross-file drift, especially in agent-instruction ecosystems.
Discovery
1. Agents prefer simple terminal commands so having a well defined make * or npm run * is ideal 2. Agents can discover terminal commands through shell completion so providing shell completion helps
CONTRIBUTING size and scope control
Source: https://contributing.md/how-to-build-contributing-md/ Source: https://blog.codacy.com/best-practices-to-manage-an-open-source-project Source: https://mozillascience.github.io/working-open-workshop/contributing/ Source: https://github.com/openclaw/openclaw/blob/main/CONTRIBUTING.md
1. Keep root CONTRIBUTING.md focused on setup, issue flow, PR flow, testing, and review gates. 2. Use issue/PR template links instead of embedding every process detail inline. 3. When the file grows too large, split by domain and link from root. 4. Move any large content into docs if avalible (for example Mintlify/Fern/Sphinx workflows) to avoid large contributor guide. 5. Optimize for agent/machine readability as well as humans.
Example repos to emulate
Source: https://github.com/openclaw/openclaw/blob/main/AGENTS.md Source: https://github.com/openclaw/openclaw/blob/main/CONTRIBUTING.md Source: https://github.com/openclaw/openclaw/blob/main/VISION.md Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/processing/p5.js/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md Source: https://github.com/agentsmd/agents.md/blob/main/AGENTS.md Source: https://github.com/rails/rails/blob/main/CONTRIBUTING.md Source: https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md Source: https://github.com/atom/atom/blob/master/CONTRIBUTING.md Source: https://github.com/github/docs/blob/main/CONTRIBUTING.md Source: https://github.com/facebook/react/blob/main/CONTRIBUTING.md
1. OpenClaw: strong real-world alias policy and AGENTS/CONTRIBUTING/VISION cohesion. 2. OpenAI Codex: strict command discipline and explicit scope control. 3. p5.js: explicit AI-policy guardrails in agent instructions. 4. Vercel + agentsmd spec: compact, context-efficient AGENTS patterns. 5. Rails/Kubernetes/Atom/GitHub Docs/React: contributor guidance patterns at different project scales.
Practical merge policy
When these rules conflict:
1. Preserve contributor and reader task success first. 2. Preserve instruction clarity and unambiguous boundaries second. 3. Preserve long-term maintainability and context-efficiency third. 4. Add extra agent optimization only if it does not reduce human clarity or there is explict need. 5. Use your judgement as the expert.
Build Docs Playbook
Read principles.md first, then follow this execution flow.
1. Detect and align agent instruction and governance instructions
- Use
references/agent-and-contributing.mdas the source of truth for inventory, canonical/alias mapping, and precedence/conflict handling. - Apply the symlink compatibility policy when in scope (
.agentscanonical directory with.cursorcompatibility symlink when required by tooling). - Long-running and extensive build investigations are acceptable when needed to resolve ambiguous or conflicting documentation sources.
- When available, use sub-agents for bounded parallel inventory/cross-check tasks and merge results into one canonical decision set.
- Capture required constraints before writing:
- nested-agent rules, command/test requirements, PR workflow, and style checks.
- Use the same command and validation expectations in proposed snippets and examples.
2. Inventory product documentation surfaces (not governance only)
- For repo-wide builds, include docs content surfaces in addition to AGENTS/CONTRIBUTING.
- Inventory docs files and frameworks in scope (examples):
README*.md,docs/**,**/*.md,**/*.mdx,**/*.mdc,**/*.rst,**/*.rsc, Fern/Mintlify config, Sphinxconf.py. - Build a coverage map before drafting so governance and product docs are both represented.
- If scope is ambiguous, default to broader docs discovery first, then narrow intentionally.
3. Framework config and path mapping rules
- Detect framework/config first (for example Fern config, Sphinx
conf.py, Mintlify config, or equivalent). - Resolve every referenced path relative to the file/config that declares it, not assumed repo root.
- Treat filesystem paths and published URL routes as separate mappings; do not infer one from the other without config evidence.
- Validate both layers:
- config -> file exists on disk
- config/nav/routing -> URL path is consistent and reachable
- Record path-mapping assumptions and mismatches in handoff (
missing file,stale route,wrong base path).
4. Define intent and success
- Audience, prerequisites, and job-to-be-done.
- Expected reader outcome immediately after completion.
- Doc type: tutorial, how-to, reference, explanation.
- Success criteria: what must be true after publish.
5. Build structure before prose
- Follow the funnel: what/why, quickstart, next steps.
- Keep headings informative and scannable.
- Open each section with the takeaway sentence.
- Add decision points with concrete branch guidance.
- For OpenClaw docs work, choose a page type from
references/openclaw.mdbefore drafting. - Keep task-critical OpenClaw configuration inline; link exhaustive defaults, enums, schemas, generated references, and rare debugging workflows.
6. Build AGENTS.md and CONTRIBUTING.md intentionally
- Keep AGENTS.md structure consistent with
agents.mdecosystem patterns: - include YAML frontmatter when present in repo style (
name,description). - state persona scope and explicit instruction boundaries:
Always,Ask first,Never. - include concrete commands and representative code examples.
- For CONTRIBUTING.md, prioritize issue triage flow, PR expectations, setup/test commands, and review gates.
- Add
Code of Conduct,Testing,Local checks, andPR expectationssections when missing but required by the repo. - If CONTRIBUTING.md is becoming too large, split by scope into linked docs (for example, framework/tool-specific setup and release workflows) and keep the root file as a concise entry point.
- Keep cross-file consistency: links from CONTRIBUTING.md to AGENTS.md (and vice versa) should be accurate and non-circular.
- If multiple AGENTS.md files exist, document the directory-level scope and avoid conflicting advice.
- If a required canonical entry file is missing (for example referenced
README.mdunder a major directory), create the file in the same pass instead of adding a caveat-only note. - For new entry files, keep them minimal and actionable: purpose, prerequisites, concrete run commands, and pointers to deeper docs.
7. Keep agent context tight
- Author once, expose twice:
- keep one shared policy core and avoid duplicating guidance in separate agent-specific files.
- publish that core through bounded glob-friendly files for Cursor/Claude plus explicit path references for Codex.
- For Cursor and Claude-style agents, avoid broad references. Use minimal globbing and narrow rule files that each serve one concern (for example, repo-wide setup, test rules, security checks).
- Keep AGENTS and alias files short-to-medium; move detailed runbooks to linked docs.
- For Codex, prefer explicit file references and concrete paths for exact reuse.
- Avoid adding unrelated historical or process details to avoid token/context drift during future tool reads.
8. Brownfield build mode
- Match existing terminology, navigation, and component patterns.
- Preserve existing IA unless there is a documented migration plan.
- For rewrites, include a migration note from old to new paths.
- Prefer smallest safe change set that improves utility.
9. Evergreen build mode
- Prefer stable concepts over release-tied narrative.
- Isolate volatile details under clearly marked version sections.
- Include maintenance signals: owners, refresh triggers, stale criteria.
- Include lifecycle notes: deprecation and replacement paths.
10. Writing constraints
- Use precise language and short, imperative instructions.
- Keep code examples copy-ready and self-contained.
- Include common failure modes and safe defaults.
- Avoid placeholder guidance that cannot be executed.
11. Agent and automation readiness
- Keep key facts in text (not image-only).
- Prefer structured lists/tables when choices matter.
- Add links and anchors that allow deterministic navigation.
- Document what can be checked automatically in CI.
12. Build validation
- Validate commands and snippets where possible.
- Verify links and references in changed sections.
- Run a reference existence sweep for every path/command you introduced.
- Verify docs-framework consistency when in scope (for example Sphinx/Fern config and referenced doc paths).
- For OpenClaw docs work, apply the validation checklist in
references/openclaw.md.
13. Multilingual parity mode (when applicable)
- Pick one source-of-truth language for technical accuracy and release timing.
- Define parity target: full parity, staged parity, or intentional divergence per section.
- Keep structure aligned across locales (headings, anchors, section order) when possible.
- Preserve command/code correctness first; localize explanatory text second.
- If parity is not feasible, add a visible note with missing scope and expected sync window.
- Run a locale parity check for changed sections (added/removed steps, warnings, prerequisites).
- Record unresolved checks explicitly in handoff.
OpenClaw Documentation Overlay
Use this reference only for OpenClaw docs work. It layers OpenClaw-specific page types, navigation, preservation, and validation rules on top of the general technical-documentation skill.
Reader Model
- Lead with the task the reader is trying to complete.
- Give one recommended path before alternatives.
- Keep main docs focused on the common path; move dense contracts and rare
debugging detail to linked reference or troubleshooting pages.
- Explain production risks exactly where the reader can make the mistake.
- Link concepts, guides, references, CLI pages, SDK docs, testing, and
troubleshooting so readers can continue without rereading.
Page Types
Choose the page type before writing or reviewing:
- Overview: route readers to the right product area, integration path, or guide.
- Quickstart: get a new user to a working result with the fewest safe steps.
- Topic page: explain a major OpenClaw entity or surface end to end.
- Guide: walk through one workflow from prerequisites to production readiness.
- API/SDK/CLI reference: define every object, method, command, option, response,
error, enum, default, and version rule in scope.
- Testing guide: show sandbox setup, fixtures, simulated failures, and live-mode
differences.
- Troubleshooting guide: map observable symptoms to checks, causes, and fixes.
- Governance file: keep agent/contributor policy concrete, scoped, and aligned
with current OpenClaw repo behavior.
Topic Pages
Use this shape for major-entity pages:
1. Title naming the entity or surface. 2. Unheaded opening that says what it is, what it owns, and what it does not own. 3. Requirements, only when setup needs accounts, versions, permissions, plugins, operating systems, or credentials. 4. Quickstart with the recommended path and smallest reliable verification. 5. Configuration with task-critical options inline and exhaustive details linked to reference docs. 6. Major subtopics organized by reader intent, not under a generic "Subtopics" heading. 7. Troubleshooting with observable failures and concrete checks. 8. Related links to guides, references, commands, concepts, and adjacent topics.
Guides
Use this shape for workflow pages:
1. Title naming the outcome, not the implementation detail. 2. Opening that states what the reader can accomplish. 3. Before you begin: accounts, keys, permissions, versions, tools, and assumptions. 4. Choose a path, only when the reader must decide. 5. Steps with verb-led headings, commands, expected output, and checks. 6. Test with the smallest reliable proof that the workflow works. 7. Production readiness: security, retries, limits, observability, migrations, and cleanup. 8. Troubleshooting near the workflow that causes the failures. 9. See also links to concepts, references, SDK docs, and adjacent guides.
Docs IA And Navigation
- Read
docs/docs.jsonbefore navigation changes. - Keep topic pages and common workflows on the main reader path.
- Put exhaustive contracts, generated references, maintainer-only detail, and
support material under Reference or another clearly scoped support page.
- Keep generated
plugins/reference/*children and redirect-only pages out of
visible navigation unless explicitly required.
- For moved pages, include a keep/drop/move/destination matrix in the handoff.
- Add "Read when" hints for docs-list routing when creating or changing pages
that participate in the docs index.
Source-Backed Content
- CLI docs must match current flags, output, errors, and examples.
- API/SDK docs must include fields, defaults, enum values, constraints, nullable
behavior, lifecycle states, errors, and recovery guidance.
- Config docs must align exported types, schema/help output, metadata, baselines,
and current docs.
- Dependency-backed behavior must be verified from upstream docs, source, or
types before documenting defaults, timing, errors, or API behavior.
- Separate current behavior, shipped behavior, planned behavior, and maintainer
intent.
Examples
- Prefer complete copy-pasteable commands and snippets.
- Use realistic variable names and values.
- Mark placeholders with angle-bracket names such as
<API_KEY>. - Show expected success output when it helps verification.
- Keep one conceptual unit per code block and use language-specific fences.
- Avoid examples that hide setup, auth, error handling, or cleanup.
- Never expose real secrets, live config, phone numbers, private videos, or
credentials.
Preservation Reviews
For rewrites or splits:
- Identify source units before rewriting: headings, paragraphs, tables, examples,
CLI/API contracts, warnings, and troubleshooting facts.
- Map each retained unit to a destination page or section.
- Do not treat a broad "covered" row as proof for dense source material; use
line- or claim-level evidence when the source unit is dense.
- For dropped content, state whether it is obsolete, duplicated elsewhere,
unsupported, or moved to a reference/support page.
- When a docs-audit artifact is used, verify it is mapped audit data with
non-empty mappings[], not only inventory or reindexed JSON.
Validation
Choose the narrowest proof that covers the touched surface:
pnpm docs:listpnpm docs:check-mdxpnpm docs:check-linkspnpm docs:check-i18n-glossarypnpm format:docs:checkorpnpm lint:docsgit diff --check- generated-doc or inventory checks when generated references, plugin catalogs,
labeler, or docs scripts changed
- behavior tests or command probes when docs claim runtime behavior
If proof is blocked, say exactly which command was not run and why.
Documentation Principles
This reference consolidates the core rules used by this skill.
Matt Palmer: 8 rules for better docs
Source: https://mattpalmer.io/posts/2025/10/8-rules-for-better-docs/
Use these as default operating principles:
1. Write for humans, optimize for agents. 2. Start with a funnel: what/why, quickstart, next steps. 3. Use Diataxis to scaffold content. 4. Write with AI, but structure for agents. 5. Offload routine docs operations to background agents. 6. Automate quality with CI. 7. Automate scaffolding and repetitive workflow tasks. 8. Make contribution easy and visible.
OpenAI cookbook: what makes documentation good
Source: https://cookbook.openai.com/articles/what_makes_documentation_good
Key quality constraints:
- Prefer specific and accurate terminology over niche jargon.
- Keep examples self-contained and minimize dependencies.
- Prioritize high-value topics over edge-case depth.
- Do not teach unsafe patterns (for example, exposed secrets).
- Open with context that helps readers orient quickly.
- Apply empathy and override rigid rules when it clearly improves outcomes.
Practical merge policy
When these rules conflict:
1. Preserve reader task success first. 2. Preserve structural clarity second. 3. Preserve long-term maintainability third. 4. Add agent optimization only if it does not reduce human clarity.
For agent-instructions and contributor-governance specifics (AGENTS/aliases/CONTRIBUTING), use references/agent-and-contributing.md as the detailed additional source of truth.
When the target repo or request is OpenClaw-specific, layer references/openclaw.md on top of these general rules. Otherwise ignore that repo-specific overlay.
Execution policy for this skill
- Long-running and extensive investigations are allowed for both build and review work when needed to resolve ambiguity or cross-file drift.
- Use sub-agents when available for bounded parallel discovery, verification, or cross-source comparison.
- Keep one merged outcome: sub-agent outputs must be normalized into a single consistent recommendation/fix set.
Multilingual parity rule
When docs exist in multiple languages, target cross-locale parity for task-critical content (steps, warnings, prerequisites, and limits). If full parity is not possible, publish explicit parity status and sync intent.
Review Docs Playbook
Read principles.md first, then apply this checklist.
1. Scope and classification
- Identify doc type and target audience.
- Confirm brownfield vs evergreen intent.
- Confirm expected outcome for the reader.
- For full-repo reviews, explicitly include both governance surfaces and product-doc surfaces (
docs/, README trees,.md/.mdx/.mdc,.rst/.rsc, framework docs configs). - For OpenClaw docs reviews, apply
references/openclaw.mdfor page type, docs IA, preservation, examples, and validation checks.
2. Investigation behavior
- Proactively find issues and risks without waiting for repeated prompts.
- If there are signals of deeper problems, continue investigation beyond the first pass.
- Long-running and extensive investigations are acceptable when needed for confidence and correctness.
- When available, use sub-agents for bounded parallel discovery (for example file-inventory, command validation, or cross-doc consistency checks), then merge to one final issue set.
- When no issues are found, state that explicitly and call out residual risks or validation gaps.
- Default to
apply-fixesfor high-confidence documentation defects unless the user explicitly requestsreport-only. - Do not stop at AGENTS/CONTRIBUTING checks when the task is documentation-wide; continue into docs-content and docs-framework surfaces.
3. Governance surface review
- Use
references/agent-and-contributing.mdas the source of truth for inventory, canonical/alias mapping, and precedence/conflict handling.
For AGENTS.md:
- confirm persona intent, scope, and command/tool boundaries are explicit.
- check frontmatter style matches repo conventions when present.
- ensure
Always,Ask first, andNeverboundaries are present when expected. - require concrete command examples and repo-specific paths to avoid ambiguity.
For CONTRIBUTING.md:
- verify issue/PR workflow is complete and actionable.
- ensure local setup, lint/test commands, and review criteria are accurate.
- ensure governance does not conflict with nested AGENTS instructions.
- flag oversized files that should be split into linked section docs (for example tool-specific setup and release docs).
For agent-platform awareness:
- confirm references are minimal and scoped for Cursor/Claude glob behavior.
- confirm Codex-facing guidance uses explicit file references.
- confirm both surfaces represent the same shared policy core (commands, boundaries, and precedence), not divergent guidance.
- audit
.agents/.cursorcompatibility behavior: - verify canonical rule directory and symlink state match repo policy
- verify symlink target integrity and platform/tooling expectations
- verify AGENTS policy references remain canonical for Codex even when
.cursorcompatibility exists - check for context bloat from duplicated policy statements across agent and contributor files.
- check for conflicting rules, skills and agent instructions
- check for conflicting information in agent instructions vs codebase
- check for broken or missing referenced files (for example README/index files named as canonical entry points).
- check for setup/command drift (for example non-existent install commands, root-level commands that should be module-scoped).
4. Product documentation surface review
- Verify docs IA coverage across root/module
README*files anddocs/**trees. - Review framework-native docs sources in scope (for example Fern, Mintlify, Sphinx, MkDocs) and ensure guidance matches actual source-of-truth files.
- Check
.md/.mdx/.mdc/.rst/.rscfor stale commands, missing prerequisites, and broken cross-links. - Confirm referenced doc paths and anchors exist.
- Flag docs that should be split/merged to improve discoverability and maintenance.
- For OpenClaw docs, check
docs/docs.json, docs-list routing hints, main path versusReferenceplacement, and generated-reference visibility. - For OpenClaw rewrites or page splits, require source-backed keep/drop/move/destination coverage for important claims, warnings, examples, commands, fields, and troubleshooting facts.
5. Framework config and path mapping checks
- Detect and read framework config first (for example Fern config, Sphinx
conf.py, Mintlify config, or equivalent). - Resolve path references relative to the declaring file/config.
- Treat filesystem paths and published URL routes as separate maps; verify both.
- Flag path-map drift explicitly (
missing file,stale route,wrong base path).
6. Structural review
- Funnel check: what/why, quickstart, next steps.
- Validate heading flow and navigation discoverability.
- Flag critical content trapped in images or buried sections.
- Check Diataxis alignment and split mixed-purpose sections.
- For OpenClaw docs, confirm the content matches an explicit page type from
references/openclaw.md.
7. Writing quality review
- Check for concise, scannable paragraphs.
- Remove ambiguous pronouns and undefined terms.
- Verify examples are executable and scoped correctly.
- Verify tone is directive, technical, and non-hand-wavy.
8. Brownfield review mode
- Verify compatibility with existing docs IA and conventions.
- Verify anchors, redirects, and cross-doc links remain valid.
- Flag regressions in onboarding and task completion paths.
- Ensure changed terminology is intentionally propagated.
9. Evergreen review mode
- Flag date-stamped or brittle wording without version scope.
- Check ownership and refresh signals are present.
- Ensure recommendations remain valid after routine product evolution.
- Flag missing deprecation/migration guidance.
10. Tooling and platform review
Read tooling.md if platform fit is uncertain.
- Check whether content uses platform primitives effectively.
- Flag structure that fights the chosen docs platform.
- Recommend targeted platform-aware improvements.
11. Multilingual parity review (when applicable)
- Confirm declared source-of-truth language and expected parity policy.
- Compare changed sections across locales for step/order/warning drift.
- Flag missing updates to prerequisites, version notes, limits, and safety guidance.
- Allow intentional divergence only when rationale is explicit and user-impact is low.
- Require a reader-visible status note when locale parity is partial.
12. Output format
1. Blocking issues (file + required fix) 2. Non-blocking improvements 3. Validation notes (done vs pending)
Documentation Tooling Guide
Source: https://www.mintlify.com/blog/top-7-api-documentation-tools-of-2025
Use this file when deciding build/review expectations for doc platforms.
Tool-selection checkpoints
- Existing stack lock-in: do not force migration for minor gains.
- API workflow depth: generated references, OpenAPI support, testability.
- Collaboration model: docs-as-code, review workflow, versioning.
- Runtime quality: search, navigation, and copy-ready code snippets.
- AI readiness: structured content, stable URLs, machine-friendly layout yet human readable.
- Human readiness: reading complexity, reading UX, navigation depth, minimize jargon.
Apply in brownfield mode
- Prioritize compatibility with the current platform.
- Use available components and style conventions before introducing new patterns.
- Propose migration only when current constraints block critical outcomes.
Apply in evergreen mode
- Favor platforms and templates that make routine updates low-friction.
- Standardize section templates to reduce drift.
- Capture ownership, update cadence, and stale-content detection rules.
Review implications
- Check whether content uses platform primitives correctly (tabs, callouts, endpoint blocks).
- Flag docs that are technically correct but hard to scan in the chosen platform.
- Recommend platform-specific improvements only when they reduce cognitive load.