spring-boot-code-review

Reviews Spring Boot code for layering, transactions, JPA, security, and concurrency issues.

Updated Aug 22, 2026
One-click install
npx skills add https://github.com/shengmingzhishu/LeeCommonSkills --skill spring-boot-code-review-shengmingzhishu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: spring-boot-code-review
Source: https://github.com/shengmingzhishu/LeeCommonSkills/tree/main/.rules-skills/java-stack/.trae/skills/spring-boot-code-review
Command: npx skills add https://github.com/shengmingzhishu/LeeCommonSkills --skill spring-boot-code-review-shengmingzhishu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Spring Boot codebases often hide serious defects—broken transaction boundaries, N+1 queries, missing authorization, swallowed exceptions—that slip past casual review and cause production incidents. This Skill provides a structured review checklist that surfaces these risks ordered by severity. ## Core Features & Use Cases - Severity-Ranked Findings: Reports issues ordered by correctness, security, data integrity, availability, and maintainability, with file locations and fix suggestions. - Deep Spring Checks: Inspects public contract compatibility, Controller responsibilities, transaction failures, N+1 queries, pagination, authentication, parameter validation, exception swallowing, log masking, timeouts, retries, idempotency, migrations, and test gaps. - Use Case: Before merging a pull request that adds a new order endpoint, run this review to catch a missing @Transactional boundary, an unvalidated request parameter, and an N+1 query in the JPA repository before they reach production. ## Quick Start Review my Spring Boot service layer and controllers for transaction, security, and JPA issues and list the findings by severity.

Frequently Asked Questions about spring-boot-code-review

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

FAQPage Schema
How do I review Spring Boot code for transaction problems?▼

Check that @Transactional is applied at the service layer, not on controllers, and watch for self-invocation, private methods, and unchecked exception rollback rules that silently disable transactions. This review flags these transaction failure patterns with file locations and fixes.

What should a Spring Boot code review checklist include?▼

Cover layering and Controller responsibilities, transaction boundaries, N+1 queries and pagination in JPA, authentication and parameter validation, exception swallowing, log masking, timeouts and retries, idempotency, migrations, and test gaps. Findings should be ranked by correctness, security, and data integrity.

How do I detect N+1 query problems in Spring Data JPA?▼

Look for repository calls inside loops, lazy-loaded associations accessed after the session context, and missing fetch joins or entity graphs. The review inspects JPA usage patterns and reports N+1 risks along with pagination concerns.

Does this review check Spring Security configuration?▼

Yes, it examines authentication and authorization coverage on endpoints, parameter validation, and log masking of sensitive data. Security findings are ranked near the top of the severity ordering.

When should style issues not be reported in code review?▼

Style preferences should not be reported as high-priority problems because they dilute attention from correctness and security defects. This review explicitly deprioritizes stylistic opinions and focuses on functional and operational risk.