skills/wp-plugin-development/SKILL.md
Use when developing WordPress plugins: architecture and hooks, activation/deactivation/uninstall, admin UI and Settings API, data storage, cron/tasks, security (nonces/capabilities/sanitization/escaping), and release packaging.
npx skillsauth add WordPress/agent-skills wp-plugin-developmentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill for plugin work such as:
$wpdb->prepare()).node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-plugin-development/scripts/detect_plugins.mjsIf this is a full site repo, pick the specific plugin under wp-content/plugins/ or mu-plugins/ before changing code.
Guidelines:
is_admin() (or admin hooks) to reduce frontend overhead.See:
references/structure.mdActivation hooks are fragile; follow guardrails:
uninstall.php or register_uninstall_hook)See:
references/lifecycle.mdPrefer Settings API for options:
register_setting(), add_settings_section(), add_settings_field()sanitize_callbackSee:
references/settings-api.mdBefore shipping:
$_POST / $_GET; use wp_unslash() and specific keys.$wpdb->prepare() for SQL; avoid building SQL with string concatenation.See:
references/security.mdSee:
references/data-and-cron.mdSee:
references/debugging.mdFor canonical detail, consult the Plugin Handbook and security guidelines before inventing patterns.
tools
Verify a WordPress plugin's Abilities API registrations: enumerate abilities, check that callback behavior matches each annotation's claim (the adversarial readonly-but-writes detection), validate permissions and schemas, and validate audit documents produced by wp-abilities-audit.
tools
Audit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces a markdown doc with a YAML schema and prose sections that humans and agents can both consume when planning a registration rollout. Works on any WP plugin.
tools
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.
tools
Use when reviewing WordPress plugins for GPL compliance, checking license headers or compatibility, evaluating upsell/freemium/trialware patterns, validating plugin naming or trademark rules, checking plugin slugs, understanding why a plugin was rejected from WordPress.org, or answering any question about the 18 WordPress.org Plugin Directory guidelines — even if the user doesn't mention 'guidelines' explicitly.