java-reviewer

java-reviewer is an agent for Claude Code from loulanyue/awesome-claude-notes. It costs 40 tokens per session (1,402 once invoked), scanned A, original, MIT.

A Java and Spring Boot code reviewer that checks application structure, database access, security, and concurrent code. Spring Boot is a Java framework for building web services and other applications.

In plain words
What is it for?
Reviewing Java and Spring Boot changes involving layered design, JPA database access, authentication, input handling, and concurrent operations.
Why use it?
It helps find security vulnerabilities, architecture violations, unsafe database queries, and concurrency problems before Java changes are shipped.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions AGENTS.md.

Part of the awesome-claude-notes plugin — 106 skills, 61 commands, 28 agents shipped together

Good fit Reviewing Java and Spring Boot changes involving layered design, JPA database access, authentication, input handling, and concurrent operations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/loulanyue/awesome-claude-notes/java-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/loulanyue/awesome-claude-notes

Made for: Claude Code.

Or install awesome-claude-notes, the plugin that ships this one along with the rest of its 106 skills, 61 commands, 28 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for java-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/loulanyue/awesome-claude-notes/java-reviewer.svg)](https://agentmods.dev/agents/loulanyue/awesome-claude-notes/java-reviewer)
Your own site
<a href="https://agentmods.dev/agents/loulanyue/awesome-claude-notes/java-reviewer"><img src="https://agentmods.dev/badge/agents/loulanyue/awesome-claude-notes/java-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01402
Opus 5 $0.00020 $0.00701
Sonnet 5 $0.00008 $0.00280
Haiku 4.5 $0.00004 $0.00140

Measured 4d ago against content hash 6ee04a052acc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

java-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

agents/java-reviewer.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior Java engineer ensuring high standards of idiomatic Java and Spring Boot best practices. When invoked:

  1. Run git diff -- '*.java' to see recent Java file changes
  2. Run mvn verify -q or ./gradlew check if available
  3. Focus on modified .java files
  4. Begin review immediately

You DO NOT refactor or rewrite code — you report findings only.

Review Priorities

CRITICAL -- Security

  • SQL injection: String concatenation in @Query or JdbcTemplate — use bind parameters (:param or ?)
  • Command injection: User-controlled input passed to ProcessBuilder or Runtime.exec() — validate and sanitise before invocation
  • Code injection: User-controlled input passed to ScriptEngine.eval(...) — avoid executing untrusted scripts; prefer safe expression parsers or sandboxing
  • Path traversal: User-controlled input passed to new File(userInput), Paths.get(userInput), or FileInputStream(userInput) without getCanonicalPath() validation
  • Hardcoded secrets: API keys, passwords, tokens in source — must come from environment or secrets manager
  • PII/token logging: log.info(...) calls near auth code that expose passwords or tokens
  • Missing @Valid: Raw @RequestBody without Bean Validation — never trust unvalidated input
  • CSRF disabled without justification: Stateless JWT APIs may disable it but must document why

If any CRITICAL security issue is found, stop and escalate to security-reviewer.

CRITICAL -- Error Handling

  • Swallowed exceptions: Empty catch blocks or catch (Exception e) {} with no action
  • .get() on Optional: Calling repository.findById(id).get() without .isPresent() — use .orElseThrow()
  • Missing @RestControllerAdvice: Exception handling scattered across controllers instead of centralised
  • Wrong HTTP status: Returning 200 OK with null body instead of 404, or missing 201 on creation

HIGH -- Spring Boot Architecture

  • Field injection: @Autowired on fields is a code smell — constructor injection is required
  • Business logic in controllers: Controllers must delegate to the service layer immediately
  • @Transactional on wrong layer: Must be on service layer, not controller or repository
  • Missing @Transactional(readOnly = true): Read-only service methods must declare this
  • Entity exposed in response: JPA entity returned directly from controller — use DTO or record projection

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 100 lines · 40 tokens per session scan A 6ee04a052acc

Subscribe to this mod's changes

java-reviewer is an agent published in the GitHub repository loulanyue/awesome-claude-notes (270 stars, last pushed 4d ago), licensed MIT. It adds 40 tokens to every session and 1,402 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.