Agent skill
Backend Models
Define database models and schemas with proper data types, constraints, relationships, and validation rules. Use this skill when creating or modifying database models, ORM entities, schema definitions, or data validation layers. When working on Prisma schema files, TypeORM entities, Drizzle schema definitions, Mongoose models, database model classes, files defining table structures and relationships, validation schemas for database entities, or files implementing data integrity constraints and cascading behaviors.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/backend-models-spaceplushy-portfolio-0c350737
SKILL.md
Backend Models
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend models.
When to use this skill
- When creating or modifying Prisma schema files (schema.prisma)
- When defining TypeORM entities or Drizzle schema definitions
- When writing Mongoose schemas or Sequelize models
- When implementing database table structures with columns and data types
- When defining relationships between models (one-to-one, one-to-many, many-to-many)
- When adding database constraints (NOT NULL, UNIQUE, CHECK, foreign keys)
- When creating indexes on model fields for query performance
- When implementing model-level validation rules or business logic
- When defining cascade behaviors for related data (CASCADE, SET NULL, RESTRICT)
- When setting up timestamps (createdAt, updatedAt) or soft delete functionality
Instructions
For details, refer to the information provided in this file: backend models
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?