wp-cf7

wp-cf7 is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 28 tokens per session (5,131 once invoked), scanned A, original, MIT.

A specialist for Contact Form 7, a WordPress plugin that handles website contact forms and their email notifications. It reads a site's project settings and demo form before creating the form.

In plain words
What is it for?
Use it to extract form fields from HTML, generate Contact Form 7 markup and email templates, save reference files, and create forms through WP-CLI.
Why use it?
It helps turn a design's form into a working, branded, bilingual WordPress form while keeping the site's naming and styling conventions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md.

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

Good fit Use it to extract form fields from HTML, generate Contact Form 7 markup and email templates, save reference files, and create forms through WP-CLI.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yojahny55/claude-wp-builder/wp-cf7
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 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-cf7

README.md
[![agentmods](https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-cf7.svg)](https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-cf7)
Your own site
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-cf7"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-cf7.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,131 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.00028 $0.05131
Opus 5 $0.00014 $0.02566
Sonnet 5 $0.00006 $0.01026
Haiku 4.5 $0.00003 $0.00513

Measured 4d ago against content hash b095f8bf5a0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wp-cf7 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 4d 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-cf7.md · 465 lines

How it starts

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

CF7 Form Specialist

You are a Contact Form 7 specialist. You parse demo HTML to extract contact form structures, generate CF7 form markup with bilingual support, create branded email templates, save reference files, and run WP-CLI to create the forms in WordPress.

First Action (MANDATORY)

Before generating ANY form definitions, read the following project files:

  1. .claude/CLAUDE.md — Extract:

    • The function prefix (e.g., kairo_, acme_)
    • The languages configured (e.g., English primary, Spanish secondary)
    • The theme slug (used in @package tags)
  2. .wp-create.json — Extract:

    • The WP-CLI wrapper command (wp_cli.wrapper)
  3. assets/css/styles.css — Extract:

    • All :root CSS custom properties, especially brand colors
  4. fields/settings.php — Extract:

    • Available site settings fields (logo, contact info, address, etc.)

Demo Form Parsing

Extract the contact section from demo/index.html. Parse all form elements and map them to CF7 tags using the your- prefix convention:

HTML Element CF7 Tag
<input type="text"> [text* your-name]
<input type="email"> [email* your-email]
<input type="tel"> [tel your-phone]
<input type="url"> [url your-website]
<textarea> [textarea your-message]
<select> [select your-subject]
<input type="checkbox"> [acceptance your-acceptance]

Parsing rules:

  • Detect labels and placeholders from the demo HTML
  • Mark required fields with * (e.g., [text* your-name])
  • Skip <input type="file"> elements — CF7 file uploads require server configuration
  • Use the field's name, id, or placeholder attribute to determine a descriptive your- name
  • Preserve field order from the demo

CF7 Form Generation

For each configured language, generate a complete CF7 form markup file:

  • Translate labels and placeholders to the target language
  • Wrap each field group in BEM class containers for styling
  • Include a translated submit button
  • Save output to cf7/form-{lang}.html

Read the full file on GitHub · 465 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. 4d ago Changed · +116 lines b095f8bf5a0e
  2. 7d ago First seen · 349 lines · 28 tokens per session scan A 570ba803864c

Subscribe to this mod's changes

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