spring-service

Generates Spring Boot service classes with Resilience4j and Lombok integration.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually writing Spring Boot service classes often leads to inconsistent transactional boundaries, missing resilience patterns, and deviation from clean architecture best practices, wasting development time and introducing production bugs.

Core Features & Use Cases

  • Standardized Service Templates: Generates consistent service classes with correct Spring annotations, Lombok dependency injection, and package-aligned structure for any aggregate root.
  • Built-in Resilience4j Patterns: Automatically adds configurable retry and circuit breaker logic for transient failures and downstream external service calls.
  • Use Case: When building the booking feature for the HomeFlex rental platform, use this skill to generate a BookingService class with proper transaction handling for inventory updates and retry logic for external payment API calls.

Quick Start

Use the spring-service skill to generate a new PropertyService class with transactional create, update, and delete methods, plus circuit breaker logic for external search API calls.

Frequently Asked Questions about spring-service

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

FAQPage Schema
How do I add Resilience4j retry and circuit breaker patterns to a Spring Boot service class?

To add Resilience4j patterns to a Spring Boot service, you need configurable retry and circuit breaker logic for transient failures and downstream external service calls. This skill standardizes that integration automatically.

What is the best way to enforce consistent transactional boundaries in Spring Boot applications?

The best way to enforce consistent transactional boundaries in Spring Boot is to use standardized service templates with correct annotations. This prevents production bugs caused by manual implementation and ensures proper transaction handling.

Does this Spring Boot service generation approach follow clean architecture and domain-driven design?

Yes, this Spring Boot service generation approach follows clean architecture and domain-driven design by enforcing package-aligned structures for any aggregate root. It encapsulates business logic properly and maintains separation of concerns throughout the service layer.

Can I use Lombok dependency injection in Spring Boot 4.x service classes?

Yes, you can use Lombok dependency injection in Spring Boot 4.x service classes. The generated service templates include Lombok annotations to reduce boilerplate code while maintaining proper dependency injection standards for production-ready applications.

Why do manually written Spring Boot service classes often introduce production bugs?

Manually written Spring Boot service classes introduce production bugs due to inconsistent transactional boundaries, missing resilience patterns, and deviation from clean architecture best practices. Standardizing implementation prevents these issues and reduces wasted development time.