room-entity-pattern
OfficialStandardize Room entities, DAOs, and migrations.
AuthorAniTrend
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you avoid fragile, inconsistent persistence implementations by providing a repeatable Room entity/DAO/mapper/repository template and a safe migration checklist.
Core Features & Use Cases
- Four-file pattern: Produces
XxxEntity,XxxDao,XxxMapper, andXxxRepositorythat align domain logic with Room persistence. - Surrogate-PK join table rules: Ensures many-to-many and connection tables behave correctly with composite uniqueness and conflict-safe upserts.
- Migration checklist: Guides schema-impacting changes through versioning, schema export inspection, validation, and on-device smoke testing.
Quick Start
Follow the Room Entity / DAO / Mapper / Repository Pattern by modeling your new persistence table as a nullable surrogate-PK entity (when appropriate) and wiring it through the four-file pattern starting from the existing tag implementation.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: room-entity-pattern Download link: https://github.com/AniTrend/anitrend-v2/archive/main.zip#room-entity-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.