Django Expert guides Claude through Django 5.0 and Django REST Framework work in a fixed order: analyze requirements, design models, implement views, validate endpoints, add authentication and test.
Five reference files cover models and the ORM, DRF serializers, viewsets and async views, SimpleJWT authentication and permissions, and testing with APITestCase, fixtures and factories.
What You Get
- Model definitions with indexes, managers and sensible relationships
- DRF serializers with field-level and object-level validation
- ViewSets or async views with permission classes
- SimpleJWT authentication with custom claims and permissions
- APITestCase tests for models and endpoints
Common Use Cases
- Designing models and migrations for a new Django project
- Removing N+1 queries from a slow list endpoint
- Adding JWT login, refresh and role-based permissions to an API
- Writing API tests with fixtures or Factory Boy
What Makes It Unique
The rules name concrete Django habits: environment variables for secrets, DEBUG off in production, no raw SQL without parameters and a note on query optimization with every feature. The workflow runs migrations and a quick endpoint check before authentication is added, so schema and routes are confirmed first.
Under The Hood
The skill is a SKILL.md with five reference files and no scripts, and the references load by topic. The workflow tells the agent to run manage.py makemigrations and migrate, which change the project’s database, and to check endpoints with APITestCase or a curl request. The references show Python code that creates and edits project files. The skill does not fetch web pages or call outside APIs by itself.