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.
npx skills add vaquarkhan/Fullstack-development-agent-skills --skill hibernate-orm-persistencegit clone --depth 1 https://github.com/vaquarkhan/Fullstack-development-agent-skillsWrote 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.
[](https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/hibernate-orm-persistence)<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/hibernate-orm-persistence"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/hibernate-orm-persistence.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.00548 |
| Opus 5 | $0.00023 | $0.00274 |
| Sonnet 5 | $0.00009 | $0.00110 |
| Haiku 4.5 | $0.00005 | $0.00055 |
Grade A, and why
hibernate-orm-persistence 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hibernate ORM Persistence
Use When
- Complex entity graphs, inheritance, or custom SQL require full Hibernate control
- N+1 queries, fetch joins, or second-level cache tuning are needed
- Working with Hibernate directly (Jakarta EE) or via Spring Data JPA with native Hibernate features
Workflow
- Model entities with clear aggregate roots; prefer
FetchType.LAZYassociations. - Define equals/hashCode on business keys — not database IDs for transient entities.
- Use
@NamedQuery, JPQL, or Criteria API; native SQL only when justified. - Tune fetch plans:
@EntityGraph, join fetch, or DTO projections for read paths. - Enable query logging in dev; verify query count in tests for list endpoints.
Required Checks
- No
EAGERcollections on high-cardinality associations without explicit justification @Versionoptimistic locking on concurrent update entities- Batch size (
@BatchSizeorhibernate.default_batch_fetch_size) for collection fetching - Second-level cache only with explicit invalidation strategy
Examples And Templates
See examples/ for side-by-side good vs bad patterns agents commonly get wrong.
See templates/ for copy-paste starters aligned with this skill.
Decision Framework
- Prefer Spring Data repositories for simple CRUD; drop to Hibernate API for complex queries.
- Use
@SqlResultSetMappingor Blaze Persistence for heavy reporting queries. - Prefer
mergevspersistsemantics consciously in service layer. - Schema changes via Flyway/Liquibase — Hibernate
ddl-auto=validatein production.
Common Rationalizations And Rebuttals
- "EAGER loading prevents LazyInitializationException." -> Fix session boundaries and fetch plans; EAGER causes cartesian product queries.
- "Hibernate generates schema in prod." -> Use migrations; ddl-auto validate only.
- "Lombok @Data on entities is fine." -> Breaks entity equality and can trigger unnecessary updates.
Evidence Pack
- Entity relationship diagram with fetch types annotated
- Query count assertion for critical list/read endpoints
- Migration scripts aligned with entity model
- N+1 fix evidence (before/after query logs)
What ships with it
3 files 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.
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.
- 7d ago First seen · 60 lines · 47 tokens per session scan A ace1bf2bca87
hibernate-orm-persistence is a skill published in the GitHub repository vaquarkhan/Fullstack-development-agent-skills (2 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 548 once invoked, about $0.0002 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-31.
Other skills, from other repositories
ruoyi-cloud
Use when scaffolding Java Spring Cloud microservice backends — Nacos service discovery, Sentinel rate limiting, Seata distributed transactions, Spring Boot 3 + Vue 3 admin. RuoYi-Cloud: popular Chinese Spring Cloud microservice boilerplate framework.
others-skills
Use when needing Go language development, desktop RPA automation, self-hosted email marketing, Java Spring Cloud scaffolding, or SSL/TLS certificate automation. Index of 6 skills: Go, RobotGo, RobotGo-Flow, BillionMail, RuoYi-Cloud, acme.sh.
spring-boot
Spring Boot 3.x - Java framework for production-ready applications with dependency injection, REST APIs, data access, security, and actuator monitoring.
spring-boot-4-conventions
Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.
quarkus-expert
High-performance Quarkus framework expertise covering reactive patterns, CDI, build-time augmentation, and cloud-native development. Use for general Quarkus questions.
senior-java
World-class Java and Spring Boot development skill for enterprise applications, microservices, and cloud-native systems. Expertise in Spring Framework, Spring Boot 3.x, Spring Cloud, JPA/Hibernate, and reactive programming with WebFlux. Includes project scaffolding, dependency management, security implementation, and…