Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 = true enforced 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:

  1. Parse arguments (project name and optional --with-supabase flag)
  2. Ask for first app name (e.g., 'accounts', 'blog', 'api')
  3. Create project structure with uv
  4. Set up database (Docker Compose or Supabase instructions)
  5. Configure direnv environment
  6. Install all dependencies
  7. Create custom User model with UUID
  8. Run initial migrations (or show Supabase setup instructions)
  9. Set up testing infrastructure
  10. Configure HTMX, OAuth, and DRF
  11. 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

  1. Parse Arguments:
    # Extract project name (first non-flag argument)
    # Check if --with-supabase flag is present
    # Set use_su
    
Полный SKILL.md на GitHub

Установить django-project-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

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), без исполняемых скриптов.

Похожие скиллы

Сравнить django-project-setup с