java-expert

A set of guidelines for writing and reviewing modern Java 17+ code, including Spring Boot applications, database access, builds, security, and tests.

In plain words
What is it for?
Use it when creating or reviewing Java services and libraries, configuring Maven or Gradle, working with JPA/Hibernate, or writing JUnit 5 tests.
Why use it?
It helps avoid outdated Java patterns and gives development work a consistent approach across common Java tools.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/apexiq/skillsmith/java_expert
Any agent
npx skills add ApexIQ/skillsmith --skill java_expert
Clone the repo
git clone --depth 1 https://github.com/ApexIQ/skillsmith

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,118 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.02118
Opus 5 $0.00026 $0.01059
Sonnet 5 $0.00010 $0.00424
Haiku 4.5 $0.00005 $0.00212

Measured 2d ago against content hash 08da43b7c86d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

java-expert 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 2d 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.

.agent/skills/java_expert/SKILL.md · 291 lines

How it starts

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

☕ Java Expert — Production-Grade Java

Philosophy: Modern Java is not your grandfather's Java. Records, sealed classes, pattern matching, and virtual threads have transformed the language. Write modern Java, not enterprise Java from 2010.

1. When to Use This Skill

  • Writing new Java services or libraries
  • Reviewing Java code for modern patterns
  • Building Spring Boot applications
  • Working with JPA/Hibernate
  • Configuring Maven or Gradle builds
  • Writing tests with JUnit 5

2. Modern Java (17+)

Records Over Boilerplate Classes

// GOOD: Record — immutable, equals/hashCode/toString auto-generated
public record UserResponse(String id, String name, String email, Instant createdAt) {}

// GOOD: Record with validation
public record CreateUserRequest(String name, String email) {
    public CreateUserRequest {
        if (name == null || name.isBlank()) throw new IllegalArgumentException("name is required");
        if (email == null || !email.contains("@")) throw new IllegalArgumentException("invalid email");
    }
}

// BAD: 80-line POJO with getters, setters, equals, hashCode, toString, builder
public class UserResponse {
    private String id;
    private String name;
    // ... 70 more lines of boilerplate
}

Sealed Classes for Domain Modeling

// GOOD: Sealed hierarchy — compiler knows all cases
public sealed interface PaymentResult permits Success, Failed, Pending {
    record Success(String transactionId, BigDecimal amount) implements PaymentResult {}
    record Failed(String reason, String errorCode) implements PaymentResult {}
    record Pending(String pollUrl, Instant expiresAt) implements PaymentResult {}
}

// Pattern matching with exhaustive switch
String message = switch (result) {
    case Success s -> "Paid $%s (tx: %s)".formatted(s.amount(), s.transactionId());
    case Failed f -> "Failed: %s (%s)".formatted(f.reason(), f.errorCode());
    case Pending p -> "Pending — check %s".formatted(p.pollUrl());
};

Read the full file on GitHub · 291 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. 2d ago First seen · 291 lines · 51 tokens per session scan A 08da43b7c86d

Subscribe to this mod's changes

java-expert is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 2,118 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

rove

Use when controlling Rove tasks, parallel coding attempts, hosted agent sessions, task lifecycle, or the daemon-owned issue tracker from a shell. Also the ONLY channel for messaging another agent session on this machine — rove api send, never a peer/MCP side channel.

Sma1lboy/rove · 56 tokens

release

Autonomously cut a Rove (@sma1lboy/rove) release end-to-end — detect the semver bump from pending changesets (flagging an upstream minor you didn't intend), run the release gates, bump/tag/push via scripts/release.sh, then poll the GitHub Actions Release workflow with gh until npm publish completes, diagnosing CI…

Sma1lboy/rove · 155 tokens

hyperframes-cli

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, or remove-background, or when troubleshooting the…

Sma1lboy/rove · 101 tokens

changelog-generator

Draft Rove release notes as Changesets. Writes user-facing entries as .changeset/.md files for @sma1lboy/rove (consumed into packages/kobe/CHANGELOG.md at release time). Use when the user asks for "changelog", "release notes", "what changed", "add a changeset", or before cutting a version. Enforces Rove's no-soft-wrap…

Sma1lboy/rove · 101 tokens

token-saver-config

Configure and diagnose token-saver compression settings. Use when the user asks about adjusting compression levels, checking processor status, debugging hook issues, or reviewing savings statistics.

ppgranger/token-saver · 37 tokens

pstack

Rigorous engineering mode for nontrivial work in this repo — a set of named principles plus the leaf skills that apply them. Use when the user says "pstack", "go deep", "be rigorous", "认真做", or when a task involves architecture, a real bug, a refactor, or anything the user will not be watching. Ported from…

Sma1lboy/rove · 93 tokens