wp-init

wp-init is a command for Claude Code from yojahny55/claude-wp-builder. It costs 24 tokens per session (6,768 once invoked), scanned A, original, MIT.

A command that creates a new WordPress project from a starter theme, replaces project placeholders, configures translation support, and writes project instructions.

In plain words
What is it for?
Use it to start a Tailwind-based WordPress site or a cinematic scrolling site, configure the selected template, and generate its CLAUDE.md file.
Why use it?
It gives a new project a consistent starting structure and avoids setup errors when choosing a template.

Command for Claude Code

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

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

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 commands/yojahny55/claude-wp-builder/wp-init
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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-init.svg)](https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-init)
Your own site
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-init"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,768 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.00024 $0.06768
Opus 5 $0.00012 $0.03384
Sonnet 5 $0.00005 $0.01354
Haiku 4.5 $0.00002 $0.00677

Measured today against content hash 81c47c87be5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

wp-init 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 today.

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-init.md · 614 lines

How it starts

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

WP Init — Project Scaffolding

Scaffold a new WordPress project from the starter theme, configure i18n, and generate the project CLAUDE.md.

Step 0.5: Select Starter Template

Ask the user to choose a starter template:

Select a starter template:

  1. Tailwind Starter — Tailwind CSS 4 + WordPress Scripts build pipeline, BrowserSync
  2. Cinematic Starter — Scroll-driven cinematic reel (persistent video stage, scene scrub on desktop, autoplay-loop on mobile). Requires the cinematic-scroll-kit skill.

Store the selection as $TEMPLATE:

  • Option 1 → tailwind
  • Option 2 → cinematic

Default: tailwind (if user presses Enter without selecting).

There is no "Basic Starter" any more. starter-theme/__starter__/ was removed in 3600552 as superseded by the Tailwind template, but this command kept offering it as option 1 AND as the Enter-key default — so the most likely path through /wp-init copied a directory that does not exist. Treat basic as an alias for tailwind if a caller still passes --template=basic, rather than failing on it.

If $TEMPLATE = cinematic

This branch follows a different scaffolding shape — the page is one continuous reel, not discrete sections. After Step 0.6, dispatch to /wp-cinematic-init for the cinematic-specific flow:

  1. Resolve cinematic-scroll-kit (globally-installed skill → ./.cinematic-kit/ → vendored fallback in starter-theme/__cinematic__/assets/cinematic-kit/).
  2. If none present, offer: npx skills add yojahny55/cinematic-scroll-kit -g -y (recommended). Decline → use vendored fallback.
  3. Copy starter-theme/__cinematic__/ as the theme.
  4. Run the wp-cinematic agent against schemas/scene.json to generate fields/scenes.php, fields/trailing-sections.php (if hybrid), inc/seed-cinematic.php, and per-scene template fragments.
  5. Skip the per-section /wp-section loop. Author scenes via /wp-cinematic-scene <n> and append trailing flex sections via /wp-section <name> --hybrid if hybrid mode is on.
  6. Seed with /wp-cinematic-seed (uses kit sample videos).

Read the full file on GitHub · 614 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. today Changed · +18 lines 81c47c87be5b
  2. 2d ago Changed · +34 lines 237c01360dbe
  3. 5d ago First seen · 562 lines · 24 tokens per session scan A 50418c7a3c07

Subscribe to this mod's changes

wp-init is a command published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 6,768 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.