Agent skill

Htmx Skill

by aiskillstore in aiskillstore/marketplace

Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples).

Apache-2.0Auto-check passedDevelopment

Install Htmx Skill

skills CLI
$ npx skills add aiskillstore/marketplace --skill htmx-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace htmx-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/drzoot/htmx-skill .claude/skills/htmx-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
htmx-skill
GitHub stars
430
Token cost
~4.3k tokens
SKILL.md length
1,647 words
Files
91 (incl. references)
Skills in repo
1,108
Repo updated
First seen
Licence
Apache-2.0

At a glance

Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples).

  • You need accurate htmx syntax/behavior
  • SKILL.md covers Reference Index and Usage Notes
  • Runs Python scripts from its folder
  • Locate the right reference page for an htmx question

What it does

Htmx Skill is an agent skill from aiskillstore/marketplace. Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples). Use when you need accurate htmx syntax/behavior or to locate the right reference page for an htmx question.

Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 92 other files, including reference files (for example `README.md`, `_post_SKILL.md` and `_pre_SKILL.md`).

It sits in Development, covering Code migrations. It works with JavaScript. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is Apache-2.0.

When your agent uses it

  • You need accurate htmx syntax/behavior
  • Locate the right reference page for an htmx question

Example prompts

  • “/htmx-skill”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ad8daf7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Htmx Skill loads about 4.3k tokens when it runs, and up to ~77k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 1,647 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~4.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~77k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit ad8daf7, republished under its Apache-2.0 licence (© aiskillstore). 1,647 words, ~4,277 tokens.

Download SKILL.mdSave it as .claude/skills/htmx-skill/SKILL.md (or your agent's skills folder). This skill also uses 90 other files; get the full folder from GitHub.
name
htmx-skill
description
Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples). Use when you need accurate htmx syntax/behavior or to locate the right reference page for an htmx question.

htmx Reference

Use the index below to open the most specific page for the user's question. Search the local references/ folder with rg when unsure which page contains the answer.

Reference Index

General
  • Events: Documentation page

  • Javascript API: This documentation describes the JavaScript API for htmx, including methods and properties for configuring the behavior of htmx, working with CSS classes, AJAX requests, event handling, and DOM manipulation. The API provides helper functions primarily intended for extension development and event management.

