wpultimatesecurity/wordpress-security-skills/nonces-csrf-protection
Use when handling any form submission, AJAX request, admin-post action, settings page, link that triggers an action, or any other user-initiated request in a WordPress plugin or theme. Generates nonces with wp_nonce_field / wp_create_nonce and verifies them with check_admin_referer, check_ajax_referer, or wp_verify_nonce, always paired with a capability check, to prevent CSRF. Apply proactively whenever code accepts or acts on a request.
Agent skill · version 1.0.0 · from wpultimatesecurity/WordPress-Security-Skills
Install
npx yarkr-cli add skill:wpultimatesecurity/wordpress-security-skills/nonces-csrf-protectionWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:wpultimatesecurity/wordpress-security-skills/nonces-csrf-protection
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:wpultimatesecurity/wordpress-security-skills/nonces-csrf-protectionOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:wpultimatesecurity/wordpress-security-skills/nonces-csrf-protectionWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.