htmx

Automate hypermedia-driven UI updates in server-rendered applications using htmx.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/oornnery/skills --skill htmx-oornnery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: htmx
Source: https://github.com/oornnery/skills/tree/main/skills/htmx
Command: npx skills add https://github.com/oornnery/skills --skill htmx-oornnery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

htmx enables hypermedia-driven interactions on server-rendered applications, allowing fine-grained UI updates without heavy frontend frameworks.

Core Features & Use Cases

  • Hypermedia-first fragment requests and hx-* attributes for targeted updates.
  • Server-patterns including fragment endpoints, partial renders, OOB updates, and robust validation responses.
  • Use cases include form validation, modals, infinite scrolling, and inline editing in traditional web apps.

Quick Start

Add hx-* attributes to your server-rendered pages and return HTML fragments for HTMX requests.

Frequently Asked Questions about htmx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update server-rendered UI fragments without a heavy frontend framework?

Server-rendered UI fragments can be updated by adding hx-* attributes to HTML elements and returning HTML fragments from server endpoints. This enables hypermedia-driven interactions for fine-grained partial updates without writing client-side JavaScript.

What is the best way to handle form validation in a hypermedia-driven web application?

Form validation in a hypermedia-driven web application is handled by submitting forms via htmx requests and returning robust validation responses as HTML fragments. This allows the server to render inline validation errors directly into the existing page.

Can I use out-of-band updates for modals and inline editing in traditional web apps?

Out-of-band updates work for modals and inline editing in traditional web apps by returning multiple HTML fragments from a single server request. This allows targeted updates to page panels and modal surfaces simultaneously alongside the primary content swap.

Does htmx require CSRF protections and specific headers for partial requests?

Htmx requires CSRF protections and safe headers for partial requests to secure fragment endpoints. The server must satisfy requirements for returning HTML fragments by validating stable targets and ensuring request headers are properly sanitized.

When should I not use a server-driven UI approach for web interactions?

You should not use a server-driven UI approach when an application requires highly complex, state-heavy client-side interactions that go beyond simple fragment updates, infinite scrolling, or in-page panels. Heavy state management is better suited for full frontend frameworks.

How do I implement infinite scrolling using partial renders and fragment endpoints?

Infinite scrolling is implemented using partial renders and fragment endpoints by appending HTML fragments to a target list as the user scrolls. The server returns the next set of rendered items to update the UI surface dynamically.