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-patterngit 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-pattern)<a href="https://agentmods.dev/commands/siddik-web/wp-block-theme-converter/wp-pattern"><img src="https://agentmods.dev/badge/commands/siddik-web/wp-block-theme-converter/wp-pattern.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.00017 | $0.01120 |
| Opus 5 | $0.00009 | $0.00560 |
| Sonnet 5 | $0.00003 | $0.00224 |
| Haiku 4.5 | $0.00002 | $0.00112 |
Grade A, and why
wp-pattern 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.
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/wp-pattern
Purpose: Convert a single HTML section/snippet into a registered WordPress block pattern PHP file.
Trigger
User types /wp-pattern followed by HTML markup, OR pastes HTML and asks for a pattern.
Workflow
Step 1: Identify Pattern Metadata
From the HTML, infer:
- Pattern name — descriptive (e.g., "Hero with CTA", "Three-Column Features")
- Pattern slug — kebab-case (e.g., "hero-with-cta")
- Category — choose from: featured, hero, header, footer, gallery, posts, products, services, testimonials, contact, pricing, faq, team, cta
- Keywords — 3-5 search keywords
- Theme slug — ask if not in conversation context (default: "my-theme")
- Text domain — same as theme slug
- Block Types — controls where the pattern appears in the inserter. Pick from:
| Pattern context | Block Types value |
|---|---|
| General page content (hero, CTA, features, etc.) | core/post-content |
| Inside a Query Loop (post card, archive item) | core/query |
| WooCommerce product grid item | woocommerce/product-template |
| WooCommerce single product | woocommerce/product-details |
| Header / navigation patterns | core/template-part/header |
| Footer patterns | core/template-part/footer |
| No specific insertion context (general-purpose) | Omit the line entirely |
Step 2: Convert HTML to Block Markup
Apply the conversion map from references/block-conversion-map.md. Key rules:
- Wrap top-level in
<!-- wp:group {"layout":{"type":"constrained"}} -->unless the section needs full-width - Convert each HTML element to its block equivalent (see map)
- Replace hardcoded colors with
var(--wp--preset--color--{slug})references - Replace hardcoded font sizes with preset references
- Convert all user-facing strings to
<?php esc_html_e( 'string', 'text-domain' ); ?> - Convert all asset paths to
<?php echo esc_url( get_template_directory_uri() ); ?>/assets/... - NEVER include inline
<style>or<script>tags - NEVER include inline
style=""attributes — use block attributes instead
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.
- 3d ago First seen · 137 lines · 17 tokens per session scan A 8ebf88afd63c
wp-pattern is a command published in the GitHub repository siddik-web/wp-block-theme-converter (44 stars, last pushed 3mo ago), licensed MIT. It adds 17 tokens to every session and 1,120 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-30.
Other commands, from other repositories
release
Command "release" from Automattic/pressship, covering release, svn password and options.
publish
Command "publish" from Automattic/pressship, covering publish and options.
info
pressship info pressship info ./my-plugin pressship info 16deza-table-cell-extras pressship info https://wordpress.org/plugins/16deza-table-cell-extras/ pressship info --remote pressship info ./my-plugin --remote pressship info 16deza-table-cell-extras --json.
pack
Command "pack" from Automattic/pressship, covering pack and options.
verify
Command "verify" from Automattic/pressship, covering verify and options.
Q
MCP-first cross-validated code intelligence across dependency graphs.