Java rules

From softspark/ai-toolkit · View interactive version

Java rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Java coding rules: style, patterns, security, testing. Triggers: .java, pom.xml, build.gradle, Spring, Spring Boot, JPA, Hibernate, JUnit, Maven, Gradle.

How to use this skill

Skill file

Java Rules

These rules come from app/rules/java/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Java. Apply them when writing or

reviewing Java code.

Java Coding Style

Naming

Modern Java (17+)

Types

Classes

Methods

Formatting

Nullability

Documentation

Java Frameworks

Spring Boot

Spring Data JPA

Spring Security

Hibernate / JPA

Quarkus / Micronaut

Build Tools

Logging

Java Patterns

Error Handling

Immutability

Optional

Streams

Dependency Injection

Concurrency

Design Patterns

Anti-Patterns

Java Security

Input Validation

SQL Injection

Authentication

Authorization

XSS and CSRF

Serialization

Dependencies

Secrets

Logging Security

Java Testing

Framework

File Naming

Structure

Assertions (AssertJ)

Mocking (Mockito)

Integration Testing

Test Data

Performance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.