java-springboot
🎯Skillfrom github/awesome-copilot
Provides Spring Boot best practices covering project setup, dependency injection, REST API design, data access with JPA, security configuration, and testing strategies.
Overview
A comprehensive Spring Boot best practices skill for GitHub Copilot that guides developers in writing high-quality Spring Boot applications. It covers the full application stack — from project setup and dependency injection through REST API design, data access with JPA, security configuration, logging, and testing strategies — all following established community conventions.
Key Features
- Project structure guidance: Recommends organizing code by feature/domain rather than by layer, and using Spring Boot starters for streamlined dependency management with Maven or Gradle.
- Constructor-based dependency injection: Enforces constructor injection with
private finalfields for explicit, testable dependencies across@Service,@Repository, and@Controllercomponents. - REST API and DTO patterns: Promotes clean RESTful endpoint design, input validation via JSR 380 annotations, DTO-based data transfer (never exposing JPA entities), and centralized error handling with
@ControllerAdvice. - Configuration and security best practices: Advocates type-safe properties with
@ConfigurationProperties, Spring Profiles for environment management, externalized secrets, and Spring Security with BCrypt password encoding and input sanitization. - Comprehensive testing strategy: Covers unit tests with JUnit 5 and Mockito, integration tests with
@SpringBootTest, targeted test slices (@WebMvcTest,@DataJpaTest), and Testcontainers for realistic database testing.
Who is this for?
This skill is ideal for Java developers building Spring Boot applications who want Copilot to consistently apply industry best practices. Whether you are starting a new microservice, refactoring legacy code, or onboarding teammates to Spring Boot conventions, this skill ensures generated code follows proper layered architecture, clean configuration, and robust testing patterns.
Same repository
github/awesome-copilot(314 items)
Installation
npx vibeindex add github/awesome-copilot --skill java-springbootnpx skills add github/awesome-copilot --skill java-springboot~/.claude/skills/java-springboot/SKILL.mdSKILL.md
More from this repository10
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Generates comprehensive Product Requirements Documents (PRDs) by systematically analyzing requirements and crafting detailed technical specifications
Expert technical writer guided by the Diataxis framework, creating tutorials, how-to guides, reference docs, and explanation pages for software documentation.
Generates Excalidraw diagrams from natural language descriptions, creating visual representations of processes, systems, relationships, and ideas.
A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.
Creates optimized multi-stage Dockerfiles for any language or framework, separating builder and runtime stages to produce smaller, more secure container images.
Creates README.md files for projects.
Merges mature lessons from domain memory files into instruction files, consolidating knowledge with minimal redundancy across global, user, and workspace scopes.
Generates Playwright end-to-end tests from user-described scenarios using Playwright MCP for browser automation.