Skip to content

Java code review checklist covering null safety, exception handling, concurrency, and idioms for pull requests.

CCM score
66 of 100
skills.sh installs
1.2K
GitHub stars
779
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a systematic pass over null safety, exception handling, collections and streams, concurrency, Java idioms, resource management, API design, and performance
  • Provides before-and-after Java snippets for each category, with flags to raise and suggested fixes
  • Requires findings to be grouped by severity as Critical, Improvements, or Minor/Style, plus good practices observed
  • Designed for reviewing a pull request or feature before merging, or when a user asks for a code review

Install

$ npx -y skills add decebals/claude-code-java --skill java-code-review -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Java Code Review Skill

Systematic code review checklist for Java projects.

When to Use

  • User says "review this code" / "check this PR" / "code review"
  • Before merging a PR
  • After implementing a feature

Review Strategy

  1. Quick scan - Understand intent, identify scope
  2. Checklist pass - Go through each category below
  3. Summary - List findings by severity (Critical → Minor)

Output Format

## Code Review: [file/feature name]

### Critical
- [Issue description + line reference + suggestion]

### Improvements
- [Suggestion + rationale]

### Minor/Style
- [Nitpicks, optional improvements]

### Good Practices Observed
- [Positive feedback - important for morale]

Review Checklist

1. Null Safety

Check for:

// ❌ NPE risk
String name = user.getName().toUpperCase();

// ✅ Safe
String name = Optional.ofNullable(user.getName())
    .map(String::toUpperCase)
    .orElse("");

// ✅ Also safe (early return)
if (user.getName() == null) {
    return "";
}
return user.getName().toUpperCase();

Details

Repository
github.com/decebals/claude-code-java
Categories
Code Review & Quality, Java & JVM
First seen
Jun 3, 2026

Questions

What does the java-code-review skill check in Java code?

java-code-review runs a systematic checklist over Java code covering null safety, exception handling, concurrency, collections and streams, Java idioms, resource management, API design and performance. It sorts its findings by severity, from Critical down to Minor, and also notes good practices it observes. It is meant for reviewing a file, feature or pull request before merging.

When does Claude Code load the java-code-review skill?

The java-code-review skill loads when you say things like "review code", "check this PR", "code review", or before merging changes. You can also call it directly as /java-code-review. Claude Code picks it from its name and description, so the phrasing you use matters.

How do I install the java-code-review skill?

Run npx -y skills add decebals/claude-code-java --skill java-code-review -y inside your project to install the java-code-review skill alone. Once installed, Claude Code can apply its Java review checklist to your code. The skill is listed under Code Review & Quality on Claude Marketplaces.

Which other skills sit next to java-code-review in its category?

In the Code Review & Quality category, java-code-review sits alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its own focus is Java specifically, with checks tied to Java idioms such as Optional, try-with-resources and records-era equals and hashCode.

More from decebals/claude-code-java

All 18

Similar to Java Code Review

More Code Review & Quality