java-patterns
CommunityWrite clean, modern Java and Spring code.
Software Engineering#testing#patterns#Java#dependency injection#idioms#exception handling#Spring#Stream API
AuthorZate
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Building robust Java applications requires adherence to modern patterns and best practices, especially with the Spring framework. Without clear guidance, code can become hard to maintain, test, and scale.
Core Features & Use Cases
- Spring Dependency Injection: Master constructor injection and configuration classes for clean, testable code.
- Stream API: Efficiently filter, transform, and aggregate collections with best practices for readability.
- Optional & Exception Handling: Properly manage nullable values and design custom, global exception handlers for robust error management.
- Records & Builder Pattern: Leverage modern Java features for immutable data classes and complex object creation.
- Testing with JUnit: Write effective unit and integration tests using Mockito and Spring Boot's testing utilities.
- Use Case: Refactor a legacy Java method using Streams, implement a global exception handler in Spring, or write comprehensive unit tests for a service layer.
Quick Start
Refactor the given Java code to use the Stream API for filtering and transforming a list of objects, and handle potential null values with Optional.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: java-patterns Download link: https://github.com/Zate/cc-plugins/archive/main.zip#java-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.