affaan-m avatar

Springboot Patterns

A solid reference for the controller-service-repository pattern and common Spring Boot plumbing. You get working examples of pagination, validation with Bean Validation annotations, global exception handlers, caching with @Cacheable, async methods, and request logging filters. The code leans heavily on constructor injection and records for DTOs, which is clean. One thing worth noting: the rate limiting example includes a detailed security note about X-Forwarded-For headers and reverse proxies, which is the kind of production detail that actually matters. Use this when you're setting up a new Spring Boot API or need to remember how Spring Data JPA queries or @ControllerAdvice work without digging through documentation.

skills.sh installs
6.1K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill springboot-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

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
class MarketController {
  private final MarketService marketService;

  MarketController(MarketService marketService) {
    this.marketService = marketService;
  }

  @GetMapping
  ResponseEntity<Page<MarketResponse>> list(
      @RequestParam(defaultValue = "0") int page,
      @RequestParam(defaultValue = "20") int size) {
    Page<Market> markets = marketService.list(PageRequest.of(page, size));
    return ResponseEntity.ok(markets.map(MarketResponse::from));
  }

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Backend & APIs, DevOps & CI/CD, Code Review & Quality, Java & JVM, Design & UI/UX
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1jeffallan avatarnextjs-developerjeffallan/claude-skillsUse when building Next.js 14+ applications with App Router, server components, or server actions. Invoke to configure route handlers, implement middleware, set 6Kskills.sh installs
2wordpress avatarwordpress-routerwordpress/agent-skillsUse when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo 6Kskills.sh installs
3grafana avatargrafana-ossgrafana/skillsConfigure Grafana OSS — provisions dashboards from YAML, sets up data sources (Prometheus / Loki / Tempo / Pyroscope), writes dashboard JSON with template varia6Kskills.sh installs
4affaan-m avatarjira-integrationaffaan-m/eccUse this skill when retrieving Jira tickets, analyzing requirements, updating ticket status, adding comments, or transitioning issues. Provides Jira API pattern6Kskills.sh installs
5jeffallan avatarfullstack-guardianjeffallan/claude-skillsBuilds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the 5.9Kskills.sh installs
6aws avataramazon-elasticacheaws/agent-toolkit-for-awsActivate when developers have latent caching needs: slow API responses, database read bottlenecks, DynamoDB throttling or cost, RDS/Aurora scaling pressure, Bed5.9Kskills.sh installs