coding-standard-java
Installation
SKILL.md
Java Coding Standards
When reviewing or generating Java code, follow these rules:
File Naming
- Source files: PascalCase matching the public class name (e.g.,
UserService.java) - One public class per file: File name must match the public class name exactly
- Test files: Class name with
Testsuffix (e.g.,UserServiceTest.java) - Interface files: PascalCase (e.g.,
Comparable.java,UserRepository.java)
Package Naming
- Packages: All lowercase, dot-separated (e.g.,
com.example.service,org.project.utils) - No underscores or hyphens in package names
- Follow reverse domain name convention