一键导入
docs
// Write and maintain Micronaut Framework module guides for micronaut-projects repositories. Use when users ask to add or update AsciiDoc guide sections, edit guide toc.yml, apply Micronaut docs macros, or fix docs build/publishing tasks.
// Write and maintain Micronaut Framework module guides for micronaut-projects repositories. Use when users ask to add or update AsciiDoc guide sections, edit guide toc.yml, apply Micronaut docs macros, or fix docs build/publishing tasks.
| name | docs |
| description | Write and maintain Micronaut Framework module guides for micronaut-projects repositories. Use when users ask to add or update AsciiDoc guide sections, edit guide toc.yml, apply Micronaut docs macros, or fix docs build/publishing tasks. |
| license | Apache-2.0 |
| compatibility | Micronaut framework repositories in micronaut-projects generated from micronaut-project-template |
| metadata | {"author":"Álvaro Sánchez-Mariscal","version":"1.0.0"} |
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.ymlImplement and review Java code changes for Micronaut framework repositories using maintainer standards, including JSpecify null-safety conventions. Use when users ask to add or refactor Java code, fix framework bugs, evolve internal APIs, or prepare committer-ready changes with tests and verification.
Create or update standalone Micronaut Guides in micronaut-projects/micronaut-guides, including topic discovery, guide authoring, validation, PDF export, and pull request handoff. Use for requests to create a Micronaut Guide, add a guide to micronaut-guides, author a tutorial for a Micronaut module, or prepare a guide PR with PDF.
Add, integrate, or review Micronaut Sourcegen usage in modules that generate Java source, Kotlin source, Groovy-compatible source, or bytecode from ObjectDef, TypeDef, MethodDef, ExpressionDef, StatementDef, and SourceGenerator APIs.
Refactor oversized agent instruction files into a progressive-disclosure structure. Use when users ask to split AGENTS.md/CLAUDE.md/COPILOT.md, reduce instruction bloat, or organize guidance into linked topic files.
Execute Gradle maintainer operations for Micronaut repositories using micronaut-build internals and modern Gradle best practices. Use when users ask to diagnose build failures, maintain BOM/version catalogs, manage publishing/signing, enforce binary compatibility, or debug micronaut-build plugin behavior.
Create new Agent Skills or improve existing ones in an agent-agnostic way. Use when users ask to build, refactor, validate, or package skills compatible with the Agent Skills specification and the skills CLI ecosystem.