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.
npx agentmods add commands/abdulkader-safi/wp-to-code/wp-auditgit clone --depth 1 https://github.com/Abdulkader-Safi/wp-to-codeWhat 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 | $0.00020 | $0.00361 |
| Opus 5 | $0.00010 | $0.00180 |
| Sonnet 5 | $0.00004 | $0.00072 |
| Haiku 4.5 | $0.00002 | $0.00036 |
Grade A, and why
wp-audit 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 2d 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.
What it actually says
node "${CLAUDE_PLUGIN_ROOT}/scripts/audit.mjs"
Run this before trusting any measurement pass, and again before calling a page done.
What it catches, and why each one hides
Undefined tokens. text-28 used, --text-28 never defined. Tailwind emits nothing, the element inherits its parent's size, and if the block is absolutely positioned every section height stays correct. On the port this plugin came from, that shipped at half size across four pages and survived a full geometry pass.
Interpolated class names. Tailwind's scanner reads source text, so pl-[${x}px] is a string it cannot resolve, not a class. No CSS is generated and no error is raised. Use an inline style for genuinely dynamic values.
leading-normal on text over 18px. Renders at 1.5x. The original is usually tighter. Take line-height from the measurement.
Horizontal padding on a fixed-width box. w-[287px] pl-[15px] is a 272px content box. Text rewraps and the height changes with nothing in the class list to explain it.
Arbitrary values that duplicate a token. text-[24px] where --text-23 exists. Usually a measurement that was not reconciled.
The last section counts single-use classes. A high proportion suggests two sections that should be one component.
Exit code is non-zero when there are findings, so this works as a gate in a script.
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.
- 2d ago First seen · 27 lines · 20 tokens per session scan A 0a78524223db
wp-audit is a command published in the GitHub repository Abdulkader-Safi/wp-to-code (2 stars, last pushed 14d ago), licensed MIT. It adds 20 tokens to every session and 361 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.
Other commands, from other repositories
theme-swap
Recolour an extracted site's design around a new brand primary. OKLCH hue rotation preserves perceptual lightness — neutrals, type, spacing, and motion stay untouched. Side-by-side HTML preview + recoloured tokens (DTCG, Tailwind, shadcn, Figma).
remix
Restyle a site in another design vocabulary — brutalist, swiss, art-deco, cyberpunk, soft-ui, or editorial. Preserves page shape, swaps the visual vocabulary.
studio
Launch the local design Studio — a live token editor over the latest extraction. Edit, preview a wall of real components, toggle dark mode, inspect motion, and export.
shadcn-init
Automatyzuje pełną inicjalizację komponentów shadcn/ui w projekcie.
polish
Final quality pass: alignment, spacing, consistency, design system adherence, typography, interaction states, and code cleanup. Replaces polish + normalize + distill.
review-css-complexity
Scan codebase for overly complex CSS/styling patterns that should be simplified.