java-code-review

Review Java code for bugs, security risks, and performance issues.

70|22|Updated Jun 10, 2020
One-click install
npx skills add https://github.com/piomin/spring-boot-istio --skill java-code-review-piomin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-code-review
Source: https://github.com/piomin/spring-boot-istio/tree/main/.claude/skills/java-code-review
Command: npx skills add https://github.com/piomin/spring-boot-istio --skill java-code-review-piomin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill systematically reviews Java code to identify potential bugs, security vulnerabilities, performance issues, and adherence to best practices, ensuring higher code quality and maintainability.

Core Features & Use Cases

  • Comprehensive Checklist: Covers null safety, exception handling, collections, concurrency, idioms, resource management, API design, and performance.
  • Severity-Based Reporting: Findings are categorized into Critical, High, Medium, and Low severity.
  • Use Case: Review a pull request before merging to catch potential issues early in the development cycle.

Quick Start

Review the Java code in the file src/main/java/com/example/MyClass.java.

Frequently Asked Questions about java-code-review

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

FAQPage Schema
How do I perform a Java code review to catch concurrency and null safety bugs?

A Java code review systematically scans your project to catch concurrency and null safety bugs. It evaluates exception handling, collections, and resource management, categorizing findings by severity to ensure maintainability.

What Java code quality issues should I check for before merging a pull request?

Before merging a pull request, check Java code quality for security risks, performance bottlenecks, and API design flaws. A systematic review identifies potential bugs and areas for improvement, ensuring higher code quality early in the cycle.

How does a systematic Java code review categorize exception handling and resource management findings?

A systematic Java code review categorizes exception handling and resource management findings into Critical, High, Medium, and Low severity. This severity-based reporting helps prioritize refactoring efforts for security vulnerabilities and performance issues.

Can I review specific Java files for API design and performance issues?

Yes, you can review specific Java files for API design and performance issues by targeting the file path, such as src/main/java/com/example/MyClass.java. The review systematically checks idioms and best practices within that specific codebase.

What is the best way to identify security risks and areas for improvement in a Java project?

The best way to identify security risks in a Java project is a comprehensive code review covering null safety, concurrency, and resource management. It systematically detects vulnerabilities and categorizes areas for improvement by severity.

Does Java code review work without external dependencies or plugins?

Yes, Java code review works without external dependencies or plugins. It uses built-in scripts and references to systematically analyze your codebase, focusing on best practices, debugging, and refactoring without requiring additional environment setup.