sandgardenhq/sgai/htmx-auto-refresh-preservation
Use when building any HTMX interface with polling, SSE, or auto-refresh - prevents state loss (form inputs, scroll positions, details/accordion state) during automatic DOM updates by enforcing Idiomorph morph swaps with correct configuration. When building HTMX pages that auto-refresh via polling (hx-trigger="every Ns") or SSE. When select boxes close on refresh. When form inputs lose focus or reset. When details/accordion elements collapse. When scroll positions jump to top. When you see innerH
Agent skill · version 0.0.0-main.1795732339.g9efbb7b · from sandgardenhq/sgai
Install
npx yarkr-cli add skill:sandgardenhq/sgai/htmx-auto-refresh-preservationWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:sandgardenhq/sgai/htmx-auto-refresh-preservation
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:sandgardenhq/sgai/htmx-auto-refresh-preservationOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:sandgardenhq/sgai/htmx-auto-refresh-preservationWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.