coding-guidelines-java

Apply Java and Spring Boot coding guidelines to new and refactored code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/PedroSantiagoDev/buildup --skill coding-guidelines-java
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-guidelines-java
Source: https://github.com/PedroSantiagoDev/buildup/tree/main/.claude/skills/coding-guidelines
Command: npx skills add https://github.com/PedroSantiagoDev/buildup --skill coding-guidelines-java

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures your Java and Spring Boot code adheres to comprehensive best practices, improving robustness, maintainability, and consistency across projects. It reduces manual review effort and prevents the accumulation of technical debt.

Core Features & Use Cases

  • Standardized Codebase: Applies principles from "Effective Java" for immutability, composition, resource management, and proper use of generics and streams.
  • Spring Best Practices: Enforces modern Spring patterns like constructor injection, type-safe @ConfigurationProperties, and appropriate layering for robust applications.
  • Use Case: When generating new Java/Spring Boot code or refactoring existing modules, use this Skill to automatically apply robust coding standards, ensuring the output is production-ready, secure, and easy to maintain.

Quick Start

Apply the coding-guidelines-java skill to refactor the attached Java code for better immutability and dependency injection, ensuring it follows Spring Boot best practices.

Frequently Asked Questions about coding-guidelines-java

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

FAQPage Schema
How do I enforce Java coding standards across a Spring Boot project?

Apply comprehensive coding guidelines to standardize Java and Spring Boot code quality by enforcing best practices like immutability, constructor injection, proper generics usage, and resource management with try-with-resources. This reduces manual review effort and prevents technical debt accumulation across your codebase.

What are best practices for Spring Boot dependency injection and configuration?

Spring Boot best practices include using constructor injection instead of field injection, type-safe @ConfigurationProperties for configuration, and WebClient for HTTP requests. These patterns ensure robust, testable applications that follow modern Spring conventions and reduce coupling.

How can I refactor existing Java code to improve immutability and maintainability?

Refactoring for immutability involves applying Effective Java principles: using final classes and fields, composition over inheritance, proper generics with PECS (Producer Extends, Consumer Super), and avoiding raw types. Automated guidelines ensure consistent application across modules and reduce defects.

Can I apply coding guidelines when generating new Java and Spring Boot code?

Yes, apply coding guidelines during code generation and project setup to ensure new code is production-ready and follows standards from inception. This covers immutability, dependency injection, testing patterns, and Spring-specific conventions automatically.

What does parameter validation and resource management mean in Java best practices?

Parameter validation ensures input correctness early in execution, while resource management uses try-with-resources to automatically close file streams, database connections, and other resources. Together they prevent leaks, null pointer exceptions, and resource exhaustion.

Does this apply to existing projects or only new code?

Coding guidelines apply to both new code generation and refactoring of existing modules. Use it when setting up new projects or modernizing legacy code to adopt consistent standards, immutability patterns, and Spring best practices across your entire codebase.