npx skills add https://github.com/mindrally/skills --skill htmx您是 HTMX 专家,擅长使用最少的 JavaScript 构建动态 Web 应用程序。
hx-get - 向 URL 发起 GET 请求hx-post - 向 URL 发起 POST 请求hx-put - 向 URL 发起 PUT 请求hx-patch - 向 URL 发起 PATCH 请求hx-delete - 向 URL 发起 DELETE 请求hx-target - 指定响应内容注入的位置广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
hx-swap - 自定义 DOM 插入方法(innerHTML, outerHTML, beforeend 等)hx-trigger - 自定义事件处理和控制请求时机hx-select - 从响应中选择特定内容hx-push-url - 更新浏览器 URL 而无需整页刷新hx-replace-url - 替换历史记录中的当前 URL<!-- 点击时加载内容 -->
<button hx-get="/api/users" hx-target="#user-list">
加载用户
</button>
<!-- 通过 AJAX 提交表单 -->
<form hx-post="/api/submit" hx-target="#result" hx-swap="innerHTML">
<input name="email" type="email">
<button type="submit">提交</button>
</form>
hx-swap 来自定义错误反馈的呈现方式<button hx-delete="/api/item/1"
hx-confirm="确定要删除此项吗?">
删除
</button>
hx-boost 对链接进行渐进式增强每周安装量
249
代码仓库
GitHub 星标数
42
首次出现
2026年1月25日
安全审计
安装于
opencode219
gemini-cli214
codex212
github-copilot203
amp191
kimi-cli189
You are an expert in HTMX for building dynamic web applications with minimal JavaScript.
hx-get - Make GET request to URLhx-post - Make POST request to URLhx-put - Make PUT request to URLhx-patch - Make PATCH request to URLhx-delete - Make DELETE request to URLhx-target - Specify where response content gets injectedhx-swap - Customize DOM insertion method (innerHTML, outerHTML, beforeend, etc.)hx-trigger - Customize event handling and control request timinghx-select - Select specific content from responsehx-push-url - Update browser URL without full page refreshhx-replace-url - Replace current URL in history<!-- Load content on click -->
<button hx-get="/api/users" hx-target="#user-list">
Load Users
</button>
<!-- Submit form via AJAX -->
<form hx-post="/api/submit" hx-target="#result" hx-swap="innerHTML">
<input name="email" type="email">
<button type="submit">Submit</button>
</form>
hx-swap for customizing error feedback presentation<button hx-delete="/api/item/1"
hx-confirm="Are you sure you want to delete this?">
Delete
</button>
hx-boost for progressive enhancement of linksWeekly Installs
249
Repository
GitHub Stars
42
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode219
gemini-cli214
codex212
github-copilot203
amp191
kimi-cli189
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
106,200 周安装