/hotwire:hotwirefrom hotwire
Use when building, changing or setting up a Hotwire app on Void (Vite+ on Cloudflare Workers) styled with daisyUI — adding a page, a form, a Turbo Frame, a Turbo Stream response, a live broadcast to other viewers, a Stimulus controller, the phone apps' path configuration, tests, or running, checking and deploying the app. Says where each part goes; the turbo, stimulus and hotwire-native skills hold each library's own rules.
Ships in hotwire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One way: the server renders HTML, Turbo and Stimulus run in the browser, and one Void app runs it all on Cloudflare Workers. There is no client framework and no JSON API behind the pages. The pages are styled with daisyUI classes, and the same HTML runs in the Hotwire Native phone apps.
This skill is the rules. How each part works is the guide that developers read too, so read the page before
changing that part. Each page is Markdown at
https://raw.githubusercontent.com/joeblew999/hotwire-skills/main/docs/<page>:
| Part | Page |
|---|---|
| Creating an app, the commands, how a request goes through it | 01-getting-started.md |
| The router, the layout, Hono JSX, which requests reach the router | 02-pages.md |
| Forms: 303, 422, Turbo Stream answers | 03-forms.md |
| Frames | 04-frames.md |
Broadcasts (void/live, <turbo-live-stream-source>, refresh) | 05-live-updates.md |
| Stimulus controllers | 06-stimulus.md |
| daisyUI, Tailwind CSS 4, themes | 07-styling.md |
| The phone apps | 08-hotwire-native.md |
| Tests | 09-testing.md |
| Deploying, and taking a deployment down | 10-deploying.md |
The app they describe is example/; read
its file before writing the same part. Each library's own rules are in its skill: turbo, stimulus,
hotwire-native, void (Void's CLI, bindings, D1, KV, auth) and daisyui.
| File | What it is |
|---|---|
src/main.ssr.tsx | export default defineRender((c, tags) => app.fetch(c.req.raw, { ...c.env, tags }, c.executionCtx)). Every request that no file in routes/ or public/ answers comes here, whatever its method |
src/app.tsx | One Hono router for every page, form and frame |
src/views/*.tsx | Hono JSX: renders to HTML on the server, never runs in the browser. class, custom elements, no keys |
src/views/layout.tsx | The document. The bundle's tags go in <head> with data-turbo-track="reload", plus the Turbo meta tags |
src/turbo.tsx | Stream, acceptsStream, streamResponse, broadcast, frameRequest, isNative, refreshOrRedirect |
src/main.client.ts, src/app.css | The browser bundle (Turbo, Stimulus, the live source element) and @import "tailwindcss"; @plugin "daisyui"; |
src/controllers/ | name_controller.ts registers as name, bridge/x_controller.ts as bridge--x |
src/live.ts, routes/live.ts, src/live-stream-source.ts | The void/live stream, its endpoint, and the element that hands broadcasts to Turbo |
src/app.test.tsx | Tests of the router, run with vp test, with void/kv and void/live mocked |
routes/ | Only what Void must own: the live endpoint, WebSocket rooms, JSON, downloads, webhooks. Never a page (no asset tags there) |
public/configurations/{ios,android}_v1.json | Hotwire Native path configurations |
Paths under /api, paths whose last segment has a dot, and requests whose Sec-Fetch-Dest is neither
document nor empty are only ever served as static files: never give a page such a path.
303, or, when
acceptsStream(c), with <turbo-stream> elements. With errors it answers 422 with the form rendered
again. Turbo does not show a 200 HTML answer to a POST.onSubscribe
until it is allowed.dark:.void/db). The example uses KV only to stay short.src/app.test.tsx: its status, content type and body for a browser and for
the phone apps.vp is the project's own (npx vp). Vite+'s docs
for agents are https://viteplus.dev/llms-full.txt.| To add | Write | Check |
|---|---|---|
| A page | app.get(path, (c) => c.html(<Layout c={c} title="…">…</Layout>)), with its view in src/views/ | A test; curl; Drive keeps a window mark when you follow a link to it |
| A form | app.post: streamResponse(c, …) when acceptsStream(c), else c.redirect(url, 303); 422 on errors | A test of each answer |
| A part that loads by itself | <turbo-frame id src loading="lazy">; its route answers the frame alone when frameRequest(c) === id | A test with the Turbo-Frame header |
| Live updates | <turbo-live-stream-source topic> in the page, broadcast(topic, <Stream …/>) after the write, the topic allowed in onSubscribe | A browser test with two contexts (tests/browser.test.ts) |
| Browser behavior | src/controllers/name_controller.ts | Survives following a link and coming back |
| What only the apps do | Path configuration, a bridge component, isNative(c) | A test with the apps' user agent |
| JSON, a download, a webhook | A file in routes/ with defineHandler | curl |
mise run dev:workspace (the dev server, the web app and both phone apps side by side; a server-code change
morphs every open page by itself, hotwireRefresh in vite.config.ts), npm run dev (https://localhost:5173 with
the mkcert certificate), npm test (the router, in Node), npm run test:browser (Chromium
against vp dev; waits on <turbo-live-stream-source connected> and turbo:load, never on timers), npx vp check, npx tsc --noEmit, npm run build,
npx void deploy --platform cloudflare (writes void.lock.json: commit it in an app), and
npx cf workers delete <name> --force to take a deployment down. CI (.github/workflows/check.yml) runs the
checks, the tests and the build.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joeblew999/hotwire-skills --plugin hotwire