
Wp Guard
If you've ever had Claude write a WordPress plugin that looked fine until you noticed the raw echo of $_POST data or the AJAX handler with no nonce check, this is the guardrail you needed three plugins ago. It enforces the unglamorous essentials that separate demo code from production code: escaping at output, sanitization on input, prepared statements for every query, capability checks on state changes, translation wrappers on user strings, and query discipline so you don't accidentally fetch ten thousand posts. Best run reactively after code generation, not during. It catches the systematic failures AI makes with WordPress security and i18n, the kind WPCS would flag if you remembered to run it.
- skills.sh installs
- 2.7K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add amelnagdy/guard-skills --skill wp-guard --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Guard-pass mode (recommended): after WordPress code has been generated or edited, apply the rules to the diff or target files, then run the self-check before delivery. Fix violations before showing the user.
Live mode (explicit): when the user invokes this skill before writing WordPress code, apply the same rules while writing, then run the self-check before delivery.
Sponsors
Details
- Repository
- github.com/amelnagdy/guard-skills
- Categories
- Backend & APIs, Testing & QA, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Release Management, Automation & Workflows, CLI & Terminal, PHP & Laravel, Databases
- First seen
- Jun 11, 2026