Attributes
  • hx-boost: The hx-boost attribute in htmx enables progressive enhancement by converting standard HTML anchors and forms into AJAX requests, maintaining graceful fallback for users without JavaScript while providing modern dynamic page updates for those with JavaScript enabled.

  • hx-confirm: The hx-confirm attribute in htmx provides a way to add confirmation dialogs before executing requests, allowing you to protect users from accidental destructive actions. This documentation explains how to implement confirmation prompts and customize their behavior through event handling.

  • hx-delete: The hx-delete attribute in htmx will cause an element to issue a DELETE request to the specified URL and swap the returned HTML into the DOM using a swap strategy.

  • hx-disable: The hx-disable attribute in htmx will disable htmx processing for a given element and all its children.

  • hx-disabled-elt: The hx-disabled-elt attribute in htmx allows you to specify elements that will have the disabled attribute added to them for the duration of the request.

  • hx-disinherit: The hx-disinherit attribute in htmx lets you control how child elements inherit attributes from their parents. This documentation explains how to selectively disable inheritance of specific htmx attributes or all attributes, allowing for more granular control over your web application's behavior.

  • hx-encoding: The hx-encoding attribute in htmx allows you to switch the request encoding from the usual application/x-www-form-urlencoded encoding to multipart/form-data, usually to support file uploads in an AJAX request.

  • hx-ext: The hx-ext attribute in htmx enables one or more htmx extensions for an element and all its children. You can also use this attribute to ignore an extension that is enabled by a parent element.

  • hx-get: The hx-get attribute in htmx will cause an element to issue a GET request to the specified URL and swap the returned HTML into the DOM using a swap strategy.

  • hx-headers: The hx-headers attribute in htmx allows you to add to the headers that will be submitted with an AJAX request.

  • hx-history: The hx-history attribute in htmx allows you to prevent sensitive page data from being stored in the browser's localStorage cache during history navigation, ensuring that the page state is retrieved from the server instead when navigating through history.

  • hx-history-elt: The hx-history-elt attribute in htmx allows you to specify the element that will be used to snapshot and restore page state during navigation. In most cases we do not recommend using this element.

  • hx-include: The hx-include attribute in htmx allows you to include additional element values in an AJAX request.

  • hx-indicator: The hx-indicator attribute in htmx allows you to specify the element that will have the htmx-request class added to it for the duration of the request. This can be used to show spinners or progress indicators while the request is in flight.

  • hx-inherit: The hx-inherit attribute in htmx allows you to explicitly control attribute inheritance behavior between parent and child elements, providing fine-grained control over which htmx attributes are inherited when the default inheritance system is disabled through configuration.

  • hx-on: The hx-on attributes in htmx allow you to write inline JavaScript event handlers directly on HTML elements, supporting both standard DOM events and htmx-specific events with improved locality of behavior.

  • hx-params: The hx-params attribute in htmx allows you to filter the parameters that will be submitted with an AJAX request.

  • hx-patch: The hx-patch attribute in htmx will cause an element to issue a PATCH request to the specified URL and swap the returned HTML into the DOM using a swap strategy.

  • hx-post: The hx-post attribute in htmx will cause an element to issue a POST request to the specified URL and swap the returned HTML into the DOM using a swap strategy.

  • hx-preserve: The hx-preserve attribute in htmx allows you to keep an element unchanged during HTML replacement. Elements with hx-preserve set are preserved by id when htmx updates any ancestor element.

  • hx-prompt: The hx-prompt attribute in htmx allows you to show a prompt before issuing a request. The value of the prompt will be included in the request in the HX-Prompt header.

  • hx-push-url: The hx-push-url attribute in htmx allows you to push a URL into the browser location history. This creates a new history entry, allowing navigation with the browser's back and forward buttons.

  • hx-put: The hx-put attribute in htmx will cause an element to issue a PUT request to the specified URL and swap the returned HTML into the DOM using a swap strategy.

  • hx-replace-url: The hx-replace-url attribute in htmx allows you to replace the current URL of the browser location history.

  • hx-request: The hx-request attribute in htmx allows you to configure the request timeout, whether the request will send credentials, and whether the request will include headers.

  • hx-select: The hx-select attribute in htmx allows you to select the content you want swapped from a response.

  • hx-select-oob: The hx-select-oob attribute in htmx allows you to select content from a response to be swapped in via an out-of-band swap. The value of this attribute is comma separated list of elements to be swapped out of band.

  • hx-swap: The hx-swap attribute in htmx allows you to specify the 'swap strategy', or how the response will be swapped in relative to the target of an AJAX request. The default swap strategy is innerHTML.

  • hx-swap-oob: The hx-swap-oob attribute in htmx allows you to specify that some content in a response should be swapped into the DOM somewhere other than the target, that is 'out-of-band'. This allows you to piggyback updates to other elements on a response.

  • hx-sync: The hx-sync attribute in htmx allows you to synchronize AJAX requests between multiple elements.

  • hx-target: The hx-target attribute in htmx allows you to target a different element for swapping than the one issuing the AJAX request.

  • hx-trigger: The hx-trigger attribute in htmx allows you to specify what triggers an AJAX request. Supported triggers include standard DOM events, custom events, polling intervals, and event modifiers. The hx-trigger attribute also allows specifying event filtering, timing controls, event bubbling, and multiple trigger definitions for fine-grained control over when and how requests are initiated.

  • hx-validate: The hx-validate attribute in htmx will cause an element to validate itself using the HTML5 Validation API before it submits a request.

  • hx-vals: The hx-vals attribute in htmx allows you to add to the parameters that will be submitted with an AJAX request.

  • hx-vars: The hx-vars attribute in htmx allows you to dynamically add to the parameters that will be submitted with an AJAX request. This attribute has been deprecated. We recommend you use the hx-vals attribute that provides the same functionality with safer defaults.

Show full SKILL.md (419 more words)Show less
Examples
Extensions
Headers
  • HX-Location Response Header: Use the HX-Location response header in htmx to trigger a client-side redirection without reloading the whole page.

  • HX-Push Response Header (Deprecated): The HX-Push response header in htmx is deprecated. Use HX-Push-Url instead.

  • HX-Push-Url Response Header: Use the HX-Push-Url response header in htmx to push a URL into the browser location history.

  • HX-Redirect Response Header: Use the HX-Redirect response header in htmx to trigger a client-side redirection that will perform a full page reload.

  • HX-Replace-Url Response Header: Use the HX-Replace-Url response header in htmx to replace the current URL in the browser location history without creating a new history entry.

  • HX-Trigger Response Headers: Use the HX-Trigger family of response headers in htmx to trigger client-side actions from an htmx response.

Usage Notes

  • Prefer attribute/event/header-specific pages over general guides.
  • For API or configuration questions, check api.md in addition to specific pages.
  • Open the referenced file to confirm details before answering if the description seems too brief.

