htmx

Build hypermedia-driven web applications using htmx attributes for AJAX and server-sent events.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the complexity of building modern, interactive web applications by allowing you to access AJAX, CSS transitions, WebSockets, and Server-Sent Events directly from HTML, eliminating the need for heavy JavaScript frameworks.

Core Features & Use Cases

  • Hypermedia-Driven Development: Use HTML attributes to issue HTTP requests and swap content fragments into the DOM.
  • Progressive Enhancement: Easily add interactivity like active search, infinite scroll, and inline validation to server-rendered pages.
  • Use Case: Transform a standard static form into an interactive, AJAX-powered component that validates input in real-time and updates the UI without a full page reload.

Quick Start

Use the htmx skill to help me implement an active search pattern that updates the results table as I type in the search input field.

Frequently Asked Questions about htmx

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

FAQPage Schema
How do I add AJAX to server-rendered HTML without using a JavaScript framework?

You can add AJAX to server-rendered HTML without a JavaScript framework by using htmx attributes to issue HTTP requests directly from HTML elements and swap content fragments into the DOM. This eliminates heavy client-side JavaScript complexity.

What is hypermedia-driven web development and how does it handle UI updates?

Hypermedia-driven web development handles UI updates by returning HTML fragments instead of JSON from the server. htmx attributes intercept interactions and swap these fragments directly into the DOM, managing state via standard HTTP.

How do I implement an active search pattern that updates results as I type?

To implement an active search pattern that updates results as you type, you use htmx attributes on an input field to trigger AJAX requests. The server returns HTML fragments containing the filtered results table for immediate DOM swapping.

Can I use CSS transitions and Server-Sent Events directly in my frontend HTML?

Yes, you can use CSS transitions and Server-Sent Events directly in frontend HTML. htmx exposes these browser features through HTML attributes, enabling smooth UI transitions and real-time server pushes without writing custom JavaScript.

What is the best way to build interactive UI patterns like infinite scroll and lazy loading?

The best way to build interactive UI patterns like infinite scroll and lazy loading is by applying htmx attributes to HTML elements. This progressively enhances server-rendered pages to fetch and swap HTML fragments as the user scrolls.