Java Code Review & Business Analysis Agent for Openclaw

An intelligent Java auditing tool that analyzes Git changes, traces business logic via LSP, and generates comprehensive PRDs and quality reports.

qfann
v1.0.2
Apr 28, 2026
0
881
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install deep-java-review

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install deep-java-review using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Java Code Review & Business Analysis Agent?

The Java Code Review skill is a sophisticated automation framework designed to enhance the quality of Java-based projects. By leveraging Openclaw Skills, this agent performs a deep dive into Git changes, moving beyond static analysis to understand the business intent behind code modifications. It specifically targets enterprise-grade stacks like Spring and MyBatis, ensuring that every commit adheres to professional standards for concurrency, transaction management, and resource handling.

This skill is particularly valuable for teams looking to maintain high velocity without sacrificing code integrity. It bridges the gap between technical implementation and business documentation by automatically synthesizing Product Requirements Documents (PRDs) from the actual code changes, providing a clear narrative of what was changed and why.

Java Code Review & Business Analysis Agent Use Cases

  • Reviewing pull requests for microservices to ensure null safety and thread-safe operations.
  • Generating up-to-date business documentation (PRD) directly from the latest codebase commits.
  • Identifying performance bottlenecks and N+1 query patterns in MyBatis or JPA implementations.
  • Auditing sensitive database schema changes (DDL) and ensuring proper transaction boundaries in Spring services.

How Java Code Review & Business Analysis Agent Works

  1. The agent detects the base branch and fetches Git diffs to identify new, modified, or deleted files.
  2. It traces method call chains from entry points like Controllers, MQ listeners, or Scheduled tasks to build a full execution context.
  3. Based on the traced logic, it infers the business requirements and generates a structured PRD document.
  4. A rapid scan for P0/P1 vulnerabilities is performed, covering SQL injection, memory leaks, and hardcoded secrets.
  5. The agent executes a 12-category granular checklist ranging from Java Idioms and Stream usage to SQL/DDL quality.
  6. It applies a multi-dimensional scoring algorithm to evaluate quality, security, and maintainability before generating the final report.

Java Code Review & Business Analysis Agent Setup

To use this skill within the Openclaw Skills ecosystem, ensure your local environment has Git and a Java LSP server configured. You can trigger the review using standard Git operations through the agent:

# Check all staged changes against the baseline
git diff --cached -U500

# Compare the current branch with develop
git diff develop..HEAD --stat

Simply prompt the agent with phrases like "review my code" or "analyze this PR" to start the process.

Java Code Review & Business Analysis Agent Data Schema & Taxonomy

The skill produces structured Markdown files to organize its findings:

File Name Content Description
code-review-report.md Summary of quality scores, detected defects (P0-P2), and business logic summaries.
prd-{version}.md Product Requirements Document including functional lists, core call chains, and impact analysis.
sql-ddl-audit Metadata regarding table modifications, index efficiency, and data migration risks.
api-specs Detailed request/response schema changes for modified endpoints.

Java Code Review & Business Analysis Agent Advanced Features

  • AST-based pattern searching for detecting complex anti-patterns like improper Double-Checked Locking or resource leaks.
  • Automated business entry point detection for Spring Boot applications (Controller, Feign, RabbitListener).
  • Intelligent scoring system that weights security and data integrity (P0) higher than stylistic preferences.
  • Deep MyBatis integration to verify XML mapping IDs, SQL injection risks in ${} variables, and PageHelper efficiency.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*