p3c-coding-style
CommunityEnforce Java coding style and naming consistency.
Authorjie023
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill consolidates and enforces the Alibaba Java coding style rules, ensuring consistent naming, formatting, constants, and comment guidelines across a codebase.
Core Features & Use Cases
- Naming conventions: class names in UpperCamelCase with exceptions for DO/BO/DTO/VO/AO/PO, and methods/fields in lowerCamelCase.
- Constant and array rules: constants must be uppercase with underscores; arrays defined with type[] syntax; boolean fields in POJOs avoid using is prefixes to prevent serialization issues.
- Documentation and structure: abstract/base prefixes for abstract classes; exceptions named with Exception suffix; services/DAOs exposed as interfaces, with Impl implementations; enum naming guidance.
- Use case: you want a multi-module Java project to maintain consistent style, reduce onboarding time, and simplify code reviews.
Quick Start
Adopting these guidelines involves configuring your IDE and build tools to enforce the rules, introducing a style-checking configuration (e.g., PMD/Checkstyle) aligned with these conventions, and gradually refactoring existing code to meet the standards.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: p3c-coding-style Download link: https://github.com/jie023/trae-setting/archive/main.zip#p3c-coding-style Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.