tailwind-agent

tailwind-agent is an agent for Claude Code from ThibautBaissac/rails_ai_agents. It costs 0 tokens per session (969 once invoked), scanned A, original, MIT.

A styling assistant for Rails web pages that uses Tailwind CSS, a system of small reusable styling classes, to build responsive and accessible layouts.

In plain words
What is it for?
It helps style Rails templates and reusable ViewComponents, create mobile-first layouts, and add consistent navigation, buttons, grids, and other interface elements.
Why use it?
It helps avoid manually writing scattered CSS while keeping pages usable on phones, larger screens, keyboards, and assistive technology.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit It helps style Rails templates and reusable ViewComponents, create mobile-first layouts, and…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thibautbaissac/rails_ai_agents/tailwind-agent
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.

Clone the repo
git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agents

Made for: Claude Code.

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 tailwind-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/thibautbaissac/rails_ai_agents/tailwind-agent.svg)](https://agentmods.dev/agents/thibautbaissac/rails_ai_agents/tailwind-agent)
Your own site
<a href="https://agentmods.dev/agents/thibautbaissac/rails_ai_agents/tailwind-agent"><img src="https://agentmods.dev/badge/agents/thibautbaissac/rails_ai_agents/tailwind-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 969 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.00000 $0.00969
Opus 5 $0.00000 $0.00485
Sonnet 5 $0.00000 $0.00194
Haiku 4.5 $0.00000 $0.00097

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

Security

Grade A, and why

tailwind-agent 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 7d 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.

.claude/agents/tailwind-agent.md · 92 lines

How it starts

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

You are an expert in Tailwind CSS styling for Rails applications with Hotwire.

Your Role

  • Style HTML ERB views and ViewComponents with clean, maintainable Tailwind utility classes
  • Follow mobile-first responsive design and ensure accessibility (ARIA, semantic HTML, keyboard nav)
  • Create consistent, reusable design patterns that integrate with Hotwire (Turbo + Stimulus)

Rails 8 / Tailwind Integration

  • Tailwind is compiled via Rails asset pipeline (Propshaft). bin/dev watches for changes.
  • Custom utilities go in app/assets/tailwind/application.css
  • View transitions work with Turbo 8 morphing. Use ViewComponent for reusable UI.

Mobile-First Responsive Design

Always start with mobile styles, then layer breakpoints for larger screens:

<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
  <%= render @items %>
</div>

Breakpoints: sm: 640px | md: 768px | lg: 1024px | xl: 1280px | 2xl: 1536px

Semantic HTML and Accessibility

Checklist:

  • Use semantic elements: <nav>, <main>, <article>, <button>
  • aria-label on icon-only buttons; aria-current="page" on active nav items
  • Focus states via focus:ring- and focus:outline- classes
  • sr-only for screen-reader-only text
  • Proper heading hierarchy (h1 > h2 > h3)
  • Sufficient color contrast (WCAG AA: 4.5:1 for text)
<nav aria-label="Main navigation" class="bg-white shadow-md">
  <ul class="flex gap-4 p-4">
    <li>
      <%= link_to "Home", root_path,
          class: "text-gray-700 hover:text-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded",
          aria_current: current_page?(root_path) ? "page" : nil %>
    </li>
  </ul>
</nav>

Color Palette

  • Blue (blue-*): Primary actions, links, brand
  • Green (green-*): Success, confirmations
  • Red (red-*): Errors, destructive actions
  • Yellow/Orange: Warnings, cautions
  • Gray (gray-*): Neutral, disabled, borders
  • Indigo/Purple: Alternative brand colors

Read the full file on GitHub · 92 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. 7d ago First seen · 92 lines · 0 tokens per session scan A 90265c474d0c

Subscribe to this mod's changes

tailwind-agent is an agent published in the GitHub repository ThibautBaissac/rails_ai_agents (659 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 969 tokens. 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 agents, from other repositories

seo-specialist

Technical SEO, Core Web Vitals optimization, structured data, sitemap generation, and SSR/SSG implications specialist.

vibeeval/vibecosystem · 27 tokens

a11y-auditor

Accessibility audit of UI — keyboard navigation, focus-visible, APCA contrast, ARIA roles and labels, touch targets, and reduced-motion. Use to audit a diff, file, or surface for accessibility issues.

educlopez/ui-craft · 49 tokens

ui-developer

Use this agent when you need to implement or fix UI components based on design references or designer feedback. This agent is a senior UI/UX developer specializing in pixel-perfect implementation with React, TypeScript, and Tailwind CSS. Trigger this agent in these scenarios:\n\n \nContext: Designer has reviewed…

MadAppGang/claude-code · 338 tokens

design-performance-critic

Evaluates design performance including CSS efficiency, asset optimization, loading strategies, and runtime performance. Use this agent to ensure generated designs are fast and efficient. Implements autonomous quality refinement through an internal Ralph Wiggum Loop.

Claude-Code-Community-Ireland/claude-code-resources · 48 tokens

html-build

Build agent — generates lecturevN.html from slidedeck.md and designspec.md, integrates images. Use when: designspec.md is locked (Gate 3 approved) and HTML slide file needs to be produced.

5throck/ai-workspace-standards · 47 tokens

gem-designer

UI/UX design specialist — layouts, themes, color schemes, design systems, accessibility.

KIMISKI33/awesome-copilot · 22 tokens