Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

django-htmx

Skill by hashgraph-online

Builds and reviews HTMX interactions in Django server-rendered projects, especially generated django-saas-starter apps. Keeps Django views, forms, permissions and validation in charge while adding small partial-page updates. Aimed at Django developers who use Codex or Claude Code.

  • Score 74
  • 1.6k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install django-htmx

Built from the published package, never by AI.

git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-codex-plugins/plugins/LVTD-LLC/skills/skills/django-htmx ~/.claude/skills/django-htmx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install django-htmx in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Django HTMX is an agent skill for building and reviewing HTMX interactions in Django server-rendered projects. It keeps Django templates, views, forms, permissions, and server-side validation in charge while adding focused partial-page updates. It covers hx attributes, partial template responses, request.htmx branching, and django-htmx response headers.

The skill describes how generated django-saas-starter projects are set up, including the django-htmx middleware, the bundled htmx.min.js, and CSRF handling in the base templates. It tells the assistant to use Alpine.js only for browser-local state and to render full pages and partials from the same template. It is aimed at developers who want small HTMX additions to Django apps.

Written from the project's SKILL.md and checked against it.

What it can do

  • Partial template responsesRenders reusable fragments in partial templates that the full page also includes.
  • request.htmx branchingBranches views on request.htmx after auth and data loading have run.
  • django-htmx response helpersUses helpers such as HttpResponseClientRedirect, push_url() and trigger_client_event().
  • Form handlingKeeps Django forms as the validation source and returns bound forms for invalid HTMX submits.
  • Swaps and out-of-band updatesPlans targets, swaps, and OOB updates in template interaction patterns.
  • Polling guidanceUses polling only with a stop condition, such as HttpResponseStopPolling.
  • Alpine.js coordinationKeeps local UI state in Alpine.js and server facts in HTMX.
  • Test guidanceAdds tests for both normal and HTMX requests when a view branches on request.htmx.

What you need

  • A Django project, especially a generated django-saas-starter app
  • An Agent Skills-compatible client such as Codex or Claude Code

Try asking

  • Add an HTMX partial search to my Django contacts list view
  • Review this Django form template for HTMX issues and CSRF handling
  • Make this delete button use POST and return a partial HTMX response

Good to know

  • Base templates already set the CSRF header, so feature templates should not repeat it.
  • Invalid HTMX form submissions return status 200 unless the project handles 4xx or 422 swaps.
  • Destructive actions need POST unless the project uses a deliberate DELETE method override pattern.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/LVTD-LLC/skills/skills/django-htmx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • assets/app-icon.png51 KB
  • references/django-view-patterns.md3 KB
  • references/template-interaction-patterns.md4 KB
  • references/testing-security.md2 KB

Alternatives to django-htmx

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

django-htmx: common questions

Does this skill work outside django-saas-starter projects?

The source is written for Django server-rendered projects and says it is especially aimed at generated django-saas-starter apps. It does not state more about other setups.

Should I use Alpine.js together with HTMX?

The skill says to use Alpine.js only for browser-local state such as menus, modals, and disclosure state. HTMX handles server trips, fresh HTML, and history updates.

Do I need to add the HTMX setup to each template?

No. The base templates already add the X-CSRFToken header and set historyRestoreAsHxRequest to false, so feature templates should not duplicate this setup.

How do I install django-htmx?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is django-htmx free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is django-htmx safe to use?

It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to django-htmx?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

django-htmx Install

Add to stack

Loading.