springboot-patterns
Spring Boot patterns for REST APIs, layered services, data access, caching, and async processing.
- Covers controller, service, and repository layers with Spring MVC/WebFlux, Spring Data JPA queries, and transactional boundaries
- Includes DTOs with validation, centralized exception handling via
@ControllerAdvice, and RFC 7807 error responses - Provides caching strategies with
@Cacheableand@CacheEvict, async processing with@Async, and structured logging via SLF4J - Demonstrates request filtering, pagination, sorting, retry logic, and rate limiting with security considerations for forwarded headers
- Covers background jobs, observability (Micrometer, OpenTelemetry), and production defaults like constructor injection and connection pooling
Spring Boot Development Patterns
Spring Boot architecture and API patterns for scalable, production-grade services.
When to Activate
- Building REST APIs with Spring MVC or WebFlux
- Structuring controller → service → repository layers
- Configuring Spring Data JPA, caching, or async processing
- Adding validation, exception handling, or pagination
- Setting up profiles for dev/staging/production environments
- Implementing event-driven patterns with Spring Events or Kafka
REST API Structure
@RestController
@RequestMapping("/api/markets")
@Validated
More from affaan-m/everything-claude-code
security-review
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
7.9Kgolang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
7.4Kcoding-standards
Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
6.7Kfrontend-patterns
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
6.6Kbackend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
6.6Kgolang-testing
Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing, and test coverage. Follows TDD methodology with idiomatic Go practices.
6.1K