Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implement common htmx interaction recipes in server-rendered web apps. Use when building lazy loading, boosted links/forms, active search, inline validation, delete buttons, CSS transitions, form reset, optimistic updates, pagination, infinite scroll, toggled selection, polling, custom dialogs, request headers, click-to-edit, or HTML/JSON endpoint splits.
.claude/skills/hashgraph-online-htmx-recipes/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 22% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-13 | ✓→✓ | = Same ✓ | 16% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 17% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 25% | 0% |
Use this skill when the feature is a recognizable htmx interaction pattern. Start from the recipe shape, then adapt it to the framework's routing, forms, templates, and tests.
| Need | Pattern | | --- | --- | | Enhance normal links/forms | hx-boost with full-page fallback | | Load content on reveal or page load | lazy loading with hx-get and a non-chatty trigger | | Validate an input or form section | targeted validation request with debounce | | Remove an item | mutation endpoint plus target removal or refreshed list | | Animate an inserted/removed fragment | CSS transitions coordinated with swap timing/classes | | Clear a successful form | return a fresh form fragment or trigger local reset | | Search as the user types | debounced active search into a results target | | Show success before server confirms | optimistic update with explicit rollback/reconcile plan | | Page through results | links/buttons that replace the list and pagination controls | | Append more results | infinite scroll sentinel that appends and replaces itself | | Toggle selected state | server-owned selection for durable state, local state for transient UI | | Poll for changing state | bounded polling with a stop condition | | Open custom dialogs | server-rendered modal body plus events for close/focus | | Add request headers | one global hook for cross-cutting headers | | Click to edit | display fragment -> edit form fragment -> display fragment | | Serve both HTML and JSON | separate endpoints or explicit content negotiation |
hx-boost when links/forms already work without htmx.hx-confirm for simple confirmations and a custom dialog only when design demands it.Use optimistic UI only when the failure mode is acceptable and reversible.
htmx-realtime when updates are frequent, multi-client, or event-driven.keyup or input triggers without debounce.Other measured skills in the registry, with their headline benchmark lift.