Code Review & Source Analysis

Reviews Java Spring Boot code against security, performance, and architecture quality checklists.

Updated May 12, 2026
One-click install
npx skills add https://github.com/ZzZueszZ/claude-kit --skill code-review-source-analysis-zzzueszz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Code Review & Source Analysis
Source: https://github.com/ZzZueszZ/claude-kit/tree/main/.claude/skills/code-review
Command: npx skills add https://github.com/ZzZueszZ/claude-kit --skill code-review-source-analysis-zzzueszz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing Java Spring Boot code consistently is hard: reviewers miss N+1 queries, SQL injection risks, missing transaction boundaries, and Lombok misuse. This Skill provides a structured, severity-ranked review process so every pull request is checked against the same quality bar. ## Core Features & Use Cases - Severity-ranked review checklist: Classifies findings as Critical, High, Medium, or Low across logic, security, exception handling, performance, and testing. - Concrete good/bad code patterns: Provides side-by-side Java examples for SQL injection prevention, N+1 query fixes with JOIN FETCH, GlobalExceptionHandler setup, and entity encapsulation without @Data/@Setter. - Source analysis metrics: Defines measurable thresholds such as 80% JaCoCo coverage, cyclomatic complexity under 10, and method length under 20 lines, plus a ready-to-use review report template. - Use Case: Before merging a Spring Boot pull request, run this review to catch a missing @PreAuthorize on an admin endpoint, an N+1 query in the order listing, and a swallowed exception, then produce a structured findings report. ## Quick Start Review the OrderService and OrderController classes in this project and produce a severity-ranked code review report.

Frequently Asked Questions about Code Review & Source Analysis

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

FAQPage Schema
How do I review Java Spring Boot code for security issues?▼

Check for SQL injection by verifying all queries use parameterized bindings instead of string concatenation, confirm endpoints have @PreAuthorize authorization, escape user input to prevent XSS, and ensure passwords and tokens are never written to logs.

How to detect and fix N+1 query problems in JPA?▼

N+1 occurs when iterating entities triggers a lazy-load query per item. Fix it with a JOIN FETCH query or an @EntityGraph specifying the associations to load eagerly, and add pagination instead of loading full tables into memory.

Why should Lombok @Data and @Setter be avoided on JPA entities?▼

@Data generates setters, equals, and toString that break entity encapsulation and can cause lazy-loading or equality bugs. Use @Getter with @Builder and expose state changes through domain methods like activate() or updatePrice() that enforce business rules.

What code quality metrics should a Java project enforce?▼

Common thresholds are at least 80% line coverage from JaCoCo, cyclomatic complexity of 10 or less per method, methods under 20 lines, classes under 200 lines, and duplicated code below 3% as measured by SonarQube.

When should @Transactional be placed on service methods?▼

Place @Transactional on service-layer methods that group multiple database operations, never on controllers. Use readOnly = true for query-only methods, avoid calling external APIs inside a transaction, and add @Version for optimistic locking on concurrent updates.