java-rules
Java Rules enforces coding standards across style conventions, framework usage, design patterns, and security practices. It covers Spring Boot, Spring Data JPA, Hibernate, build tools, and modern Java features like records and pattern matching. Apply these rules when writing or reviewing Java code to maintain consistency and best practices.
Java Rules applies comprehensive coding standards covering style, frameworks, patterns, security, and testing for Java projects.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
Java Rules applies comprehensive coding standards covering style, frameworks, patterns, security, and testing for Java projects. Java Rules enforces coding standards across style conventions, framework usage, design patterns, and security practices. It covers Spring Boot, Spring Data JPA, Hibernate, build tools, and modern Java features like records and pattern matching. Apply these rules when writing or reviewing Java code to maintain consistency and best practices.
Use it when
- java-rules addresses security risks through guidelines on injection prevention, authentication, authorization.
- java-rules emphasizes effective unit and integration testing with JUnit 5 and Mockito (20% weight).
Verify before relying
Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.
Install
softspark/ai-toolkit/java-rules · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What java coding standards and best practices does java-rules cover?
java-rules enforces coding standards across style conventions, framework usage, design patterns, and security practices. The skill prioritizes applying Java coding standards, style, and framework best practices (35% weight), covering naming conventions, code formatting with Checkstyle and Spotless, exception handling patterns, stream API best practices, and dependency injection with Spring beans. Use java-rules when writing or reviewing Java code to maintain consistency.
How does java-rules help secure Java applications?
java-rules addresses security risks through guidelines on injection prevention, authentication, authorization, and serialization safety (25% weight). It covers SQL injection prevention, XSS and CSRF protection with Spring Security, secrets management with Vault, and secure deserialization practices. Apply these security guidelines when implementing authentication, handling user input, or managing sensitive data in Java applications.
What testing frameworks and approaches does java-rules recommend?
java-rules emphasizes effective unit and integration testing with JUnit 5 and Mockito (20% weight). The skill covers JUnit 5 framework setup, Mockito mocking patterns, AssertJ assertions, and TestContainers for integration testing. Use these testing approaches to ensure robust test coverage and maintainable test suites in your Java projects.
Which modern java 17+ features and patterns are covered?
java-rules implements modern Java 17+ patterns including records, sealed classes, and pattern matching (15% weight). It also covers immutability best practices, Optional usage, and virtual threads for concurrency. Apply these patterns to write cleaner, more expressive Java code that leverages the latest language capabilities.
Does java-rules address Spring Data JPA and Hibernate optimization?
java-rules includes optimization guidance for Spring Data JPA and Hibernate queries and associations (5% weight). The skill provides tips for efficient query writing, proper association configuration, and performance tuning. Reference these guidelines when working with database layers to ensure optimal data access patterns.
What build tools and configuration does java-rules support?
java-rules covers configuration for both Gradle and Maven build tools. It provides best practices for dependency management, build optimization, and tool-specific conventions. Use these guidelines when setting up or maintaining your Java project's build infrastructure.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
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
- PascalCase: classes, interfaces, enums, records, annotations.
- camelCase: methods, variables, parameters.
- UPPER_SNAKE: constants (
static final). - Package names: lowercase, dot-separated, reverse domain (
com.company.project). - No Hungarian notation. No
Iprefix on interfaces.
Modern Java (17+)
- Use
recordfor immutable data carriers. No need for Lombok in most cases. - Use
sealedclasses/interfaces for restricted hierarchies. - Use pattern matching:
if (obj instanceof String s)instead of cast. - Use
switchexpressions with arrow syntax and exhaustiveness. - Use text blocks (
""") for multiline strings (SQL, JSON, HTML).
Types
- Use
varfor local
(truncated - see the full file via the links below)
File tree — 1 file
app/skills/java-rules/SKILL.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Apply Java coding standards, style, and framework best practices”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Java Architect guides enterprise Spring Boot 3.x development across microservices, reactive endpoints, and cloud-native patterns. It covers architecture analysis, domain design, JPA query tuning, Spring Security configuration with OAuth2/JWT, and comprehensive testing workflows. Use it to implement WebFlux services, resolve async challenges, and ensure production-ready code quality.
Enforce consistent Java conventions across Spring Boot and Quarkus services with automatic framework detection. Covers naming, immutability, dependency injection, reactive patterns, exception handling, and project structure tailored to each framework's idioms.
Java teaches Spring Boot 3.x development with enterprise architecture patterns, SOLID principles, and modern Java 17+ features. It covers layered code organization, RESTful APIs, proper exception handling, and testing strategies for production applications.
GraalVM provides expert guidance for compiling Java applications into native images with minimal footprint and fast startup. It covers native image configuration, framework integration with Quarkus and Micronaut, build optimization, and deployment strategies for cloud-native environments.
Master JPA entity modeling, repository implementation, and performance tuning for Spring Boot applications. Learn to configure relationships, prevent N+1 query issues through fetch strategies and projections, set up transactional boundaries, and optimize database connections with HikariCP.
Automates Spring Boot project initialization by downloading from Spring Initializr and generating a complete project structure with your chosen architecture pattern (DDD or Layered), pre-configured JPA, SpringDoc OpenAPI, and Docker Compose services for PostgreSQL, Redis, or MongoDB. Handles dependency management, application properties, and local development setup in one workflow.
More skills Cc Java Dev (NOASSERTION) · backend-developer (MIT) · micronaut (Apache-2.0) · ruby-patterns (Apache-2.0)