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.
git clone --depth 1 https://github.com/ThibautBaissac/rails_ai_agentsWrote 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/agents/thibautbaissac/rails_ai_agents/tailwind-agent)<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>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.00000 | $0.00969 |
| Opus 5 | $0.00000 | $0.00485 |
| Sonnet 5 | $0.00000 | $0.00194 |
| Haiku 4.5 | $0.00000 | $0.00097 |
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.
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/devwatches 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-labelon icon-only buttons;aria-current="page"on active nav items- Focus states via
focus:ring-andfocus:outline-classes sr-onlyfor 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
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.
- 7d ago First seen · 92 lines · 0 tokens per session scan A 90265c474d0c
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.
Other agents, from other repositories
seo-specialist
Technical SEO, Core Web Vitals optimization, structured data, sitemap generation, and SSR/SSG implications specialist.
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.
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…
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.
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.
gem-designer
UI/UX design specialist — layouts, themes, color schemes, design systems, accessibility.