AllYourBot/hostedgpt / .claude/skills/hotwire-docs
hotwire-docs
UnverifiedUse when asked about Turbo (Turbo Drive, Turbo Frames, Turbo Streams, ActionCable-broadcasted streams) or Stimulus (controllers, targets, actions, values, outlets) — including "how do I do X with Turbo/Stimulus", debugging a Turbo Stream broadcast, or wiring up a Stimulus controller. Always consult the official Hotwire docs rather than answering from memory alone, since Turbo/Stimulus APIs and idioms have shifted across versions and this project has no SPA framework — all interactivity goes through Hotwire.
Hotwire (Turbo + Stimulus) documentation lookup
This project (HostedGPT) uses Hotwire (Turbo + Stimulus) for all frontend interactivity — no SPA
framework. Streaming chat updates arrive via Turbo Stream broadcasts over ActionCable, rendered
from server-side partials (see app/views/messages/_message.html.erb and CLAUDE.md). Trained
knowledge about Turbo/Stimulus can be stale or blend behavior across versions — check the official
docs before relying on specifics.
Sources
- Turbo Handbook & reference: https://turbo.hotwired.dev
- Overview: https://turbo.hotwired.dev/handbook/introduction
- Drive: https://turbo.hotwired.dev/handbook/drive
- Frames: https://turbo.hotwired.dev/handbook/frames
- Streams: https://turbo.hotwired.dev/handbook/streams
- Reference (attributes, actions, events): https://turbo.hotwired.dev/reference/attributes
- Stimulus Handbook & reference: https://stimulus.hotwired.dev
- Overview: https://stimulus.hotwired.dev/handbook/introduction
- Controllers/targets/actions/values/outlets: https://stimulus.hotwired.dev/handbook/hello-stimulus
- Reference: https://stimulus.hotwired.dev/reference/controllers
When to look things up
Use WebFetch against the sources above when:
- You need the exact Turbo Stream action list/syntax (
append,prepend,replace,update,remove,before,after,refresh) or how targeting (target=/targets=) works. - You're unsure how Turbo Frame lazy-loading,
data-turbo-*attributes, or navigation interception behaves. - You're writing or debugging a Stimulus controller and need exact lifecycle callback names,
target/value/outlet declaration syntax, or action descriptor syntax (
event->controller#method). - The user asks "how do I do X with Turbo/Stimulus" and it's not already answered by this
project's own patterns in
CLAUDE.md.
Skip the lookup for questions answered faster by reading this codebase directly — e.g. how this
app's own streaming job builds and broadcasts updates is answered by
app/services/ai_backend/, GetNextAIMessageJob, and the _message.html.erb partials, not the
Hotwire docs.
Applying this project's conventions
The Hotwire docs describe the general framework; this project's own streaming architecture (see
CLAUDE.md's "Message generation flow") governs how it's actually used here — e.g. partial
updates are broadcast roughly every 100ms during streaming and only persisted once the stream
finishes. Confirm Turbo/Stimulus behavior against the docs, but follow this repo's existing
patterns for where controllers and broadcasts live.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 196k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |