java-coding-standards

java-coding-standards is a skill for Claude Code, Codex from gongyijie85/dsh-ecc. It costs 66 tokens per session (2,692 once invoked), scanned A, a copy of java-coding-standards, MIT.

A set of Java coding rules for Spring Boot and Quarkus services. Spring Boot and Quarkus are frameworks for building Java server applications.

In plain words
What is it for?
Use it when writing or reviewing Java, choosing names and package layouts, handling errors, using modern Java features, or working with Spring Boot and Quarkus patterns.
Why use it?
It helps keep Java code readable and consistent while applying framework-specific conventions only when the project uses them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing Java, choosing names and package layouts, handling errors, using modern Java features, or working with Spring Boot and Quarkus patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gongyijie85/dsh-ecc/java-coding-standards
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 gongyijie85/dsh-ecc --skill java-coding-standards
Clone the repo
git clone --depth 1 https://github.com/gongyijie85/dsh-ecc

Made for: Claude Code, Codex.

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-coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/java-coding-standards/github.svg)](https://agentmods.dev/skills/gongyijie85/dsh-ecc/java-coding-standards)
Your own site
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/java-coding-standards"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/java-coding-standards/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-coding-standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/gongyijie85/dsh-ecc/java-coding-standards"><img src="https://agentmods.dev/badge/skills/gongyijie85/dsh-ecc/java-coding-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,692 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.
Origin 97% copy Near-identical to another mod 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.00066 $0.02692
Opus 5.5 $0.00026 $0.01077
Sonnet 5.5 $0.00013 $0.00538
Haiku 4.5 $0.00007 $0.00269

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

Security

Grade A, and why

java-coding-standards 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 2mo 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.

Origin

This is a copy

97% identical to java-coding-standards — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/java-coding-standards/SKILL.md · 385 lines

How it starts

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

Java Coding Standards

Standards for readable, maintainable Java (17+) code in Spring Boot and Quarkus services.

When to Use

  • Writing or reviewing Java code in Spring Boot or Quarkus projects
  • Enforcing naming, immutability, or exception handling conventions
  • Working with records, sealed classes, or pattern matching (Java 17+)
  • Reviewing use of Optional, streams, or generics
  • Structuring packages and project layout
  • [QUARKUS]: Working with CDI scopes, Panache entities, or reactive pipelines

How It Works

Framework Detection

Before applying standards, determine the framework from the build file:

  • Build file contains quarkus → apply [QUARKUS] conventions
  • Build file contains spring-boot → apply [SPRING] conventions
  • Neither detected → apply shared conventions only

Core Principles

  • Prefer clarity over cleverness
  • Immutable by default; minimize shared mutable state
  • Fail fast with meaningful exceptions
  • Consistent naming and package structure
  • [QUARKUS]: Favor build-time over runtime processing; avoid runtime reflection where possible

Examples

The sections below show concrete Spring Boot, Quarkus, and shared Java examples for naming, immutability, dependency injection, reactive code, exceptions, project layout, logging, configuration, and tests.

Naming

// PASS: Classes/Records: PascalCase
public class MarketService {}
public record Money(BigDecimal amount, Currency currency) {}

// PASS: Methods/fields: camelCase
private final MarketRepository marketRepository;
public Market findBySlug(String slug) {}

// PASS: Constants: UPPER_SNAKE_CASE
private static final int MAX_PAGE_SIZE = 100;

// PASS: [QUARKUS] JAX-RS resources named as *Resource, not *Controller
public class MarketResource {}

// PASS: [SPRING] REST controllers named as *Controller
public class MarketController {}

Immutability

// PASS: Favor records and final fields
public record MarketDto(Long id, String name, MarketStatus status) {}

public class Market {
  private final Long id;
  private final String name;
  // getters only, no setters
}

// PASS: [QUARKUS] Panache active-record entities use public fields (Quarkus convention)
@Entity
public class Market extends PanacheEntity {
  public String name;
  public MarketStatus status;
  // Panache generates accessors at build time; public fields are idiomatic here
}

// PASS: [QUARKUS] Panache MongoDB entities
@MongoEntity(collection = "markets")
public class Market extends PanacheMongoEntity {
  public String name;
  public MarketStatus status;
}

Read the full file on GitHub · 385 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. 2mo ago First seen · 385 lines · 66 tokens per session scan A c7088a434cd7

Subscribe to this mod's changes

java-coding-standards is a skill published in the GitHub repository gongyijie85/dsh-ecc (13 stars, last pushed 13d ago), licensed MIT. It adds 66 tokens to every session and 2,692 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to java-coding-standards, differing in 5 lines, and is treated as a copy.

Related

java-coding-standards compared with skills from other repositories

java-coding-standards next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
java-coding-standardsgongyijie85/dsh-eccSkill1313d agoMITA66Claude Code, Codex
manage-taskboardshengsheng90/DSH-taskboardSkill33029d agoApache-2.0A88Codex
mcp-integrationSivan757/dsh-agent-plugins-marketSkill235d agoMITB95Claude Code, Codex
qiskitunitarylab/quantum-practicesSkill233mo agononeA46Claude Code, Codex
unitarylabunitarylab/quantum-practicesSkill233mo agononeA60Claude Code, Codex
Azure Communication Chat Javamayurrathi/awesome-agent-skillsSkill99mo agononeA39Claude Code, Codex
Azure Communication Common Javamayurrathi/awesome-agent-skillsSkill99mo agononeA34Claude Code, Codex