© aiskillstore, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 90 other files (references) in skills/drzoot/htmx-skill of aiskillstore/marketplace.

  • SKILL.md
  • LICENSE
  • README.md
  • _post_SKILL.md
  • _pre_SKILL.md
  • config.yaml
  • htmx_builder.py
  • references/api.md
  • references/attributes/hx-boost.md
  • references/attributes/hx-confirm.md
  • references/attributes/hx-delete.md
  • references/attributes/hx-disable.md
  • references/attributes/hx-disabled-elt.md
  • references/attributes/hx-disinherit.md
  • references/attributes/hx-encoding.md
  • references/attributes/hx-ext.md
  • references/attributes/hx-get.md
  • references/attributes/hx-headers.md
  • references/attributes/hx-history-elt.md
  • … and 72 more

Open the folder on GitHubat commit ad8daf7

Compare with similar skills

Htmx Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Htmx Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Htmx Skill this skillaiskillstore/marketplace430—~4.3kAutomated safety check: PassApache-2.0
Convert Internal Package to TypeScriptTryGhost/Ghost55k—~1.2kAutomated safety check: PassMIT
jscpd Code Migration Trackerkucherenko/jscpd6.4k—~5kAutomated safety check: PassMIT
ast-grep Codemod Referencewarp-drive-data/warp-drive3.2k—~2.6kAutomated safety check: PassMIT
Es X Major Version Prepeslint-community/eslint-plugin-es-x157—~801Automated safety check: PassMIT
Typescript Tooling MigrationArize-ai/phoenix12k—~2.8kAutomated safety check: PassApache-2.0

Similar skills

  • Moves a legacy internal Ghost package from JavaScript and CommonJS to TypeScript and ESM in three focused commits that keep git file history intact.

    55k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.

    6.4k GitHub stars~5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • ast-grep Codemod Reference

    warp-drive-data/warp-drive

    Reference for writing and debugging TypeScript and JavaScript codemods with @ast-grep/napi: parsing, node queries, meta-variables, rule objects and editing.

    3.2k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Es X Major Version Prep

    eslint-community/eslint-plugin-es-x

    Prepare eslint-plugin-es-x for a major version release from a broad instruction such as "prepare the major version upgrade" or "prepare the next major release".

    157 GitHub stars~801 tokensUpdated 13 days ago
    DevelopmentAuto-check passed
  • Migrate or upgrade TypeScript tooling in the Phoenix monorepo.

    12k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Audits existing tests in any language using formal, research-backed test smell names and the testsmells.org 19-smell academic taxonomy.

    5.6k GitHub starsUsed in 1 repo~2.5k tokens
    MobileAuto-check passed

More from aiskillstore/marketplace

All 1,108 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 2 repos~598 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Works with

Categories

Questions about Htmx Skill

What does Htmx Skill do?

Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples). Htmx Skill is an agent skill from aiskillstore/marketplace. Documentation for the htmx JavaScript library (attributes, events, headers, API, extensions, examples, migration guides, server examples).

When should I use Htmx Skill?

Htmx Skill fits situations like: you need accurate htmx syntax/behavior; locate the right reference page for an htmx question.

How do I install Htmx Skill in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill htmx-skill -a claude-code`. Or copy the skill folder (skills/drzoot/htmx-skill in aiskillstore/marketplace) into .claude/skills/htmx-skill in your project. Claude Code loads it when a task matches its description.

How do I install Htmx Skill in Codex?

Run `npx skills add aiskillstore/marketplace --skill htmx-skill -a codex`. Or copy the skill folder (skills/drzoot/htmx-skill in aiskillstore/marketplace) into .agents/skills/htmx-skill in your project. Codex loads it when a task matches its description.

Can I use Htmx Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill htmx-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/htmx-skill, .gemini/skills/htmx-skill, .github/skills/htmx-skill and .opencode/skills/htmx-skill in your project.

What does Htmx Skill need to run?

Going by SKILL.md and its folder, Htmx Skill needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Htmx Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Htmx Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Htmx Skill use?

Htmx Skill is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Htmx Skill use?

About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 73k tokens, read only when the agent opens those files.

What are the alternatives to Htmx Skill?

Skills that share tags, products or a category with Htmx Skill: Convert Internal Package to TypeScript (TryGhost/Ghost, 55k stars), jscpd Code Migration Tracker (kucherenko/jscpd, 6.4k stars), ast-grep Codemod Reference (warp-drive-data/warp-drive, 3.2k stars) and Es X Major Version Prep (eslint-community/eslint-plugin-es-x, 157 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Htmx Skill?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,108 skills in this directory. The repository was last updated on October 7, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.