From agents
Maintain docs across Starlight, Docusaurus, MkDocs. Sync, health checks, migrations, ADRs, runbooks. Use when docs change. NOT for backend code, skills (skill-creator), or MCP servers (mcp-creator).
npx claudepluginhub wyattowalsh/agents --plugin agentsThis skill uses the workspace's default tool permissions.
Maintain docs quality, architecture, and framework currency in project-local repositories.
data/adr-template.jsondata/docstring-formats.jsonevals/auto-dependency-version-trigger.jsonevals/autosync-headless-multiframe-safety.jsonevals/autosync-structure-config-trigger.jsonevals/enhance-advanced-components.jsonevals/explicit-auto.jsonevals/explicit-generate-adr.jsonevals/explicit-generate-api.jsonevals/explicit-init-route.jsonevals/explicit-init-sync.jsonevals/explicit-maintain-route.jsonevals/explicit-matrix-route.jsonevals/explicit-sync-route.jsonevals/framework-route.jsonevals/headless-ambiguous-routing.jsonevals/implicit-generate-trigger.jsonevals/implicit-init-sync-existing-codebase.jsonevals/implicit-trigger.jsonevals/malformed-migrate-syntax.jsonCreates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Maintain docs quality, architecture, and framework currency in project-local repositories.
Input: $ARGUMENTS — mode keywords, framework names, migration goals, or natural-language docs requests.
| Term | Meaning | NOT |
|---|---|---|
| docs framework | Primary platform rendering docs (Starlight, Docusaurus, Fumadocs, Sphinx, MkDocs) | "site generator" (too broad) |
| theme layer | Visual and component skin on top of a framework | "framework" |
| content graph | Navigation + page relationships + generated indexes | "folder list" |
| init | Non-destructive docs bootstrap in an existing repository | "reinitialize/overwrite" |
| sync | Regenerate framework artifacts from source docs state | "deploy" |
| maintain | Read-only health checks for structure, links, drift, and build integrity | "rewrite" |
| enhance | Improve existing docs clarity, structure, UX, and discoverability | "recreate" |
| matrix run | Execute workflows for all detected frameworks in one repository | "auto" |
| migration | Planned transition from one docs framework to another with parity checks | "instant convert" |
| version refresh | Update reference knowledge to latest stable framework/tool versions | "blind upgrade" |
| project-local | Skill is installed and used within the current project scope | "global install" |
Route $ARGUMENTS to mode:
$ARGUMENTS pattern | Mode | Start at |
|---|---|---|
(empty) or auto | Auto | Mode A |
framework <name> <action> (<action> ∈ `sync | enhance | maintain |
framework <name> | Framework-targeted (default action: maintain) | Mode B |
init / init <name> | Init | Mode I |
init-sync / init-sync <name> | Init+Sync | Mode I |
sync / sync <name> | Sync | Mode C |
enhance / enhance <path> | Enhance | Mode D |
maintain / maintain <name> | Maintain | Mode E |
research / research versions | Research | Mode F |
matrix | Matrix | Mode G |
migrate <from> -> <to> | Migrate | Mode H |
generate api <module> | Generate | Mode J |
generate adr <decision> | Generate | Mode J |
generate runbook <process> | Generate | Mode J |
generate onboard | Generate | Mode J |
generate glossary | Generate | Mode J |
| Natural language: "generate API docs/reference" | Generate | Mode J |
| Natural language: "create an ADR/decision record" | Generate | Mode J |
| Natural language: "write a runbook/onboarding guide" | Generate | Mode J |
Natural language: "set up <framework> docs from scratch and keep it in sync" | Init+Sync | Mode I |
| Natural language: "docs are stale/broken/outdated" | Maintain | Mode E |
| Natural language: "improve docs UX/content/nav" | Enhance | Mode D |
| Natural language: "upgrade latest framework versions" | Research | Mode F |
| Requests to build app APIs, skills, or MCP servers | Refuse | Redirect |
references/framework-detection.md.When no clarifying exchange is possible:
starlight/astro, docusaurus, fumadocs, sphinx, mkdocs.init, init-sync, sync, enhance, research, migrate) were skipped pending explicit framework selection.When user requests latest versions (explicitly or implicitly), always refresh version facts before applying changes:
references/*.md.Never claim "latest" without evidence from current registry data.
Default orchestrator mode.
Classify detected change signals before choosing a mode:
framework <name> [<action>])Supported names:
astro / starlightdocusaurusfumadocssphinxmkdocsGrammar: framework <name> [<action>], where <action> is one of sync, enhance, maintain, research, or migrate.
If <action> is omitted, default to maintain.
Run the mapped mode for the selected framework: sync -> Mode C, enhance -> Mode D, maintain -> Mode E, research -> Mode F, migrate -> Mode H.
Bring generated docs artifacts into a consistent state.
uv run wagents docs generate).docusaurus.config.*, sidebars, and docs route structure.next.config.*, fumadocs-* package setup, and MDX content tree.conf.py, extension set, and theme package alignment.mkdocs.yml, plugin stack, and nav structure.Improve docs quality without changing framework identity.
Enhancement targets:
Ask clarifying questions when enhancement direction is ambiguous ("developer docs", "marketing docs", "API docs", or "tutorial docs").
references/advanced-components.md for framework-specific syntax patterns and safe fallbacks.Read-only diagnostics and remediation planning.
Checks:
Output format:
Refresh framework/theme references to latest stable versions and advanced patterns.
Workflow:
Execute a controlled run across all detected frameworks in the repository.
Use for:
Matrix run output must keep results grouped per framework and include cross-framework conflicts.
migrate <from> -> <to>)Migration is in scope for v1.
Supported paths:
Migration phases:
Do not promise one-shot full conversion; prefer staged migration with checkpoints.
init, init <framework>, init-sync, init-sync <framework>)Bootstrap docs site wiring in an existing repository without destructive rewrites.
This mode applies to explicit init* commands and implicit "bootstrap docs + keep synced" requests in existing codebases.
Load references/init-sync-existing-repos.md plus the selected framework reference before edits.
<framework> is provided, target that framework directly.<framework> is provided and exactly one framework is detected, target the detected framework.init: bootstrap, then recommend sync and maintain follow-up.init-sync: bootstrap, then run Mode C (Sync) and Mode E (Maintain) in the same run.generate <type> [<target>])Generate technical documentation from source code. Load references/generate-mode.md for detailed procedures, output formats, and script usage.
Sub-modes:
| Command | Output | Key Script |
|---|---|---|
generate api <module> | API reference with signatures, docstrings, coverage | api-surface-extractor.py, doc-coverage-analyzer.py |
generate adr <decision> | MADR-format architecture decision record | adr-scaffolder.py |
generate runbook <process> | Operational runbook with commands from codebase | — |
generate onboard | New contributor onboarding guide | — |
generate glossary | Term definitions extracted from code and docs | — |
references/generate-mode.md.docs/api/, docs/decisions/).data/adr-template.json.data/docstring-formats.json matching the project's language and style.In scope: Docs framework operations, non-destructive docs bootstrap, version refresh, build/health diagnostics, quality enhancement, docs migrations, technical documentation generation from code.
NOT for:
Load references on demand; do not load all at once.
| File | Content | Load When |
|---|---|---|
references/framework-detection.md | Framework signal map, multi-framework routing rules | All modes |
references/advanced-components.md | Framework-specific Mermaid/codeblocks/tables/embeds patterns with safe fallbacks | sync/enhance |
references/init-sync-existing-repos.md | Non-destructive framework-aware bootstrap + follow-up sync workflows for existing repos | init/init-sync |
references/astro-starlight.md | Astro + Starlight advanced setup and checks | framework/sync/maintain/enhance |
references/docusaurus.md | Docusaurus advanced config and plugin checks | framework/sync/maintain/enhance |
references/fumadocs.md | Fumadocs + Next advanced setup and checks | framework/sync/maintain/enhance |
references/sphinx.md | Sphinx + theme matrix (Shibuya/PyData/Furo/Book) | framework/sync/maintain/enhance |
references/mkdocs.md | MkDocs + Material/plugin stack checks | framework/sync/maintain/enhance |
references/migrations.md | Migration playbooks and parity templates | migrate/matrix |
references/version-refresh.md | Latest-version refresh workflow and evidence rules | research + any latest-version request |
references/generate-mode.md | Generate sub-mode procedures, output formats, script usage | generate |
data/docstring-formats.json | Docstring format standards per language (Google, NumPy, Sphinx, JSDoc, TSDoc) | generate api |
data/adr-template.json | MADR v3 template structure and file naming conventions | generate adr |
auto mode must ask which framework to operate on each run unless explicitly overridden.