/java-core:java-api-review [paste controller or API code]from java-core
Reviews Java REST API design for HTTP method correctness, status codes, URL naming, and versioning. Useful when reviewing API endpoints or controllers.
Ships in java-core. 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.
Review the REST API design of the provided Java controller or endpoint code. Detect Spring Boot version from pom.xml to tailor advice.
GET must be idempotent and return 200 OK (or 404 if not found) — never 201POST for creation → return 201 Created with Location header pointing to the new resourcePUT for full replacement → 200 OK or 204 No ContentPATCH for partial update → 200 OK with updated resource or 204 No ContentDELETE → 204 No Content (not 200 with body)200 OK with null body when resource not found → must be 404200 OK for all errors → each error needs an appropriate 4xx/5xx code/users not /user, /orders not /getOrders/user-profiles not /userProfiles/getUser, /createOrder, /deleteItem → use HTTP method instead/users/{userId}/orders — max 2 levels deep; beyond that use query params/api/v1/users inconsistency — version should be consistent across all endpoints@Entity) directly → use DTOs@Valid on @RequestBody parameters → no input validation@RequestBody Map<String, Object> → use typed DTOs insteadPageableRecommend a consistent error response format:
{
"timestamp": "2024-01-15T10:30:00Z",
"status": 400,
"error": "Validation Failed",
"message": "name must not be blank",
"path": "/api/users"
}
Flag endpoints returning plain strings or stack traces as error responses.
/api/v1/) or header versioning@PreAuthorize or security config that should be protected@CrossOrigin(origins = "*") on production endpointsjava-security-reviewer agent for full OWASP review/java-test to generate controller tests with MockMvcWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-core14 skills in this plugin
/java-adr/java-adr — Architecture Decision RecordsCreates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice"./java-clean-arch/java-clean-arch — Clean / Hexagonal Architecture AdvisorReviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply clean architecture", "implement hexagonal architecture", "add ports and adapters", "apply DDD", "refactor to clean arch", "review architecture", or "add value objects"./java-commitOther plugins' skills for the same job