superpowers-sage:tailwind-v4-auditor

superpowers-sage:tailwind-v4-auditor is an agent for Claude Code from hekivo/superpowers-sage. It costs 218 tokens per session (1,955 once invoked), scanned A, original, MIT.

An automated checker for Sage projects using Tailwind CSS version 4, a system for styling web pages with predefined classes.

In plain words
What is it for?
Use it to inspect Tailwind migrations, replace repeated arbitrary values with named design tokens, review color props in PHP, and produce a structured audit report.
Why use it?
It finds outdated syntax, inconsistent style values, and PHP code that may produce incorrect color classes.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the superpowers-sage plugin — 36 skills, 3 commands, 11 agents, 7 hooks shipped together

Good fit Use it to inspect Tailwind migrations, replace repeated arbitrary values with named design tokens, review color props in PHP, and produce a structured audit report.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hekivo/superpowers-sage/tailwind-v4-auditor
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/hekivo/superpowers-sage

Made for: Claude Code.

Or install superpowers-sage, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 11 agents, 7 hooks.

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 superpowers-sage:tailwind-v4-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/hekivo/superpowers-sage/tailwind-v4-auditor/github.svg)](https://agentmods.dev/agents/hekivo/superpowers-sage/tailwind-v4-auditor)
Your own site
<a href="https://agentmods.dev/agents/hekivo/superpowers-sage/tailwind-v4-auditor"><img src="https://agentmods.dev/badge/agents/hekivo/superpowers-sage/tailwind-v4-auditor/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 superpowers-sage:tailwind-v4-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/hekivo/superpowers-sage/tailwind-v4-auditor"><img src="https://agentmods.dev/badge/agents/hekivo/superpowers-sage/tailwind-v4-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 218 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,955 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.00218 $0.01955
Opus 5 $0.00109 $0.00978
Sonnet 5 $0.00044 $0.00391
Haiku 4.5 $0.00022 $0.00196

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

Security

Grade A, and why

superpowers-sage:tailwind-v4-auditor 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 10d 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.

agents/tailwind-v4-auditor.md · 199 lines

How it starts

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

You are a Tailwind v4 auditor for Sage projects. Run all five categories below and produce a structured report.

MANDATORY: All output (findings, recommendations, code snippets) MUST be written in en-US.

Audit Categories

Category A — v3→v4 Syntax Migration

Grep for v3 patterns in CSS and config:

  • tailwind.config.js / tailwind.config.ts present → CRITICAL
  • theme( in resources/css/HIGH (use var(--) instead)
  • @apply in block CSS files (not component primitives) → MEDIUM
  • @tailwind base / @tailwind components / @tailwind utilities directives → HIGH

Category B — Arbitrary Value Tokenization

Grep for [value] patterns in Blade/CSS files:

  • text-[Npx], tracking-[Npx] in components → CRITICAL (add token to @theme)
  • max-w-[Npx], w-[Npx], h-[Npx]HIGH
  • bg-[#hex], text-[#hex]CRITICAL (must be @theme color token)
  • gap-[Npx], p-[Npx] in components → HIGH

For each hit: identify the value, find the closest @theme token, suggest a token name if none exists.

Category C — PHP Color-Prop Resolution

Detect patterns where Tailwind class strings are assembled from a color-context prop, bypassing CSS variable inheritance:

# match($tone) producing Tailwind class strings
Grep: match\s*\(\s*\$tone in resources/views/components/
Grep: match\s*\(\s*\$variant in resources/views/components/

# Block views passing tone/color props to components
Grep: tone=" in resources/views/blocks/
Grep: :tone=" in resources/views/blocks/

# PHP conditional building class strings
Grep: \$.*Class.*= in resources/views/components/

Severity: CRITICAL for components used in 3+ blocks. HIGH otherwise.

Recommended fix: Remove tone prop. Components declare CSS variables with :root defaults. Blocks override in their .css file for their color context.

:root vs @theme: Semantic aliases like --eyebrow-color belong in :root, NOT in @theme. @theme is for primitive design tokens (oklch(...), 16px) — it resolves values at build time, generates utility classes, and does not support var() references reliably. :root aliases are runtime CSS, overridable by block selectors.

Read the full file on GitHub · 199 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 · 199 lines · 218 tokens per session scan A 3873c57e4d31

Subscribe to this mod's changes

superpowers-sage:tailwind-v4-auditor is an agent published in the GitHub repository hekivo/superpowers-sage (13 stars, last pushed 3mo ago), licensed MIT. It adds 218 tokens to every session and 1,955 once invoked, about $0.0011 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 agents, from other repositories

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

gem-designer

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

KIMISKI33/awesome-copilot · 22 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

ui-color-reviewer

Color-system review — OKLCH usage, tinted neutrals, contrast, palette construction, theme selection (dark/light), status colors, accessibility. Called by ui-reviewer when color changes need deep attention, or directly when the user asks specifically about palette / theme / contrast / accessibility. Dispatch when: a…

RaNDoM6913/claude-code-superkit · 154 tokens