asarchami/dotfiles/generate-htmx-component
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Generates a self-contained, lightweight UI component using server-driven HTMX and standard Tailwind utility classes.
Install
npx vskill@latest install asarchami/dotfiles/generate-htmx-componentSKILL.md
What I do.
- Build clean, functional, HTML-only frontend fragments tailored for server-side responses.
- Implement dynamic interactions strictly via HTMX attributes (
hx-get,hx-post,hx-target,hx-swap). - Return HTML fragments (never JSON) — detect
HX-Requestheader server-side to decide fragment vs full layout. - Use explicit
hx-targetselectors — target specific elements, never replace entire layout containers. - Choose correct
hx-swapstrategy:innerHTMLfor content updates,outerHTMLfor element replacement,beforeend/afterendfor insertion,deletefor removal. - Use
hx-swap-oobfor updating multiple UI targets from a single fragment response. - Return proper HTTP status codes: 200 for success, 422 for validation errors, 404 for not found, 400 for bad request.
- On validation errors, return the same form fragment with error messages and HTTP 422 — never redirect.
- Use Swap Modifiers (
swap:1s,settle:200ms,show:top) where UI transition timing matters. - Use minimalist Tailwind CSS styling matching the off-white, light gray, and subtle single-accent color palette.
Detailed References
Consult ui_skills/references/ for detailed guidance:
- swap.md — swap strategy reference
- attributes.md — targeting, modifiers, OOB
- validation.md — form validation with 422
- server-patterns.md — fragment architecture
- anti-patterns.md — what NOT to do
When to use me.
Use this skill whenever you need to build or modify individual page elements, form cards, data blocks, or interactive buttons that need to refresh without forcing a browser page reload.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdot_config/opencode/skills/ui_skills/generate-htmx-component/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/asarchami/dotfiles/generate-htmx-component)