code-like-djangonoutlisted
Install: claude install-skill vigo/claude-skills
# Django Development Skill
## When to Use
Use this skill when:
- Writing, reviewing, or refactoring Django applications
- Creating or modifying Django models, views, admin, forms
- Setting up Django project structure and tooling
- Implementing Celery tasks and signals
- Writing Django tests
- Configuring linters (ruff, pylint) for Python/Django
## Prerequisites Check
Before starting any Django work:
```bash
# Check Python version
python --version
# Check for .python-version file
cat .python-version 2>/dev/null
# Verify virtual environment is active
echo $VIRTUAL_ENV
# Check Django version
python -c "import django; print(django.VERSION)"
# Check if ruff is available
command -v ruff
# Check if pylint is available
command -v pylint
```
---
## Instructions
### General Coding Approach
- All naming and comments must be in **English**
- Follow Python (PEP 8) and Django conventions
- Virtual environment must be activated
- Detect project's Python version and use appropriate features
- **Do not use type annotations** (Django doesn't fully rely on them)
- If annotations are needed, import: `from __future__ import annotations`
---
### Formatting and Linting
#### Ruff Setup
```bash
python -m pip install ruff
```
Minimal `.ruff.toml`:
```toml
line-length = 119
indent-width = 4
target-version = "py312"
exclude = [
"**/migrations",
"**/manage.py",
]
[format]
quote-style = "single"
exclude = ["**/manage.py"]
[lint]
select = ["ALL"]
allowed-confusables = ["ı", "