wp-audit-practices

wp-audit-practices is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 32 tokens per session (2,588 once invoked), scanned A, original, MIT.

An agent that checks WordPress theme code against coding standards and common review requirements. It looks for issues such as unsafe output, missing sanitization, incorrect hooks, translation problems, and poor asset loading.

In plain words
What is it for?
Use it to audit PHP theme files, verify escaping and sanitization, check theme supports and hooks, review internationalization, and produce findings with severity levels.
Why use it?
It helps catch code that may create security, compatibility, maintainability, or review problems before a theme is delivered. It also uses the project's own naming, language, and command settings when performing checks.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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

Good fit Use it to audit PHP theme files, verify escaping and sanitization, check theme supports and hooks, review internationalization, and produce findings with severity levels.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-audit-practices.svg)](https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-audit-practices)
Your own site
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-audit-practices"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-audit-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00032 $0.02588
Opus 5 $0.00016 $0.01294
Sonnet 5 $0.00006 $0.00518
Haiku 4.5 $0.00003 $0.00259

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

Security

Grade A, and why

wp-audit-practices scanned grade A with 1 finding 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 8d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **WP-045**: `chmod 755 wp-content/uploads/ wp-content/plugins/ wp-content/upgrade/`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

agents/wp-audit-practices.md · 159 lines

How it starts

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

WordPress Coding Standards Auditor

You are a WordPress coding standards auditor. You verify theme code follows WordPress theme review requirements, coding standards, and best practices. Reference wp-audit-standards skill for report schema and severity definitions.

First Action (MANDATORY)

Before running ANY coding standards checks, read the following project files:

  1. .claude/CLAUDE.md — Extract:

    • The function prefix (e.g., kairo_, acme_)
    • The theme slug (used in file paths)
    • The theme path (e.g., wp-content/themes/<slug>)
    • The languages configured (e.g., English primary, Spanish secondary)
  2. .wp-create.json — Extract (if file exists):

    • The WP-CLI wrapper command (wp_cli.wrapper) as $WP
  3. Web-quality skills — Check for additional checks at:

    • ~/.claude/skills/best-practices/SKILL.md
    • .claude/skills/best-practices/SKILL.md

Step 1: Tier 1 — Code-Only Checks

Scan all theme .php files using Grep and Read. No WP-CLI required for this tier.

Escaping & Sanitization

Code Check How to Detect Severity Auto-fix
WP-001 Unescaped output Grep .php for echo\s+\$ excluding echo\s+esc_|echo\s+wp_kses WARNING Yes
WP-002 Wrong escaping context Grep for esc_html.*href=|esc_url.*>.*< (esc_html in URL context or esc_url in text) WARNING No
WP-003 Missing nonce verification Grep for \$_POST|\$_GET|\$_REQUEST without wp_verify_nonce|check_admin_referer nearby WARNING No
WP-004 Missing sanitization on save Grep for update_post_meta|update_option with raw \$_POST values CRITICAL No

Enqueueing

Code Check How to Detect Severity Auto-fix
WP-005 Hardcoded script tags Grep templates for <script src= (should use wp_enqueue_script) WARNING No
WP-006 Hardcoded style tags Grep templates for <link rel="stylesheet" (should use wp_enqueue_style) WARNING No
WP-007 Missing version strings Grep wp_enqueue_style|wp_enqueue_script calls with false as version INFO No
WP-008 CDN bundled WP scripts Grep for jquery.*googleapis|jquery.*cloudflare|jquery.*cdnjs in enqueue WARNING No

Read the full file on GitHub · 159 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. 8d ago First seen · 159 lines · 32 tokens per session scan A 4409677e6cc4

Subscribe to this mod's changes

wp-audit-practices is an agent published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 2,588 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). 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

finding-verifier

Reverse auditor. Invoke during /praxis:audit repo (or any review) to adversarially verify a reported finding before it is acted on: read the cited code and actively try to REFUTE the claim. Returns CONFIRMED, REFUTED, or DOWNGRADED with cited evidence, so only real defects reach the fix phase. Read-only.

Ohswedd/praxis · 77 tokens

claudemd-verifier

CLAUDE.md regression verifier. Invoke before writing any change to a CLAUDE.md (root or nested) to confirm the new version does not drop, contradict, or weaken still-valid instructions. Supplies the semantic judgement on top of the structural diff from claudemdcheck.py. Read-only.

Ohswedd/praxis · 66 tokens

html-expert

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

andisab/swe-marketplace · 25 tokens

design-reviewer

Use to audit UI code (SwiftUI, UIKit, AppKit, React/React Native, Flutter, HTML/CSS, etc.) against Apple's Human Interface Guidelines and report concrete violations. Invoke when the user asks to review/check/audit a screen, view, component, or stylesheet for HIG compliance, accessibility, or design-token correctness …

Elevatormusic/apple-hig · 102 tokens

reviewer

Comprehensive accessibility code reviewer. Performs multi-step audits of components, pages, and features for WCAG compliance. Navigates through related files to understand full context and generates detailed audit reports.

deepakkamboj/claude-marketplace · 40 tokens

code-reviewer

Code reviewer. Delegate only when the user explicitly starts an Octopus workflow.

nyldn/claude-octopus · 19 tokens