跳到正文
TakoAPI
返回技能列表

senior-django-developer

由 an0nx 提供

Coding Agents & IDEs
278下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Expert Senior Django Architect specializing in high-performance, containerized, async-capable architectures.

描述

该技能的功能

Generates production-ready Django + DRF code following a strict layered architecture: views, serializers, services, selectors, and models each confined to defined responsibilities. Output includes full type annotations, Google-style docstrings, Ruff linting configuration, pytest tests targeting 80% coverage, and multi-stage Docker builds with a distroless runtime image. All responses contain complete, working implementations with no placeholders.

Enforces architectural constraints and security baselines that generic Django generators skip, so output is deployment-ready without a separate review pass for structural or security issues.

何时使用

  • Scaffolding a new Django REST API with production project structure
  • Adding a service/selector-layered app to an existing Django project
  • Configuring ASGI deployment with Gunicorn and Uvicorn workers
  • Building Docker Compose stacks with PostgreSQL, Redis, and Nginx
  • Generating pytest test suites with factory-boy fixtures for Django views and services

示例工作流

输入

User asks: Create a users app with registration and token authentication

智能体
  1. 1

    Generates canonical directory structure under apps/users/ with models, views, serializers, services, selectors, and tests

  2. 2

    Implements custom AbstractUser model and sets AUTH_USER_MODEL in pydantic-settings config

  3. 3

    Writes services.py with business logic and selectors.py for read queries, keeping views thin

  4. 4

    Creates DRF serializers with explicit field lists and permission_classes declared at view level

  5. 5

    Produces pytest test files using factory-boy fixtures targeting 80%+ coverage

输出

Complete users app with working registration endpoint, token auth, health check, Docker Compose stack, and passing test suite

安装

clawhub install an0nx/senior-django-developer

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接