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/siddik-web/wp-block-theme-converter/wp-templategit clone --depth 1 https://github.com/siddik-web/wp-block-theme-converterWrote 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/siddik-web/wp-block-theme-converter/wp-template)<a href="https://agentmods.dev/commands/siddik-web/wp-block-theme-converter/wp-template"><img src="https://agentmods.dev/badge/commands/siddik-web/wp-block-theme-converter/wp-template.svg" alt="Measured on agentmods" 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 | $0.00023 | $0.01080 |
| Opus 5 | $0.00012 | $0.00540 |
| Sonnet 5 | $0.00005 | $0.00216 |
| Haiku 4.5 | $0.00002 | $0.00108 |
Grade C, and why
wp-template scanned grade C with 1 finding 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 5d 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
2. For `single.html` and `page.html`, use `<!-- wp:post-content /-->` for the editable content area How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/wp-template
Purpose: Convert a single HTML page into a WordPress FSE template (.html file in the theme's templates/ directory).
Trigger
User types /wp-template followed by an HTML page or URL.
Workflow
Step 1: Identify Template Type
From the HTML structure and content, determine which WordPress template to generate:
| HTML Page Pattern | Template File | Notes |
|---|---|---|
| Homepage / landing | front-page.html |
Static front page |
| Blog index / news listing | home.html |
Latest posts |
| Single blog post / article | single.html |
Uses core/post-content |
| About / Contact / static page | page.html OR page-{slug}.html |
Custom = registered in theme.json |
| Category / tag / author archive | archive.html |
Uses Query Loop |
| Search results | search.html |
|
| 404 page | 404.html |
|
| Generic fallback | index.html |
Required — every theme needs this |
| WooCommerce single product | single-product.html |
Requires WC |
| WooCommerce product archive | archive-product.html |
Requires WC |
If unsure, ask: "Is this the homepage, a blog post layout, a static page, or something else?"
Step 2: Identify Shared Regions
Look for <header>, <footer>, sidebars. These should be extracted into template parts and referenced via:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"sidebar","tagName":"aside"} /-->
If template parts don't exist yet, generate them too and note that they go in parts/ not templates/.
Step 3: Convert Body to Block Markup
Apply the conversion map from references/block-conversion-map.md. Key rules:
- Wrap main content area in
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> - For
single.htmlandpage.html, use<!-- wp:post-content /-->for the editable content area - For
home.html/archive.html, use<!-- wp:query -->(Query Loop) instead of hardcoded post markup - For repeating sections, use
<!-- wp:pattern {"slug":"theme-slug/pattern-name"} /--> - Convert color classes to block attributes:
class="text-primary"→{"textColor":"primary"} - Convert font sizes similarly:
class="text-xl"→{"fontSize":"large"} - NEVER include
<style>or<script>tags - NEVER include
style=""attributes — use block attributes
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.
- 5d ago First seen · 131 lines · 23 tokens per session scan C 7b9612021f44
wp-template is a command published in the GitHub repository siddik-web/wp-block-theme-converter (45 stars, last pushed 3mo ago), licensed MIT. It adds 23 tokens to every session and 1,080 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
wp-dev-learn
Extract learnings from the current session and update wp-dev-skills skill files — captures corrections, new rules, edge cases, and Common Mistakes entries discovered during real usage. Only globally applicable WP developer standards accepted — project-specific rules are redirected. Use suggest to see WP dev topics not…
wp-perf-review
WordPress performance code review - detects database anti-patterns, caching issues, hook problems, and scalability concerns.
wp-perf
Quick WordPress performance scan - fast triage using critical pattern detection.
genshijin-compress
Markdown・テキストファイルを原始人形式へ安全圧縮.
save
Save this conversation as a new or existing reusable context.
claude-recall
Update project context using the local LLM (Qwen2.5 0.5B).