htmx-alpine-frontend

htmx-alpine-frontend is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 35 tokens per session (1,332 once invoked), scanned A, original, Apache-2.0.

A guide to building interactive web pages with server-rendered HTML, HTMX, and Alpine.js, without a bundler or single-page-app build process. HTMX updates parts of a page from server responses, while Alpine.js handles small browser-side interactions.

In plain words
What is it for?
Use it for server-rendered pages with live search, form submissions, toggles, periodic updates, and other small interactive features.
Why use it?
It avoids the extra API, JSON, and frontend build setup often needed for simple search, forms, toggles, and partial page updates.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for server-rendered pages with live search, form submissions, toggles, periodic updates, and other small interactive features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikasudasi/skill-vault/htmx-alpine-frontend
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vikasudasi/skill-vault --skill htmx-alpine-frontend
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for htmx-alpine-frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/htmx-alpine-frontend/github.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/htmx-alpine-frontend)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/htmx-alpine-frontend"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/htmx-alpine-frontend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for htmx-alpine-frontend

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/htmx-alpine-frontend"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/htmx-alpine-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,332 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01332
Opus 5.5 $0.00014 $0.00533
Sonnet 5.5 $0.00007 $0.00266
Haiku 4.5 $0.00003 $0.00133

Measured 3mo ago against content hash e31d09f0ffad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

htmx-alpine-frontend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/server.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill_vault/data/skills/htmx-alpine-frontend/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTMX + Alpine Frontend (No Build Step)

Use when you want interactivity (search-as-you-type, partial updates, toggles) without a bundler, SPA, or build pipeline — the server renders HTML and HTMX swaps fragments in. This is exactly Skill Vault's frontend: HTMX + Alpine + highlight.js + Tailwind CDN with no compile step.

The model

The server stays the source of truth for HTML. HTMX issues requests with headers (HX-Request) and swaps a returned fragment into the DOM; Alpine manages small client-side state. No API + JSON + client-render ceremony for routine UI.

HTMX core attributes

attribute meaning
hx-get issue a GET to the URL (also hx-post/put/delete)
hx-trigger what fires it (submit, change, keyup, every 5s)
hx-target which element the response replaces
hx-swap how (innerHTML, outerHTML, none)
hx-boost progressive-enhance normal links/forms to AJAX
<form hx-get="/browse" hx-target="#results" hx-trigger="submit">
  <input name="q" hx-get="/browse" hx-trigger="keyup changed delay:300ms"
         hx-target="#results" hx-swap="innerHTML" placeholder="search">
</form>
<div id="results">…</div>

Partial responses

Return a fragment (not the whole page) when the request is HTMX or marked partial. Skill Vault does this: browse_results.html is rendered standalone when HX-Request or ?partial=1 is set, and {% include %}-ed into the full page otherwise — one template, two contexts.

@app.get("/browse")
def browse(q: str = "", partial: int = 0):
    ctx = render_search(q)
    if partial or request.headers.get("HX-Request"):
        return templates.TemplateResponse("browse_results.html", ctx)
    return templates.TemplateResponse("browse.html", ctx)

Out-of-band swap

Swap a fragment that lives elsewhere on the page by adding hx-swap-oob="true" to an element in the response — it's moved into its matching id in the current DOM even if hx-target pointed elsewhere.

Read the full file on GitHub · 129 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 129 lines · 35 tokens per session scan A e31d09f0ffad

Subscribe to this mod's changes

htmx-alpine-frontend is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 1,332 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

htmx-alpine-frontend compared with skills from other repositories

htmx-alpine-frontend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
htmx-alpine-frontendvikasudasi/skill-vaultSkill03mo agoApache-2.0A35Claude Code, Codex
build-ghost-app-uiTryGhost/GhostSkill56ktodayMITA45Claude Code, Codex
shade-tokens-not-hexTryGhost/GhostSkill56ktodayMITA34Claude Code, Codex
shade-use-primitivesTryGhost/GhostSkill56ktodayMITA37Claude Code, Codex
shade-no-dark-variantsTryGhost/GhostSkill56ktodayMITA36Claude Code, Codex
video-shot-demosUnclecheng-li/AI_AnimationSkill1.9k1mo agoMITA166Claude Code, Codex
exploring-autocapture-eventsPostHog/posthogSkill41ktodaynoneA127Claude Code, Codex