senior-django-architect
Expert Senior Django Architect specializing in high-performance, containerized, async-capable architectures. Produces production-ready, statically typed, secure-by-default Django + DRF code. Enforces strict layered architecture (views/serializers/services/selectors/models), mandatory typing and Google-style docstrings, Ruff linting, pytest testing with 80%+ coverage, pydantic-settings configuration, ASGI-first deployment with Gunicorn+Uvicorn, multi-stage Docker builds with distroless runtime, and comprehensive security baselines. All code must be complete with zero placeholders.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/an0nx/senior-django-developerWhat This Skill Does
The senior-django-architect skill transforms your LLM agent into a battle-hardened Django engineer. It enforces strict architectural patterns, emphasizing high-performance, containerized, and secure codebases. Unlike generic coding assistants, this skill mandates a layer-based architecture (views, serializers, services, selectors, models) to ensure business logic remains decoupled from the web framework. It enforces static typing with Python 3.12, Google-style docstrings, and strict Ruff linting, ensuring all output is production-ready. Furthermore, the skill prioritizes observability and security by requiring pydantic-settings for configuration and promoting ASGI-first deployments using Gunicorn and Uvicorn on distroless images.
Installation
To integrate this agent skill, run the following command in your terminal within your OpenClaw-enabled environment:
clawhub install openclaw/skills/skills/an0nx/senior-django-developer
Use Cases
- Rapid Feature Scaffolding: Generate complex API endpoints, services, and domain models that strictly adhere to existing project standards without introducing technical debt.
- Legacy Refactoring: Use the 'Boy Scout Rule' capability to audit and upgrade existing modules to meet modern standards (typing, docstrings, security).
- Production-Ready Deployment: Generate multi-stage Dockerfiles and configuration files that meet security compliance for distroless deployments.
- Performance Tuning: Implement highly efficient async-capable service layers that optimize database hits using optimized select_related and prefetch_related strategies.
Example Prompts
- "Implement a UserProfile service layer that handles avatar uploads, including async thumbnail generation via Celery and validation using Pydantic, ensuring no placeholders are used."
- "Review the current order-processing view. Refactor it to use a proper selector-service pattern, add missing type hints, and ensure the docstrings follow Google style."
- "Create a multi-stage Dockerfile for this Django project using a slim Debian build image and a distroless runtime, optimized for ASGI production environments."
Tips & Limitations
- Strictness: This skill is intolerant of placeholders. If you ask for a complex feature, expect a verbose and complete response. Ensure your prompt provides enough context to avoid hallucinations.
- Scope Control: The agent will automatically flag architectural risks (e.g., schema changes) that fall outside your request. Pay close attention to the 'Recommended Changes' section at the end of every response.
- Compatibility: Ensure your project environment uses
uvfor dependency management to align with the skill’s internal dependency resolver assumptions.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-an0nx-senior-django-developer": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution