wp-page

wp-page is a command for Claude Code from yojahny55/claude-wp-builder. It costs 21 tokens per session (4,831 once invoked), scanned A, original, MIT.

A page-template generator for WordPress page types such as blogs, legal pages, search results, error pages, embedded content, and custom pages. It also creates related custom fields and CSS.

In plain words
What is it for?
Use it to generate standard page types or a named custom page, optionally based on a screenshot and an embed provider.
Why use it?
It avoids building each common page structure from scratch and keeps the template, editable fields, and styling together.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-wp-builder plugin — 15 skills, 30 commands, 15 agents shipped together

Good fit Use it to generate standard page types or a named custom page, optionally based on a screenshot and an embed provider.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yojahny55/claude-wp-builder
Claude Code
/plugin install 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, 30 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-page

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-page"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-page.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,831 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.00021 $0.04831
Opus 5 $0.00010 $0.02416
Sonnet 5 $0.00004 $0.00966
Haiku 4.5 $0.00002 $0.00483

Measured 5d ago against content hash 168622e2f340, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

wp-page 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 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.

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.

commands/wp-page.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.

WP Page — Page Template Generator

Generate complete page templates with associated ACF fields and CSS based on the page type.

Step 1: Parse Arguments

Parse $ARGUMENTS:

  • First word = page type (required): blog, generic, legal, 404, search, embed, or custom
  • Second word = name/slug (required for custom AND embed types)
  • --provider <name> (used by embed) = sets the provider name; strip this flag and its value from the arguments before resolving the screenshot path, so it is never treated as the screenshot path
  • Remaining words = screenshot path (optional)

If no type is provided, print an error:

Error: Page type is required.
Usage: /wp-page <type> [name] [screenshot-path]
Types: blog, generic, legal, 404, search, embed, custom
Examples:
  /wp-page blog
  /wp-page generic
  /wp-page legal
  /wp-page 404
  /wp-page search
  /wp-page embed home-search --provider "Showcase IDX"
  /wp-page custom pricing

Step 2: Read Project Context

Read .claude/CLAUDE.md to extract:

  • Function prefix
  • Theme slug
  • Languages
  • Theme directory path

Step 3: Generate by Type

CSS agent routing

Read Template: from .claude/CLAUDE.md. When Template: is tailwind, dispatch wp-tailwind; when it is basic, dispatch wp-css.

  • basic → dispatch wp-css exactly as described below.
  • tailwind → dispatch wp-tailwind in author mode instead, passing the page slug (which selects components/<slug>.css) and the block name. The agent reads skills/wp-tailwind-system/SKILL.md for the decision ladder. It writes utility classes into the markup and only adds @apply rules where the ladder demands them. It must never write assets/css/styles.css.

Dispatch exactly one of the two, never both.

Every tailwind dispatch opens its quoted prompt with this line, verbatim:

Mode: author

The quoted prompt it opens is the one under "The tailwind prompt body" below — not the quoted prompt at the dispatch site, which is the basic branch's and names assets/css/styles.css, the one file the tailwind path must never write.

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. 5d ago Changed · +37 lines 168622e2f340
  2. 9d ago First seen · 407 lines · 21 tokens per session scan A 9b129d235e73

Subscribe to this mod's changes

wp-page is a command published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 4,831 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-31.