什么是 122-java-type-design?
当您需要审查、改进或重构 Java 代码以提高类型设计质量时使用,包括建立清晰的类型层次结构、应用一致的命名约定、消除对特定于域的值对象的原始痴迷、利用泛型类型参数、创建类型安全的包装器、设计流畅的接口、确保精度适当的数字类型(用于金融计算的 BigDecimal)以及通过接口和方法签名对齐改进类型对比。 java 技能项目的一部分 来源:jabrena/cursor-rules-java。
当您需要审查、改进或重构 Java 代码以提高类型设计质量时使用,包括建立清晰的类型层次结构、应用一致的命名约定、消除对特定于域的值对象的原始痴迷、利用泛型类型参数、创建类型安全的包装器、设计流畅的接口、确保精度适当的数字类型(用于金融计算的 BigDecimal)以及通过接口和方法签名对齐改进类型对比。 java 技能项目的一部分
通过命令行快速安装 122-java-type-design AI 技能到你的开发环境
来源:jabrena/cursor-rules-java。
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...
当您需要审查、改进或重构 Java 代码以提高类型设计质量时使用,包括建立清晰的类型层次结构、应用一致的命名约定、消除对特定于域的值对象的原始痴迷、利用泛型类型参数、创建类型安全的包装器、设计流畅的接口、确保精度适当的数字类型(用于金融计算的 BigDecimal)以及通过接口和方法签名对齐改进类型对比。 java 技能项目的一部分 来源:jabrena/cursor-rules-java。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/jabrena/cursor-rules-java --skill 122-java-type-design当您需要审查、改进或重构 Java 代码以提高类型设计质量时使用,包括建立清晰的类型层次结构、应用一致的命名约定、消除对特定于域的值对象的原始痴迷、利用泛型类型参数、创建类型安全的包装器、设计流畅的接口、确保精度适当的数字类型(用于金融计算的 BigDecimal)以及通过接口和方法签名对齐改进类型对比。 java 技能项目的一部分 来源:jabrena/cursor-rules-java。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jabrena/cursor-rules-java --skill 122-java-type-design 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/jabrena/cursor-rules-java