spring-data-jpa

spring-data-jpa is a skill for Claude Code from a-pavithraa/springboot-skills-marketplace. It costs 67 tokens per session (1,157 once invoked), scanned A, original, MIT.

A guide for designing and building data storage in Spring Boot 4 applications using Spring Data JPA, a Java framework for working with relational databases.

In plain words
What is it for?
Use it to design repositories, relationships, projections, custom queries, CQRS read models, and persistence performance fixes.
Why use it?
It helps choose sensible boundaries for stored data, queries, transactions, and performance instead of applying the same repository pattern everywhere.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the springboot-architecture plugin — 4 skills shipped together

Good fit Use it to design repositories, relationships, projections, custom queries, CQRS read models, and persistence performance fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add a-pavithraa/springboot-skills-marketplace --skill spring-data-jpa
Clone the repo
git clone --depth 1 https://github.com/a-pavithraa/springboot-skills-marketplace

Made for: Claude Code.

Or install springboot-architecture, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-data-jpa

README.md
[![agentmods](https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa/github.svg)](https://agentmods.dev/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa)
Your own site
<a href="https://agentmods.dev/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa"><img src="https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-data-jpa

Your own site · 80×15
<a href="https://agentmods.dev/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa"><img src="https://agentmods.dev/badge/skills/a-pavithraa/springboot-skills-marketplace/spring-data-jpa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 94
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.01157
Opus 5 $0.00034 $0.00579
Sonnet 5 $0.00013 $0.00231
Haiku 4.5 $0.00007 $0.00116

Measured 11d ago against content hash 7013a9844caf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

spring-data-jpa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/springboot-architecture/skills/spring-data-jpa/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Data JPA Implementation

Purpose

Use this skill when the task is specifically about persistence design or implementation in a Spring Boot codebase. This skill adds value through aggregate-root guidance, query-pattern selection, CQRS read-model decisions, and the bundled repository and relationship templates.

Critical rules

  • Never create repositories for every entity. Create repositories only for aggregate roots.
  • Never rely on long derived query method names when the query has become non-trivial.
  • Never use save() blindly when entity state transitions matter; understand persist versus merge behavior.
  • Prefer projections or dedicated query services for read-heavy paths.
  • Keep transaction boundaries in the service layer unless the existing architecture intentionally does otherwise.

Workflow

Step 1: Identify the persistence problem

Collect the minimum context first:

  1. Is the type an aggregate root or an internal entity?
  2. Is the task primarily read-side, write-side, or both?
  3. Is the query simple lookup, filtered search, aggregation, projection, or dynamic criteria?
  4. Is the path performance-sensitive?
  5. Are there module-boundary or loose-coupling constraints that affect relationship modeling?

Step 2: Choose the implementation pattern

Use this table to decide what to load next.

Pattern Use when Read
Simple repository Basic CRUD and 1-2 simple lookups Existing code or none
@Query repository Multiple filters, joins, sorting, readable JPQL references/query-patterns.md
DTO projection Read-only and performance-critical responses references/dto-projections.md
Custom repository Criteria API, bulk operations, EntityManager logic references/custom-repositories.md
CQRS query service Separate read and write models, reporting, specialized read paths references/cqrs-query-service.md

Use this decision guide:

Need Simple @Query DTO Custom CQRS
Basic CRUD Yes Yes No Yes Yes
Custom filters No Yes Yes Yes Yes
Best read performance No Sometimes Yes Sometimes Yes
Complex dynamic logic No No No Yes Yes
Clear read/write split No No Sometimes Sometimes Yes

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 142 lines · 67 tokens per session scan A 7013a9844caf

Subscribe to this mod's changes

spring-data-jpa is a skill published in the GitHub repository a-pavithraa/springboot-skills-marketplace (75 stars, last pushed 16d ago), licensed MIT. It adds 67 tokens to every session and 1,157 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

311-frameworks-spring-jdbc

Use when you need to write or review programmatic JDBC with Spring — including JdbcClient (Spring Framework 7+) as the default API, JdbcTemplate only where batch/streaming APIs require JdbcOperations, NamedParameterJdbcTemplate for legacy named-param code, parameterized SQL, RowMapper mapping to records, batch…

jabrena/plinth · 173 tokens

412-frameworks-quarkus-panache

Use when you need data access with Quarkus Hibernate ORM Panache — including PanacheEntity / PanacheEntityBase, PanacheRepository, named queries, JPQL, native SQL, DTO projections (project(Class)), pagination (Page.of()), N+1 avoidance (JOIN FETCH), optimistic locking (@Version / OptimisticLockException), @NamedQuery…

jabrena/plinth · 189 tokens

413-frameworks-quarkus-db-migrations-flyway

Use when you need to add or review Flyway database migrations in a Quarkus application — quarkus-flyway extension, db/migration scripts, quarkus.flyway. configuration, migrate-at-start, and alignment with JDBC or Panache. This should trigger for requests such as Add or review Flyway migrations in a Quarkus project…

jabrena/plinth · 136 tokens

416-frameworks-quarkus-mongodb-migrations-mongock

Use when you need to add or review Mongock MongoDB data migrations in a Quarkus application — including the Quarkiverse Mongock extension, Quarkus MongoDB client configuration, migrate-at-start, @ChangeUnit classes, lock/transaction settings, and Quarkus test verification. This should trigger for requests such as Add…

jabrena/plinth · 135 tokens

312-frameworks-spring-data-jdbc

Use when you need to use Spring Data JDBC with Java records — including entity design with records, repository pattern, immutable updates, aggregate relationships, custom queries, transaction management, and avoiding N+1 problems. This should trigger for requests such as Review Java code for Spring Data JDBC; Apply…

jabrena/plinth · 110 tokens

411-frameworks-quarkus-jdbc

Use when you need programmatic JDBC in Quarkus — Agroal DataSource, parameterized SQL, transactions, batching, and Dev Services. This should trigger for requests such as Review JDBC or SQL data access in a Quarkus project; Improve transactions and parameter binding for Quarkus JDBC; Translate SQLException to domain…

jabrena/plinth · 112 tokens