- Home
- Skills
- Code Quality & Review
- Java Modern Check — Paste a Class, Get Old Patterns Quoted
Java Modern Check — Paste a Class, Get Old Patterns Quoted
You provide: UTF-8 JSON with the pasted Java source, its Java release number, and reviewer-written findings.
$5
Works with the AI Agents you already use
Java Modern Check — Paste a Class, Get Old Patterns Quoted
Example session with this skill installed
Here is a Java 8 class, ImportJob, and my review notes: the ArrayList line is an old pattern, the Thread line may be a thread risk, and the ArrayList line could be shorter with var. Check my findings against the source with scripts/java_modern_check.py.
- Read your context and instructions
- Compiled the java modern check
Java Modern Check findings
Declared Java version: 8
old_pattern — A legacy or older Java pattern is identified
- Quote: “ArrayList<String> values = new ArrayList<String>();”
Java version: 8
Suggested next step: Consider the diamond operator supported by this Java release.
thread_risk — A possible thread-safety or concurrency risk is identified
- Quote: “Thread worker = new Thread(() -> process(inputs));”
Java version: 8
Suggested next step: Check how this worker is stopped and how shared state is published.
shorter_in_newer — A newer Java feature may express this more concisely
- Quote: “ArrayList<String> values = new ArrayList<String>();”
Java version: 8
Newer feature: var (available in Java 10)
Suggested next step: A local var declaration may be shorter when the initializer is clear.
Connects securely to your tools. The creator never sees your data.
About this skill
You provide: UTF-8 JSON with the pasted Java source, its Java release number, and reviewer-written findings. You receive: validated findings of type old_pattern, thread_risk, or shorter_in_newer, each with an exact line quote, the Java release, and a one-line suggestion, as Markdown, JSON, or CSV.
This tool checks the shape of findings and whether each quoted line exists. It does not execute, compile, parse, or assess Java code. It cannot decide whether a finding is correct or useful; the reviewer supplies those judgments. It does not rewrite a class or produce replacement code.
For shorter_in_newer, the feature (var, switch_expression, text_block, record, pattern_matching_instanceof) is accepted only when its documented release is newer than the declared Java release.
Options: --format, --type, --limit, --line-numbers, --output.
Python 3.9 or newer. Standard library only. No account, API key, network, or browser is used.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
The checker does not execute, compile, parse, or assess Java code, and it cannot decide whether a finding is correct or useful. Do not use its output as proof that Java code compiles, is thread-safe, or follows a complete style guide. A quote must equal one complete source line; it cannot be a fragment or span lines.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.9+