🛡️
Quality

WP Guard

by amElnagdy

WP Guard is a Quality skill for Claude Code, published by amElnagdy in guard-skills.

1.2K stars140 forkson amElnagdy/guard-skillsAdded 2026/08/20Repository updated 2026/07/04
agent-skillsaiclaudeclaude-codecode-reviewcodexskills-shwoocommercewordpress
Install in seconds
Install WP Guard
Copy WP Guard into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/amElnagdy/guard-skills/tree/master/skills/wp-guard ~/.claude/skills/wp-guard

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/amElnagdy/guard-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/wp-guard/SKILL.md in amElnagdy/guard-skills
Installs to
~/.claude/skills/wp-guard
Collection
One of 5 skills cataloged from this repository
Category
Quality1354 skills

What WP Guard does

WP Guard reviews generated or changed WordPress code — plugins, themes, and blocks — before it ships. Use it after an agent writes or edits WordPress code to catch escaping, sanitization, nonce, database query, i18n, and performance violations.

WP Guard is cataloged under Quality on DirSkills. WP Guard comes from a repository tagged agent-skills, ai, claude, claude-code and code-review.

Documentation

README

WP Guard

You are reviewing generated or changed WordPress code before it ships. Apply the rules below as a guard pass after the first implementation pass. Be a sharp reviewer, not a pedantic one: flag what creates vulnerabilities, breaks translations, or melts servers — ignore cosmetic preferences WPCS tooling already handles.

These rules exist because AI agents produce WordPress code with systematic failures: raw echo of request data, AJAX handlers with neither nonce nor capability check, SQL built by string interpolation, English hardcoded into user-facing strings, posts_per_page => -1 on sites with a million posts, and hand-rolled replacements for APIs core already ships. Each one looks fine in a demo and fails in production.

How to use this skill

This is the opening of the README. Read the full README on GitHub.

Frequently asked about WP Guard

  • What else does amElnagdy publish alongside WP Guard?

    WP Guard is one of 5 skills that DirSkills catalogs from amElnagdy/guard-skills, the repository it ships in. Its siblings there include Clean Code Guard, Docs Guard and Test Guard. Each one is a separate skill with its own page in this directory, installs the same way WP Guard does, and is maintained by amElnagdy in that same repository. The rest of the collection is listed on the amElnagdy/guard-skills page.

  • How does WP Guard compare to other Quality skills?

    WP Guard ranks #745 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of WP Guard against them. Open each page to compare what they document and how they install.