jpa-persistence-test

jpa-persistence-test is a skill for Claude Code from AI-Unified-Process/marketplace. It costs 222 tokens per session (489 once invoked), scanned A, original, Apache-2.0.

A workflow for writing persistence tests for a Spring Data JPA application. JPA is a Java standard for mapping objects to database records, and these tests use a real database running in a Testcontainers container rather than a substitute database unless the project already uses one.

In plain words
What is it for?
Use it to create repository tests for a UC-XXX persistence layer, including database setup from the project's migration files.
Why use it?
It checks that entities, repositories, queries, and database mappings work against a database close to the application's real setup. It keeps expected test values tied to the use-case specification.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the aiup-core plugin — 29 skills, 1 agent shipped together

Good fit Use it to create repository tests for a UC-XXX persistence layer, including database setup from the project's migration files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-unified-process/marketplace/jpa-persistence-test
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 AI-Unified-Process/marketplace --skill jpa-persistence-test
Clone the repo
git clone --depth 1 https://github.com/AI-Unified-Process/marketplace

Made for: Claude Code.

Or install aiup-core, the plugin that ships this one along with the rest of its 29 skills, 1 agent.

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 jpa-persistence-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-unified-process/marketplace/jpa-persistence-test/github.svg)](https://agentmods.dev/skills/ai-unified-process/marketplace/jpa-persistence-test)
Your own site
<a href="https://agentmods.dev/skills/ai-unified-process/marketplace/jpa-persistence-test"><img src="https://agentmods.dev/badge/skills/ai-unified-process/marketplace/jpa-persistence-test/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 jpa-persistence-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-unified-process/marketplace/jpa-persistence-test"><img src="https://agentmods.dev/badge/skills/ai-unified-process/marketplace/jpa-persistence-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 222 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 489 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.
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.00222 $0.00489
Opus 5.5 $0.00089 $0.00196
Sonnet 5.5 $0.00044 $0.00098
Haiku 4.5 $0.00022 $0.00049

Measured today against content hash d8d3a4c36da3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jpa-persistence-test 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 today.

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.

aiup-core/evals/scenario-23/layer-skills/jpa-persistence-test/SKILL.md · 39 lines

What it actually says

JPA Persistence Test

Instructions

Write the @DataJpaTest repository tests of the use case $ARGUMENTS against a Testcontainers database. Name the class UC<id><Name>RepositoryTest and annotate every method with @UseCase.

Run Directly or from /use-case-test

Run from /use-case-test, this skill follows that skill's sections "If Tests for This Use Case Already Exist", "When a Test Fails", and "Which Layer Tests What"; it does not repeat them. The specification is the oracle: take every expected value from it, never from what the code returns.

Markers

Keep this skill's rows in the Markers table of docs/architecture/stack.md exactly as references/markers.md lists them: add them when they are missing, correct them when they differ. Touch no other row.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 39 lines · 222 tokens per session scan A d8d3a4c36da3

Subscribe to this mod's changes

jpa-persistence-test is a skill published in the GitHub repository AI-Unified-Process/marketplace (150 stars, last pushed yesterday), licensed Apache-2.0. It adds 222 tokens to every session and 489 once invoked, about $0.0009 per session on Opus 5.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-10-25.

Related

Other skills, from other repositories

adding-dbt-unit-test

Creates unit test YAML definitions that mock upstream model inputs and validate expected outputs. Use when adding unit tests for a dbt model or practicing test-driven development (TDD) in dbt.

dbt-labs/dbt-agent-skills · 44 tokens

cargo-pgrx

Choose and run cargo-pgrx commands, pgrx tests, pgtest coverage, and pgsys boundary checks.

yugabyte/yugabyte-db · 29 tokens

blueprint-cloudflare-data

Turn the spec's tables into D1 migrations with tests.

receptron/mulmoterminal · 18 tokens

synthetic-seeder

Generate two-sided synthetic data tests (source + Snowflake) for migrated stored procedures and functions. Derives test scenarios from source SQL branch analysis, writes step-based validation YAML artifacts, and enriches them with isolation metadata. Use when generating or refreshing test cases for a migrated object.…

sfc-gh-dflippo/snowflake-dbt-demo · 88 tokens

phpunit-migration-test-generation

Use this skill when the user asks to generate, write, or create migration tests for a Shopware 6 migration class — phrases like "generate migration tests", "write a migration test", "create migration test", "test this migration", "test Migration1234Foo". Analyzes the source migration's SQL operations to pick an…

shopwareLabs/ai-coding-tools · 141 tokens

proc-test-gen

Derive source-of-truth functional-equivalence assertions for ONE converted Informatica-to-Snowflake-Scripting mapping procedure (data-flow), independent of the converted SQL. Seeds input, deploys+CALLs the proc in an isolated test schema, and grades its target table against expected contents computed from the source…

sfc-gh-dflippo/snowflake-dbt-demo · 83 tokens