122 Java Type Design

Use when you need to review, improve, or refactor Java code for type design quality — including establishing clear type hierarchies, applying consistent naming conventions, eliminating primitive obsession with domain-specific value objects, leveraging generic type parameters, creating type-safe wrappers, designing fluent interfaces, ensuring precision-appropriate numeric types (BigDecimal for financial calculations), and improving type contrast through interfaces and method signature alignment. This should trigger for requests such as Review Java code for type design; Improve type design in Java code; Fix primitive obsession in Java code; Create value objects in Java code. Part of cursor-rules-java project

majiayu000 de380cc 2 files · 4.6 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/development/122-java-type-design commit de380cc3b3

Frequently asked questions

npx skillmds add majiayu000/122-java-type-design