Docs Workflows
OAT’s docs workflow combines deterministic CLI helpers with higher-judgment skills for analysis and controlled updates.
Install the workflow skills with oat tools install docs (preferred) or
oat init tools docs before using the analyze/apply flow in a new repo.
Docs workflow pieces
CLI helpers
oat docs initscaffolds a docs app (Fumadocs or MkDocs)oat docs migrateconverts MkDocs admonitions to GFM callouts and injects frontmatteroat docs generate-indexgenerates a Fumadocs app-root docs index manifest from the Markdown file treeoat docs nav syncregenerates MkDocsmkdocs.ymlnav fromindex.md## Contentssectionsoat docs analyzeandoat docs applyexpose the workflow surface in CLI help
Skills
authoring-docsis the provider-agnostic baseline for evidence-first technical documentation: page types, information architecture, category guidance, templates, and review rubricsoat-docs-authoringlayers the OAT/Fumadocs docs-app contract on top ofauthoring-docsfor targeted authoring, restructuring, link repair, and local navigation maintenance inside an existing OAT docs appoat-docs-bootstrapis the guided onramp for adding a docs app to a repo — wrapsoat docs initwith preflight detection, richer input gathering (site name distinct from package name), labeled post-patches for open CLI gaps, build verification, config inspection, and an educational walkthroughoat-docs-analyzeevaluates a docs surface for structure, drift, coverage, contributor guidance, and docs-app contract issues, then runs the shared auto artifact-review loop to verify the generated analysis artifact's evidence, severities, and recommendationsoat-docs-applyconsumes the analysis artifact and applies only approved, evidence-backed recommendationsoat-project-documentperforms post-implementation docs sync for a tracked project, including finding missing coverage for newly shipped capability areas and recommending new docs pages or directories when existing docs do not provide a natural home. See the project lifecycle post-implementation flow for where this runs in the tracked project flow.
Contract model
The docs workflow mirrors the agent-instructions analyze/apply split:
- Analyze owns discovery, evidence gathering, confidence, and disclosure decisions
- Analyze also owns accuracy verification of the generated analysis artifact through the shared auto artifact-review loop before the apply workflow consumes it
- Apply consumes the artifact, asks for approval, and must not invent new docs conventions
This keeps deterministic behavior in the CLI and judgment-heavy behavior in the skills.
Typical flow
- Bootstrap a docs app with
oat-docs-bootstrap(preferred — guided, includes post-scaffold patches and walkthrough) oroat docs initdirectly (CLI-only / non-interactive workflows) - (Optional) If migrating from MkDocs, handle that as a separate migration workstream;
oat docs migrate --docs-dir docs --config mkdocs.yml --applyis only the syntax/frontmatter helper - Use
oat-docs-authoringfor targeted OAT/Fumadocs authoring work, withauthoring-docsas the universal documentation-quality baseline - Author docs so every directory has an
index.mdwith a## Contentssection - Keep local
## Contentssections current - Refresh generated artifacts:
- MkDocs:
oat docs nav sync - Fumadocs:
oat docs generate-index(runs automatically viapredev/prebuildhooks)
- MkDocs:
- Run
oat-docs-analyze; by default it verifies the generated analysis artifact throughworkflow.autoArtifactReview.analysis - Review the artifact and run
oat-docs-apply
Progressive disclosure
The docs workflow expects local indexes to guide discovery without forcing agents to open every page.
- keep local topic summaries in
index.md - link to deeper setup/config/reference material when full detail is not needed inline
- let the analysis artifact decide what should be inline, link-only, omitted, or escalated to the user