Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Django Developer

ASecurity

Expert Django developer specializing in Async Views, Django Ninja (FastAPI-like), and HTMX patterns for modern full-stack apps.

207 stars
0 votes
0 copies
2 views
Added 9/4/2026
developmentpythongosqlreactvuefastapidjangodockerapidatabase

Works with

cliapi

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add NeverSight/skills_feed --skill django-developer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Django Developer?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Django Developer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-django-developer/badge)](https://www.skillsdirectory.com/skills/neversight-django-developer)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: django-developer
description: Expert Django developer specializing in Async Views, Django Ninja (FastAPI-like), and HTMX patterns for modern full-stack apps.
---

# Django Developer

## Purpose

Provides Django and Python web development expertise specializing in async views, Django Ninja APIs, and modern full-stack patterns. Builds robust Python web applications with HTMX for server-driven UI, Django Channels for real-time features, and Celery for background tasks.

## When to Use

- Building scalable REST APIs (Django REST Framework or Django Ninja)
- Implementing Real-time features (WebSockets via Django Channels)
- Developing full-stack apps with HTMX (Server-driven UI)
- Handling background tasks (Celery/Redis)
- Optimizing Database performance (ORM Select/Prefetch, Indexes)
- Designing heavy-duty data models (Postgres JSONB, Constraints)

---
---

## 2. Decision Framework

### Architecture Selection

```
What is the project goal?
│
├─ **API First (Headless)**
│  ├─ Type-safe / Modern? → **Django Ninja** (Pydantic-based, fast)
│  └─ Legacy / Enterprise? → **DRF** (Batteries included, heavy)
│
├─ **Full Stack (Monolith)**
│  ├─ Complex UI (SPA)? → **Django + React/Vue** (API separation)
│  └─ Dynamic but Simple? → **Django + HTMX** (Hypermedia-driven, no build step)
│
└─ **Real-Time**
   ├─ Simple updates? → **HTMX Polling** or **SSE**
   └─ Complex/Bi-directional? → **Django Channels (WebSockets)**
```

### Async Strategy (Django 4.2+)

| Feature | Sync (WSGI) | Async (ASGI) | Recommendation |
|---------|-------------|--------------|----------------|
| **DB Queries** | `User.objects.get()` | `await User.objects.aget()` | Use Async for high-concurrency I/O (proxies, chat). |
| **Views** | `def view(req):` | `async def view(req):` | Keep Sync for CPU-bound tasks. |
| **Middlewares** | Standard | Async-compatible | Ensure middleware stack supports async. |

### Database Optimization

*   **N+1 Problem:** Always check `select_related` (Foreign Keys) and `prefetch_related` (M2M).
*   **Indexing:** Use `GinIndex` for JSONB search, `BTree` for standard lookups.
*   **Bulk Ops:** Use `bulk_create` and `bulk_update` for batches > 100 items.

**Red Flags → Escalate to `database-optimizer`:**
- ORM queries executing inside a `for` loop
- Loading 10k+ rows into memory (use `.iterator()`)
- "Raw SQL" usage without parameter binding (SQL Injection risk)
- Locking issues (Select for Update) blocking traffic

---
---

### Workflow 2: HTMX Integration (Server-Driven UI)

**Goal:** Implement an "Infinite Scroll" or "Click to Edit" without writing React.

**Steps:**

1.  **View (Python)**
    ```python
    def contact_list(request):
        contacts = Contact.objects.all()
        # If HTMX request, return only the rows (partial)
        if request.htmx:
            template = "partials/contact_rows.html"
        else:
            template = "contact_list.html"
        
        return render(request, template, {"contacts": contacts})
    ```

2.  **Template (`contact_list.html`)**
    ```html
    <!-- Search triggers server request on keyup -->
    <input type="text" 
           name="search" 
           hx-get="/contacts" 
           hx-trigger="keyup changed delay:500ms" 
           hx-target="#contact-rows">

    <table>
      <tbody id="contact-rows">
        {% include "partials/contact_rows.html" %}
      </tbody>
    </table>
    ```

---
---

### Workflow 4: Async ORM & Views

**Goal:** High-throughput API endpoint using `async/await`.

**Steps:**

1.  **View Definition**
    ```python
    # views.py
    from asgiref.sync import sync_to_async

    async def dashboard_stats(request):
        # Parallel DB queries
        user_count_task = User.objects.acount()
        order_count_task = Order.objects.acount()
        
        user_count, order_count = await asyncio.gather(
            user_count_task, 
            order_count_task
        )

        return JsonResponse({"users": user_count, "orders": order_count})
    ```

2.  **Middleware Compatibility**
    -   Ensure all middlewares are async-capable (`async_capable = True`).
    -   If blocking middleware exists, wrap it in `sync_to_async`.

---
---

## 4. Patterns & Templates

### Pattern 1: Service Layer (Business Logic)

**Use case:** Keeping Views and Models skinny.

```python
# services.py
class OrderService:
    @staticmethod
    def create_order(user, items_data):
        with transaction.atomic():
            order = Order.objects.create(user=user)
            for item in items_data:
                OrderItem.objects.create(order=order, **item)
            
            # Complex logic here
            PaymentGateway.charge(order)
            return order
```

### Pattern 2: Custom Manager (Query Logic)

**Use case:** Reusable filters.

```python
class PublishedManager(models.Manager):
    def get_queryset(self):
        return super().get_queryset().filter(status='PUBLISHED', pub_date__lte=timezone.now())

class Article(models.Model):
    # ...
    objects = models.Manager() # Default
    published = PublishedManager() # Custom
```

### Pattern 3: Async Chat (Channels)

**Use case:** WebSocket handling.

```python
# consumers.py
class ChatConsumer(AsyncWebsocketConsumer):
    async def connect(self):
        self.room_name = "lobby"
        await self.channel_layer.group_add(self.room_name, self.channel_name)
        await self.accept()

    async def disconnect(self, close_code):
        await self.channel_layer.group_discard(self.room_name, self.channel_name)

    async def receive(self, text_data):
        # Broadcast to group
        await self.channel_layer.group_send(
            self.room_name,
            {"type": "chat_message", "message": text_data}
        )
```

---
---

## 6. Integration Patterns

### **frontend-ui-ux-engineer:**
-   **Handoff**: Django Developer creates HTMX partials (`_card.html`) → UI Dev styles them.
-   **Collaboration**: Defining "OOB Swaps" (Out of Band) for updating multiple page parts.
-   **Tools**: Tailwind CSS.

### **database-optimizer:**
-   **Handoff**: Django Dev logs slow query → DB Optimizer adds Index.
-   **Collaboration**: Analyzing `EXPLAIN ANALYZE` output from ORM generated SQL.
-   **Tools**: Django Debug Toolbar.

### **devops-engineer:**
-   **Handoff**: Django Dev provides `Dockerfile` → DevOps configures Gunicorn/Uvicorn.
-   **Collaboration**: Static files handling (Whitenoise vs S3/CloudFront).
-   **Tools**: Docker Compose.

---

Attribution

NeverSightNeverSight
View sourceMore from NeverSight →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →