codestyle

codestyle is a skill for Claude Code, Codex from alexmond/alexmskills. It costs 73 tokens per session (1,396 once invoked), scanned A, original, MIT.

A set of coding rules and checks for Maven and Java projects. Maven is a Java build tool; Checkstyle and PMD inspect code for formatting, naming, and other problems.

In plain words
What is it for?
Use it to format Java code, fix Checkstyle violations, and run PMD checks with project-specific rules.
Why use it?
It helps keep code consistent and makes the build report rule violations before changes are committed.

Skill for Claude CodeCodex

Part of the maven-quality plugin — 4 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/alexmond/alexmskills/codestyle
Any agent
npx skills add alexmond/alexmskills --skill codestyle
Clone the repo
git clone --depth 1 https://github.com/alexmond/alexmskills

Made for: Claude Code, Codex.

Or install maven-quality, the plugin that ships this one along with the rest of its 4 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 codestyle

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmond/alexmskills/codestyle.svg)](https://agentmods.dev/skills/alexmond/alexmskills/codestyle)
Your own site
<a href="https://agentmods.dev/skills/alexmond/alexmskills/codestyle"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/codestyle.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,396 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.00073 $0.01396
Opus 5 $0.00036 $0.00698
Sonnet 5 $0.00015 $0.00279
Haiku 4.5 $0.00007 $0.00140

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

Security

Grade A, and why

codestyle 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.

plugins/maven-quality/skills/codestyle/SKILL.md · 113 lines

How it starts

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

Maven/Java Coding Standards

Try it: /maven-quality:codestyle — or say "fix the code-style violations in this module".

These are sensible defaults for a Maven/Java project that uses spring-javaformat, Checkstyle, and PMD. Adjust thresholds, plugin versions, and module/path names to match your project.

Tooling (common case)

  • Formatter: io.spring.javaformat:spring-javaformat-maven-plugin (tab indentation) — run spring-javaformat:apply before committing.
  • Checkstyle: maven-checkstyle-plugin with io.spring.javaformat:spring-javaformat-checkstyle (SpringChecks) plus custom suppressions.
  • PMD: maven-pmd-plugin with a custom ruleset.
  • Config files (project root by default): checkstyle-suppressions.xml, pmd-ruleset.xml. Adjust paths if your project keeps them elsewhere.
  • Violations typically fail the build at the validate phase. Adjust the bound phase if your pom.xml differs.

Formatting rules enforced by spring-javaformat

  • Indentation: Tabs.
  • Braces required: All if, else, for, while, do use {} even for single-line bodies.
  • Lambda parentheses: Single-parameter lambdas have parentheses: (x) -> not x ->.
  • Lambda blocks: Prefer expression body: (x) -> x.toString() not (x) -> { return x.toString(); }.
  • Catch variables: Use ex not single-letter e: catch (Exception ex).
  • Ternary parentheses: Wrap the condition: (a != null) ? a : b.
  • No star imports: Explicit imports only, never import java.util.*.
  • Newline at EOF: Files end with a trailing newline.

Common Checkstyle suppressions

Default suppressions kept in checkstyle-suppressions.xml. Add or remove to taste:

  • SpringHeaderCheck — no license header requirement.
  • JavadocPackage, JavadocType, JavadocMethod, JavadocVariable, MissingJavadocType, MissingJavadocMethod, SpringJavadoc — Javadoc not enforced.
  • RegexpSinglelineJava — no per-line regex restrictions.
  • SpringImportOrder — import ordering not enforced.
  • RequireThisthis. prefix not required.
  • SpringTestFileName — flexible test file naming.

Read the full file on GitHub · 113 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. 5d ago First seen · 113 lines · 73 tokens per session scan A bde4ba371fb3

Subscribe to this mod's changes

codestyle is a skill published in the GitHub repository alexmond/alexmskills (6 stars, last pushed 5d ago), licensed MIT. It adds 73 tokens to every session and 1,396 once invoked, about $0.0004 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

wxjava-api-contributor

按 WxJava 的 Maven 多模块、Java 8、公共 API 兼容性和 TestNG 约定,为微信官方接口新增或维护 SDK 支持。适用于新增 Service API、请求响应 Bean、序列化、HTTP 实现、Starter 配置或回归测试时。.

binarywang/WxJava · 68 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

azure-data-tables-java

Build table storage applications with Azure Tables SDK for Java. Use when working with Azure Table Storage or Cosmos DB Table API for NoSQL key-value data, schemaless storage, or structured data at scale.

microsoft/skills · 47 tokens

azure-security-keyvault-secrets-java

Azure Key Vault Secrets Java SDK for secret management. Use when storing, retrieving, or managing passwords, API keys, connection strings, or other sensitive configuration data.

microsoft/skills · 40 tokens

azure-ai-anomalydetector-java

Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate/multivariate anomaly detection, time-series analysis, or AI-powered monitoring.

microsoft/skills · 43 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens