name: docs-automation description: "Automate docs updates and command documentation generation. Use for generate-command-docs, enhance-command-docs, sidebar generation, and VitePress build checks." argument-hint: "Doc scope + intent (e.g., update command docs for data-sync, regenerate sidebar)" user-invocable: true
Docs Automation Skill
Use this skill for documentation generation and maintenance tasks.
When to Use
- Regenerating command documentation in
docs/02-commands/ - Enhancing command docs after generation
- Updating or regenerating the VitePress sidebar
- Validating doc builds and link consistency
Procedure
- Identify the docs scope (all commands vs specific folders).
- Run the relevant automation scripts:
scripts/generate-command-docs.jsscripts/enhance-command-docs.jsscripts/populate-command-docs.jsscripts/generate-sidebar-config.jsorscripts/generate-sidebar-config-fixed.js
- Spot-check updated markdown for formatting and taxonomy alignment.
- If needed, run
vitepress build docsto validate the output.
Notes
- Follow the command documentation instructions for
docs/02-commands/. - Preserve existing category names and ordering in the sidebar.
- Use existing scripts rather than manual edits whenever possible.