com um clique
spring-controller
// Generate a Spring REST controller for a named entity with CRUD endpoints, validation, OpenAPI documentation, and integration tests. Invoke as /spring-controller <Entity>.
// Generate a Spring REST controller for a named entity with CRUD endpoints, validation, OpenAPI documentation, and integration tests. Invoke as /spring-controller <Entity>.
System diagnostics via osquery. Use when the user asks about CPU usage, memory consumption, running processes, network connections, system health, or anything resembling "why is my computer slow", "what's hammering my CPU", "what's using memory", "fan is running hot", "what processes are running", "what's on the network".
Update Java code to modern language features — records, switch expressions, pattern matching, virtual threads, sealed classes, text blocks, and current collection idioms. Triggers on Java source files.
Generate a CODEBASE.md architecture overview and a Slidev PRESENTATION.md for new team members. Use for unfamiliar projects where someone needs to come up to speed quickly.
Read-only security audit of code for SQL injection, XSS, auth/authz flaws, input validation gaps, sensitive data exposure, and insecure cryptography. Surfaces findings without modifying code.
Generate a Spring Boot service class for a named entity with constructor injection, logging, exception handling, and unit tests. Invoke as /spring-service <Entity>.
Generate comprehensive, professional API documentation following industry best practices
| name | spring-controller |
| description | Generate a Spring REST controller for a named entity with CRUD endpoints, validation, OpenAPI documentation, and integration tests. Invoke as /spring-controller <Entity>. |
| paths | ["**/*.java","pom.xml","build.gradle*"] |
| user-invocable | true |
Generate a $ARGUMENTSController with the following:
@RestController and @RequestMapping("/api/$ARGUMENTS") (lowercased plural)GET /api/$ARGUMENTS — list (with pagination params)GET /api/$ARGUMENTS/{id} — fetch one (404 on miss)POST /api/$ARGUMENTS — create (201 + Location header)PUT /api/$ARGUMENTS/{id} — update (200 or 404)DELETE /api/$ARGUMENTS/{id} — delete (204)$ARGUMENTS (don't expose the JPA entity directly)@Valid + Jakarta validation annotations on the request DTOs@Operation, @ApiResponses)@SpringBootTest + MockMvc covering happy path, validation failure, and 404@Autowired)@ControllerAdvice is presentUsage: /spring-controller User → UserController, UserRequest, UserResponse, UserControllerIntegrationTest