Documentation Automation
Use this skill when documentation quality should be enforced by scripts, CI, or local hooks instead of manual review alone.
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
Activation Conditions
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
- Adding
docs:* scripts to a project
- Setting up markdownlint, cspell, lychee, or remark-lint
- Generating API docs from source comments
- Adding pre-commit or CI validation for docs
- Standardizing documentation checks across repositories
Automation Targets
- Build generated API docs
- Lint Markdown structure and style
- Check internal and external links
- Validate code examples and commands
- Enforce changelog or README updates when behavior changes
Recommended Pipeline
- Add local commands that can run without CI.
- Make CI call the same commands.
- Keep failure output actionable and fast.
- Prefer incremental checks in pre-commit and fuller checks in CI.
Documentation Stack Reference
Inherit the shared stack from documentation-patterns: source-of-truth discovery, audience framing, structure selection, verification, and freshness checks. Keep this skill focused on automation pipelines instead of restating the full stack.
Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/documentation-automation and restart Codex after major changes.
MCP Availability And Fallback
Preferred MCP Server: None required
- Fallback prompt: "Use the Documentation Automation skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
- Do not claim an MCP operation was used when the active host does not expose it.
- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
Anti-Patterns
- Writing for the author instead of the reader: It bakes in unstated context and leaves the actual audience unsure what to do next.
- Skipping concrete examples or commands: Abstract guidance is easy to approve and hard to apply correctly.
- Letting links, screenshots, or versions drift: Polished formatting does not help if the instructions are no longer true.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Documentation Automation output identifies audience, purpose, source of truth, and freshness requirements.
- Pass/fail: Shared documentation-stack guidance is referenced instead of duplicating another documentation skill.
- Pass/fail: Claims, links, commands, examples, and screenshots are verified or explicitly marked unverified.
- Pressure-test scenario: Apply the skill to a doc request with a stale command, missing owner, and conflicting audience.
- Success metric: Zero undocumented assumptions; every reader-facing claim is sourced or scoped.
References & Resources
Documentation
- Automated Tools - Current doc tooling options by language and validation task
Scripts
Related Skills
1---2name: documentation-automation3description: Automate doc generation with JSDoc/TSDoc, linters, and pre-commit hooks. Use when setting up markdownlint, configuring doc linting pipelines, integrating JSDoc/TSDoc, or building automated documentation workflows.4---5# Documentation Automation
6
7Use this skill when documentation quality should be enforced by scripts, CI, or local hooks instead of manual review alone.
8
9- Leverage native parallel subagent dispatch and 200k+ context windows where available.
10
11
12## Activation Conditions
13
14Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
15
16- Adding `docs:*` scripts to a project
17- Setting up markdownlint, cspell, lychee, or remark-lint
18- Generating API docs from source comments
19- Adding pre-commit or CI validation for docs
20- Standardizing documentation checks across repositories
21
22## Automation Targets
23
24- Build generated API docs
25- Lint Markdown structure and style
26- Check internal and external links
27- Validate code examples and commands
28- Enforce changelog or README updates when behavior changes
29
30## Recommended Pipeline
31
321. Add local commands that can run without CI.
332. Make CI call the same commands.
343. Keep failure output actionable and fast.
354. Prefer incremental checks in pre-commit and fuller checks in CI.
36
37## Documentation Stack Reference
38
39Inherit the shared stack from [documentation-patterns](../documentation-patterns/SKILL.md#shared-documentation-stack): source-of-truth discovery, audience framing, structure selection, verification, and freshness checks. Keep this skill focused on automation pipelines instead of restating the full stack.
40
41<!-- MCP:START -->
42
43<!-- PORTABILITY:START -->
44## Cross-Client Portability
45
46This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
47
48- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
49 workflow in project instructions when folder discovery is unavailable.
50- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
51- Codex: install or sync the folder into
52 `$CODEX_HOME/skills/documentation-automation` and restart Codex after major changes.
53
54<!-- PORTABILITY:END -->
55
56## MCP Availability And Fallback
57
58Preferred MCP Server: None required
59
60- Fallback prompt: "Use the Documentation Automation skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
61- Do not claim an MCP operation was used when the active host does not expose it.
62- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
63
64<!-- MCP:END -->
65
66## Anti-Patterns
67
68- Writing for the author instead of the reader: It bakes in unstated context and leaves the actual audience unsure what to do next.
69- Skipping concrete examples or commands: Abstract guidance is easy to approve and hard to apply correctly.
70- Letting links, screenshots, or versions drift: Polished formatting does not help if the instructions are no longer true.
71
72## Verification Protocol
73
74Before claiming "skill applied successfully":
75
761. Pass/fail: The Documentation Automation output identifies audience, purpose, source of truth, and freshness requirements.
772. Pass/fail: Shared documentation-stack guidance is referenced instead of duplicating another documentation skill.
783. Pass/fail: Claims, links, commands, examples, and screenshots are verified or explicitly marked unverified.
794. Pressure-test scenario: Apply the skill to a doc request with a stale command, missing owner, and conflicting audience.
805. Success metric: Zero undocumented assumptions; every reader-facing claim is sourced or scoped.
81
82## References & Resources
83
84### Documentation
85- [Automated Tools](./references/tools.md) - Current doc tooling options by language and validation task
86
87### Scripts
88- [Docs Pipeline Scaffold](./scripts/docs-pipeline-scaffold.py) - Print starter `docs:*` scripts and a CI checklist for Node or Python projects
89
90## Related Skills
91
92- [documentation-authoring](../documentation-authoring/SKILL.md): Use it when the workflow also needs drafting structured technical or product documents.
93- [documentation-patterns](../documentation-patterns/SKILL.md): Use it when the workflow also needs reusable documentation structures and templates.
94- [documentation-quality](../documentation-quality/SKILL.md): Use it when the workflow also needs documentation review standards and quality gates.
95- [documentation-verification](../documentation-verification/SKILL.md): Use it when the workflow also needs final documentation validation before publishing.