Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By adityamparikhApache-2.0In 1 marketplace
Write, refactor and review Java that compiles on your project's JDK, with Effective Java applied to modern Java
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
java, effective-java, records, sealed-types, virtual-threads, code-review
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An agent skill that makes AI coding agents (Claude Code, Cursor, Copilot, Junie, and others) write, refactor and review plain Java the way a senior engineer would today. It applies Effective Java's principles, mapped item by item onto Java 17, 21 and 25 LTS, and calibrates to the Java release your project actually builds with.
It is not a Java tutorial, because the model already knows the language. It targets the three mistakes agents actually make:
_ on Java 21, or StructuredTaskScope without --enable-preview. The skill reads pom.xml/build.gradle(.kts) first, gates every feature by release, and proves the result with javac --release N.instanceof-cast ladders, Collectors.toList(), Date, e.printStackTrace(), platform thread pools for blocking I/O.equals/hashCode becomes records, readObject hardening becomes record deserialization, and newFixedThreadPool for I/O becomes virtual threads.SKILL.md # baseline detection, release gates, opinionated defaults, workflows, self-check
references/
├── modern-java.md # Java 17 → 25 feature guide: JEPs, final-in release, BAD/GOOD code, pitfalls,
│ # preview-only features, removed/withdrawn APIs, safe upgrade order
└── effective-java.md # all 90 Effective Java (3rd ed.) items: Applies / Refined / Superseded + modern note,
# plus worked before/after examples for the items modern Java changes most
evals/ # 5 benchmark cases (claude plugin eval format) with graders
.claude-plugin/marketplace.json # lets Claude Code install it with /plugin
The agent loads SKILL.md when it writes or reviews Java. It pulls a reference only when it uses a newer feature, upgrades code, or needs the reasoning behind a rule.
EJ 11 and readers can look up the reasoning.javac --release N -Xlint:all when there is no build.javap) as of November 2026. JDK 26 and 27 finalized no language features. Structured concurrency, primitive patterns and lazy constants are still preview. String templates were withdrawn.The skill follows the open Agent Skills format: a folder with SKILL.md at its root. Every major coding agent reads that format natively, but they look in different folders.
npx skills (Node 22.20+) detects the agents you have installed. It puts one copy in .agents/skills/ and links it into each agent's folder:
npx skills add adityamparikh/effective-modern-java -g # for your user, all projects
npx skills add adityamparikh/effective-modern-java # this project only (writes skills-lock.json)
Use -a claude-code -a codex -a cursor … to choose agents, --copy where symlinks don't work, and npx skills update to pull new versions.
Most agents read the shared ~/.agents/skills/ folder: Codex, GitHub Copilot (CLI and cloud agent), Cursor, Gemini CLI, Junie, OpenCode, Goose, Amp, Cline, Roo Code and Devin Desktop (formerly Windsurf).
git clone https://github.com/adityamparikh/effective-modern-java ~/.agents/skills/effective-modern-java
Claude Code and Kiro don't read ~/.agents/skills/, so link the same copy into their folders:
mkdir -p ~/.claude/skills && ln -s ~/.agents/skills/effective-modern-java ~/.claude/skills/effective-modern-java
mkdir -p ~/.kiro/skills && ln -s ~/.agents/skills/effective-modern-java ~/.kiro/skills/effective-modern-java
For a single project, clone into the project's .agents/skills/ folder, or .claude/skills/ for Claude Code, instead of the home-directory folders. Update with git -C ~/.agents/skills/effective-modern-java pull.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub adityamparikh/effective-modern-java --plugin effective-modern-javaPlugins from other owners that cover similar ground