common-codes

Community

Standardize 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 CommonCode interface, providing consistent code and description access.
  • JPA Persistence Best Practices: Enforces the use of EnumType.STRING for enums in database entities to prevent data corruption.
  • Use Case: When defining an OrderStatus enum, this Skill ensures it implements CommonCode and 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.