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.
npx agentmods add skills/alexmond/alexmskills/codestylenpx skills add alexmond/alexmskills --skill codestylegit clone --depth 1 https://github.com/alexmond/alexmskillsWrote 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.
[](https://agentmods.dev/skills/alexmond/alexmskills/codestyle)<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>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.
| Model | Per session | Once 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 |
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.
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) — runspring-javaformat:applybefore committing. - Checkstyle:
maven-checkstyle-pluginwithio.spring.javaformat:spring-javaformat-checkstyle(SpringChecks) plus custom suppressions. - PMD:
maven-pmd-pluginwith 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
validatephase. Adjust the bound phase if yourpom.xmldiffers.
Formatting rules enforced by spring-javaformat
- Indentation: Tabs.
- Braces required: All
if,else,for,while,douse{}even for single-line bodies. - Lambda parentheses: Single-parameter lambdas have parentheses:
(x) ->notx ->. - Lambda blocks: Prefer expression body:
(x) -> x.toString()not(x) -> { return x.toString(); }. - Catch variables: Use
exnot single-lettere: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.RequireThis—this.prefix not required.SpringTestFileName— flexible test file naming.
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.
- 5d ago First seen · 113 lines · 73 tokens per session scan A bde4ba371fb3
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.
Other skills, from other repositories
wxjava-api-contributor
按 WxJava 的 Maven 多模块、Java 8、公共 API 兼容性和 TestNG 约定,为微信官方接口新增或维护 SDK 支持。适用于新增 Service API、请求响应 Bean、序列化、HTTP 实现、Starter 配置或回归测试时。.
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.
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.
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.
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.
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.