Wp Plugin Development
WordPress plugin development guidance covering architecture, lifecycle hooks, Settings API, and security baseline.
- CCM score
- 54 of 100
- skills.sh installs
- 566
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers plugin architecture, hooks and lifecycle, Settings API admin UI, data storage, cron, and release packaging
- Includes reference guides for structure, lifecycle, settings, security, data and cron, and debugging, plus plugin detection scripts
- Enforces a security baseline: sanitize input, escape output, pair nonces with capability checks, and use
$wpdb->prepare()for SQL - Designed for agents working in WordPress 6.9+ and PHP 7.2.24+ repositories, with some workflows requiring WP-CLI
Install
$ npx -y skills add automattic/agent-skills --skill wp-plugin-development -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WP Plugin Development
When to use
Use this skill for plugin work such as:
- creating or refactoring plugin structure (bootstrap, includes, namespaces/classes)
- adding hooks/actions/filters
- activation/deactivation/uninstall behavior and migrations
- adding settings pages / options / admin UI (Settings API)
- security fixes (nonces, capabilities, sanitization/escaping, SQL safety)
- packaging a release (build artifacts, readme, assets)
Inputs required
- Repo root + target plugin(s) (path to plugin main file if known).
- Where this plugin runs: single site vs multisite; WP.com conventions if applicable.
- Target WordPress + PHP versions (affects available APIs and placeholder support in
$wpdb->prepare()).
Procedure
0) Triage and locate plugin entrypoints
- Run triage:
node skills/wp-project-triage/scripts/detect_wp_project.mjs
- Detect plugin headers (deterministic scan):
node skills/wp-plugin-development/scripts/detect_plugins.mjs
If this is a full site repo, pick the specific plugin under wp-content/plugins/ or mu-plugins/ before changing code.
1) Follow a predictable architecture
Guidelines:
Details
- Repository
- github.com/automattic/agent-skills
- Category
- PHP & Laravel
- First seen
- Jun 3, 2026
Questions
What does the wp-plugin-development skill do?
The wp-plugin-development skill guides an AI agent through WordPress plugin work: plugin structure and hooks, activation and uninstall behavior, admin UI with the Settings API, data storage and cron, security with nonces, capabilities and escaping, and release packaging. It is aimed at developers building or refactoring WordPress plugins.
How do I install the wp-plugin-development skill?
Run npx -y skills add automattic/agent-skills --skill wp-plugin-development -y in your project. Once installed, the agent follows the skill's procedure for plugin architecture, lifecycle, settings and security tasks.
Which tools does the wp-plugin-development skill need?
The wp-plugin-development skill targets WordPress 6.9+ and PHP 7.2.24+, and it runs in a filesystem-based agent with bash and node. wp-plugin-development also uses WP-CLI for some of its workflows.
Where does wp-plugin-development rank among PHP and Laravel skills?
wp-plugin-development ranks in the top 100 on the PHP and Laravel category page. Other skills in that category include laravel-specialist, php-pro and laravel-patterns, while wp-plugin-development focuses on WordPress plugin code.
More from automattic/agent-skills
All 12Similar to Wp Plugin Development
More PHP & Laravelwp-block-developmentSkillautomattic/agent-skills492 installsStep-by-step guide for developing WordPress Gutenberg blocks, from block.json metadata through rendering and migrations.
wordpress-plugin-corePluginsecondsky/claude-skills254 starsWordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL inject
wp-wpcli-and-opsSkillautomattic/agent-skills508 installsOperational WP-CLI workflows for search-replace, database backups, plugin and theme management, cron, cache flushing, and multisite.
wordpress-plugin-developmentSkillsickn33/agentic-awesome-skills125 installsWordPress plugin development workflow covering architecture, hooks, admin screens, REST endpoints, and WordPress 7.0 features.
wordpressSkillmindrally/skills950 installsExpert WordPress and WooCommerce guidance with PHP standards, security rules, and hook-first extension patterns.
wordpress-plugin-fundamentalsSkillbobmatnyc/claude-mpm-skills455 installsModern WordPress plugin scaffolding with OOP structure, hooks, wpdb access, and Settings API guidance.