springboot-patterns
Skill2.7k starsChanged 10 months agoApache-2.0View on GitHub
Spring Boot patterns including JPA repositories, REST controllers, layered services, and configuration
19 other projects use a version of this.
Trending
Less talk lately.thin dataabout the whole repository
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- jdanigo/hydraiatheir own version, first seen Sep 12, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- JunMystery/Agent-Guidance-Pythontheir own version, first seen Jul 21, 2026
- Lukasbrujula/claude-code-frameworktheir own version, first seen Jul 6, 2026
Who's talking about rohitg00/awesome-claude-code-toolkit
- sudosubin/agents.nix“agent-skills.github.rohitg00.awesome-claude-code-toolkit: init at 0.5.0”GitHub · Oct 1, 2026
- uizze/uizze“docs: track Claude Code Toolkit distribution PR”GitHub · Aug 18, 2026
- hslee16/Archy“chore(distribution): submit archy to awesome-mcp-servers and awesome-claude-code-toolkit”GitHub · Jul 25, 2026
- Nexcyfr/nexcy-site“Vague 1D : workflows et templates internes Claude Code core”GitHub · Jun 11, 2026
- taeyeon-Kim/claude-starter-kit“감사 리포트 2026-04-14 (2차): Warning 0건, Info 4건 — Phase 3.8 첫 실행”GitHub · Apr 14, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Oct 1, 2026agent-skills.github.rohitg00.awesome-claude-code-toolkit: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Aug 18, 2026docs: track Claude Code Toolkit distribution PR — uizze/uizze0 reactions
- Jul 25, 2026chore(distribution): submit archy to awesome-mcp-servers and awesome-claude-code-toolkit — hslee16/Archy0 reactions · 4 comments
- Jun 11, 2026Vague 1D : workflows et templates internes Claude Code core — Nexcyfr/nexcy-site0 reactions · 1 comment
- Apr 14, 2026감사 리포트 2026-04-14 (2차): Warning 0건, Info 4건 — Phase 3.8 첫 실행 — taeyeon-Kim/claude-starter-kit0 reactions
2 more on GitHub
- Apr 13, 2026Audit candidate: rohitg00/awesome-claude-code-toolkit — xiaolai/nlpm0 reactions · 5 comments
- Apr 6, 2026Audit candidate: rohitg00/awesome-claude-code-toolkit — xiaolai/nlpm0 reactions · 2 comments
Used with
Projects with it also use springboot-verification, springboot-tdd and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FaisalAlqarniSkillspringboot-verification
Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.
Also in 5 projects that use this
FaisalAlqarniSkillspringboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
Also in 5 projects that use this
johnrtiptonSkilldjango-security
This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.
Also in 5 projects that use this
yanhaoluo0Skilljava-coding-standards
阿里巴巴Java开发手册编程规约,包含命名风格、常量定义、代码格式、OOP规约、日期时间、集合处理、并发处理、控制语句、注释规约等。Use when writing Java code, reviewing code, or following Alibaba Java coding standards.
Also in 5 projects that use this
joneqianSkillpostgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.
Also in 5 projects that use this
xfstudioSkillpython-patterns
Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.
Also in 6 projects that use this
- +5 more from FaisalAlqarni
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- tranhieutt/software_development_department★ 72same name
- codelably/harmony-claude-code★ 43same name
- FaisalAlqarni/sp-ecc★ 9same name
- Infopibe/everything-claude-code★ 8same name
- jdanigo/hydraia★ 8same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- rules/agents.mdAGENTS.md
- accessibility-wcagSkill
- agentkit-seoSkill
- api-design-patternsSkill
- authentication-patternsSkill
- aws-cloud-patternsSkill
- ci-cd-pipelinesSkill
- claude-memory-kitSkill
- continuous-learningSkill
- database-optimizationSkill
- data-engineeringSkill
- deep-diveSkill
- devops-automationSkill
- django-patternsSkill
- docker-best-practicesSkill
- frontend-excellenceSkill
- git-advancedSkill
- golang-idiomsSkill
- graphql-designSkill
- kubernetes-operationsSkill
- llm-integrationSkill
- manage-skillsSkill
- mcp-developmentSkill
- microservices-designSkill
- mobile-developmentSkill
- monitoring-observabilitySkill
- nextjs-masterySkill
- performance-optimizationSkill
- postgres-optimizationSkill
- prompt-engineeringSkill
- python-best-practicesSkill
- react-patternsSkill
- redis-patternsSkill
- rust-systemsSkill
- security-hardeningSkill
- styleseedSkill
- tdd-masterySkill
- testing-strategiesSkill
- typescript-advancedSkill
- websocket-realtimeSkill
The file
Files
Spring Boot Patterns
Layered Architecture
src/main/java/com/example/app/
config/ # @Configuration beans
controller/ # @RestController (thin, delegates to service)
service/ # @Service (business logic)
repository/ # @Repository (data access via JPA)
model/
entity/ # @Entity JPA classes
dto/ # Request/response DTOs
mapper/ # MapStruct or manual mapping
exception/ # @ControllerAdvice, custom exceptions
security/ # SecurityFilterChain, JWT filtersControllers handle HTTP concerns. Services contain business logic. Repositories handle persistence.
REST Controller
@RestController
@RequestMapping("/api/v1/orders")
@RequiredArgsConstructor
public class OrderController {
private final OrderService orderService;
@GetMapping
public Page<OrderResponse> list(
@RequestParam(defaultValue = "0") int page,
@RequestParam(defaultValue = "20") int size) {
return orderService.findAll(PageRequest.of(page, size));
}
@PostMapping
@ResponseStatus(HttpStatus.CREATED)
public OrderResponse create(@Valid @RequestBody CreateOrderRequest request) {
return orderService.create(request);
}
@GetMapping("/{id}")
public OrderResponse getById(@PathVariable UUID id) {
return orderService.findById(id);
}
}JPA Entity and Repository
@Entity
@Table(name = "orders")
@Getter @Setter @NoArgsConstructor
public class Order {
@Id
@GeneratedValue(strategy = GenerationType.UUID)
private UUID id;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "customer_id", nullable = false)
private Customer customer;
@OneToMany(mappedBy = "order", cascade = CascadeType.ALL, orphanRemoval = true)
private List<OrderItem> items = new ArrayList<>();
@Enumerated(EnumType.STRING)
private OrderStatus status = OrderStatus.PENDING;
@CreationTimestamp
private Instant createdAt;
}
public interface OrderRepository extends JpaRepository<Order, UUID> {
@Query("SELECT o FROM Order o JOIN FETCH o.items WHERE o.customer.id = :customerId")
List<Order> findByCustomerWithItems(@Param("customerId") UUID customerId);
@EntityGraph(attributePaths = {"customer", "items"})
Optional<Order> findWithDetailsById(UUID id);
}Service Layer
@Service
@Transactional(readOnly = true)
@RequiredArgsConstructor
public class OrderService {
private final OrderRepository orderRepository;
private final OrderMapper orderMapper;
private final EventPublisher eventPublisher;
public OrderResponse findById(UUID id) {
Order order = orderRepository.findWithDetailsById(id)
.orElseThrow(() -> new ResourceNotFoundException("Order", id));
return orderMapper.toResponse(order);
}
@Transactional
public OrderResponse create(CreateOrderRequest request) {
Order order = orderMapper.toEntity(request);
order = orderRepository.save(order);
eventPublisher.publish(new OrderCreatedEvent(order.getId()));
return orderMapper.toResponse(order);
}
}Global Exception Handler
@RestControllerAdvice
public class GlobalExceptionHandler {
@ExceptionHandler(ResourceNotFoundException.class)
@ResponseStatus(HttpStatus.NOT_FOUND)
public ProblemDetail handleNotFound(ResourceNotFoundException ex) {
return ProblemDetail.forStatusAndDetail(HttpStatus.NOT_FOUND, ex.getMessage());
}
@ExceptionHandler(MethodArgumentNotValidException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public ProblemDetail handleValidation(MethodArgumentNotValidException ex) {
ProblemDetail detail = ProblemDetail.forStatus(HttpStatus.BAD_REQUEST);
Map<String, String> errors = ex.getFieldErrors().stream()
.collect(Collectors.toMap(FieldError::getField, FieldError::getDefaultMessage));
detail.setProperty("errors", errors);
return detail;
}
}Anti-Patterns
- Injecting repositories directly into controllers (bypassing service layer)
- Using
FetchType.EAGERon entity relationships by default - Returning JPA entities directly from controllers instead of DTOs
- Missing
@Transactional(readOnly = true)on read-only service methods - Catching generic
Exceptioninstead of specific types - Hardcoding configuration values instead of using
@Valueor@ConfigurationProperties
Checklist
- Controllers are thin and delegate to services
- All JPA relationships use
FetchType.LAZYby default - DTOs used for request/response, never raw entities
@Transactionalapplied at service level with correct read/write scoping- Validation annotations (
@Valid,@NotNull,@Size) on request DTOs - Global exception handler returns
ProblemDetail(RFC 7807) - Entity graphs or
JOIN FETCHused to avoid N+1 queries - Integration tests use
@SpringBootTestwith test containers
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

