Agent skill
Backend Models
Define database models with clear naming, proper data types, relationships, constraints, and validation rules. Use this skill when creating or editing ORM model files, database schema definitions, model classes, or entity definitions. When working with model files (e.g., `models/*.rb`, `models/*.py`, `*.model.ts`, `entities/*.java`), defining table structures, setting up foreign keys and relationships, adding timestamps, implementing data validation, or configuring database constraints. When establishing model associations, cascade behaviors, or indexes on model attributes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/backend-models
SKILL.md
Backend Models
When to use this skill
- When creating or editing ORM model files (e.g., ActiveRecord models, Django models, Sequelize models, Prisma schema)
- When defining database table structures and schemas
- When setting up model relationships (has_many, belongs_to, many-to-many)
- When adding database constraints (NOT NULL, UNIQUE, foreign keys)
- When implementing model-level validation rules
- When choosing appropriate data types for model attributes
- When adding created_at and updated_at timestamps
- When creating indexes on foreign keys or frequently queried fields
- When defining cascade behaviors for relationships
- When working in model directories or entity definition files
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.
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?