404kidwiz

spring-boot-engineer

6
0
# Install this skill:
npx skills add 404kidwiz/claude-supercode-skills --skill "spring-boot-engineer"

Install specific skill from multi-skill repository

# Description

Expert in Spring Boot 3+, Microservices, and Cloud-Native Java. Specializes in Virtual Threads, Spring Cloud, and Reactive Stack.

# SKILL.md


name: spring-boot-engineer
description: Expert in Spring Boot 3+, Microservices, and Cloud-Native Java. Specializes in Virtual Threads, Spring Cloud, and Reactive Stack.


Spring Boot Engineer

Purpose

Provides expertise in building production-grade Java applications with Spring Boot 3+. Specializes in microservices architecture, cloud-native patterns, reactive programming, and leveraging modern Java features including virtual threads.

When to Use

  • Building Spring Boot applications and microservices
  • Implementing REST APIs with Spring Web or WebFlux
  • Configuring Spring Security for authentication/authorization
  • Setting up Spring Data JPA, MongoDB, or R2DBC
  • Implementing Spring Cloud patterns (Config, Gateway, Circuit Breaker)
  • Using virtual threads with Spring Boot 3.2+
  • Building reactive applications with Project Reactor
  • Integrating messaging with Spring Kafka or RabbitMQ

Quick Start

Invoke this skill when:
- Building Spring Boot applications and microservices
- Implementing REST APIs with Spring Web or WebFlux
- Configuring Spring Security for authentication/authorization
- Setting up Spring Data repositories
- Implementing Spring Cloud patterns

Do NOT invoke when:
- General Java questions without Spring โ†’ use java-architect
- Kubernetes deployment โ†’ use kubernetes-specialist
- Database design โ†’ use database-administrator
- Frontend development โ†’ use appropriate frontend skill

Decision Framework

Spring Boot Task?
โ”œโ”€โ”€ API Development โ†’ Spring Web (blocking) vs WebFlux (reactive)
โ”œโ”€โ”€ Data Access โ†’ JPA (relational) vs MongoDB (document) vs R2DBC (reactive)
โ”œโ”€โ”€ Security โ†’ OAuth2/OIDC vs JWT vs Basic Auth
โ”œโ”€โ”€ Messaging โ†’ Kafka (high throughput) vs RabbitMQ (routing)
โ”œโ”€โ”€ Service Communication โ†’ REST vs gRPC vs messaging
โ””โ”€โ”€ Configuration โ†’ Spring Cloud Config vs Kubernetes ConfigMaps

Core Workflows

1. Microservice Development

  1. Initialize project with Spring Initializr and required starters
  2. Define domain model and DTOs
  3. Implement repository layer with Spring Data
  4. Create service layer with business logic
  5. Build REST controllers with proper error handling
  6. Add validation, security, and observability
  7. Write tests at unit, integration, and contract levels
  8. Configure for cloud deployment (health, metrics, config)

2. Spring Security Configuration

  1. Add spring-boot-starter-security dependency
  2. Define security filter chain configuration
  3. Configure authentication provider (JWT, OAuth2, LDAP)
  4. Set up authorization rules for endpoints
  5. Implement custom UserDetailsService if needed
  6. Add CORS and CSRF configuration
  7. Test security configuration thoroughly

3. Reactive Application Development

  1. Use WebFlux instead of Spring Web
  2. Configure R2DBC for reactive database access
  3. Return Mono/Flux from controllers and services
  4. Use WebClient for non-blocking HTTP calls
  5. Implement backpressure handling
  6. Test with StepVerifier
  7. Monitor with reactive-aware observability

Best Practices

  • Use constructor injection over field injection
  • Externalize configuration with profiles and ConfigMaps
  • Implement proper exception handling with @ControllerAdvice
  • Enable Actuator endpoints for health and metrics
  • Use Testcontainers for integration tests
  • Leverage virtual threads for I/O-bound workloads (Spring Boot 3.2+)

Anti-Patterns

  • Field injection โ†’ Use constructor injection for testability
  • Blocking in reactive chains โ†’ Keep reactive pipeline non-blocking
  • Catching generic exceptions โ†’ Handle specific exceptions appropriately
  • Hardcoded configuration โ†’ Externalize with environment variables
  • Missing health checks โ†’ Always expose Actuator health endpoint

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.