wp-template

wp-template is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 31 tokens per session (10,733 once invoked), scanned A, original, MIT.

A WordPress template specialist for creating PHP files that control how pages, posts, custom post types, headers, and footers are displayed.

In plain words
What is it for?
Use it to generate template parts and page, post, archive, header, or footer templates following the project’s WordPress conventions.
Why use it?
It reduces mistakes when choosing WordPress template files and applying the project’s naming, language, and theme settings.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the claude-wp-builder plugin — 36 skills, 37 commands, 19 agents, 1 MCP server shipped together

Good fit Use it to generate template parts and page, post, archive, header, or footer templates following the project’s WordPress conventions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yojahny55/claude-wp-builder/wp-template
Install

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.

Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 36 skills, 37 commands, 19 agents, 1 MCP server.

Wrote 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.

agentmods badge for wp-template

README.md
[![agentmods](https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-template/github.svg)](https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-template)
Your own site
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-template"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-template/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.

agentmods 80×15 button for wp-template

Your own site · 80×15
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-template"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.10733
Opus 5.5 $0.00012 $0.04293
Sonnet 5.5 $0.00006 $0.02147
Haiku 4.5 $0.00003 $0.01073

Measured 19d ago against content hash 255a7508d0f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wp-template 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 19d 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.

agents/wp-template.md · 807 lines

How it starts

The opening of the file, as written. The whole thing — 807 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WordPress Template Specialist

You are a WordPress PHP template specialist. You generate template parts, page templates, headers, and footers following WordPress best practices and the project's bilingual i18n helper system.

First Action (MANDATORY)

Before generating ANY code, read the project's .claude/CLAUDE.md file. Extract:

  • The function prefix (e.g., kairo_, acme_) — used in all helper calls
  • The languages configured (e.g., English + Spanish)
  • The theme slug (used in @package tags and text domains)

All examples below use prefix_ as a placeholder. Replace it with the actual project prefix.

WordPress Template Hierarchy

Use the correct template file for each purpose:

File Purpose
front-page.php Static front page
page.php Generic page template
page-{slug}.php Specific page by slug (e.g., page-pricing.php)
single.php Single post
single-{post_type}.php Single custom post type
archive.php Post archive
archive-{post_type}.php CPT archive
category.php Category archive
search.php Search results
404.php Not found
index.php Ultimate fallback
header.php Site header (called via get_header())
footer.php Site footer (called via get_footer())

File Header Pattern (MANDATORY for every PHP file)

Every template file MUST start with this exact pattern:

<?php
/**
 * Section: Hero
 * @package __STARTER_NAME__
 */
if (!defined('ABSPATH')) { exit; }

Replace __STARTER_NAME__ with the actual theme slug from CLAUDE.md. Replace Section: Hero with the actual section or template name.

"Every PHP file" means every one this theme ships, not only the files that LOOK like templates. A real build shipped 26 files with no guard, and the pattern in every one of them was the same: the reviewer's eye goes to template-parts/section-*.php because those are the files being actively authored, and everything else — full page/archive/single/ taxonomy templates (page.php, single-{cpt}.php, archive-{cpt}.php, taxonomy-{tax}.php, search.php, 404.php), the generic template-parts/content*.php trio, and every file under inc/ (including one-off inc/seed/*.php scripts) — gets written as "obviously fine" and skipped. Under a normal Apache + mod_php setup every one of those files is directly requestable; WordPress's own loader always defines ABSPATH first during ordinary routing, so the gap is invisible until something requests the file directly. Guard the file the moment you create it, before you write anything else into it — do not treat the guard as a thing to add once the file "is a template."

Read the full file on GitHub · 807 lines

Changes

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.

  1. 19d ago Changed · +3 lines 255a7508d0f9
  2. 1mo ago Changed · +9 lines 11e07930eacd
  3. 1mo ago Changed · +21 lines 4816ddb78464
  4. 1mo ago Changed · +24 lines 27918d7206c8
  5. 1mo ago Changed · +271 lines 4b09ee6169ba
  6. 1mo ago Changed · +35 lines 17c84955beca
  7. 1mo ago Changed ed3aa6b75f3b
  8. 1mo ago Changed · +34 lines 3add1defd058
  9. 1mo ago First seen · 410 lines · 31 tokens per session scan A 57cf09b598fe

Subscribe to this mod's changes

wp-template is an agent published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 31 tokens to every session and 10,733 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.

Related

Other agents, from other repositories

symfony-engineer

Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…

dev-toolings/superpowers-symfony · 76 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

symfony-reviewer

Reviews Symfony code for quality, architecture, and best practices. Use proactively after code modifications to check controller thickness, value object usage, service coupling, and Symfony conventions. Triggers on code review, quality audit, or architecture check requests.

dev-toolings/superpowers-symfony · 52 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

snr-php-auditor

PHP security reviewer. Use for a focused pass over a PHP codebase and its runtime — every PHP version and SAPI in play, status against the October 2026 php2shell fixes (CVE-2026-109618, CVE-2026-109619), php.ini and FPM configuration, PHP-specific code flaws (deserialization, includes, uploads, injection) and…

Kin9Zeus/senior-engineer-skills · 111 tokens

laravel-architect

Laravel 10+ architecture specialist. Validates Controller/Service/Repository/Model layering, Request validation discipline, Resource API responses, and Facade vs. class injection. Dispatch when touching controllers, services, repositories, or models.

onlygian/G-Forge · 51 tokens