java-checkstyle

java-checkstyle is a skill for Claude Code from open-metadata/OpenMetadata. It costs 60 tokens per session (949 once invoked), scanned A, original, Apache-2.0.

A command-based Java formatting check and fixer using the project's Spotless Maven setup. Maven is a build tool commonly used for Java projects.

In plain words
What is it for?
Use it after changing Java files, or when a pull request reports a Java checkstyle or formatting failure; it can apply or verify formatting for the whole project or one Maven module.
Why use it?
It fixes formatting failures that can make continuous-integration checks reject a change. It can also check formatting without changing files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the openmetadata-skills plugin — 24 skills, 6 agents, 1 hook shipped together

Good fit Use it after changing Java files, or when a pull request reports a Java checkstyle or formatting failure; it can apply or verify formatting for the whole project or one Maven module.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-metadata/openmetadata/java-checkstyle
About the project

OpenMetadata is an open platform that organizes information about data, including its meaning, ownership, quality, history, and relationships. It provides governed context for data users, AI assistants, and agents that need to discover and understand trustworthy data.

open-metadata/OpenMetadata · 15,934 stars · on GitHub · open-metadata.org

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 open-metadata/OpenMetadata --skill java-checkstyle
Clone the repo
git clone --depth 1 https://github.com/open-metadata/OpenMetadata

Made for: Claude Code.

Or install openmetadata-skills, the plugin that ships this one along with the rest of its 24 skills, 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-checkstyle

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-checkstyle/github.svg)](https://agentmods.dev/skills/open-metadata/openmetadata/java-checkstyle)
Your own site
<a href="https://agentmods.dev/skills/open-metadata/openmetadata/java-checkstyle"><img src="https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-checkstyle/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-checkstyle

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-metadata/openmetadata/java-checkstyle"><img src="https://agentmods.dev/badge/skills/open-metadata/openmetadata/java-checkstyle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 949 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 pass 7 Sept 2026
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.00060 $0.00949
Opus 5.5 $0.00024 $0.00380
Sonnet 5.5 $0.00012 $0.00190
Haiku 4.5 $0.00006 $0.00095

Measured yesterday against content hash ee7574d94aad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

java-checkstyle 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 yesterday.

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-checkstyle/SKILL.md · 98 lines

How it starts

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

Java Checkstyle / Spotless

OpenMetadata enforces Java formatting via the Spotless Maven plugin. Every CI build runs mvn spotless:check and fails the PR if any file is not formatted. This skill keeps the fix on a single, consistent command so reviewers never have to ask for it manually again.

When to activate

  • The user asks to "fix checkstyle", "fix Java formatting", "apply spotless", "run spotless", "format Java", or similar.
  • CI posts a Java checkstyle failed / Fix Java checkstyle comment on a PR (the project's bot phrases the instruction as "Please run mvn spotless:apply in the root of your repository and commit the changes to this PR").
  • After you have finished authoring or editing any .java files — before opening a PR or pushing a commit that touches Java.

Arguments

  • No arguments: run mvn spotless:apply at the repo root across all modules.
  • -pl <module>: scope to a single Maven module (e.g. -pl openmetadata-service). Useful when only one module changed and you want a faster run.
  • --check: run mvn spotless:check instead of apply. Use to confirm the tree is clean without touching files (e.g. to verify before push).

Process

Step 1: Run Spotless

From the repo root:

mvn spotless:apply                 # default — formats everything
# or
mvn -pl <module> spotless:apply    # scoped to one module
# or
mvn spotless:check                 # verify only, don't write

Spotless is fast (seconds, no compilation). If it fails with a plugin error (not a formatting diff), surface the error and stop — do not try to hand-edit formatting around the failure.

Step 2: Check what changed

git status --short
git diff --stat

Expect reformatting in .java files only. If Spotless touches pom.xml or other non-Java files, that's also fine — Spotless is configured for those too in this repo.

Step 3: Commit

Do not fold the reformat into an unrelated commit. If the user asked you to commit, follow their preference (fold into the in-progress commit, or make a separate one). Otherwise, when you are confident the change is a purely mechanical formatting reformat, you may commit it on its own as a Fix Java checkstyle commit — this matches the repo's existing history for bot-triggered formatting-only commits. If you are unsure whether the diff is purely mechanical, do NOT auto-commit: surface the changed-file list and let the user decide.

Read the full file on GitHub · 98 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. yesterday Changed ee7574d94aad
  2. 3d ago Changed fd248d9898cc
  3. 3mo ago First seen · 98 lines · 60 tokens per session scan A 59f6556b2062

Subscribe to this mod's changes

java-checkstyle is a skill published in the GitHub repository open-metadata/OpenMetadata (15,934 stars, last pushed today), licensed Apache-2.0. It adds 60 tokens to every session and 949 once invoked, about $0.0002 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-checkstyle compared with skills from other repositories

java-checkstyle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
java-checkstyleopen-metadata/OpenMetadataSkill16ktodayApache-2.0A60Claude Code
tika-eval-compareapache/tikaSkill4.2ktodayApache-2.0A50Claude Code, Codex
azure-security-keyvault-secrets-javamicrosoft/skillsSkill3.3kyesterdayMITA40Claude Code
azure-ai-anomalydetector-javamicrosoft/skillsSkill3.3kyesterdayMITA43Claude Code
azure-communication-chat-javamicrosoft/skillsSkill3.3kyesterdayMITA41Claude Code
azure-communication-common-javamicrosoft/skillsSkill3.3kyesterdayMITA35Claude Code
azure-ai-agents-persistent-javamicrosoft/skillsSkill3.3kyesterdayMITA63Claude Code