wp-tailwind

wp-tailwind is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 32 tokens per session (4,212 once invoked), scanned A, original, MIT.

A tool for converting ordinary HTML and CSS demos into HTML that uses Tailwind CSS utility classes, or for writing WordPress template sections with Tailwind rules. Tailwind CSS is a styling system that applies small, ready-made classes directly in HTML.

In plain words
What is it for?
Use it to convert an HTML/CSS demo to Tailwind-style markup, write section templates with @apply rules, or support a migration between the two approaches.
Why use it?
It helps move demo designs into a Tailwind-based WordPress project while following the requested operating mode. This avoids manually translating every existing style rule or template section.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the claude-wp-builder plugin — 15 skills, 28 commands, 15 agents 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 agents/yojahny55/claude-wp-builder/wp-tailwind
Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 28 commands, 15 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-tailwind.svg)](https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-tailwind)
Your own site
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-tailwind"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-tailwind.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,212 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.00032 $0.04212
Opus 5 $0.00016 $0.02106
Sonnet 5 $0.00006 $0.00842
Haiku 4.5 $0.00003 $0.00421

Measured yesterday against content hash 032713c79108, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

wp-tailwind 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 yesterday.

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/wp-tailwind.md · 308 lines

How it starts

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

Mode Selection

The dispatch prompt names the mode on a line of its own. Read that line and nothing else:

  • The prompt carries a Mode: **author** line → Section Authoring Mode (skip to that section; the demo-conversion pipeline below does not apply — though a migration dispatch sends you back to Steps 2 and 3 for the translation, see that section's Input state)
  • The prompt carries no Mode: **author** line → Demo Conversion Mode (proceed with the steps below; that dispatch hands you an input file path and an output path instead)

Gate on the whole Mode: **author** line, never on a bare author token appearing somewhere in the prompt. The word turns up in ordinary input paths — demo/author.html and demo/authors.html are unremarkable pages on a blog site — and a bare-token gate reads such a conversion dispatch as an authoring one, so the page is silently never converted. A file path cannot supply the mode line; only a dispatcher that means it can.


WP Tailwind — Demo CSS to Tailwind Converter

Convert a standard HTML/CSS demo file into Tailwind-native HTML using utility classes.

The promotion ladder is deliberately deferred here — conversion is rung 1 everywhere. skills/wp-tailwind-system/SKILL.md belongs to Section Authoring Mode, not to this one: its rungs 2-4 name utilities/site.css and components/<slug>.css, files that live inside a theme, and this mode writes one standalone HTML file and touches no CSS tree at all. So every repeated utility group stays inline on the elements, however often it repeats and however many pages it spans. That is intentional, not an oversight: promotion needs the markup to have reached a template part, which happens later, in the section walk. An agent that reads the SKILL mid-conversion and starts creating .css files is inventing a theme that does not exist yet, and /wp-tailwindify would have nowhere to put them.

Input

You will receive a path to an HTML demo file. Read the file and analyze:

  1. All inline <style> blocks and their CSS rules
  2. Every project-local <link rel="stylesheet">. Resolve its href against the demo file's own directory and read that file too: its rules are conversion source exactly like a <style> block's. Step 4 requires you to delete that <link>, and deleting it is licensed only once you have accounted for its rules. The page you are handed commonly carries both — wp-normalize inlines the rules it can match to a section and leaves the rest (:root custom properties, resets, body, @font-face, global @media) reachable only through the link — so a conversion that reads the <style> block alone drops the demo's design tokens and font loading on the floor.
  3. All class-based styling patterns
  4. Responsive breakpoints used
  5. Color values and how they map to the project's @theme variables

Read the full file on GitHub · 308 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. yesterday Changed · +5 lines 032713c79108
  2. 6d ago First seen · 303 lines · 32 tokens per session scan A 7591c23e6c8d

Subscribe to this mod's changes

wp-tailwind is an agent published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 4,212 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-31.