java

java is a skill for Claude Code from t1/tdder. It costs 36 tokens per session (2,685 once invoked), scanned A, original, Apache-2.0.

A set of coding conventions for Java and Kotlin, including guidance on language versions, naming, expressions, annotations, and local variables.

In plain words
What is it for?
Use it whenever you write, modify, create, or move Java or Kotlin source code, or configure a project that uses either language.
Why use it?
It keeps JVM code consistent and points developers toward modern, readable practices. Java and Kotlin are programming languages that run on the JVM, Java's virtual machine.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tdder plugin — 15 skills, 2 commands, 6 agents, 1 hook shipped together

Good fit Use it whenever you write, modify, create, or move Java or Kotlin source code, or configure a project that uses either language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/t1/tdder/java
View source ↗ t1/tdder
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.

Any agent
npx skills add t1/tdder --skill java
Clone the repo
git clone --depth 1 https://github.com/t1/tdder

Made for: Claude Code.

Or install tdder, the plugin that ships this one along with the rest of its 15 skills, 2 commands, 6 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/t1/tdder/java/github.svg)](https://agentmods.dev/skills/t1/tdder/java)
Your own site
<a href="https://agentmods.dev/skills/t1/tdder/java"><img src="https://agentmods.dev/badge/skills/t1/tdder/java/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for java

Your own site · 80×15
<a href="https://agentmods.dev/skills/t1/tdder/java"><img src="https://agentmods.dev/badge/skills/t1/tdder/java.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,685 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 20
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00036 $0.02685
Opus 5.5 $0.00014 $0.01074
Sonnet 5.5 $0.00007 $0.00537
Haiku 4.5 $0.00004 $0.00268

Measured 3mo ago against content hash 99af6db32809, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

java 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 3mo 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/java/SKILL.md · 360 lines

How it starts

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

Java & Kotlin Conventions

JVM language coding conventions complementing the TDD and Clean Code skills. We use modern language features to reduce boiler plate and get more to the point.

Java Version

When you need to know the latest Java version (e.g. for new projects, upgrades, or Dockerfiles), query the Adoptium API:

https://api.adoptium.net/v3/info/available_releases

Use most_recent_feature_release (latest GA) by default. Use most_recent_lts only when explicitly asked for LTS.

Code Style

Logic Expressions

  • Try to prevent negating expressions, e.g., instead of a != b ? doX() : doY() use a == b ? doY() : doX().

Line Breaks

  • Annotations can often go in the same line as the field or method they apply to.
    • Java: @Override void foo() { or @Test void should() {
    • Kotlin: override fun foo() { or @Test fun should() {

Local Type Inference

Java: Use var for local variable type inference where the type is clear from context.

var users = userRepository.findAll();
var count = items.size();

Kotlin: Type inference is the default. Prefer val (immutable) over var (mutable); only use var when the variable must be reassigned.

val users = userRepository.findAll()
var count = items.size  // only if count is later mutated

Static Imports (Java) / Imports (Kotlin)

Java: Prefer static imports when they do not reduce readability. This includes constants like MediaType.APPLICATION_JSON. The context is most often sufficient to understand what it is, e.g., @Produces(APPLICATION_JSON). Exception: do not statically import List.of(...), Map.of(...), or the like, as a method name like of doesn't say, what it does. The number of usages of the import is not relevant!

import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON;
import static org.assertj.core.api.BDDAssertions.then;
import static org.mockito.BDDMockito.given;

Kotlin: There are no static imports. Import top-level functions and object/companion members directly. The same readability rule applies — import short, context-sufficient names; avoid importing bare of.

Read the full file on GitHub · 360 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. 3mo ago First seen · 360 lines · 36 tokens per session scan A 99af6db32809

Subscribe to this mod's changes

java is a skill published in the GitHub repository t1/tdder (14 stars, last pushed 2d ago), licensed Apache-2.0. It adds 36 tokens to every session and 2,685 once invoked, about $0.0001 per session on Opus 5.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.

Related

java compared with skills from other repositories

java next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
javat1/tdderSkill142d agoApache-2.0A36Claude Code
build-android-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITA150Claude Code
new-mac-appdaveebbelaar/bamaSkill2.0k25d agoMITA59Claude Code, Codex
build-ios-binarymicrosoft/power-platform-skillsSkill1.2ktodayMITC200Claude Code
Test Scaffold (Laravel/PHPUnit)s977043/river-reviewSkill8todayMITA23Claude Code
Unit Test Scaffold (Python/pytest)s977043/river-reviewSkill8todayMITA19Claude Code
Unit Test Scaffold (TypeScript)s977043/river-reviewSkill8todayMITA23Claude Code