wp-section

wp-section is a command for coding agents from yojahny55/claude-wp-builder. It costs 20 tokens per session (6,754 once invoked), scanned A, original, MIT.

A command that builds one WordPress page section from a demo, including its custom fields, template part, and CSS. It can read a selected page, add a Contact Form 7 form, or reproduce the demo's declared layout exactly.

In plain words
What is it for?
Use it to turn sections such as hero, services, about, or contact into editable WordPress theme components. It supports basic and Tailwind projects and can place the section in a chosen template.
Why use it?
It gathers the separate work needed for a section into one operation, reducing manual wiring between content fields, PHP templates, styles, and the page template.

Command

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-section
Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-section.svg)](https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-section)
Your own site
<a href="https://agentmods.dev/commands/yojahny55/claude-wp-builder/wp-section"><img src="https://agentmods.dev/badge/commands/yojahny55/claude-wp-builder/wp-section.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 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,754 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.00020 $0.06754
Opus 5 $0.00010 $0.03377
Sonnet 5 $0.00004 $0.01351
Haiku 4.5 $0.00002 $0.00675

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

Security

Grade A, and why

wp-section 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-section.md · 531 lines

How it starts

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

WP Section — One-Shot Section Builder

Generate ACF field definitions, a template part, and CSS for a single section — all in one command. On basic it dispatches three agents in parallel; on tailwind, wp-tailwind runs after wp-template returns (see File ownership below).

Step 1: Parse Arguments

Parse $ARGUMENTS:

  • First word = section name (required, e.g., hero, services, about, contact)
  • Remaining non-flag word = screenshot path (optional; a flag token or its value is never treated as the screenshot path)
  • --cf7 flag = force CF7 contact form integration (optional)
  • --hybrid flag = cinematic projects only (Template: cinematic): build the section as a trailing flex layout appended to the trailing_sections flexible-content field in fields/trailing-sections.php, not as a standalone field group, and skip the page-template injection — front-page.php's trailing loop already renders every layout (see the Hybrid overlay below). Error and exit if the project is not cinematic.
  • --page <slug> = read the section from demo/<slug>.html instead of demo/index.html (optional, default index — existing behavior unchanged when omitted)
  • --target <template> = inject the get_template_part call into <template> (e.g. page-about.php) instead of front-page.php (optional, default front-page.php — existing behavior unchanged when omitted)
  • --transcribe flag = activate faithful Transcription Mode (optional). When set, the dispatched agents reproduce the demo's exact declared CSS/geometry instead of re-authoring fresh design-system styles. When omitted, behavior is unchanged (the current re-authoring / design-system path).
  • --block <name> = the unique BEM block name to scope every generated selector under (optional; used with --transcribe so parallel section builds can never collide on a selector).
  • --css <source> = the demo source the section is transcribed from (optional; required with --transcribe). What it means depends on the project's Template:, per the transcription overlay below:
    • basic → the section's verbatim demo CSS, and the SOURCE OF TRUTH for the transcription: an inline CSS blob or a path to a CSS file, whose declared values are copied exactly.
    • tailwind → the converted demo page itself (HTML, converted in place by /wp-yolo Step 2.6). Here it is a geometry reference, not a source of verbatim declarations — the overlay's instruction is "reproduce this geometry using Tailwind utilities", never "copy the declared values verbatim".

Read the full file on GitHub · 531 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 · +8 lines 8885f5d0732f
  2. 2d ago Changed · +50 lines 84739ffa2e04
  3. 5d ago First seen · 473 lines · 20 tokens per session scan A fbe7f1452757

Subscribe to this mod's changes

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