skills/htmx/SKILL.md
htmx patterns for server-rendered applications. Covers hypermedia interactions, fragment responses, attributes, swap strategies, validation, OOB updates, and server-side patterns for Python apps using templates.
npx skillsauth add oornnery/.agents htmxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use skill when work primarily htmx interactions, fragment responses, or server-rendered HTML flows.
Use for:
hx-* attributes and interaction designPair with:
design when surface contracts and UI flows need cleanuppython when request handlers, templates, and backend code are Pythonsecurity when CSRF, auth, untrusted HTML, or unsafe headers involvedreferences/attributes.md -- request, trigger, target, swap, history, sync, indicator patternsreferences/server-patterns.md -- fragment endpoints, valid responses, OOB updates, HX headers, template organizationassets/search.html -- simple active-search surface using stable targetsassets/form.jinja -- server-rendered form fragment with valid and request-state feedbackKeep focused on mental model and defaults.
HX-Request when that keeps UI flow simplehx-target stable and boring; prefer ids or clear local selectorshx-swap deliberately; default innerHTML, use outerHTML only when replacing full component boundary is clearer422 for valid fragments when form well-formed but invalidfrom fastapi import Request
def is_htmx(request: Request) -> bool:
return request.headers.get("HX-Request") == "true"
Common pattern:
For attribute details, load references/attributes.md.
For server patterns, load references/server-patterns.md.
hx-headers or hx-vals if values come from untrusted sourcesdevelopment
--- name: verification description: Discover and run project validation gates: format, lint, typecheck, LSP diagnostics, tests, build, static security checks, dependency audits, and RTK output handling. Use before claiming work is complete, when fixing broken checks, or when setting up a validation plan. --- # Verification Use this skill to prove changes with the strongest practical checks the repo already supports. ## Discovery Order 1. Read task aliases: `package.json`, `pyproject.toml`, `
tools
Build, review, or validate standalone Python scripts run with uv inline metadata. Use for one-file automation, operational scripts, script dependencies, shebangs, idempotency, safety, representative runs, and promoting scripts to packages.
development
Build, review, or validate Python packages and libraries where public API stability, packaging metadata, imports, examples, changelogs, build output, and compatibility matter.
tools
Build, review, or validate Python command-line applications and terminal tools. Use for argparse, Typer, Rich, Textual-adjacent CLI UX, stdout/stderr contracts, exit codes, automation-friendly flags, help output, and CLI tests.