Backend Models Standards

Installation
SKILL.md

Backend Models Standards

Core Rule: Models define data structure and integrity. Keep them focused on data representation, not business logic.

When to use this skill

  • When creating or modifying database model files (models.py, models/, schema.prisma, etc.)
  • When defining ORM classes or ActiveRecord models for database tables
  • When establishing table relationships (one-to-many, many-to-many, has-many, belongs-to)
  • When configuring foreign keys, indexes, and cascade behaviors
  • When implementing model-level validation rules
  • When adding timestamp fields (created_at, updated_at) for auditing
  • When setting database constraints (NOT NULL, UNIQUE, CHECK constraints)
  • When choosing appropriate data types for model fields
  • When balancing normalization with query performance needs
  • When defining model methods or scopes for common queries

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.

Related skills

More from microck/ordinary-claude-skills

Installs
GitHub Stars
219
First Seen