validate

A code-quality command that formats a Maven project, fixes selected violations, and runs PMD and Checkstyle validation.

In plain words
What is it for?
Use it on the whole project or one Maven module, then review any PMD or Checkstyle violations that remain.
Why use it?
It combines routine cleanup and automated checks so formatting and common quality problems are found before code is submitted.

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/alexmond/jhelm/validate
Any agent
npx skills add alexmond/jhelm --skill validate
Clone the repo
git clone --depth 1 https://github.com/alexmond/jhelm

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 307 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.00022 $0.00307
Opus 5 $0.00011 $0.00153
Sonnet 5 $0.00004 $0.00061
Haiku 4.5 $0.00002 $0.00031

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

Security

Grade A, and why

validate 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 3d 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.

.claude/skills/validate/SKILL.md · 42 lines

What it actually says

Format → Fix → Validate

Quick code quality check. $ARGUMENTS is an optional module name.

Step 1: Auto-format

./mvnw spring-javaformat:apply $( [ -n "$ARGUMENTS" ] && echo "-pl $ARGUMENTS" )

Step 2: Fix common violations

python3 .claude/scripts/fix_fqn.py .
python3 .claude/scripts/fix_violations.py .

Step 3: Validate (PMD + Checkstyle)

./mvnw validate $( [ -n "$ARGUMENTS" ] && echo "-pl $ARGUMENTS" ) 2>&1 | grep -E "^\[ERROR\]|violations|PMD Failure"

Report

Check Result
Format Applied / Already clean
FQN fix N files fixed / Clean
Violations fix N files fixed / Clean
PMD 0 violations / N violations
Checkstyle 0 violations / N violations

If violations remain after auto-fix, list them and suggest manual fixes per the /checkstyle skill.

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. 3d ago First seen · 42 lines · 22 tokens per session scan A b12291925eda

Subscribe to this mod's changes

validate is a skill published in the GitHub repository alexmond/jhelm (4 stars, last pushed 9d ago), licensed Apache-2.0. It adds 22 tokens to every session and 307 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-31.

Related

Other skills, from other repositories

quarkus-backend

Use this skill when building Quarkus backend applications — supersonic Java, Dev UI, GraalVM native, reactive messaging, Panache ORM. This skill enforces: compile-time metadata processing, live reload, continuous testing, container-first design. Do NOT use for: Spring Boot projects, Micronaut applications, standard…

j4flmao/agent-skills · 75 tokens

effective-java

Generate and review Java code using patterns and best practices from Joshua Bloch's "Effective Java" (3rd Edition). Use this skill whenever the user asks about Java best practices, API design, object creation patterns, generics, enums, lambdas, streams, concurrency, serialization, method design, exception handling, or…

booklib-ai/booklib · 165 tokens

java-expert

Expert knowledge for Modern Java (21+) development, including Virtual Threads, performance tuning, and idiomatic clean code. Use for deep Java language/logic questions.

kinhluan/rules-quarkus-skills · 36 tokens

graalvm-expert

Expert knowledge for GraalVM, Native Image (AOT), Polyglot runtime, and reflection/resource configuration. Use for native compilation and multi-language JVM questions.

kinhluan/rules-quarkus-skills · 39 tokens

java-kotlin

Java and Kotlin programming patterns.

miles990/claude-software-skills · 9 tokens

mcp-java-dev-tools-bug-drill

Discover bounded Java method drill candidates or run a Probe-guided diagnostic drill for one selected method and return an evidence-backed Markdown report.

nimbly-dev/mcp-java-dev-tools · 36 tokens