spring-conventions

Enforce Spring Boot coding conventions across REST controllers, services, and DTOs.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill spring-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-conventions
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/spring-boot-plugin/skills/spring-conventions
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill spring-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill standardizes Spring Boot project structure and coding practices to reduce onboarding time and improve maintainability across teams.

Core Features & Use Cases

  • Enforces REST controller design with @RestController and proper HTTP semantics.
  • Promotes constructor-based dependency injection, @ConfigurationProperties, and service layer boundaries.
  • Guides DTO usage, Bean Validation, exception handling with RestControllerAdvice, and consistent error responses.
  • Use Case: A team adopts this skill to audit new Spring Boot services for clean architecture and protocol compliance.

Quick Start

Review your Spring Boot project and align controllers, services, DTOs, and configuration with the defined conventions.

Frequently Asked Questions about spring-conventions

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

FAQPage Schema
What are the Spring Boot coding conventions for REST controllers and services?

Spring Boot conventions require using @RestController for HTTP semantics, defining clear service layer boundaries, and applying constructor-based dependency injection to improve code maintainability across project architectures.

How do I enforce standard error handling and DTO separation in a Spring Boot application?

To enforce standard error handling and DTO separation in Spring Boot, apply RestControllerAdvice for consistent exception responses and separate data transfer objects while utilizing Bean Validation for request payloads.

When should I use @ConfigurationProperties instead of @Value in Spring Boot?

You should use @ConfigurationProperties in Spring Boot when you need to enforce structured and validated configuration binding, which is a core convention for maintaining clean architecture in team environments.

Can I apply Spring Boot architecture conventions to an existing codebase?

Yes, you can apply Spring Boot architecture conventions to existing codebases by auditing current REST controllers, services, and configuration patterns, then aligning them with constructor injection and DTO separation standards.

What is the best way to audit a new Spring Boot service for clean architecture compliance?

The best way to audit a new Spring Boot service for clean architecture is to review its controllers, services, and DTOs against defined conventions, verifying proper HTTP semantics and RestControllerAdvice implementation.