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 $0.00017 $0.00666
Sonnet 5 $0.00007 $0.00266
Haiku 4.5 $0.00003 $0.00133

Measured 8d ago against content hash e31d09f0ffad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 8d 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. 8d 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 23d ago), licensed Apache-2.0. It adds 35 tokens to every session and 1,332 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

video-shot-demos

A workflow for creating animated HTML pages, one page per video shot, lesson segment, or narrated scene. It combines a shared player structure with different visual designs for each shot.

Unclecheng-li/AI_Animation · 166 tokens

exploring-autocapture-events

Guides exploration of $autocapture events captured by posthog-js to understand user interactions, find CSS selectors (especially data-attr attributes), evaluate selector uniqueness, query matching clicks ad-hoc, and create actions. Use when the user asks about autocapture data, wants to find what users are clicking…

PostHog/posthog · 127 tokens

building-html-canvases

Author a PostHog canvas with semantic HTML, CSS, and direct browser APIs — documents, articles, generative graphics, 2D canvas and WebGL experiences, and focused experiments where React components add no useful structure. Use after building-canvases has routed a canvas request to a plain-HTML/browser-API…

PostHog/posthog · 99 tokens

quill-code

Edit the @posthog/quill design system locally and consume the change in products/desktop before it is published to npm. Use when changing quill components/primitives/tokens, when a quill change must be tested inside the Code app, or when the user mentions quill, the design system, the .local-quill tarball, or the…

PostHog/posthog · 84 tokens

preline-mcp

Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.

htmlstreamofficial/preline · 66 tokens

preline-theme-generator

Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated…

htmlstreamofficial/preline · 89 tokens