Htmx

Build interactive web UIs with htmx by adding hypermedia attributes to HTML and returning HTML fragments from the server. Use when writing or reviewing htmx code, working with hx-* attributes (hx-get, hx-post, hx-trigger, hx-target, hx-swap, hx-boost), wiring AJAX/SSE/WebSocket-driven HTML, or designing server endpoints that respond with HTML partials.

9 stars 1 forksWriting & Content Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add piyiotisk/htmx-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add piyiotisk/htmx-skills --skill htmx
Manual install
git clone --depth 1 https://github.com/piyiotisk/htmx-skills.git /tmp/htmx-skills
mkdir -p ~/.claude/skills
cp -r /tmp/htmx-skills/skills/htmx ~/.claude/skills/htmx

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# htmx

htmx lets any element issue an AJAX request on any event using any HTTP verb, and swap the returned **HTML** into any target. The server returns HTML fragments, not JSON. Keep logic in HTML attributes (Locality of Behavior) and keep state on the server (HATEOAS).

## Core Mental Model

1. An element is **triggered** by an event (`hx-trigger`).
2. It issues an HTTP request via `hx-get` / `hx-post` / `hx-put` / `hx-patch` / `hx-delete`.
3. The server responds with an **HTML fragment**.
4. htmx swaps that HTML into a **target** (`hx-target`) using a **swap strategy** (`hx-swap`).

```html
<button hx-post="/clicked" hx-trigger="click" hx-target="#out" hx-swap="outerHTML">
  Click Me!
</button>
<div id="out"></div>
```

You can use the `data-hx-*` prefix if you need valid-by-DTD HTML (e.g. `data-hx-post`).

## Example usage

Invoke explicitly when starting htmx work (Claude Code: `/htmx:htmx`).

| Task | Example prompt |
|------|----------------|
| Live search | "Add debounced `hx-get` search swapping into `#results`." |
| Inline edit | "Click Edit replaces this card with a form; Cancel restores it." |
| Delete + counter | "Delete row with `hx-delete` and OOB-update `#contact-count`." |
| Validation UX | "422 errors in `#form-errors`, success replaces the form." |
| Boosted nav | "Boost `#main` links but keep sidebar PDFs as full page loads." |
| Code review | "Review this template for htmx inheritance and XSS issues." |
Read the full skill on GitHub

Details

Skill name
htmx
Path
skills/htmx/SKILL.md
License
MIT
Repo updated
26 June 2026

FAQ

What does the Htmx skill do?

Build interactive web UIs with htmx by adding hypermedia attributes to HTML and returning HTML fragments from the server. Use when writing or reviewing htmx code, working with hx-* attributes (hx-get, hx-post, hx-trigger, hx-target, hx-swap, hx-boost), wiring AJAX/SSE/WebSocket-driven HTML, or designing server endpoints that respond with HTML partials.

How do I install the Htmx skill?

Claude Code plugin: /plugin marketplace add piyiotisk/htmx-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Htmx popular?

It lives in piyiotisk/htmx-skills, which has 9 GitHub stars and 1 forks.

Related skills

Script Architect

10

agarwalraghav12345678910-del/script-writer

World-class Instagram Reels script writing skill for creators who know their topic but struggle to write viral scripts. Use this skill whenever a creator asks to write a reel script, content script, Instagram script, or wants help with hooks, CTAs, or script structure. Trigger even for vague requests like "help me make a reel about X" or "write me a script". This skill interviews the creator deeply before writing a single word, researches the topic extensively, analyses reference reel transcripts if provided, and produces word-for-word scripts built on real viral evidence — not generic templat

Writing & Content

Eng State Machine

23

jpoehnelt/skills

Model an entity's lifecycle (status, state, phase) as an explicit state machine with a pure decide function, one guarded write path, and events from a durable record. Use when adding or changing a status field, a transition, or a reaction to one, when several writers set the same status, or when moving ad hoc status writes onto a machine.

Writing & Content

Docs

9

imgly/agent-skills

Look up IMG.LY SDK (CE.SDK) docs: guides, API signatures, config options, setup and licensing for Web, Swift, Android, Flutter and React Native. Use for "how do I…" or exact-API questions about an existing CE.SDK integration.

Writing & Content

Comms Technical Writing

23

jpoehnelt/skills

Layered technical-writing standard covering document modes, sentence style, instruction rules, and unambiguous syntax. Use when writing or reviewing skills, docs, READMEs, RFCs, PR descriptions, or commit messages.

Writing & Content

Connectiveone Docs

9

ConnectiveOne/connectiveone-docs

Explain ConnectiveOne (C1) and guide product or implementation work using current official product and documentation sources. Use for product overviews, target customers and personas, capabilities, use cases, customer examples, setup, the Operator Panel, administration, channels, scenarios, integrations, APIs, FastLinePro, releases, security, permissions, or troubleshooting. Do not use for customer-specific configuration or undocumented behavior.

Writing & Content

Alterlab Vcd Layout Designer

21

AlterLab-IEU/AlterLab-FC-Skills

This skill should be used when the user asks about "layout design", "editorial design", "grid system", "magazine layout", "book design", "publication design", "page layout", "spread design", "Swiss grid", "modular grid", "column grid", "act as a layout designer", "layout designer mode", "print design", "editorial layout", "page composition", "white space", "bleed and margins", "InDesign layout", "multi-page document", "annual report design", "catalog design", "zine design", or needs expertise in publication design, grid system construction, editorial layouts, and multi-page document architectu

Writing & ContentIn 1 list

Browse the most popular Claude skills, all writing & content skills, or write your own with the skills generator.