java-reviewer

Diagnose Java code issues in Maven or Gradle projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/physics91/claude-vibe --skill java-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-reviewer
Source: https://github.com/physics91/claude-vibe/tree/main/skills/java-reviewer
Command: npx skills add https://github.com/physics91/claude-vibe --skill java-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reviews Java code for idiomatic patterns, robust exception handling, resource management, null safety, and modern Java features.

Core Features & Use Cases

  • Exception handling: guard against silent failures, add meaningful messages.
  • Resource management: promote try-with-resources patterns.
  • Null safety: encourage Optional and null-safety practices.
  • Stream/collections: optimize for readability and performance.
  • Use Case: Modernize a legacy Java module with better error handling and try-with-resources.

Quick Start

Run the java-reviewer on a Java project (Maven/Gradle) to receive recommended idioms and modernization steps.

Frequently Asked Questions about java-reviewer

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

FAQPage Schema
How do I review Java code for exception handling and resource management issues?

Exception handling review identifies silent failures in empty catch blocks, catch-all exceptions, and missing resource cleanup. The java-reviewer diagnoses these patterns and recommends try-with-resources adoption and meaningful error messages to strengthen robustness.

Can I modernize legacy Java code to use Java 17+ features and null safety patterns?

Yes. The java-reviewer detects raw types, unsafe null dereferences, and outdated patterns in legacy codebases, then recommends modern Java 17+ idioms including Optional for null safety and contemporary stream and collection patterns.

What Java code quality issues does automated review catch before pull request merge?

Automated review flags mutable static fields, improper resource lifecycle, missing null guards, stream inefficiencies, and exception-handling gaps. The java-reviewer runs on Maven or Gradle projects to surface critical issues during CI/CD and code review workflows.

How do I optimize Java streams and collections for readability and performance?

Stream and collection review focuses on idiomatic usage patterns that balance readability with performance. The java-reviewer assesses your code against modern best practices and suggests concrete optimizations aligned with Java 17+ conventions.

Does this work with Maven and Gradle projects?

Yes. The java-reviewer operates on Maven and Gradle projects, scanning src/main/java/** to detect idiom violations, resource leaks, exception handling flaws, and null safety gaps specific to your build configuration.

What's the difference between catching all exceptions and handling specific exception types?

Catch-all exceptions (catch Exception or Throwable) mask failures and complicate debugging; specific exception handling preserves intent and enables targeted recovery. The java-reviewer recommends replacing catch-all patterns with precise, meaningful exception handling.