From java-spring
Scans Spring Boot @RestController/@Controller classes for REST endpoints and prints a route table with methods, paths, handlers. Notes issues like missing @Valid/auth and totals endpoints.
How this command is triggered — by the user, by Claude, or both
Slash command
/java-spring:routesThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /java-spring:routes Scan the project and print all REST API endpoints. ## Instructions 1. Find all `@RestController` and `@Controller` classes in `src/main/java/` 2. For each controller, extract: - Class-level `@RequestMapping` prefix (if any) - Method-level `@GetMapping`, `@PostMapping`, `@PutMapping`, `@DeleteMapping`, `@PatchMapping` - Method signature (parameter names and types) - Return type 3. Print a route table: 4. After the table, note any issues: - Missing `@Valid` on `@RequestBody` parameters - Methods returning `void` or raw types instead of `Response...
Scan the project and print all REST API endpoints.
Find all @RestController and @Controller classes in src/main/java/
For each controller, extract:
@RequestMapping prefix (if any)@GetMapping, @PostMapping, @PutMapping, @DeleteMapping, @PatchMappingPrint a route table:
METHOD PATH HANDLER
------ ---- -------
GET /api/products ProductController#findAll
GET /api/products/{id} ProductController#findById
POST /api/products ProductController#create
PUT /api/products/{id} ProductController#update
DELETE /api/products/{id} ProductController#delete
After the table, note any issues:
@Valid on @RequestBody parametersvoid or raw types instead of ResponseEntity<T>/admin, /actuator)Summary line: total endpoint count, controllers scanned.
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-spring/api-docsGenerates API reference docs from source code: scans routes/types/annotations, documents endpoints with params/schemas/responses/examples/auth, organizes by resource, adds operational details.
/generate-api-refGenerates API reference Markdown from source code and routes. Extracts endpoints, methods, params, schemas, auth, errors, examples for Express, FastAPI, Django, etc.
/rest-apiGenerates annotation-based ACS v1 Public REST API entity/relationship resources with model POJO, Spring registration, and unit test from requirements. In-Process Maven SDK only.
/devkit.java.generate-crudGenerates full CRUD stack for a Spring Boot domain class: domain model, service, REST controller, DTOs, JPA entity, repository, adapters, and tests. Requires domain class name.
/generate-specGenerates or updates an OpenAPI 3.0 YAML spec by analyzing API routes in Express, FastAPI, Django, NestJS, Go, Java, and Ruby codebases. Validates output and reports changes.