agentsclimarketplace

Htmx

Skill G1Joshi/Agent-Skills/skills/frameworks/htmx

HTMX HTML-first approach with AJAX attributes. Use for server-rendered interactivity.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill htmx

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.3 KB, 305 tokens by cl100k_base, as published. Nobody here has run it

htmx

High power tools for HTML. Allows you to build modern user interfaces with the simplicity of hypertext.

When to Use

  • Server-side rendered applications (Django, Flask, Rails, Go, PHP)
  • You want SPA-like interactivity without the complexity of React/Vue
  • "Hypermedia-driven" applications

Quick Start

<script src="https://unpkg.com/[email protected]"></script>

<!-- When clicked, issue GET to /clicked, swap outerHTML with response -->
<button hx-get="/clicked" hx-swap="outerHTML">Click Me</button>

Core Concepts

Attributes

hx-get, hx-post, hx-trigger, hx-target, hx-swap.

Swapping

Replacing parts of the DOM with HTML returned from the server.

HATEOAS

Hypermedia As The Engine Of Application State. The server returns HTML (state), not JSON.

Best Practices

Do:

  • Return partial HTML snippets from the server
  • Use hx-boost to speed up navigation
  • Use hx-indicator for loading states

Don't:

  • Return full HTML pages for partial updates
  • Use htmx if you need complex client-side state (offline mode, etc.)

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.