cui-java-core

Standardize Java development practices across CUI projects.

1|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/cuioss/cui-llm-rules --skill cui-java-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cui-java-core
Source: https://github.com/cuioss/cui-llm-rules/tree/main/claude/marketplace/bundles/cui-java-expert/skills/cui-java-core
Command: npx skills add https://github.com/cuioss/cui-llm-rules --skill cui-java-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill defines foundational Java development standards for CUI projects, covering core patterns, null safety, Lombok usage, modern features, and the CUI logging framework.

Core Features & Use Cases

  • Core Patterns: Package structure, class design, and method design aligned with SRP.
  • Null Safety: Guidance on null-safety practices and safe API contracts.
  • Lombok Patterns: When to apply Lombok annotations for boilerplate reduction.
  • Modern Features & Logging: Adoption of records, modern switch, and CuiLogger usage.

Quick Start

Load the Java core standards in your IDE/workflow to align new code with CUI Java practices.

Frequently Asked Questions about cui-java-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize Java logging across my project?

Java logging standardization uses a unified logging framework like CuiLogger to ensure consistent log output and configuration across all modules. This Skill guides adopting CuiLogger-based logging standards across CUI Java projects, replacing ad-hoc logging approaches with a disciplined, project-wide framework.

What's the best way to handle null safety in Java code?

Null safety in Java involves explicit API contracts and defensive coding practices that prevent NullPointerException. This Skill provides guidance on null-safety patterns, helping you design APIs with clear null-handling expectations and implement safe coding practices across your codebase.

How should I use Lombok annotations in my Java modules?

Lombok reduces boilerplate through annotations like @Data and @Getter/@Setter, but disciplined usage prevents maintainability issues. This Skill defines when and how to apply Lombok annotations effectively, balancing code reduction with clarity and consistency.

Can I adopt modern Java features like records and switch expressions?

Modern Java features—records for immutable data classes and switch expressions for cleaner branching—improve readability and safety. This Skill covers adoption patterns for records, modern switch syntax, and streams, aligned with CUI Java development standards.

What package structure should my Java project follow?

Java package structure affects maintainability and code organization. This Skill defines package naming, class design, and method organization aligned with Single Responsibility Principle, ensuring consistent structure across all CUI Java modules.

How do I audit existing Java code for standards compliance?

Code auditing checks alignment with established patterns and practices. This Skill supports auditing Java code for compliance with CUI standards—covering null safety, Lombok usage, logging, and modern features—and guides refactoring toward compliance.