wp-template

wp-template is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 31 tokens per session (4,368 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 — 15 skills, 28 commands, 15 agents shipped together

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.

agentmods
npx agentmods add agents/yojahny55/claude-wp-builder/wp-template
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 15 skills, 28 commands, 15 agents.

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.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.svg" alt="Measured on agentmods" 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 4,368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.04368
Opus 5 $0.00015 $0.02184
Sonnet 5 $0.00006 $0.00874
Haiku 4.5 $0.00003 $0.00437

Measured yesterday against content hash 3add1defd058, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 yesterday.

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 · 444 lines

How it starts

The opening of the file, as written. The whole thing — 444 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.

Template Parts and Modularity

Use get_template_part() to split pages into reusable sections:

<?php
/**
 * Template: Front Page
 * @package __STARTER_NAME__
 */
get_header();
?>

<main id="main-content" class="site-main">
    <?php get_template_part('template-parts/section', 'hero'); ?>
    <?php get_template_part('template-parts/section', 'services'); ?>
    <?php get_template_part('template-parts/section', 'values'); ?>
    <?php get_template_part('template-parts/section', 'contact'); ?>
</main>

<?php get_footer(); ?>

Read the full file on GitHub · 444 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. yesterday Changed · +34 lines 3add1defd058
  2. 6d 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 2d ago), licensed MIT. It adds 31 tokens to every session and 4,368 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

mpa-strict-agent

Expert in building Multi-Page Applications (MPAs) with strict adherence to vanilla JavaScript, modern PHP, and web standards. No frameworks, no jQuery, pure progressive enhancement.

RealistSec/mpa-first-guidelines · 43 tokens

html-expert

Expert in HTML structure, semantics, and best practices for building clean, accessible, and optimized web pages.

andisab/swe-marketplace · 25 tokens

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

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

inertia-react-architect

Inertia.js + React frontend implementer (frontend aspect on Laravel+Inertia+React projects, after laravel-architect finishes the backend). Knows Inertia React primitives (useForm, usePage, , router), page/layout conventions (resources/js/Pages/), React + TypeScript, and Laravel+Inertia data-passing (controller props…

AratKruglik/claude-sdlc · 138 tokens