AGENT SKILL
jpa-entity-review
Review JPA/Hibernate entity mappings for N+1 queries, fetch strategy and transaction boundaries. Use when entity classes or repositories change.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- jpa-entity-review
- description
- Review JPA/Hibernate entity mappings for N+1 queries, fetch strategy and transaction boundaries. Use when entity classes or repositories change.
02 资源文件 1
- 参考文档habi.yaml146 B
03 SKILL.md 正文
JPA entity review
- Default to
FetchType.LAZYfor associations; justify everyEAGER. - Look for N+1 patterns in loops over associations; prefer fetch joins or entity graphs.
- Keep
equals/hashCodestable for detached entities (business key or id-based with care). - Check
@Transactionalboundaries on service methods that modify entities.
04 同仓库更多 Skills
habi-smoke-test
Use when the user says 'habi ping'.
★ 0
jpa-entity-review
Our own, hand-written JPA review notes (not installed by Habi).
★ 0
threat-model
Facilitate a lightweight threat-modeling session (STRIDE) for a new feature and record the outcomes.
★ 0
secrets-hygiene
Find and remove committed secrets, rotate them, and prevent recurrence.
★ 0
dependency-audit
Audit JavaScript/TypeScript dependencies for known vulnerabilities and summarize what to upgrade. Use before releases or when the lockfile changes.
★ 0
api-contract-review
Security-focused review of API contracts — authentication, authorization scopes and data exposure. Use when an OpenAPI document changes.
★ 0