wp-tailwind-migrate

wp-tailwind-migrate is a command for Claude Code from yojahny55/claude-wp-builder. It costs 26 tokens per session (5,740 once invoked), scanned A, original, MIT.

A command that converts an existing WordPress theme using ordinary CSS into one using Tailwind CSS utility classes, while keeping its appearance unchanged.

In plain words
What is it for?
Use it to migrate a whole theme or one page template at a time before adopting Tailwind CSS.
Why use it?
It removes the manual work of translating CSS rules into Tailwind classes and includes a clean Git working-tree check to separate existing edits from migration changes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-wp-builder plugin — 15 skills, 30 commands, 15 agents shipped together

Good fit Use it to migrate a whole theme or one page template at a time before adopting Tailwind CSS.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yojahny55/claude-wp-builder
Claude Code
/plugin install 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, 30 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-migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate/github.svg)](https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate)
Your own site
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate/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 wp-tailwind-migrate

Your own site · 80×15
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-tailwind-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,740 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.00026 $0.05740
Opus 5 $0.00013 $0.02870
Sonnet 5 $0.00005 $0.01148
Haiku 4.5 $0.00003 $0.00574

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

Security

Grade A, and why

wp-tailwind-migrate 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 3d 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.

commands/wp-tailwind-migrate.md · 421 lines

How it starts

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

WP Tailwind Migrate

Convert a theme that was built on the plain-CSS path into a Tailwind-native one, in place, without changing how it looks.

Usage: /wp-tailwind-migrate <theme-path> [--page <slug>]
       /wp-tailwind-migrate wp-content/themes/acme
       /wp-tailwind-migrate wp-content/themes/acme --page contacto

--page <slug> migrates a single template instead of the whole theme — useful for a first careful pass before committing to the full conversion.

Read skills/wp-tailwind-system/SKILL.md before starting. It owns the decision ladder and the file layout that every step below assumes.

Step 0 — Baseline gate

Refuse to proceed unless the theme is in a git repo with a clean tree. An uncommitted change would be indistinguishable from a migration artifact.

Every path below lives either in the plugin (bin/…, skills/…, starter-theme/…) or in the theme (assets/css/…, functions.php). The cd in this block changes which one a bare relative path would hit — so run plugin scripts by their full path, ${CLAUDE_PLUGIN_ROOT}/bin/…, never as a bare relative path.

cd <theme-path>
pwd   # record this absolute path — Step 6 re-anchors on it, never on <theme-path>
git rev-parse --is-inside-work-tree >/dev/null 2>&1 \
  || { echo "Error: <theme-path> is not a git repo. Init one first."; exit 1; }
[ -z "$(git status --porcelain)" ] \
  || { echo "Error: uncommitted changes. Commit or stash before migrating."; exit 1; }
git commit -q --allow-empty -m "chore: baseline before /wp-tailwind-migrate"

The theme must already build with Tailwind v4 — check, do not assume

Every step below writes the v4 layout: @import "tailwindcss", a @theme block, the four assets/css/src/tailwindcss/ directories, and an assets/css/dist/main.css that Step 5 makes the theme's only stylesheet. A theme on Tailwind v3 has none of that. It has a tailwind.config.js, a PostCSS build, and it compiles its partials into a stylesheet WordPress requires to sit at the theme root — style.css, the file carrying the Theme Name: header. Run these steps against it and the "migration" becomes a v3 → v4 upgrade plus a restructure of every partial in the theme, on top of the conversion that was actually asked for.

Read the full file on GitHub · 421 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. 3d ago Changed · +67 lines f52a747f33f7
  2. 5d ago Changed · +7 lines 3c0985588821
  3. 8d ago First seen · 347 lines · 26 tokens per session scan A 4d8117ee4d2a

Subscribe to this mod's changes

wp-tailwind-migrate is a command published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 5,740 once invoked, about $0.0001 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.