Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add slbug/claude-ruby-grape-rails --skill hotwire-patternsgit clone --depth 1 https://github.com/slbug/claude-ruby-grape-railsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/hotwire-patterns)<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/hotwire-patterns"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/hotwire-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/hotwire-patterns"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/hotwire-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Prompt Injection · line 41 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
- high Prompt Injection · line 55 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
- high Prompt Injection · line 101 Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.01430 |
| Opus 5.5 | $0.00020 | $0.00572 |
| Sonnet 5.5 | $0.00010 | $0.00286 |
| Haiku 4.5 | $0.00005 | $0.00143 |
Grade A, and why
hotwire-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hotwire Patterns
Iron Laws
- Keep server-rendered interactions simple before reaching for custom JS.
- Broadcast after commit when Turbo Stream updates depend on committed state.
- Keep Stimulus controllers focused on browser concerns, not business rules.
- Avoid duplicating the same state in DOM, session, cache, and
Currentwithout a clear source of truth. - Use Turbo Frames for scoped navigation; Turbo Streams for server-driven updates.
- Progressive enhancement: pages work without JavaScript, enhanced with it.
Overview
Hotwire provides tools for building modern web applications with minimal JavaScript:
- Turbo Drive — Handles page navigation without full reloads
- Turbo Frames — Scoped page updates, independent navigation
- Turbo Streams — Server-driven page changes via WebSocket or HTTP
- Stimulus — JavaScript controllers for progressive enhancement
Quick Decision Guide
| Use Case | Tool | Example |
|---|---|---|
| Page navigation | Turbo Drive | Click links, instant page loads |
| Modal/dialog | Turbo Frame | Login modal, settings panel |
| Independent scrollable area | Turbo Frame | Comments section, sidebar |
| Real-time updates | Turbo Streams | Notifications, live comments |
| Form validation | Stimulus | Character counter, date picker |
| Complex UI interaction | Stimulus | Drag and drop, autocomplete |
Turbo Frames
<!-- Frame that updates independently -->
<%= turbo_frame_tag "comments" do %>
<%= render @comments %>
<% end %>
<!-- Link targets specific frame -->
<%= link_to "Load more", comments_path(page: 2), data: { turbo_frame: "comments" } %>
See Turbo Architecture for Drive, Frames, and Streams.
Turbo Streams
<!-- Broadcast from model -->
<%= turbo_stream_from @post %>
<!-- In view, streams update automatically -->
<%= turbo_frame_tag dom_id(@post) do %>
<%= render @post %>
<% end %>
# Controller action
class CommentsController < ApplicationController
def create
@comment = @post.comments.create!(comment_params)
respond_to do |format|
format.turbo_stream
format.html { redirect_to @post }
end
end
end
What ships with it
14 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/anti-patterns.md 1.4 KB
- references/async-streams.md 10.0 KB
- references/channels-presence.md 8.7 KB
- references/components.md 9.9 KB
- references/forms-uploads.md 12 KB
- references/js-interop.md 10 KB
- references/migration-guide.md 881 B
- references/performance-tips.md 775 B
- references/progressive-enhancement.md 913 B
- references/pubsub-navigation.md 9.6 KB
- references/realtime-features.md 2.1 KB
- references/stimulus-controllers.md 6.2 KB
- references/testing.md 1.1 KB
- references/turbo-architecture.md 4.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 176 lines · 49 tokens per session scan A 2b984b3a09ca
hotwire-patterns is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 1,430 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
hotwire-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hotwire-patternsslbug/claude-ruby-grape-rails | Skill | 7 | yesterday | MIT | A | 49 | Claude Code |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| omh-rustrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 19 | Claude Code |
| redteam-web-detail-packNetw0rkNoob/VulnClaw | Skill | 4.0k | 1mo ago | MIT | A | 38 | Claude Code, Codex |
| android-pentestNetw0rkNoob/VulnClaw | Skill | 4.0k | 1mo ago | MIT | A | 32 | Claude Code, Codex |
| schedule-querychrisblattman/claudeblattman | Skill | 498 | 12d ago | MIT | A | 17 | Claude Code |
| manage-schemasjpicklyk/task-orchestrator | Skill | 215 | today | MIT | A | 207 | Claude Code |