rails-hotwire-driver

rails-hotwire-driver is a skill for Claude Code from maquina-app/rails-claude-code. It costs 213 tokens per session (4,777 once invoked), scanned A, original, MIT.

A command-line driver for a running Rails web application that uses Hotwire, a Rails feature for updating pages with server-sent HTML. It can exercise forms and inspect the application’s responses and development log.

In plain words
What is it for?
Use it to submit ERB forms, check CSRF protection, trigger and inspect Turbo Stream responses, and trace requests in Rails logs.
Why use it?
It lets developers test server-rendered behavior from the terminal, including login flows and one-time codes printed by a development server.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ruby storage_to_jar.rb --in state.json # writes ./.hotwire/cookies.txt.

Part of the rails-hotwire-driver plugin — 1 skill shipped together

Good fit Use it to submit ERB forms, check CSRF protection, trigger and inspect Turbo Stream responses, and trace requests in Rails logs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/maquina-app/rails-claude-code
agentmods
npx agentmods add skills/maquina-app/rails-claude-code/rails-hotwire-driver

Made for: Claude Code.

Or install rails-hotwire-driver, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for rails-hotwire-driver

README.md
[![agentmods](https://agentmods.dev/badge/skills/maquina-app/rails-claude-code/rails-hotwire-driver/github.svg)](https://agentmods.dev/skills/maquina-app/rails-claude-code/rails-hotwire-driver)
Your own site
<a href="https://agentmods.dev/skills/maquina-app/rails-claude-code/rails-hotwire-driver"><img src="https://agentmods.dev/badge/skills/maquina-app/rails-claude-code/rails-hotwire-driver/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.

agentmods 80×15 button for rails-hotwire-driver

Your own site · 80×15
<a href="https://agentmods.dev/skills/maquina-app/rails-claude-code/rails-hotwire-driver"><img src="https://agentmods.dev/badge/skills/maquina-app/rails-claude-code/rails-hotwire-driver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 213 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,777 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

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 →

  • medium MCP Rug Pull · line 81
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 109
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00213 $0.04777
Opus 5 $0.00106 $0.02388
Sonnet 5 $0.00043 $0.00955
Haiku 4.5 $0.00021 $0.00478

Measured 10d ago against content hash f4a6b9ff3f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

rails-hotwire-driver scanned grade A with 1 finding 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 10d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/browser-errors.sh, scripts/dom-diff.sh, scripts/flow.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Drive a running local Rails dev server from the terminal instead of a browser — log in (incl. OTP/magic-link codes read straight from the dev log), submit ERB forms with correct CSRF tokens, trigger and insp
rails-hotwire-driver/skills/rails-hotwire-driver/SKILL.md · 355 lines

How it starts

The opening of the file, as written. The whole thing — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rails Hotwire Driver

Exercise a running local Rails dev server from the shell: authenticate, submit forms, trigger and read Turbo Streams, and read the development log — including OTP/verification codes that Rails prints to the log in development. This is the runtime complement to rails-mcp-server, which only reads code statically.

When this fits (and when it doesn't)

Good fit: ERB + Hotwire apps with minimal JavaScript. The server renders HTML and text/vnd.turbo-stream.html; you are verifying that server-rendered contract.

The core scripts (req.sh, submit_form.rb, readlog.sh, flow.sh) will not execute JavaScript, by design — no Stimulus controllers run, no DOM morphing, no requestSubmit, no ActionCable-broadcast rendering. Don't try to fake JS here.

For the JS-dependent residual, this skill also ships a thin layer of optional scripts around the agent-browser CLI — see Pairing with a browser below. They cover the common cases (screenshots, waiting for a broadcast to actually update the DOM, Stimulus controller state, structural diffs) without reaching for a separate MCP or writing Playwright test code. Anything past that — full end-to-end flows, cross-browser testing — is still better served by a dedicated browser-testing tool.

Prerequisites — confirm before driving

  1. The Rails app is running locally in development (e.g. bin/rails s), and you know its port. Set BASE_URL (default http://localhost:3000). The scripts refuse any non-local host (allowed: localhost, loopback IPs, and any *.localhost name).
  2. Nokogiri is available — it ships with essentially every Rails bundle. Run the Ruby script via the project's bundle: bundle exec ruby .../submit_form.rb.
  3. Recommended for best log correlation: request-id tagging on. In config/environments/development.rb:
    config.log_tags = [ :request_id ]
    
    Without it, readlog.sh request falls back to a context window instead of an exact filter — still useful, just noisier.

Read the full file on GitHub · 355 lines

Changes

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.

  1. 10d ago First seen · 355 lines · 213 tokens per session scan A f4a6b9ff3f27

Subscribe to this mod's changes

rails-hotwire-driver is a skill published in the GitHub repository maquina-app/rails-claude-code (47 stars, last pushed 25d ago), licensed MIT. It adds 213 tokens to every session and 4,777 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browse

Drive a real browser through Aside: open a page, read it, click through a flow, take screenshots, check console errors. (gstack).

garrytan/gstack · 32 tokens

playwright-cli

A command-line tool for controlling Chromium, Firefox, and WebKit browsers, including navigation, page interaction, screenshots, PDFs, and recorded actions.

UnicomAI/wanwu · 76 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

anthropics/skills · 35 tokens

create-verification-skill

Create a repo-local verification skill and exhaustive feature map for driving a real app through its UI, CLI, or API. Use for "create a verification skill", "make a verify skill for this repo", or "document how agents can verify this app".

get-bb/bb · 57 tokens

browser-qa

A browser-based quality check for deployed web pages and user flows. It uses browser automation to test rendering, navigation, forms, interactions, responsive behaviour, and accessibility-related issues.

hashgraph-online/awesome-codex-plugins · 58 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens