Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
amplicode avatar

Spring Data Jpa

  • 213 installs
  • 105 repo stars
  • Updated July 27, 2026
  • amplicode/spring-skills

Spring Data JPA is an agent skill that discovers existing JPA entity conventions and generates new entities that match them.

About

Spring Data JPA is an agent skill that keeps new Hibernate entities consistent with what is already in your Spring Boot codebase. Solo builders use it when adding tables or bounded contexts without introducing a second style of IDs, fetch types, or setter patterns. The workflow deliberately lists domain entities, reads two or three representatives, and scores conventions like SEQUENCE versus IDENTITY, dedicated sequences per table, field-level annotations, and default LAZY associations before writing code. That makes it a strong fit for brownfield SaaS APIs where Amplicode or similar tooling exposes entity inventory. Intermediate complexity assumes you already run Spring Data repositories and want agent-generated entities that pass review on the first pass.

  • Ordered substeps 1.1→1.5: list entities, score conventions, then apply ID/sequence/access rules
  • Detects ID strategy among SEQUENCE, IDENTITY, and UUID with per-table vs shared sequence generators
  • Scores annotation placement, `serialVersionUID`, lazy `@ManyToOne`, and fluent vs void setters from live code
  • Uses `list_all_domain_entities` (or equivalent) to read representative entities before generating new ones

Spring Data Jpa by the numbers

  • 213 all-time installs (skills.sh)
  • Ranked #22 of 89 Java & JVM skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/amplicode/spring-skills --skill spring-data-jpa

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs213
repo stars105
Security audit3 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryamplicode/spring-skills

What it does

Add or extend Spring Data JPA entities and repositories that match your repo’s existing ID, sequence, Lombok, and fetch conventions.

Who is it for?

Best when you're on Spring Boot services and extend domain models and want one consistent persistence style.

Skip if: Greenfield projects with zero existing entities to inspect, or non-JVM stacks.

When should I use this skill?

Adding JPA entities or repositories and the codebase already has domain entities to mirror.

What you get

After the skill runs, new entities and repositories follow scored project conventions for ID generation, fetch type, annotations, and setters.

  • New entity classes aligned to detected ID and mapping conventions
  • Repository interfaces consistent with existing Spring Data patterns

By the numbers

  • Convention workflow uses ordered substeps 1.1 through 1.5 without skipping

Files

SKILL.mdMarkdownGitHub ↗

Preflight: Spring MCP

This skill is part of the Spring Agent Toolkit and is designed to work with the Spring MCP server (provided by the Amplicode IntelliJ plugin). Before doing anything else, check your tool list for any Spring MCP tool — they are exposed under the amplicode MCP server (e.g. get_project_summary, list_module_dependencies, get_entity_details); harnesses that flatten MCP tools into the tool list use the mcp__amplicode__ prefix on the same names.

  • If at least one Amplicode tool is available — MCP is connected. Proceed with the skill below.
  • If none are available — stop and invoke the `amplicode-install` skill (bundled with the Spring Agent Toolkit). It installs the Amplicode plugin and walks the user through the «Настроить Spring Agent» welcome-screen button + MCP-client restart. After it completes, the MCP tools become available — resume this skill.
  • If amplicode-install is not registered in your skill list, tell the user (in their language): "This skill needs the Amplicode IntelliJ plugin and its MCP server. Install it from https://amplicode.ru/marketplace into IntelliJ IDEA Ultimate/Community or GigaIDE, open any project, click «Настроить Spring Agent» on the Amplicode welcome screen, then restart your MCP client."

---

Working with JPA Entities

When the task involves creating or modifying a JPA entity:

1. If entity conventions have not been detected yet in this conversation — check memory for previously saved conventions first. If found in memory, reuse them. Otherwise read references/entity-conventions.md and follow all substeps there to detect project conventions. 2. Read references/entity-rules-impl.md and follow the rules there when writing or modifying the entity

Reviewing JPA Patterns

When the user asks to review JPA patterns, conventions, or code quality in the project:

1. Detect current conventions by following references/entity-conventions.md (steps 1.1–1.5). 2. Compare the detected conventions against the best practices defined in references/entity-rules-impl.md. For each deviation, output a recommendation in the format:

### JPA Review

**[Convention or pattern name]**
- Current: <what the project does>
- Recommended: <what the best practice says>
- Reason: <why this matters>

If no deviations are found — state that the project follows best practices.

---

Working with Transactions

When the task involves adding or modifying transactional behavior:

1. If transaction conventions have not been detected yet in this conversation — check memory for previously saved conventions first. If found in memory, reuse them. Otherwise read references/transaction-conventions.md and follow all substeps there to detect project conventions. 2. Read references/transaction-rules-impl.md and follow the rules there when writing or modifying transactional code.

Related skills

How it compares

Use instead of generic “create JPA entity” prompts when convention detection from the repo matters more than textbook examples.

FAQ

Who is spring-data-jpa for?

backend developers using Spring Boot and Hibernate who add entities without breaking team-wide persistence patterns.

When should I use spring-data-jpa?

Use it in Build → backend when scaffolding repositories, mirroring legacy tables, or expanding a modular monolith after listing existing domain entities.

Is spring-data-jpa safe to install?

Review the Security Audits panel on this page; the skill reads project source and may invoke listing tools—avoid running it on repos with untrusted macros or secrets in entity files.

Java & JVMbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.