Skip to content
Back to skills

Java Coding Standards

ASecurity

Use when java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and project layout. Automatically applies framework-specific conventions. Triggers on \"java-coding-standards\", \"java coding standards\", \"standards\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsjavareactspringtesting

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill java-coding-standards --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Coding Standards?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Java Coding Standards
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-java-coding-standards/badge)](https://www.skillsdirectory.com/skills/majinmagros-java-coding-standards)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: java-coding-standards
description: "Use when java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and project layout. Automatically applies framework-specific conventions. Triggers on \"java-coding-standards\", \"java coding standards\", \"standards\"."
metadata:
  origin: ECC
---

# Java Coding Standards

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

## When to Activate

- 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

## Example

```java
return market
    .map(MarketResponse::from)
    .orElseThrow(() -> new EntityNotFoundException("Market not found"));
```

## References

- `references/foundations.md` — framework detection, core principles
- `references/naming-types.md` — naming, immutability, Optional, streams, generics
- `references/di-reactive.md` — dependency injection, reactive patterns [QUARKUS]
- `references/errors-config.md` — exceptions, logging, null handling, configuration
- `references/structure-testing.md` — project structure, style, smells, testing

## Checklist

- Detect framework first: `quarkus` → [QUARKUS], `spring-boot` → [SPRING], else shared only
- Immutable by default (records, final fields); constructor injection, no field `@Autowired`
- Optional via map/flatMap, never bare get(); short stream pipelines
- Domain exceptions + centralized handler; fail fast with context
- Short methods, no magic numbers, no silent catches; tests: JUnit 5 + AssertJ + Mockito

Files in this skill

  • SKILL.md1.9 KB
  • references/di-reactive.md2.1 KB
  • references/errors-config.md2.4 KB
  • references/foundations.md830 B
  • references/naming-types.md2.1 KB
  • references/structure-testing.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…