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 skills add trtmn/agent-plugins --skill wp-custom-themegit clone --depth 1 https://github.com/trtmn/agent-pluginsWrote 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/skills/trtmn/agent-plugins/wp-custom-theme)<a href="https://agentmods.dev/skills/trtmn/agent-plugins/wp-custom-theme"><img src="https://agentmods.dev/badge/skills/trtmn/agent-plugins/wp-custom-theme/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/skills/trtmn/agent-plugins/wp-custom-theme"><img src="https://agentmods.dev/badge/skills/trtmn/agent-plugins/wp-custom-theme.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.00143 | $0.09060 |
| Opus 5.5 | $0.00057 | $0.03624 |
| Sonnet 5.5 | $0.00029 | $0.01812 |
| Haiku 4.5 | $0.00014 | $0.00906 |
Grade C, and why
wp-custom-theme 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 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.
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.
<!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":true}} --> How it starts
The opening of the file, as written. The whole thing — 1,118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Custom WordPress Theme Skill
A comprehensive guide for creating and maintaining custom WordPress themes at an intermediate level, covering theme structure, PHP hooks & template tags, CSS/Gutenberg, and performance & security.
0. Discovery Interview (Start Here for New Themes)
Before writing any code, interview the user to understand their requirements. Use the answers to recommend the right theme approach (FSE, Classic, or Hybrid) and tailor the implementation.
Interview Questions
Ask these questions — you can combine them into a single message, but keep it conversational:
- Site type — What kind of site is this? (blog, portfolio, business/marketing, e-commerce, membership, news/magazine, or other)
- Client editing — Will the site owner / client edit pages and layouts themselves after launch, or is this developer-managed?
- Dynamic PHP logic — Does the theme need complex server-side logic in templates? (e.g. conditional content based on user roles, custom WP_Query loops, real-time data from external APIs)
- WordPress version — What WP version will this run on? (or: is the host keeping WP up to date?)
- Existing base — Starting from scratch, extending an existing theme, or building a child theme?
- Plugins — Any must-have plugins? (WooCommerce, ACF, Elementor, etc. — some conflict with FSE)
- Design complexity — Is this a pixel-perfect custom design, or is an opinionated block-based layout acceptable?
You do not need to ask all seven at once. Start with 1–4; follow up if answers are ambiguous.
FSE Recommendation Logic
After gathering answers, apply this decision table:
| Signal | Favours |
|---|---|
| Client will edit layouts/pages themselves | FSE |
| New project on WP 6.4+ | FSE |
| Design-focused, visually rich site | FSE |
| No complex PHP needed in templates | FSE |
| Complex PHP logic in templates (conditional output, custom queries) | Classic |
| Legacy/existing classic theme being extended | Classic |
| Page-builder plugin (Elementor, Divi) in use | Classic |
| WooCommerce without FSE-compatible theme | Classic (or verify plugin FSE support first) |
| Wants block editor design system, but keeps some PHP templates | Hybrid |
| Migrating gradually from classic → FSE | Hybrid |
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 · 1,118 lines · 143 tokens per session scan C 7b9e51ef5472
wp-custom-theme is a skill published in the GitHub repository trtmn/agent-plugins (2 stars, last pushed 15d ago), licensed Unlicense. It adds 143 tokens to every session and 9,060 once invoked, about $0.0006 per session on Opus 5.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-31.
wp-custom-theme compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wp-custom-themetrtmn/agent-plugins | Skill | 2 | 15d ago | Unlicense | C | 143 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |