Review and improve Java code using comprehensive type design principles that apply typography concepts to code structure and organization for maximum clarity and maintainability.
Prerequisites: Run ./mvnw compile or mvn compile before applying any change. If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition.
Core areas: Clear type hierarchies (nested static classes, logical structure), consistent naming conventions (domain-driven patterns, uniform interface/implementation naming), strategic whitespace for readability, type-safe wrappers (value objects replacing primitive obsession, EmailAddress, Money), generic type parameters (flexible reusable types, bounded parameters), domain-specific fluent interfaces (builder pa...
명확한 유형 계층 구조 설정, 일관된 명명 규칙 적용, 도메인별 값 객체에 대한 원시적 집착 제거, 일반 유형 매개변수 활용, 유형 안전 래퍼 생성, 유창한 인터페이스 디자인, 정밀도에 적합한 숫자 유형 보장(재무 계산의 경우 BigDecimal), 인터페이스 및 메서드 서명 정렬을 통한 유형 대비 개선 등 유형 디자인 품질을 위해 Java 코드를 검토, 개선 또는 리팩터링해야 하는 경우 사용합니다. Skills-for-Java 프로젝트의 일부 출처: jabrena/cursor-rules-java.