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.
/plugin marketplace add Abdulkader-Safi/wp-to-code/plugin install wp-to-codeWrote 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/commands/abdulkader-safi/wp-to-code/wp-port)<a href="https://agentmods.dev/commands/abdulkader-safi/wp-to-code/wp-port"><img src="https://agentmods.dev/badge/commands/abdulkader-safi/wp-to-code/wp-port/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.
<a href="https://agentmods.dev/commands/abdulkader-safi/wp-to-code/wp-port"><img src="https://agentmods.dev/badge/commands/abdulkader-safi/wp-to-code/wp-port.svg" alt="Reviewed on agentmods" width="80" 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.00018 | $0.00609 |
| Opus 5.5 | $0.00007 | $0.00244 |
| Sonnet 5.5 | $0.00004 | $0.00122 |
| Haiku 4.5 | $0.00002 | $0.00061 |
Grade A, and why
wp-port 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 3mo 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 — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Port the page the user named: $ARGUMENTS.
Read the porting-gotchas skill first. It lists the failures that pass a height check, and reading it after writing the markup is worth much less than reading it before.
Then read the adapter for the stack in target.stack: ${CLAUDE_PLUGIN_ROOT}/adapters/<stack>.md. Only laravel-blade, next-app, astro and plain-html have one. For any other stack read ${CLAUDE_PLUGIN_ROOT}/adapters/_generic.md, which tells you what to work out from the project itself.
Order
-
See the page.
/wp-measure <page> --mode sections. This tells you how many sections there are and which of them you have already built for another page. -
Check for reuse before writing anything new. Look at what already exists in
target.componentDir. On the source project, reuse ran high after the first two pages: services needed 1 new section of 5, events 1 of 7, about-us 2 of 8, team 0 of 4. If a section is the same block with different content, it is a prop, not a new component. -
Measure the one section you are about to write.
/wp-measure <page> --mode tree, then query the dump for that section's subtree. Do not read the whole file into the conversation. -
Get the content separately.
--mode content, or the REST API ifsource.restApiis true. Mixing content and geometry in one pass produces output too large to read. -
Write it. Measured numbers as arbitrary values. No rounding to the spacing scale.
-
/wp-diff <page>. Fix the first section with a delta, run again. Two to four rounds is normal.
Component shape
Props are flat and string-keyed, matching what a CMS repeater returns, so wiring the CMS later is passing data through rather than reshaping it.
Variation between pages is a prop: padding, container width, row height. Pass literal class strings. Never build a class name by interpolation, in any stack, for any reason: the Tailwind scanner reads source text and an interpolated name produces no CSS and no error.
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.
- 3mo ago First seen · 38 lines · 18 tokens per session scan A 543e22d77697
wp-port is a command published in the GitHub repository Abdulkader-Safi/wp-to-code (4 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5.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.
wp-port compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wp-portAbdulkader-Safi/wp-to-code | Command | 4 | 3mo ago | MIT | A | 18 | Claude Code |
| brandManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 62 | Claude Code |
| pairManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 60 | Claude Code |
| theme-swapManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 59 | Claude Code |
| dnaManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 19 | Claude Code |
| extractManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 27 | Claude Code |
| fidelityManavarya09/design-extract | Command | 5.2k | 5d ago | MIT | A | 40 | Claude Code |