[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EF5SK5JKSN6GY6MASFP7ZR":3,"skill-same:01M6EF5SK5JKSN6GY6MASFP7ZR":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":7,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6EF5SK5JKSN6GY6MASFP7ZR","hotwire","Hotwire 前端开发",null,"","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fhotwire\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[5],"2026-11-10 10:12:30",false,"# Hotwire — HTML Over the Wire\n\nYou are an expert in Hotwire (HTML Over The Wire), the collection of techniques for building modern web applications by sending HTML instead of JSON. You help developers use Turbo (Drive, Frames, Streams) for SPA-like navigation and partial updates, and Stimulus for lightweight JavaScript behavior — building fast, server-rendered applications that feel like SPAs with minimal client-side JavaScript.\n\n## Core Capabilities\n\n### Turbo Drive (SPA-like navigation)\n\n```html\n\u003C!-- Turbo Drive is automatic — no configuration needed -->\n\u003C!-- All link clicks and form submissions are intercepted -->\n\u003C!-- Only the \u003Cbody> is replaced; \u003Chead> assets are preserved -->\n\n\u003C!-- Opt out specific links -->\n\u003Ca href=\"\u002Fexternal\" data-turbo=\"false\">External Link\u003C\u002Fa>\n\n\u003C!-- Prefetch on hover for instant navigation -->\n\u003Ca href=\"\u002Fdashboard\" data-turbo-prefetch=\"true\">Dashboard\u003C\u002Fa>\n\n\u003C!-- Progress bar appears automatically during navigation -->\n\u003Cstyle>\n  .turbo-progress-bar {\n    background-color: #6366f1;\n    height: 3px;\n  }\n\u003C\u002Fstyle>\n```\n\n### Turbo Frames (partial page updates)\n\n```html\n\u003C!-- Only the content inside matching turbo-frame is replaced -->\n\u003Cturbo-frame id=\"messages\">\n  \u003Ch2>Messages\u003C\u002Fh2>\n  \u003Cdiv class=\"message-list\">\n    \u003C!-- Messages rendered server-side -->\n    \u003Cdiv class=\"message\">Hello from server!\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n  \u003C!-- This link only updates THIS frame -->\n  \u003Ca href=\"\u002Fmessages?page=2\">Load more\u003C\u002Fa>\n\u003C\u002Fturbo-frame>\n\n\u003C!-- Lazy-loaded frame (loads on page appear) -->\n\u003Cturbo-frame id=\"notifications\" src=\"\u002Fnotifications\" loading=\"lazy\">\n  \u003Cp>Loading notifications...\u003C\u002Fp>\n\u003C\u002Fturbo-frame>\n\n\u003C!-- Frame that targets another frame -->\n\u003Cturbo-frame id=\"sidebar\">\n  \u003Ca href=\"\u002Fusers\u002F42\" data-turbo-frame=\"main-content\">View Profile\u003C\u002Fa>\n\u003C\u002Fturbo-frame>\n\u003Cturbo-frame id=\"main-content\">\n  \u003C!-- Profile loads here -->\n\u003C\u002Fturbo-frame>\n```\n\n### Turbo Streams (real-time updates)\n\n```html\n\u003C!-- Server sends these HTML snippets to update the page -->\n\u003C!-- Via form response, WebSocket, or SSE -->\n\n\u003C!-- Append a new message to the list -->\n\u003Cturbo-stream action=\"append\" target=\"messages\">\n  \u003Ctemplate>\n    \u003Cdiv id=\"message_42\" class=\"message\">\n      \u003Cstrong>Alice:\u003C\u002Fstrong> New message just arrived!\n    \u003C\u002Fdiv>\n  \u003C\u002Ftemplate>\n\u003C\u002Fturbo-stream>\n\n\u003C!-- Replace an existing element -->\n\u003Cturbo-stream action=\"replace\" target=\"message_42\">\n  \u003Ctemplate>\n    \u003Cdiv id=\"message_42\" class=\"message edited\">\n      \u003Cstrong>Alice:\u003C\u002Fstrong> Edited message content\n    \u003C\u002Fdiv>\n  \u003C\u002Ftemplate>\n\u003C\u002Fturbo-stream>\n\n\u003C!-- Remove an element -->\n\u003Cturbo-stream action=\"remove\" target=\"message_42\">\u003C\u002Fturbo-stream>\n\n\u003C!-- Update element content (keep the wrapper) -->\n\u003Cturbo-stream action=\"update\" target=\"unread-count\">\n  \u003Ctemplate>5\u003C\u002Ftemplate>\n\u003C\u002Fturbo-stream>\n\n\u003C!-- Available actions: append, prepend, replace, update, remove, before, after -->\n```\n\n### Stimulus (lightweight JS behavior)\n\n```javascript\n\u002F\u002F src\u002Fcontrollers\u002Fdropdown_controller.js\nimport { Controller } from \"@hotwired\u002Fstimulus\";\n\nexport default class extends Controller {\n  static targets = [\"menu\"];              \u002F\u002F data-dropdown-target=\"menu\"\n  static values = { open: Boolean };      \u002F\u002F data-dropdown-open-value=\"false\"\n  static classes = [\"active\"];            \u002F\u002F data-dropdown-active-class=\"opacity-100\"\n\n  toggle() {\n    this.openValue = !this.openValue;\n  }\n\n  openValueChanged() {\n    this.menuTarget.classList.toggle(this.activeClass, this.openValue);\n    this.menuTarget.classList.toggle(\"hidden\", !this.openValue);\n  }\n\n  \u002F\u002F Close on click outside\n  close(event) {\n    if (!this.element.contains(event.target)) {\n      this.openValue = false;\n    }\n  }\n}\n```\n\n```html\n\u003C!-- HTML with Stimulus controller -->\n\u003Cdiv data-controller=\"dropdown\"\n     data-dropdown-active-class=\"opacity-100\"\n     data-action=\"click@window->dropdown#close\">\n  \u003Cbutton data-action=\"dropdown#toggle\">Menu ▾\u003C\u002Fbutton>\n  \u003Cul data-dropdown-target=\"menu\" class=\"hidden\">\n    \u003Cli>\u003Ca href=\"\u002Fprofile\">Profile\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"\u002Fsettings\">Settings\u003C\u002Fa>\u003C\u002Fli>\n    \u003Cli>\u003Ca href=\"\u002Flogout\">Logout\u003C\u002Fa>\u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Fdiv>\n```\n\n## Installation\n\n```bash\n# With import maps (Rails 7+, no bundler)\nbin\u002Fimportmap pin @hotwired\u002Fturbo @hotwired\u002Fstimulus\n\n# With npm\nnpm install @hotwired\u002Fturbo @hotwired\u002Fstimulus\n\n# JavaScript setup\nimport * as Turbo from \"@hotwired\u002Fturbo\";\nimport { Application } from \"@hotwired\u002Fstimulus\";\nconst application = Application.start();\n```\n\n## Best Practices\n\n1. **Server-first** — Render HTML on the server; Turbo handles making it feel like an SPA\n2. **Frames for partials** — Use Turbo Frames to update sections independently; no full-page reloads needed\n3. **Streams for real-time** — Use Turbo Streams over WebSocket\u002FSSE for live updates (chat, notifications, dashboards)\n4. **Stimulus for behavior** — Only add JS for interactive behavior (dropdowns, modals, form validation); not for rendering\n5. **Minimal JavaScript** — A typical Hotwire app has 10-20 small Stimulus controllers vs. 500+ React components\n6. **Progressive enhancement** — Everything works without JavaScript; Turbo enhances with speed, Stimulus adds behavior\n7. **Works with any backend** — Designed for Rails but works with Django, Laravel, Express, Go — any server that renders HTML\n8. **Cache effectively** — Turbo caches pages; use `data-turbo-cache=\"false\"` on pages that should never be cached\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fhotwire",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":9,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill hotwire",{"tool":49,"command":50},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill hotwire",{"tool":52,"command":53},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill hotwire","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fhotwire\u002FSKILL.md",true,[],[58,67,76,85,91,97],{"skillNo":59,"name":60,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":30},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[64,65,66],"model","model hierarchy","model hierarchy skill",{"skillNo":68,"name":69,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":30},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[73,74,75],"MCP","zoom","zoom mcp",{"skillNo":77,"name":78,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":30},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[82,83,84,74],"sdk","zoom apps sdk","apps",{"skillNo":86,"name":87,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":30},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[87],{"skillNo":92,"name":93,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":30},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[93],{"skillNo":98,"name":99,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":30},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[99]]