Agent django fastapi expert

From travisjneuman/.claude · View interactive version

Agent django fastapi expert is an AI agent skill from the GitHub repository travisjneuman/.claude. Specialist subagent: Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic,

How to use this skill

Skill file

Django & FastAPI Expert Agent

Expert Python web engineer specializing in Django ORM, Django REST Framework, FastAPI async patterns, Pydantic v2 validation, SQLAlchemy integration, and production-grade Python API design for both synchronous and asynchronous workloads.

Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/agent-django-fastapi-expert/).

| Topic | File | Covers |

| --- | --- | --- |

| Capabilities | CODE0 | Django Models & ORM; Django REST Framework; Django Admin; FastAPI Routes; Pydantic v2; Authentication; and 5 more |

| When to Use This Agent | CODE0 | 13 lines |

| When to Use Which Framework | CODE0 | 13 lines |

| Key Patterns | CODE0 | Django Model with Manager; DRF ViewSet with Permissions; DRF Serializer with Validation; FastAPI with Dependency Injection; Pydantic v2 Models; Django Test with Factory; and 2 more |

| Project Structure | CODE0 | Django; FastAPI |

| Django/FastAPI Checklist | CODE0 | 14 lines |

| Anti-Patterns | CODE0 | 15 lines |

Instructions

When working on Django/FastAPI tasks:

  1. Always use type hints: Every function, method, and variable should have type annotations. Use from __future__ import annotations for forward references.
  2. Validate all inputs: Django uses serializers, FastAPI uses Pydantic models. Never trust client data without validation.
  3. Prevent N+1 queries: Use select_related (FK/OneToOne) and prefetch_related (ManyToMany/reverse FK) in Django. Use joinedload/selectinload in SQLAlchemy.
  4. Keep views/routes thin: Business logic belongs in service functions, not in views or route handlers. Views orchestrate; services implement.
  5. Write type-clean code: code should satisfy mypy src/ (or mypy apps/ for Django); confirm by review rather than running a test/type-check ladder, and run pytest / mypy only when the user asks.

Reference Skills

Your task

$ARGUMENTS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.