agentleFS
ku5icku5ic/claude-kit/skills/django-patterns/SKILL.md

django-patterns

Skill2 starsChanged 8 days agoMITView on GitHub

Django patterns covering ORM gotchas, view design, migrations, settings, anti-patterns, and review checklist for Django backend work. Use whenever the project contains `manage.py`, `settings.py`, `apps.py`, or `django` in a Python manifest, OR the user asks about Django, its ORM, or any part of its request/model/template stack, even if Django is not mentioned by name.

  • Reads credentials

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use django-tdd, springboot-tdd and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FaisalAlqarniSkill

    django-tdd

    Django testing strategies with pytest-django, TDD methodology, factory_boy, mocking, coverage, and testing Django REST Framework APIs.

    Also in 6 projects that use this

  • AshfaqbsSkill

    springboot-tdd

    Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.

    Also in 4 projects that use this

  • royaluniondesign-sysSkill

    deployment-patterns

    Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.

    Also in 3 projects that use this

  • lodetomasiSkill

    tdd-workflow

    Test-Driven Development workflow with red-green-refactor pattern and best practices

    Also in 5 projects that use this

  • OpenAISkill

    security-scan

    Use for a standard, single-pass security audit of an entire repository or a scoped path, package, folder, or submodule with no diff to review. This is the default repository scan. Do not use for PR, commit, branch, or working-tree diffs, or for deep, multi-pass scans.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

The file

Files
SKILL.md

Django patterns

Django 5.2 LTS (extended support through April 2028). Django 6.1 is current stable (non-LTS). Baseline for this skill is 5.2 LTS. Adapt advice to the version in the project's requirements.txt, pyproject.toml, or lockfile.

DRF-specific patterns load when the project includes djangorestframework in dependencies.

Reference files

FileCovers
models.mdModel definition, Meta.constraints, Meta.indexes, null vs blank, on_delete, custom managers
orm.mdselect_related, prefetch_related, F(), Q(), .only()/.defer(), .iterator(), bulk operations
views-and-forms.mdCBV vs FBV, thin views, get_object_or_404, ModelForm, clean(), redirect after POST
templates.mdTemplate inheritance, auto-escaping, |safe risks, {% csrf_token %}
settings.mdSplit settings, DEBUG, ALLOWEDHOSTS, SECRET_KEY, SECURE* family, django-environ
testing.mdpytest-django, @pytest.mark.django_db, Factory Boy, model_bakery, --reuse-db
migrations.mdNaming, atomic behavior, RunPython, makemigrations --check, squashing
admin.mdModelAdmin, list_display, list_filter, search_fields, permissions, production posture
anti-patterns.mdSeverity-labeled anti-patterns to flag in review

References

Version notes

Checked: 2026-09-26 against https://www.djangoproject.com/download/ and PyPI

  • Django 6.1.1 current stable; 5.2 LTS supported to April 2028 (baseline here).
  • pytest-django 4.14.0 (2026-08-10), django-environ 0.14.0 (2026-06-18), Factory Boy 3.3.3 (2025-02-03): pins in the reference files match these.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.