.agents/skills/docs/SKILL.md
Use this skill for maintainer-facing guide work in Micronaut framework repositories. Do not default to end-user application documentation advice.
Implement source-backed documentation changes in src/main/docs/guide, keep toc.yml and content in sync, and validate with the Gradle docs pipeline used across micronaut-projects modules.
toc.yml and .adoc updates in lockstep.publishGuide and docs outputs.src/main/docs/guide/toc.yml first.src/main/docs/guide/**/*.adoc.doc-examples/ (if present) and plan snippet tags from executable sources.src/main/docs/resources/img/.CONTRIBUTING.md:
./gradlew publishGuide (or ./gradlew pG) for guide assembly../gradlew docs for guide + API docs assembly.toc.yml and files in lockstepTreat src/main/docs/guide/toc.yml as navigation source of truth.
Rules:
toc.yml.toc.yml entry must resolve to a real .adoc path.Example nested pattern:
controlPanels:
title: Available Control Panels
builtIn: Built-in
management: Management
This maps to:
src/main/docs/guide/controlPanels.adocsrc/main/docs/guide/controlPanels/builtIn.adocsrc/main/docs/guide/controlPanels/management.adocUse docs macros registered by micronaut-build (DocsExtensionRegistry) and maintained for framework guides.
Preferred mapping:
| Need | Preferred pattern |
|---|---|
| Dependency instructions | dependency:group:artifact[scope=...] |
| Source sample synchronized with test suites | snippet::path/to/File.ext[tags=...] |
| Multi-format configuration snippets | [configuration] listing blocks |
| Configuration properties reference | include::{includedir}configurationProperties/<fqcn>.adoc[] |
| Shell commands | [source,bash] blocks |
| Repository/release links | https://github.com/{githubSlug} and /releases links |
Guardrails:
dependency: is suitable.MICRONAUT_ENVIRONMENTS=dev).micronaut-docs provides AsciiDocPropertyReferenceWriter, which generates AsciiDoc property fragments from configuration metadata.{includedir}configurationProperties/... includes.See references/micronaut-docs-providers.md for confirmed provider/macro details and source locations.
From repository root, run:
./gradlew publishGuide
./gradlew docs
Validation checklist:
0.build/docs/.If publishGuide passes but docs fails, fix the failing stage and rerun both commands.
When finishing docs work, report:
.adoc, toc.yml, docs resources).dependency:, snippet::, [configuration], generated property includes).toc.yml and .adoc changes are consistent.publishGuide and docs executed successfully.build/docs/.references/micronaut-docs-providers.mdreferences/control-panel-patterns.mdCONTRIBUTING.mdsrc/main/docs/guide/toc.yml