rails-frontend

rails-frontend is a skill for Claude Code, Codex from jorgegorka/ariadna. It costs 41 tokens per session (1,483 once invoked), scanned A, original, MIT.

A set of conventions for building Ruby on Rails frontends with Hotwire, a Rails approach for updating pages with small amounts of JavaScript.

In plain words
What is it for?
It helps build ERB views, Turbo Drive navigation, Turbo Frames, Turbo Streams, Stimulus controllers, reusable components, and Rails asset styles without using React or Vue.
Why use it?
It provides consistent rules for views, navigation, forms, page updates, components, styles, and HTTP responses that Hotwire expects.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps build ERB views, Turbo Drive navigation, Turbo Frames, Turbo Streams, Stimulus controllers, reusable components, and Rails asset styles without using React or Vue.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jorgegorka/ariadna/rails-frontend
Install

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.

Any agent
npx skills add jorgegorka/ariadna --skill rails-frontend
Clone the repo
git clone --depth 1 https://github.com/jorgegorka/ariadna

Made for: Claude Code, Codex.

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-frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-frontend/github.svg)](https://agentmods.dev/skills/jorgegorka/ariadna/rails-frontend)
Your own site
<a href="https://agentmods.dev/skills/jorgegorka/ariadna/rails-frontend"><img src="https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-frontend/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-frontend

Your own site · 80×15
<a href="https://agentmods.dev/skills/jorgegorka/ariadna/rails-frontend"><img src="https://agentmods.dev/badge/skills/jorgegorka/ariadna/rails-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00041 $0.01483
Opus 5 $0.00020 $0.00741
Sonnet 5 $0.00008 $0.00297
Haiku 4.5 $0.00004 $0.00148

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

Security

Grade A, and why

rails-frontend 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 11d 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.

data/skills/rails-frontend/SKILL.md · 188 lines

How it starts

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

Rails Frontend

Core conventions for Rails frontend work using the Hotwire stack: Turbo Drive, Turbo Frames, Turbo Streams, and Stimulus controllers.

Sub-files

  • VIEWS.md — ERB conventions, layouts, partials, Turbo Frame wrapping
  • COMPONENTS.md — Stimulus controllers, presenter pattern, component composition
  • ASSETS.md — CSS architecture, design tokens, asset pipeline

Stack

  • Turbo Drive — replaces full page loads with fetch + DOM swap
  • Turbo Frames — scope navigation to a region; swap on response
  • Turbo Streams — targeted DOM mutations via <turbo-stream> elements
  • Stimulus — lightweight JS controllers bound to DOM elements
  • No React/Vue — Hotwire is the default; reach for Stimulus before any SPA framework

Turbo Essentials

HTTP Status Codes

Always use these — Turbo depends on them:

Status Meaning When to Use
303 See Other Redirect after success After any create/update/destroy
422 Unprocessable Entity Validation failure Re-render form in frame
Never 200 For redirect-expecting forms
def create
  if @card.save
    redirect_to @card, status: :see_other
  else
    render :new, status: :unprocessable_entity
  end
end

Turbo Frames

Scope to the smallest rerenderable unit. Always use dom_id for IDs:

<turbo-frame id="<%= dom_id(card) %>">
  <%= render "cards/card", card: card %>
</turbo-frame>

Lazy loading with placeholder:

<turbo-frame id="activity_feed" src="<%= activity_feed_path %>" loading="lazy">
  <p>Loading...</p>
</turbo-frame>

Style the loading state with the auto-added [busy] attribute:

turbo-frame[busy] { opacity: 0.5; pointer-events: none; }

Turbo Streams

Prefer the 8 built-in actions: append, prepend, replace, update, remove, before, after, refresh.

Broadcast from model callbacks:

class Card < ApplicationRecord
  after_create_commit  -> { broadcast_append_to board, target: "cards" }
  after_update_commit  -> { broadcast_replace_to board }
  after_destroy_commit -> { broadcast_remove_to board }
end

Read the full file on GitHub · 188 lines

Files

What ships with it

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

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. 11d ago First seen · 188 lines · 41 tokens per session scan A e30deec423a0

Subscribe to this mod's changes

rails-frontend is a skill published in the GitHub repository jorgegorka/ariadna (21 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 1,483 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

hk-mock-first

Mock-first, layer-by-layer feature development. Instead of building a feature end-to-end and hoping the interface works, start by mocking at the user-facing surface with realistic data, get user acceptance on the experience, then deepen one complexity layer at a time with TDD. Everything is anchored on disk so work…

deepklarity/harness-kit · 126 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

fullstack455/deer-flow · 77 tokens

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

fullstack455/deer-flow · 44 tokens

web-verify

Look at your OWN front-end change before claiming it works -- navigate the loopback URL of a dev server or pod you started, screenshot the surface you changed, read the image to judge it, and embed it in chat. Three capture backends: playwright-cli (the session the dashboard Browser panel shows), the agent-browser CLI…

kirodotdev/KiroCrew · 0 tokens

neuron-structured-output

Design and implement structured output classes for Neuron AI agents using SchemaProperty attributes and validation rules. Use this skill when the user mentions structured output, JSON schema extraction, data validation, output classes, DTOs for AI responses, extracting structured data from LLM, or configuring property…

neuron-core/neuron-ai · 104 tokens

mcp-host-styling-integration

Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.

a5c-ai/babysitter · 44 tokens