django

Solid

Use when building Django applications. Covers ORM query performance, model design, migrations, Django REST Framework, security defaults, and testing.

API & Backend 23 stars 2 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
46
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Django ## Purpose Build Django applications that use the ORM efficiently and the framework's security defaults correctly. Most Django performance problems are one missing `select_related` away from being fixed. ## When to Use - Building or reviewing a Django application or DRF API. - Diagnosing slow views caused by the ORM. - Writing migrations that must run against a large table. - Auditing Django security settings before launch. ## Capabilities - ORM: `select_related`, `prefetch_related`, annotations, subqueries, bulk operations. - Model design: constraints, indexes, and validation at the database level. - Migrations, including zero-downtime patterns for large tables. - Django REST Framework: serializers, viewsets, permissions, pagination. - Security: the settings that must not be wrong in production. ## Inputs - The application, its models, and the slow view or endpoint if there is one. - Table sizes, for anything involving migrations. - Deployment environment and settings module. ## Outputs - Views with a bounded, predictable query count. - Migrations that do not lock a large table. - Settings that pass `manage.py check --deploy`. ## Workflow 1. **Count the queries** — `assertNumQueries` in tests, `django-debug-toolbar` in development. An N+1 is invisible until you count. 2. **Fix them at the queryset** — `select_related` for forward foreign keys (a join), `prefetch_related` for reverse and many-to-many (a second query). Not both, not neither. 3. **Push work...

Details

Author
nimadorostkar
Repository
nimadorostkar/Claude-Skills-collection
Created
1 weeks ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

django-patterns

Django patterns, anti-patterns, ORM gotchas, view design, migrations, settings, and review checklist for Django backend work. Use whenever the project contains `manage.py`, `settings.py`, `apps.py`, OR `pyproject.toml`/`requirements.txt`/`Pipfile` with `django` (or `Django`) listed as a dependency, OR the user asks about Django, Python web backend, ORM queries, models, views, forms, templates, migrations, admin, signals, middleware, or any work touching `.py` files in a Django app structure, even if Django is not mentioned by name.

0 Updated today
ku5ic
AI & Automation Solid

django-expert

Use when building Django web applications or REST APIs with Django REST Framework. Invoke for Django models, ORM optimization, DRF serializers, viewsets, authentication with JWT.

4 Updated today
zacklecon
AI & Automation Listed

django-expert

Use when writing or debugging Django and Django REST Framework: ORM querysets, migrations, signals, admin, async views, Channels, Celery / Dramatiq / RQ tasks, ASGI / WSGI deploys, settings. Covers Django 5.x idioms, `select_related` vs `prefetch_related`, N+1 hunting, `UniqueConstraint` and `CheckConstraint` on `Meta`, DRF ViewSets, serializers, permissions, `RunPython` data migrations, atomic reversible migrations, async view boundaries with `sync_to_async`, Celery `acks_late` and idempotency, bounded context per app, settings split, version upgrade checklists. Triggers: Django, DRF, ORM, queryset, select_related, prefetch_related, signals, Channels, async view, manage.py, makemigrations, Celery, Dramatiq, RQ, gunicorn, uvicorn, ASGI, WSGI. Produces models, ViewSets, serializers, migrations, tasks, settings. Not for cross language API contracts, see `senior-backend-engineer`. Not for query plans, see `postgres-expert`. Not for blank page schema, see `data-modeler`.

0 Updated 1 weeks ago
iamdemetris