spring-controller

Generate fully annotated Spring Boot REST controllers with CRUD endpoints and OpenAPI documentation.

Updated Nov 17, 2025
One-click install
npx skills add https://github.com/Faouzi91/HomeFlex --skill spring-controller-faouzi91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-controller
Source: https://github.com/Faouzi91/HomeFlex/tree/main/.claude/skills/spring-controller
Command: npx skills add https://github.com/Faouzi91/HomeFlex --skill spring-controller-faouzi91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually writing Spring Boot REST controllers is time-consuming, error-prone, and often leads to inconsistent APIs missing critical annotations for documentation, validation, and proper HTTP semantics, requiring extra debugging and rework.

Core Features & Use Cases

  • Standardized Controller Templates: Pre-built templates with all required OpenAPI/Swagger annotations, Jakarta validation, and correct HTTP status codes.
  • Built-in Pagination & Error Handling: Includes default pagination support and guidance for global exception handling to standardize error responses.
  • Use Case: For the HomeFlex real estate platform, use this skill to rapidly generate a PropertyController with full CRUD endpoints, OpenAPI docs, and validation rules instead of writing hundreds of lines of boilerplate code manually.

Quick Start

Use the spring-controller skill to generate a fully annotated REST controller for the RoomType entity with CRUD endpoints, OpenAPI documentation, and input validation.

Frequently Asked Questions about spring-controller

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Spring Boot REST controller with OpenAPI documentation?

Generating Spring Boot REST controllers with OpenAPI documentation replaces manual boilerplate by applying standardized templates pre-built with SpringDoc OpenAPI 3.x annotations, Jakarta validation, and correct HTTP status codes for production-ready CRUD endpoints.

What is the best way to add Jakarta validation and pagination to Spring Boot REST APIs?

The best way to add Jakarta validation and pagination to Spring Boot REST APIs is using standardized controller templates that provide built-in pagination support, input validation annotations, and thin controller architecture delegating business logic to service layers.

Does this Spring controller generation approach support Spring Boot 4.x applications?

Yes, this Spring controller generation approach supports Spring Boot 4.x applications using SpringDoc OpenAPI 3.x and Jakarta validation, ensuring generated REST controllers meet modern Spring Boot REST API requirements for correct HTTP semantics and documentation.

How do I standardize HTTP status codes and error handling across Spring Boot CRUD endpoints?

Standardizing HTTP status codes and error handling across Spring Boot CRUD endpoints is achieved through fully annotated controller templates that enforce correct HTTP semantics and include guidance for global exception handling to standardize error responses.

Why are my manually written Spring Boot REST controllers missing OpenAPI annotations?

Manually written Spring Boot REST controllers often miss OpenAPI annotations because the process is error-prone and inconsistent, which is solved by using standardized templates that automatically embed all required SpringDoc OpenAPI 3.x documentation and validation annotations.