ui

ui is a skill for Claude Code, Codex from maquina-app/rails-claude-code. It costs 58 tokens per session (1,835 once invoked), scanned A, original, MIT.

A set of rules for building accessible Rails web interfaces with Maquina Components, a library of reusable interface parts styled with Tailwind CSS. It covers composing views, applying component attributes, and handling version-specific details.

In plain words
What is it for?
Use it when creating or reviewing Rails views, forms, layouts, and other user-interface work built with Maquina Components.
Why use it?
It keeps Rails screens consistent and helps avoid styling, accessibility, and upgrade mistakes when using this component library.

Skill for Claude CodeCodex

Part of the maquina-ui-standards plugin — 1 skill shipped together

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.

agentmods
npx agentmods add skills/maquina-app/rails-claude-code/ui
Any agent
npx skills add maquina-app/rails-claude-code --skill ui
Clone the repo
git clone --depth 1 https://github.com/maquina-app/rails-claude-code

Made for: Claude Code, Codex.

Or install maquina-ui-standards, 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 ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/maquina-app/rails-claude-code/ui.svg)](https://agentmods.dev/skills/maquina-app/rails-claude-code/ui)
Your own site
<a href="https://agentmods.dev/skills/maquina-app/rails-claude-code/ui"><img src="https://agentmods.dev/badge/skills/maquina-app/rails-claude-code/ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00058 $0.01835
Opus 5 $0.00029 $0.00918
Sonnet 5 $0.00012 $0.00367
Haiku 4.5 $0.00006 $0.00184

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

Security

Grade A, and why

ui 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 5d 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.

maquina-ui-standards/skills/ui/SKILL.md · 96 lines

How it starts

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

Maquina UI Standards

Build production-quality Rails UIs with maquina_components — ERB partials styled with Tailwind CSS 4 and data attributes, inspired by shadcn/ui.

Verified against maquina-components 0.7.0. Upgrading an app from 0.5.x? Read upgrading-0.6.md first — 0.6.0 changed behavior silently. 0.7.0 broke nothing, but it deprecated collapse_after on responsive_breadcrumbs and fixed focus-ring timing; never transition outline-color in a component of your own.

Official documentation: https://maquina.app/documentation/components/

Core Rules

  1. Composition first — build screens from component partials and helpers; wrap repeated compositions into app-specific partials that encode your conventions.
  2. Data-attribute styling — components style through data-component / data-*-part attributes; the engine CSS handles appearance. Reach for a variant or a role token first, and use Tailwind utilities for layout — grids, spacing, placement.
  3. The layered engine — every engine rule lives in @layer components flattened to specificity 0,1,0, so a utility passed as css_classes: applies. That makes rule 2 a convention you keep, not a mechanism that keeps itself: an unintended utility silently reshapes the component.
  4. Semantic variants — map meaning to variants (:success, :warning, :destructive), one mapping per status domain. The danger variant is :destructive everywhere; sizes are :sm / :default / :lg (badge's middle size is :md; both accept the other's name as an alias). This vocabulary is canonical — the catalog defers to it.
  5. Helpers for interactive componentsdropdown_menu, combobox, toggle_group, simple_table, pagination_nav (Pagy), empty_state, toast_flash_messages, breadcrumbs. Use _simple variants for data-driven one-liners, block builders for custom content, partials for structural components (Card, Alert, Badge, Sidebar, Drawer).
  6. Inline errors — field errors render next to their input (data-form-part="error"), with a brief flash summary. Complete inputs: every field carries type, required, maxlength, autocomplete, and inputmode where they apply.
  7. Handle the zero state — every list renders an empty_state (or empty_search_state / empty_list_state) when the collection is empty.
  8. Icons via icon_for — one icon system, delegating to the app's main_icon_svg_for override with built-in SVG fallbacks. Under strict_icons (on by default in development and test) an unresolvable name raises MaquinaComponents::UnknownIconError, so use a name from the roster in installation-guide.md.
  9. Tokens carry the design — color, shape, elevation, focus and weight are all CSS variables. Use role tokens (--surface-radius, --elevation-overlay, --focus-ring-width) to restyle a whole class of component, and a per-component escape hatch (--card-radius, --toast-shadow) to pin exactly one. A theme changes values, not selectors. One accent color moment per screen; neutrals elsewhere.

Read the full file on GitHub · 96 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. 5d ago First seen · 96 lines · 58 tokens per session scan A a10fcfed5d01

Subscribe to this mod's changes

ui is a skill published in the GitHub repository maquina-app/rails-claude-code (47 stars, last pushed 20d ago), licensed MIT. It adds 58 tokens to every session and 1,835 once invoked, about $0.0003 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

Shade ShadCN install

Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.

TryGhost/Ghost · 72 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

可点击的功能性 Web 原型, 含导航、英雄区、特性区、CTA.

nexu-io/html-anything · 24 tokens

waitlist-page

【模板: 等候名单页 / Waitlist】 【意图】为新产品 / 早鸟内测做一张极简等候页。 【布局】.

nexu-io/html-anything · 25 tokens

design-frontend-dev

Clean Impeccable frontend design skill. Use when the user wants to design, redesign, critique, audit, polish, harden, optimize, adapt, clarify, colorize, animate, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, onboarding, empty states…

The-Vibe-Company/companion · 127 tokens