Skip to content
Back to skills

Java Patterns

ASecurity

Java patterns for equality, virtual threads, unsafe input, collections, and JDK 18 to 27 changes. Load before any edit to a .java file or Maven or Gradle build, however small, and for Java questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
ai-agentsjavaspringsecurity

Security analysis

A100/100

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

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill java-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Java Patterns?

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

Security grade badge for Java Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-java-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-java-patterns)

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-patterns
description: Java patterns for equality, virtual threads, unsafe input, collections, and JDK 18 to 27 changes. Load before any edit to a .java file or Maven or Gradle build, however small, and for Java questions.
---

# Java patterns

Default assumption: Java 27, per the Java SE 27 migration guide of September 2026.

A row applies when the project's release level, `maven.compiler.release` or the Gradle toolchain's `languageVersion`, is at least the row's version.

Spring is spring-boot-patterns.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                      | Read                                                     |
| --------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing Java code, or moving to a newer JDK                                 | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing Java code                                   | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Using a preview feature, a date or time, a virtual thread, or a record      | [reference/practices.md](reference/practices.md)         |
| Configuring `javac` lint, Error Prone, SpotBugs, Find Security Bugs, or PMD | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.5 KB
  • reference/anti-patterns.md6.7 KB
  • reference/practices.md1.1 KB
  • reference/tooling.md2.8 KB
  • reference/upgrades.md5.4 KB
  • sources.md7.7 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.