# Django Framework

Django Framework guides agents in building Django applications with database models, authentication workflows, and Django REST Framework endpoints.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 108 installs · ★ 7 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/django-framework/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/django-framework

## What it does

The skill guides coding agents through standard Django MVT patterns and project configuration. It provides rules for defining Django ORM models, setting up relationships, managing migrations, and applying query optimizations like `select_related`.

It also covers security layers and endpoint construction. That includes session or token authentication, access control via permissions, and building API endpoints using Django REST Framework serializers and viewsets. The underlying configuration enables request latency metrics and exponential backoff.

Using the API patterns requires installing `djangorestframework` separately in your environment, because base Django does not ship with it.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill django-framework -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill django-framework -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill django-framework -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-python skills/django-framework
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill django-framework -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-python --path skills/django-framework
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-python --skill django-framework -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/pluginagentmarketplace/custom-plugin-python/tree/HEAD/skills/django-framework/SKILL.md

## When to use it
- set up relational data models using Django ORM
- configure user authentication and permission checks
- build RESTful endpoints with serializers and viewsets
- optimize database queries to avoid redundant lookups

## Example prompts
- Create a product and category data model with foreign keys and optimized queryset queries
- Add session-based login and protect the dashboard view with permission checks
- Build a ModelViewSet with a custom serializer and category filtering using DRF

## Similar
- [django-expert](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-django-expert.md) — skill · 4600 installs
- [django-rest-framework](https://affpapa.org/en/nevibecode/skills/django-rest-framework.md) — skill · 265 installs
- [django](https://affpapa.org/en/nevibecode/rules/django.md) — rule · ★ 3589 repo stars
- [django-python](https://affpapa.org/en/nevibecode/skills/django-python.md) — skill · 991 installs
- [django-rest-api-development](https://affpapa.org/en/nevibecode/skills/django-rest-api-development.md) — skill · 921 installs
- [django-patterns](https://affpapa.org/en/nevibecode/skills/django-patterns.md) — skill · 7100 installs

From the same set: [pluginagentmarketplace/custom-plugin-python](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-python.md) — 12 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
