java-conventions

A set of Java coding rules for a repository, including logging, dependency injection, testing, and Maven verification practices.

In plain words
What is it for?
Use it when editing Java files, JUnit tests, or Maven modules, including choosing Log4j2, constructor injection, JUnit 5, AssertJ, and running `mvn verify`.
Why use it?
It keeps Java changes consistent with the project’s existing expectations and makes dependencies and tests easier to review.

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/bjcoombs/ai-native-toolkit/java-conventions
Any agent
npx skills add bjcoombs/ai-native-toolkit --skill java-conventions
Clone the repo
git clone --depth 1 https://github.com/bjcoombs/ai-native-toolkit

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 82 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.00027 $0.00082
Opus 5 $0.00014 $0.00041
Sonnet 5 $0.00005 $0.00016
Haiku 4.5 $0.00003 $0.00008

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

Security

Grade A, and why

java-conventions 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.

skills/assess/tests/fixtures/lean_with_skills/.claude/skills/java-conventions/SKILL.md · 12 lines

What it actually says

Java Conventions

Use Log4j2 for logging. Prefer constructor injection over field injection because it makes dependencies explicit and testable.

Default to JUnit5 with AssertJ for assertions. Run mvn verify before pushing.

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 · 12 lines · 27 tokens per session scan A e4d893368d8f

Subscribe to this mod's changes

java-conventions is a skill published in the GitHub repository bjcoombs/ai-native-toolkit (30 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 82 once invoked, about $0.0001 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-30.