/seedkit:django-seedkitfrom seedkit
Bootstraps new Django projects or adds components (auth, payments, REST, Celery, async/WebSockets, Tailwind+DaisyUI, SEO, Docker, CI/CD, deploy) to existing codebases. Scaffolds project foundation, then walks through developer experience, auth, data, background tasks, frontend, SaaS features, real-time, and production setup.
Ships in seedkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two paths:
.git/ or stub README): run §2 → §8 in order.pyproject.toml and Django code): skip §2–§4. Read references/existing-project.md for the inventory workflow, then jump to §5/§6 and ask only about missing components.Before either path, run uv --version to confirm uv is installed (references/uv.md).
Every question below names the reference that answers it — read that one file before applying the step, and no others.
For every question that involves a third-party package: 1–2 sentences from the reference's intro on what it adds beyond stock Django, then ask. none (or no) is always a valid answer.
Use answers already given. Before asking any question, scan the user's initial request (and anything they've said since) for the answer. If it's there — explicit ("use PostgreSQL", "with Celery", "no auth") or unambiguous from context — take it as given, note the decision in one line, and move on. Don't re-ask to confirm. Only ask when the answer is genuinely missing or ambiguous.
Preflight — read these before the first tool call of a new-project run: references/new-project.md, references/database.md, and references/conventions.md (the cross-file contract: env var names, Redis DB map, prod compose service shape, SameSite rule, Python pins).
Name the groups you'll walk through — Project Foundation (§2), then Developer Experience, Auth & Accounts, Data & Storage, Background & Email, Frontend & Site Basics, SaaS / Product, Real-time (§5.1–5.7), then Production & Deploy (§6) — one sentence each. For existing projects: first follow references/existing-project.md and note what's already detected per group. Invite the user to begin.
settings.py or split base/local/production. → references/new-project.mdreferences/database.mdwsgi / asgi / asgi+channels. Default wsgi. Decide now — Dockerfile CMD, server choice, and the manage.py/wsgi.py/asgi.py settings defaults all hinge on this; switching later means rewriting deploy artefacts. See references/async.md (and references/realtime.md for the channels mode).docker-compose.yml for the local services). SQLite users skip. → references/docker.mddocker-compose.yml (from step 5): dev loop — manage.py on the host via uv run, or in a web container via docker compose. Default host. → references/docker.mdreferences/custom-user.md).Never bundle questions beyond the explicit pair in step 1.
Generate files from the matching references. .env DATABASE_URL must match DB + dev mode + dev loop (@localhost:5432 on the host, @db:5432 in the container). If custom user = yes, apply references/custom-user.md before the boot check. If DB=SQLite, also apply the production.py block from references/database.md (WAL + IMMEDIATE PRAGMAs) — settings tuning, not a user-facing question.
Run these yourself; do not ask the user. The goal is to catch foundation bugs before piling on add-ons, without making the user type uv run … commands that §5.1 may replace minutes later.
uv run manage.py migrate (start the local Postgres service first with docker compose up -d db when DB=Postgres-in-Docker).
Start uv run manage.py runserver --noreload in the background. --noreload drops the StatReloader so the listener is ready sooner; a sleep 2 then curl can still race on slow CI, so poll — and test the flag after the loop, because a bare for … curl … done exits 0 even when the server never came up:
for i in 1 2 3 4 5; do curl -sf http://127.0.0.1:8000/admin/login/ > /dev/null && up=1 && break; sleep 1; done
[ -n "$up" ] || echo "BOOT CHECK FAILED"
Stop the server. Use the recorded PID from the background-launch step (kill "$PID"); don't use kill %1 (no job control in non-interactive bash) or pkill -f manage.py (matches the parent harness process).
Container dev loop (§2.6): docker compose up -d --wait covers the server too — web has its own healthcheck and depends_on gates it on Postgres. Then docker compose exec web python manage.py migrate, the same curl poll, and docker compose logs web on a failure. There is no background PID; docker compose down stops it.
If migrate or the curl fails, fix the foundation before proceeding to §5. createsuperuser and the browser login move to §7 — they need a stable task runner name and a real browser, neither of which exists yet.
For new projects: ask every question. For existing projects: only ask about components not already detected in §1; confirm and skip the rest.
references/lint.mdmanage.py test. Default no (stock). → references/pytest.mdreferences/typecheck.mdreferences/pre-commit.mdreferences/devcontainer.mddjango-orbit / django-silk / none. Default none. → references/dev-tools.mddjango-browser-reload: yes / no. Default no. → references/dev-tools.mddjango-zeal / django-migration-linter / django-test-migrations. Default none. Skip django-test-migrations if pytest = no. → references/dev-tools.mddjango-extensions: yes / no. Default no. → references/dev-tools.mdstructlog: yes / no. Default no. → references/logging.mdmise / just / make / poe / none. Default mise (recommended). Detect what's installed with command -v and offer the first hit; mention the others. See references/dev-tasks.md.django-allauth / django-mail-auth / none. Default none. → references/auth.mddjango-axes brute-force lockout: yes / no. Default yes. Skip if auth = none. → references/auth-hardening.mdallauth.mfa if auth = allauth (via django-allauth[mfa] extra — never allauth-2fa, which is unmaintained), else django-otp. → references/auth-hardening.mdsqlite / redis / locmem / none. Default sqlite when DB=SQLite, else locmem. sqlite wires a separate cache.sqlite3 + CacheRouter + DatabaseCache (see references/database.md); redis adds django-redis (references/redis.md); locmem is the per-process in-memory backend.whitenoise / s3 / none. Default none — required before production but not for first boot. → references/storage-whitenoise.md / references/storage-s3.mdcelery / django.tasks / none. Default none. Django Tasks is the core API with in-process backends; use Celery for a worker queue. → references/tasks-celery.md / references/tasks-django.md
django.tasks: periodic tasks via django-crontask? Default no. → references/tasks-django-cron.md.console / smtp / mailpit / anymail / none. Always ask — every project sends mail eventually (password resets, error reports, allauth verification). → references/email.md
send_test_email command? Default no.tailwind / none. Default none. → references/tailwind.md
references/favicon.mdbase.html). → references/seo.mdreferences/i18n.mdreferences/cors.mdrobots.txt: yes / no. Default no — only for public-facing sites. → references/robots.mddjango-modern-rest / django-bolt / none. Default none. → references/rest.md for the comparison; when the user already named a library, skip it and read references/rest-modern-rest.md or references/rest-bolt.md directly.stripe (raw SDK) / dj-stripe / none. Default none. → references/billing.mdgoatcounter / umami / shynet / ga4 / none. Default none. → references/analytics.mdOnly ask when request handling is asgi+channels — Foundation §2.4 for new projects, the value references/existing-project.md §2 detected for existing ones. Otherwise skip the whole group.
channels-redis / InMemoryChannelLayer. Default channels-redis. In-memory is dev-only — it doesn't span processes, so any horizontal scale or separate ASGI worker process breaks broadcast. → references/realtime.mdreferences/security.md
references/csp.md/healthz, /readyz): yes / no. Default yes. Apply before the deploy target so the deploy reference can wire the matching probe block in compose / fly.toml / nginx. → references/healthcheck.mdbugsink / sentry / glitchtip / none. Default none. → references/error-reporting.mdreferences/gdpr.mdreferences/ci.mdvps / managed / github-ssh / none. Default none. → references/deploy-vps.md / references/deploy-managed.md / references/deploy-github-ssh.md Any target other than none applies references/docker.md first — all three deploy references build on its multi-stage production image. With none, skip the production Dockerfile; the local services compose from §2.5 / §5.3 stands on its own (with the container dev loop, so does the dev stage — a Dockerfile holding only that stage is the expected output).
vps or github-ssh: database backups via django-dbbackup? Default yes. → references/dbbackup.md Both deploy to self-managed hosts. Skip for managed — those platforms ship native backups. Also skip when DB=SQLite + deploy=vps if Litestream is already wired (see references/database.md) — Litestream replicates every WAL frame, so dbbackup snapshots are redundant.After §6, ask the user to run, using the task-runner names from §5.1 if one was applied (else uv run manage.py …):
createsuperuser (interactive — the user runs it themselves).collectstatic --noinput only if a static-files add-on was applied./admin/ in a browser and sign in with the new superuser.Wait for the user to confirm the browser login works before §8.
After applying any reference, append the decision and any new commands to README.md. Finalize at the end of the run with stack summary and key commands (install, test, migrate, run, deploy). Don't hardcode dependency versions — read them from pyproject.toml. If a task runner was applied (§5.1), show task-runner names (mise run dev, just test) in the README's main command list — not the raw uv run … invocations.
If a deploy target was applied (§6.6), copy the deploy command block from the matching references/deploy-*.md verbatim into a ## Deploy section in README.md. The block includes the one-shot manage.py migrate step that runs before docker compose up -d — without it, the first up -d --build hits an empty database and every page 500s.
For new projects only (no question — always):
AGENTS.md: one line per stack decision (layout, DB, request handling, each applied add-on), the project layout tree, and the same key-commands block the README gets. When the project has a representative implemented feature, link its actual source and test paths as a guide for the next feature. Coding agents load it as project context, so keep it factual and short — no marketing prose.CLAUDE.md containing exactly one line: @AGENTS.md.README.md: Built with [Seedkit](https://github.com/viewflow/seedkit).Skip all three on existing-project runs.
Each rule has a why so you can judge edge cases.
Snippet integrity
DEFAULT_AUTO_FIELD and gated env defaults. They look optional and are not.default=<dev-value> if DEBUG else env.NOTSET. env.NOTSET raises ImproperlyConfigured naming the variable when the env var is missing in prod.django-environ (no manual .split(","), no leftover import os).Cross-file consistency
references/conventions.md. If two references seem to disagree, conventions.md wins.Env vars and .env.example
DJANGO_DEBUG / DJANGO_SECRET_KEY / DJANGO_ALLOWED_HOSTS — these names are referenced across many references..env.example so the file stays the canonical list..env.example comments belong on their own lines, never trailing the value. django-environ reads everything after = verbatim.App layout
tasks.py must live inside a registered Django app, not at project root or under config/. Import it from AppConfig.ready() so Django Tasks registers the decorated functions. When a fresh project has no app yet, don't auto-create one unless the user asked for a task example.After startproject / uv init / startapp
requires-python = ">=3.12" in pyproject.toml immediately after uv init, before the first uv add. The host-derived pin (>=3.14 on recent machines) refuses Django 6.1.DATABASES = {...} line in references/new-project.md (Option A in settings.py, Option B in base.py), delete the original hardcoded DATABASES block + # Database comment that startproject emitted. Bottom wins; leaving both makes DATABASE_URL dead code.startapp <name>, if Ruff is enabled, run uv run ruff check --fix . && uv run ruff format ., in that order — startapp ships admin.py / views.py / tests.py with stub imports that fail F401, and dropping an import leaves a blank first line only the formatter clears. Verify with uv run ruff format --check .; ruff check alone reports those files clean.startapp <name> before adding <name> to INSTALLED_APPS. manage.py startapp imports settings; if the app is already listed but the directory doesn't exist, the import fails with ModuleNotFoundError. Same for any package a settings block references (e.g. orbit.handlers.OrbitLogHandler in LOGGING) — uv add it before the next startapp runs, or that import fails too.USE_I18N = True line and the # Internationalization comment block that startproject emits. Harmless to leave, but the reference's settings are single-language by default and the orphan block invites confusion.uv run vs python invocation
uv run manage.py …. uv resolves the project venv.exec, prod compose run, Fly release_command, devcontainer postAttach): python manage.py …. /opt/venv/bin is on PATH; the multi-stage runtime image (python:3.X-slim-trixie) has no uv binary, so uv run breaks there.Add-on scope
django-extensions is an explicit add-on question — apply only if the user said yes.references/analytics.md (opens in a new tab)references/async.md (opens in a new tab)references/auth-hardening.md (opens in a new tab)references/auth.md (opens in a new tab)references/billing.md (opens in a new tab)references/ci.md (opens in a new tab)references/conventions.md (opens in a new tab)references/cors.md (opens in a new tab)references/csp.md (opens in a new tab)references/custom-user.md (opens in a new tab)references/database.md (opens in a new tab)references/dbbackup.md (opens in a new tab)references/deploy-github-ssh.md (opens in a new tab)references/deploy-managed.md (opens in a new tab)references/deploy-vps.md (opens in a new tab)references/dev-tasks.md (opens in a new tab)references/dev-tools.md (opens in a new tab)references/devcontainer.md (opens in a new tab)references/docker.md (opens in a new tab)references/email.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub viewflow/seedkit --plugin seedkitOther plugins' skills for the same job