spring-boot-data-access
Optimize JPA, Hibernate, and database interactions in Spring Boot. Use when implementing JPA entities, repositories, or database access in Spring Boot.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 3
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 b7180cc3acf0002d… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Spring Boot Data Access
Priority: P0 (CRITICAL)
Configure JPA and Spring Data
- Read-Only: Default to
@Transactional(readOnly = true)on Services to optimize DB resources. - Projections: Use
Java Recordsfor Read-Only query results. Avoid fetching full@Entityobjects when not necessary. - Pagination: ALWAYS use
PageableandSlice(orPage) to prevent loading massive datasets. - Spring Data: Prefer
JpaRepositoryandQuery methods. Use@Querywith JPQL for complex logic. Use Flyway or Liquibase for migrations; never useddl-auto=createin production.
See implementation examples for repository projections, EntityGraph, and transactional patterns.
Optimize Queries and Transactions
- N+1 Problem: Fix
N+1selects usingJOIN FETCH(JPQL) or@EntityGraph. - Open-In-View: Set
spring.jpa.open-in-view=falseinapplication.yaml. - Bulk Operations: Use
@Modifyingwith@Queryfor updates/deletes to bypass EntityManager overhead. - Connection Pool: Configure
HikariCPwith explicitmaximum-pool-size. Tune Hikari pool-size based on expected concurrent queries.
Anti-Patterns
- No N+1 Selects: Use
JOIN FETCHor@EntityGraphinstead of lazy-loading in loops. - Entity Inflation: Don't use
@Data(Lombok) on Entities as it breaks Proxy andhashCode/equalsperformance. - Transactional Leak: Don't put
@Transactionalon publicRepositorymethods ifServicealready transactional. - Raw SQL: Avoid native SQL unless JPQL/Criteria API insufficient.
References
Files
3- SKILL.md
59125bf15e2.1 KB - evals/evals.json
ab92baf2422.3 KB - references/implementation.md
75f19e66d71.7 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from HoangNguyen0403/agent-skills-standard8
Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
Apply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns; defer Compose state and ViewModel/StateFlow implementation to their spec
Implement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers; defer FCM and notification delivery to android-notifications.
Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.
Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.
Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test reci
Configure release signing, R8 obfuscation, and App Bundle publishing for Android. Use when setting up signing configs, enabling minification, adding ProGuard keep rules, or preparing for Play Store submission.
Enforce Material Design 3 theming and design token usage in Jetpack Compose. Use when implementing M3 components, color schemes, typography, or design tokens.
Related backend skillsscan passed
PostHog integration for FastAPI applications
Java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and project layout. Automatically applies framework-specific conventions. Use when writing or reviewing Java in a Spring Boot or Quarkus service.
Report browser/API/CLI/job/worker/webhook bugs. (gstack)
This skill should be used when the user asks to "build an MCP server", "create an MCP", "make an MCP integration", "wrap an API for Claude", "expose tools to Claude", "make an MCP app", or discusses building something with the Model Context Protocol. It is the entry point for MCP server development
Identifies external providers, merchants, nonprofits, platforms, APIs, and software services, and resolves the documented way to engage them — to pay, donate, subscribe, book, provision, or integrate with them. MUST be used BEFORE web search, model memory, or any other directory/vendor-lookup skill
Create and compose tRPC middleware with t.procedure.use(), extend context via opts.next({ ctx }), build reusable middleware with .concat() and .unstable_pipe(), define base procedures like publicProcedure and authedProcedure. Access raw input with getRawInput(). Logging, timing, OTEL tracing pattern