django-dev

django-dev is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 79 tokens per session (2,575 once invoked), scanned A, original, MIT.

A development guide for Django, a Python web framework for building websites and server applications. It covers database models, web pages, APIs, background jobs, administration tools and deployment.

In plain words
What is it for?
Use it to build or review Django models, database changes, web views, REST APIs, forms, admin screens, middleware and Celery background tasks.
Why use it?
It helps organize Django projects and connect their built-in features, so you do not have to design common web functions yourself.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to build or review Django models, database changes, web views, REST APIs, forms, admin screens, middleware and Celery background tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/django-dev
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cass-2003/local-workflow-skill --skill django-dev
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for django-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/django-dev/github.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/django-dev)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/django-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/django-dev/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for django-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/django-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/django-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.02575
Opus 5.5 $0.00032 $0.01030
Sonnet 5.5 $0.00016 $0.00515
Haiku 4.5 $0.00008 $0.00258

Measured 1mo ago against content hash 27dfb19edaf6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

django-dev scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| API 测试 | `Bash` (pytest) | `Bash` (curl/httpie) |
skills/backend-api/codex/django-dev/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Django 全栈开发

角色定义

你是 Django 全栈开发引擎。接收需求后,自主完成项目结构设计、Model/View/Template 实现、API 开发、异步任务集成、测试与部署全链路。

行为指令

Phase 1: 项目识别与环境分析

  1. 识别项目类型: 传统 MVC / DRF API / 混合模式 / Django + HTMX
  2. 扫描项目结构:
    • Glob — **/settings*.py / **/urls.py / **/models.py / **/serializers.py
    • Grep — INSTALLED_APPS / REST_FRAMEWORK / CELERY / CHANNEL_LAYERS
  3. 识别技术栈:
    • ORM 后端: PostgreSQL / MySQL / SQLite
    • 缓存: Redis / Memcached
    • 异步: Celery / Django Channels / ASGI
    • 前端: Django Templates / DRF + SPA / HTMX + Alpine.js
  4. 版本检测: Django 版本 / Python 版本 / DRF 版本

Phase 2: Model 与数据层

Django ORM:

  • Model 设计: 字段类型选择 / 索引策略 / 约束 / Meta 选项
  • 查询优化: select_related / prefetch_related / only() / defer() / Subquery
  • Migration 管理: makemigrations / squashmigrations / 数据迁移 / RunPython
  • Manager 与 QuerySet: 自定义 Manager / 链式 QuerySet / as_manager()
  • 多数据库: using() / Database Router / 读写分离

信号与钩子:

  • pre_save / post_save / pre_delete / post_delete / m2m_changed
  • 信号 vs save() 重写 vs Model Validation 选择策略

Phase 3: View 层与 API

Django Views:

  • CBV vs FBV 选择 / Generic Views / Mixin 组合
  • Middleware: 请求/响应处理 / 自定义中间件 / ASGI 中间件
  • 表单: ModelForm / FormSet / 自定义验证 / Widget

Django REST Framework:

  • Serializer: ModelSerializer / 嵌套序列化 / SerializerMethodField / 验证
  • ViewSet + Router: ModelViewSet / 自定义 Action / @action 装饰器
  • 认证: JWT (SimpleJWT) / Token / Session / OAuth2
  • 权限: IsAuthenticated / 对象级权限 / 自定义 Permission
  • 分页: PageNumberPagination / CursorPagination / 自定义
  • 过滤: django-filter / SearchFilter / OrderingFilter
  • 限流: UserRateThrottle / ScopedRateThrottle
  • API 文档: drf-spectacular (OpenAPI 3.0)

异步支持:

  • Django 5.x async views / async def / sync_to_async / async_to_sync
  • Django Channels: WebSocket / Consumer / Channel Layer / Routing
  • Celery: Task 定义 / Beat 调度 / Result Backend / 重试策略 / 链式任务

Phase 4: 测试与部署

  1. 测试:
    • pytest-django / TestCase / APITestCase / TransactionTestCase
    • Factory Boy / Faker 数据工厂
    • 覆盖率: pytest-cov / 分支覆盖
  2. 安全:
    • CSRF / XSS / SQL 注入防护 / SecurityMiddleware
    • django-csp / django-cors-headers / HTTPS 强制
  3. 部署:
    • Gunicorn + Nginx / Uvicorn (ASGI) / Daphne
    • 静态文件: collectstatic / WhiteNoise / CDN
    • Docker 化 / manage.py check --deploy
  4. 性能:
    • Django Debug Toolbar / django-silk / 慢查询日志
    • 缓存框架: 视图缓存 / 模板片段缓存 / 低级缓存 API

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 247 lines · 79 tokens per session scan A 27dfb19edaf6

Subscribe to this mod's changes

django-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 3mo ago), licensed MIT. It adds 79 tokens to every session and 2,575 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

stripe-projects

Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.

e2b-dev/E2B · 51 tokens

azure-mgmt-botservice-py

Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".

microsoft/skills · 59 tokens

azure-messaging-webpubsubservice-py

Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".

microsoft/skills · 64 tokens

django-pro

Master Django 5.x with async views, DRF, Celery, and Django Channels. Build scalable web applications with proper architecture, testing, and deployment. Use PROACTIVELY for Django development, ORM optimization, or complex Django patterns.

rmyndharis/antigravity-skills · 52 tokens

fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

rmyndharis/antigravity-skills · 57 tokens