common-codes
CommunityStandardize domain codes with CommonCode.
Authorgykk16
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the inconsistency and potential for errors in representing domain-specific codes within an application by establishing a standardized interface and best practices for enum definitions and JPA persistence.
Core Features & Use Cases
- Standardized Enum Contract: Ensures all domain codes implement the
CommonCodeinterface, providing consistentcodeanddescriptionaccess. - JPA Persistence Best Practices: Enforces the use of
EnumType.STRINGfor enums in database entities to prevent data corruption. - Use Case: When defining an
OrderStatusenum, this Skill ensures it implementsCommonCodeand is correctly persisted as a string in the database, preventing issues if the enum order changes.
Quick Start
Define a new enum for payment methods, ensuring it implements the CommonCode interface.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: common-codes Download link: https://github.com/gykk16/spring-skeleton/archive/main.zip#common-codes 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.