django-project-setup
БесплатноБез исполняемых скриптовНе проверенSet up a new Django 6.0 project with modern tooling (uv, direnv, HTMX, OAuth, DRF, testing). Use when the user wants to create a Django project from scratch…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Django 6.0 Project Setup
Automated setup for production-ready Django 6.0 projects with modern tooling.
What This Skill Does
Creates a complete Django 6.0 project with:
Modern Stack (2026)
- ✅ uv - Fast package manager (no pip/venv needed)
- ✅ Django 6.0 - Latest version with Python 3.12+ support
- ✅ PostgreSQL - Docker Compose + Supabase support
- ✅ Custom User Model - UUID primary keys from day 1
- ✅ direnv - Automatic environment management
- ✅ HTMX - Modern frontend interactivity
- ✅ OAuth - Authentication ready (django-oauth-toolkit)
- ✅ DRF + Pydantic - Type-safe API schemas
- ✅ pytest + factory_boy - Modern testing infrastructure
- ✅ mypy + ruff - Type checking and linting
- ✅ Docker Compose - Local PostgreSQL container
- ✅ Makefile - Common development commands
- ✅ Full Type Annotations - AI tooling optimized (Copilot, Cursor, Cody)
AI Tooling Compatibility
This project template is optimized for AI coding assistants:
- ✅ Full Type Coverage: All generated code has comprehensive type annotations
- ✅ Strict mypy:
disallow_untyped_defs = trueenforced from day 1 - ✅ Better Completions: AI tools understand code context and relationships
- ✅ Fewer Errors: Type checking catches issues before runtime
- ✅ Improved Refactoring: AI can suggest safer, type-aware refactorings
- ✅ Self-Documenting: Type hints serve as inline documentation
Compatible with: GitHub Copilot, Cursor, Cody, Continue, Tabnine, and other AI coding assistants.
Why This Matters
When you provide full type annotations:
- AI assistants give more accurate code completions
- Auto-import suggestions are more precise
- Refactoring suggestions are type-safe
- Error detection happens as you type
- Generated documentation is more comprehensive
Directory Structure
{project_name}/
├── config/ # Settings and core config
│ ├── settings/
│ │ ├── __init__.py
│ │ ├── base.py # Core settings
│ │ ├── dev.py # Development
│ │ └── prod.py # Production
│ ├── urls.py
│ ├── asgi.py
│ └── wsgi.py
├── apps/ # Django apps
│ ├── __init__.py
│ └── core/ # Shared utilities
│ ├── models.py # UUIDModel base class
│ └── ...
├── templates/ # Global templates
├── static/ # Global static files
├── pyproject.toml # uv dependencies
├── pytest.ini # Test configuration
├── conftest.py # Test fixtures
├── docker-compose.yml # PostgreSQL container
├── Makefile # Development commands
├── .envrc # Environment config
├── .env.example # Environment template
├── manage.py
└── CLAUDE.md # Project instructions
Usage
# With Docker PostgreSQL (default)
/django-project-setup myproject
# With Supabase
/django-project-setup myproject --with-supabase
The skill will:
- Parse arguments (project name and optional --with-supabase flag)
- Ask for first app name (e.g., 'accounts', 'blog', 'api')
- Create project structure with uv
- Set up database (Docker Compose or Supabase instructions)
- Configure direnv environment
- Install all dependencies
- Create custom User model with UUID
- Run initial migrations (or show Supabase setup instructions)
- Set up testing infrastructure
- Configure HTMX, OAuth, and DRF
- Create CLAUDE.md with project patterns
Requirements
- Python 3.12+ (Django 6.0 requirement - automatically installed by uv if missing)
- uv (will be installed if missing - handles Python version management)
- direnv (recommended, will prompt if missing)
- Docker (for local PostgreSQL)
After Setup
With Docker PostgreSQL (default)
# Start PostgreSQL
/usr/bin/make start-docker
# Run migrations
/usr/bin/make migrate
# Create superuser (set password in .envrc.local first)
/usr/bin/make createsuperuser
# Start development server
/usr/bin/make runserver
# Run tests
/usr/bin/make test
# Type checking
/usr/bin/make typecheck
# Linting
/usr/bin/make lint
Visit http://localhost:8000/admin/ to verify setup.
With Supabase
# 1. Complete Supabase setup (see SUPABASE_SETUP.md)
# 2. Add DATABASE_URL to .env.local
# 3. Allow direnv
direnv allow
# Run migrations
uv run python manage.py migrate
# Create superuser
uv run python manage.py createsuperuser
# Start development server
uv run python manage.py runserver
# Run tests
uv run pytest
# Type checking
uv run mypy .
# Linting
uv run ruff check .
Visit http://localhost:8000/admin/ to verify setup.
Execution Instructions
When this skill is invoked with a project name (e.g., /django-project-setup myproject or /django-project-setup myproject --with-supabase), follow these steps:
Prerequisites Check
- Parse Arguments:
# Extract project name (first non-flag argument) # Check if --with-supabase flag is present # Set use_su
Установить django-project-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл django-project-setup?
Set up a new Django 6.0 project with modern tooling (uv, direnv, HTMX, OAuth, DRF, testing). Use when the user wants to create a Django project from scratch with production-ready configuration.
Как установить скилл django-project-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл django-project-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic