java-boy-scout

java-boy-scout is a skill for Claude Code, Codex from CasLubbers/code-design-skills. It costs 95 tokens per session (711 once invoked), scanned A, original, no licence file.

A Java coding aid based on the Boy Scout Rule: whenever you edit existing code, leave the files a little cleaner than you found them. Its improvements are intended to be small and safe.

In plain words
What is it for?
Use it while fixing, debugging, editing, or extending existing Java code, especially when looking for small cleanup opportunities.
Why use it?
It helps reduce the gradual buildup of messy Java code without requiring a separate cleanup project. Cleanup stays alongside the requested fix or change.

Skill for Claude CodeCodex

Part of the code-design-skills plugin — 28 skills shipped together

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/caslubbers/code-design-skills/java-boy-scout
Any agent
npx skills add CasLubbers/code-design-skills --skill java-boy-scout
Clone the repo
git clone --depth 1 https://github.com/CasLubbers/code-design-skills

Made for: Claude Code, Codex.

Or install code-design-skills, the plugin that ships this one along with the rest of its 28 skills.

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-boy-scout

README.md
[![agentmods](https://agentmods.dev/badge/skills/caslubbers/code-design-skills/java-boy-scout.svg)](https://agentmods.dev/skills/caslubbers/code-design-skills/java-boy-scout)
Your own site
<a href="https://agentmods.dev/skills/caslubbers/code-design-skills/java-boy-scout"><img src="https://agentmods.dev/badge/skills/caslubbers/code-design-skills/java-boy-scout.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00095 $0.00711
Opus 5 $0.00048 $0.00356
Sonnet 5 $0.00019 $0.00142
Haiku 4.5 $0.00010 $0.00071

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

Security

Grade A, and why

java-boy-scout 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 5d 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-boy-scout/SKILL.md · 61 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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. 5d ago First seen · 61 lines · 95 tokens per session scan A d69af48ede97

Subscribe to this mod's changes

java-boy-scout is a skill published in the GitHub repository CasLubbers/code-design-skills (1 stars, last pushed 10d ago), with no licence file. It adds 95 tokens to every session and 711 once invoked, about $0.0005 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

language-java

Java idioms — records, sealed types, virtual threads, and JDK 21+ patterns. Auto-load when working with .java files, pom.xml, build.gradle, or when the user mentions Java, JVM, Spring, Maven, Gradle, sealed classes, or virtual threads.

lugassawan/swe-workbench · 61 tokens

golang

Idiomatic Golang design patterns — functional options, constructors, error flow and cascading, resource management and lifecycle, graceful shutdown, resilience, architecture, dependency injection, data handling, streaming, and more. Apply when explicitly choosing between architectural patterns, implementing functional…

FilippoDeSilva/skills · 80 tokens

spring-boot-engineer

Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, and configures reactive WebFlux endpoints. Use when building Spring Boot 3.x applications, microservices, or reactive Java applications; invoke for Spring Data…

Jeffallan/claude-skills · 91 tokens

golang-pro

Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming…

Jeffallan/claude-skills · 95 tokens

java-architect

Use when building, configuring, or debugging enterprise Java applications with Spring Boot 3.x, microservices, or reactive programming. Invoke to implement WebFlux endpoints, optimize JPA queries and database performance, configure Spring Security with OAuth2/JWT, or resolve authentication issues and async processing…

Jeffallan/claude-skills · 67 tokens

112-java-maven-plugins

Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) …

jabrena/plinth · 149 tokens