/micronaut-standards:openapifrom Micronaut Standards
OneLiteFeather's OpenAPI documentation convention for Micronaut REST APIs — a doc-only *Api interface per controller carrying @Operation/@ApiResponse (never routing annotations), operationId/tags naming, @ApiResponse schemas referencing the response-modeling skill's success/error records, and enabling Swagger UI/Rapidoc/OpenAPI Explorer. Use this whenever documenting a Micronaut controller endpoint. Routing annotations (@Controller, @Get/@Post/etc.) and validation triggers stay on the controller class itself — see the routing skill for those; this skill covers documentation only.
Ships in Micronaut Standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every controller has an accompanying *Api interface, in the same controller/<feature>/ package, that
carries only OpenAPI annotations. The controller implements the interface and supplies routing
(@Controller, @Get/@Post/etc. — see routing) plus the method body; the interface never routes,
it only documents.
*Api interface pattern// controller/font/FontApi.java — documentation only, no routing, no @Body/@PathVariable binding needed
public interface FontApi {
@Operation(
summary = "Get a font by ID",
operationId = "getFontById",
description = "Gets a font by ID from the database.",
tags = {"Font"}
)
@ApiResponse(
responseCode = "200",
description = "The font was successfully retrieved from the database.",
content = @Content(
mediaType = MediaType.APPLICATION_JSON,
schema = @Schema(implementation = FontModelResponseDTO.FontModelDTO.class)
)
)
@ApiResponse(
responseCode = "404",
description = "The font was not found in the database.",
content = @Content(
mediaType = MediaType.APPLICATION_JSON,
schema = @Schema(implementation = FontModelResponseDTO.FontModelErrorDTO.class)
)
)
HttpResponse<FontModelResponseDTO> getById(UUID id);
}
// controller/font/FontController.java — routing + logic, implements FontApi
@Controller("/font")
public class FontController implements FontApi {
private final FontService fontService;
@Inject
public FontController(FontService fontService) {
this.fontService = fontService;
}
@Override
@Get("/{id}")
@Produces(MediaType.APPLICATION_JSON)
public HttpResponse<FontModelResponseDTO> getById(@PathVariable UUID id) {
return fontService.findFontById(id)
.map(entity -> HttpResponse.ok((FontModelResponseDTO) FontModelResponseDTO.FontModelDTO.createDTO(entity)))
.orElseGet(() -> HttpResponse.notFound(new FontModelResponseDTO.FontModelErrorDTO("Font not found")));
}
}
Micronaut's OpenAPI annotation processor and its routing engine both read the full type hierarchy of a
controller class — annotations on an interface the class implements are picked up the same as if they
were declared directly on the class. This is what makes the split safe: @Operation/@ApiResponse on
FontApi still end up in the generated OpenAPI document, with zero duplication needed on
FontController.
operationId and tags namingoperationId: camelCase verb + noun, matching the method name (getFontById, addFont,
deleteFont) — this becomes the generated client SDK's method name in any OpenAPI-codegen consumer,
so it should read the same as the Java method it documents.tags: one tag per resource/domain ("Font", "Item"), used to group endpoints in the generated
Swagger UI — not per HTTP verb, not per module.@ApiResponse per actual status codeDocument every status code the endpoint can actually return, and only those — no blanket 200 with no
404/400 entries when the method can in fact return them. Reference the success/error records from
response-modeling in the schema = @Schema(implementation = ...) attribute, one @ApiResponse block
per status code, exactly as in the getById example above.
tasks {
compileJava {
options.forkOptions.jvmArgs = listOf(
"-Dmicronaut.openapi.views.spec=rapidoc.enabled=true,openapi-explorer.enabled=true,swagger-ui.enabled=true,swagger-ui.theme=flattop"
)
}
}
This is a recommended developer convenience (serves Swagger UI, Rapidoc, and OpenAPI Explorer from the running application in dev/staging), not something that changes the generated OpenAPI document itself.
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/configurationOneLiteFeather's convention for typed application configuration in a Micronaut REST API — one @ConfigurationProperties class per functional area in a dedicated config/ package, instead of ad-hoc properties scattered across the application entry point. Use this whenever a Micronaut backend needs a new piece of externalized configuration (a feature flag, an external service URL, a limit/threshold) and you're deciding where the corresponding Java type should live./dependency-managementOneLiteFeather's Gradle/Micronaut dependency-management conventions for REST API backends — the Micronaut Application and AOT plugins, reading the Micronaut version from gradle.properties instead of hardcoding it, the mn.* platform catalog, the private OneLiteFeather Maven repo, and the optional CycloneDX SBOM plugin. Use this whenever setting up or editing a Micronaut backend's build.gradle.kts/settings.gradle.kts. For the general OneLiteFeather Gradle/BOM mechanics that apply beyond Micronaut (private repo credential split, Java toolchain pattern), see minestom-knowledge:gradle/boms instead. For observability, database-migration, Testcontainers, and security dependencies specifically, see the observability, liquibase, testcontainers, and security skills — this skill only lists that those dependencies exist and where to look, not their coordinates; the one exception is structured-logging dependencies (Logstash encoder, OpenTelemetry MDC appender), whose coordinates live directly in this skill since `logging` covers only their usage.npx claudepluginhub onelitefeathernet/onelitefeather-claude-marketplace --plugin micronaut-standardsOther plugins' skills for the same job