dj-models

Installation
SKILL.md

Structure a Django Model

You are defining or restructuring a Django model in an opinionated, fully type-safe Django project. Every convention below is mandatory. Do not deviate.

BEFORE WRITING CODE

Read the model file being created or modified, plus:

  • src/project/ids.py — existing ID prefixes
  • Any existing models in the same app — for cross-model index considerations
  • The repository that queries this model — to understand real query patterns
  • src/<app>/admin.py — existing admin registrations

Model Structure

Every model follows this exact ordering of members:

Related skills

More from dvf/opinionated-django

Installs
10
GitHub Stars
105
First Seen
Apr 15, 2026