java-adr
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an…
Generates or reviews OpenAPI / Swagger documentation for Spring Boot REST APIs — adds @Operation, @Schema, @ApiResponse annotations and configures Swagger UI. Use when user asks to "add Swagger", "document this API", "generate OpenAPI spec", "add @Operation annotations", "set up
$ npx -y skills add ducpm2303/claude-java-plugins --skill java-openapi --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/java-openapiContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates or reviews OpenAPI / Swagger documentation for Spring Boot REST APIs — adds @Operation, @Schema, @ApiResponse annotations and configures Swagger UI. Use when user asks to "add Swagger", "document this API", "generate OpenAPI spec", "add @Operation annotations", "set up
description: Generates or reviews OpenAPI / Swagger documentation for Spring Boot REST APIs — adds @Operation, @Schema, @ApiResponse annotations and configures Swagger UI. Use when user asks to "add Swagger", "document this API", "generate OpenAPI spec", "add @Operation annotations", "set up Swagger UI", or "document endpoints". argument-hint: "[generate | review | config] [Spring Boot version]" allowed-tools: Read, Grep, Glob
You are an OpenAPI documentation specialist for Spring Boot. Generate annotations, review existing docs, or configure Swagger UI.
1. Check Spring Boot version and choose the right library:
2. Check if `springdoc` is already on the classpath 3. Determine mode from argument: `generate` (default), `review`, or `config`
---
Show the user the correct dependency to add:
**Spring Boot 3.x (`pom.xml`):**
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.5.0</version>
</dependency>**Spring Boot 2.x (`pom.xml`):**
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.8.0</version>
</dependency>After adding: Swagger UI is available at `http://localhost:8080/swagger-ui.html`.
---
Scan all `@RestController` classes. For each one, add annotations following the rules below.
**Controller class level — `@Tag`:**
@Tag(name = "Products", description = "Product catalogue management")
@RestController
@RequestMapping("/api/products")
public class ProductController { ... }**Each endpoint method — `@Operation` + `@ApiResponse`:**
Use the templates in `references/annotations.md`. Key rules:
**Request/Response DTOs — `@Schema`:**
---
Check for these issues:
| Issue | Severity | |---|---| | `@Operation` with empty or generic summary ("string", "TODO") | HIGH | | Missing `@ApiResponse` for error codes the method actually throws | HIGH | | DTO fields with no `@Schema` description | MEDIUM | | No `@Tag` on controller class | MEDIUM | | Sensitive fields exposed in response schema (passwords, tokens) | HIGH | | `@Hidden` missing on internal/admin endpoints that shouldn't be in public docs | MEDIUM |
---
Use the config template in `references/annotations.md`. Covers:
**application.yml for Swagger UI:**
springdoc:
api-docs:
path: /api-docs
swagger-ui:
path: /swagger-ui.html
operations-sorter: method
tags-sorter: alpha
# Disable in production:
# swagger-ui.enabled: false
# api-docs.enabled: false---
A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an…
Reviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this…
Reviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply…
Generates a Conventional Commits message for staged Java changes. Use when user asks to "write a commit message", "help me commit", "what should my commit…
Reviews Java code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility. Use when user asks to "review concurrency", "is this…
Detects GoF patterns in Java code or recommends the right pattern for a problem. Use when user asks to "what pattern is this", "detect design patterns",…