# django-expert

Walks your agent through Django models, views, DRF serializers and ORM query tuning, following the framework's own conventions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 5700 installs · ★ 162
- Author: vintasoftware
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vintasoftware/django-ai-plugins/tree/HEAD/skills/django-expert/SKILL.md
- Updated: 2026-07-23
- HTML: https://affpapa.org/en/nevibecode/skills/django-expert

## What it does

The skill fires when you ask the agent for a model, an endpoint, a serializer, or help with a slow query. It works in steps: read the request and the project context first, load the matching reference file, then write code that follows Django practice.

References live in `references/`. `models-and-orm.md` covers fields, relations and migrations. `views-and-urls.md` covers FBV versus CBV. `drf-guidelines.md` handles serializers and viewsets. `performance-optimization.md` is about `select_related()` and `prefetch_related()`. There is also `security-checklist.md` for CSRF and XSS, `testing-strategies.md` for fixtures and factories, and `production-deployment.md` for `DEBUG`, `SECRET_KEY`, `ALLOWED_HOSTS`, HTTPS and caching.

One catch: this assumes a Django project already exists. On FastAPI or Flask the ORM and DRF references will just mislead the agent, so check the fit before installing.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add vintasoftware/django-ai-plugins --skill django-expert -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/django-expert/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/django-expert/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add vintasoftware/django-ai-plugins --skill django-expert -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/django-expert/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add vintasoftware/django-ai-plugins --skill django-expert -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/django-expert/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install vintasoftware/django-ai-plugins django-expert
```

2. **Manually: put the files in place**
- File: `.github/skills/django-expert/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add vintasoftware/django-ai-plugins --skill django-expert -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/vintasoftware/django-ai-plugins --path skills/django-expert
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/django-expert/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add vintasoftware/django-ai-plugins --skill django-expert -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/vintasoftware/django-ai-plugins/tree/HEAD/skills/django-expert/SKILL.md

## When to use it
- design a model and its relations
- kill an N+1 query
- build a DRF serializer and viewset
- write tests for a Django app
- run a production settings checklist

## Example prompts
- Create an Order model linked to User and Product
- This view is slow — inspect the queries and fix the N+1
- Add pagination and filtering to this API

## Similar
- [django-patterns](https://affpapa.org/en/nevibecode/skills/django-patterns.md) — skill · 5200 installs
- [django-developer](https://affpapa.org/en/nevibecode/agents/django-developer.md) — subagent · 344 installs
- [django-rest-api-development](https://affpapa.org/en/nevibecode/skills/django-rest-api-development.md) — skill · 868 installs
- [django-perf-review](https://affpapa.org/en/nevibecode/skills/django-perf-review.md) — skill · 2900 installs
- [django-python](https://affpapa.org/en/nevibecode/skills/django-python.md) — skill · 933 installs
- [django-tdd](https://affpapa.org/en/nevibecode/skills/django-tdd.md) — skill · 4700 installs

## Other versions with the same name
- [django-expert · jeffallan](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-django-expert.md) — 4200 installs

From the same set: [vintasoftware/django-ai-plugins](https://affpapa.org/en/nevibecode/by/vintasoftware/django-ai-plugins.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
