
Description
wp-guard is an agent skill that reviews generated or changed WordPress code before it ships, covering plugins, themes and blocks. It is meant to run as a guard pass after an agent writes, edits or reviews code, and it is meant to be a sharp reviewer rather than a pedantic one. It focuses on what creates vulnerabilities, what breaks translations and what slows or overloads a server, and it leaves cosmetic style choices to the coding standards tools. The skill names the failures it is built to catch: raw echo of request data, AJAX handlers with no nonce or capability check, SQL built by string interpolation, English strings hard-coded in user-facing text, a posts_per_page setting of -1 on large sites, and hand-written replacements for APIs that WordPress core already provides. It has three modes. Guard-pass mode fixes violations in the diff or target files before you see the code. Live mode applies the same rules while the agent writes. Review mode checks a file against the review checklist and produces a findings report without editing code unless asked. The skill also asks the agent to adapt to the project first, and it says to pair it with clean-code-guard when both are installed, since that one covers general code quality. Install it with npx skills add https://github.com/amelnagdy/guard-skills --skill wp-guard.…
Highlights
- Guard pass for plugins, themes and blocks
- Checks nonces, capabilities, SQL and escaping
- Flags hard-coded strings and unbounded queries
- Guard, live and review modes
- Adapts to each project before reviewing
Ratings & Reviews
No ratings yet
Be the first to rate wp-guard.
People also visit
wp-guard FAQ
What does the skill review?
WordPress code, including plugins, themes and blocks, before it ships.
What kinds of problems does it flag?
Raw output of request data, AJAX handlers without a nonce or capability check, SQL built by string interpolation, hard-coded English strings, unbounded post queries and hand-rolled replacements for core APIs.
Does it report style issues?
The skill says it ignores cosmetic preferences that WPCS tooling already handles and focuses on vulnerabilities, translations and server load.
Does it work with clean-code-guard?
Yes. The skill recommends using both, with clean-code-guard covering general code quality and wp-guard covering WordPress.
How do I install it?
Run npx skills add https://github.com/amelnagdy/guard-skills --skill wp-guard.
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best wp-guard alternatives?
Popular alternatives to wp-guard include woo-guard, wp-project-triage and wordpress-pro. See all wp-guard alternatives










