tattooinmtl/dariusai/htmx
Claude Code and agent skill by tattooinmtl/dariusai
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Production HTMX 1.9+/2.0 codebase starter, Hypermedia-Driven Applications (HDA), hx-attributes, server-driven UI partials, OOP/REST backend integration, and harness verification.
Install
npx vskill@latest install tattooinmtl/dariusai/htmxSKILL.md
The same SKILL.md was published earlier as tattooinmtl/dariusai/htmx.
HTMX Codebase & Engineering Skill
Operational guide, architecture starter, best practices, and harness controls for HTMX hypermedia-driven web applications.
1. Stack Overview & Dependencies
- Core Library: HTMX (CDN script
<script src="https://unpkg.com/htmx.org"></script>or npm packagehtmx.org) - Supported Backend Stacks: Go (
html/template), Python (Jinja2/FastAPI), Node.js (EJS/Handlebars), PHP (Twig/Blade), Rust (askama/maud) - Extensions:
htmx/ext/json-enc.js(JSON encoding),htmx/ext/sse.js(Server-Sent Events),htmx/ext/ws.js(WebSockets)
2. Standard Codebase Structure
3. How-To Workflows
Include HTMX & Start Local Server
Run Dev Server
4. Best Practices & Design Patterns
- Hypermedia-Driven Architecture (HDA): Return HTML fragments/partials from server endpoints instead of raw JSON where client-side rendering is unnecessary.
- Target & Swap Control: Explicitly specify target elements (
hx-target="#container") and swap strategies (hx-swap="outerHTML",hx-swap="innerHTML",hx-swap="beforeend"). - Indicator Feedback: Use
hx-indicator="#spinner"to display loading states during asynchronous network requests. - Out-of-Band (OOB) Swaps: Use
hx-swap-oob="true"on elements in server responses to update multiple distant parts of the DOM in a single response payload. - Debouncing Search / Input: Add
hx-trigger="keyup changed delay:300ms"to search inputs to prevent server request flooding.
5. Tips, Tricks & Pitfalls
- HTTP Response Codes: HTMX respects HTTP status codes. 200/204 renders or swaps, 4xx/5xx triggers
htmx:responseErrorevents. - CSRF Token Headers: Pass security CSRF tokens automatically using
document.body.addEventListener('htmx:configRequest', (evt) => evt.detail.headers['X-CSRF-Token'] = token). - History Management: Use
hx-push-url="true"for full page navigation URL updates while keeping SPA speed.
6. Harness Hooks & Safety Enforcement
- PreToolUse Guard: Validate template partial HTML syntax before registering endpoints.
- PostToolUse Verification: Audit DOM swap targets to ensure IDs exist in the root page markup.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingaddon/skills/languages/htmx/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tattooinmtl/dariusai/htmx)