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.
development
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.
tools
Use as the WordPress Playground routing wrapper for ambiguous Playground work, local CLI runs with @wp-playground/cli, playground.wordpress.net share links, browser previews, snapshots, mounts, version switching, and Xdebug. For Blueprint JSON authoring or review, use the blueprint skill directly.
development
Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).
tools
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo and route to the correct workflow/skill (blocks, theme.json, REST API, WP-CLI, performance, security, testing, release packaging).