create-model
OfficialWrap Prisma access in model-layer functions.
Authortech-with-seth
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Create Prisma model layer functions. Use when adding database operations. Never call Prisma directly in routes.
Core Features & Use Cases
- Standardized CRUD helpers: getItem, getItemsByUser, createItem, updateItem, deleteItem, and helpers for common queries.
- Enforced separation of concerns: All data access goes through the model layer, not routes.
- Use Case: When adding a new data feature, generate a consistent model layer to encapsulate Prisma logic and validations.
Quick Start
- Create a model layer file at app/models/yourModel.server.ts with standard CRUD functions (getItem, getItemsByUser, createItem, updateItem, deleteItem) utilizing the Prisma client and export them for route usage.
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: create-model Download link: https://github.com/tech-with-seth/iridium/archive/main.zip#create-model 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.