
Wp Plugin Development
wordpress/agent-skillsOfficial
A structured guide for WordPress plugin work covering architecture, lifecycle, settings, security, and data handling.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 6
- skills.sh installs
- 9K
- GitHub stars
- 2.4K
- last updated
- Aug 21, 2026
What it does
- Covers plugin structure, hooks, activation and deactivation, uninstall behavior, admin UI, data storage, cron, and release packaging
- Includes reference guides for structure, lifecycle, Settings API, security, data and cron, and debugging
- Enforces nonces and capability checks, input sanitization with
wp_unslash(), output escaping, and$wpdb->prepare()for SQL - Designed for developers targeting WordPress 7.0+ and PHP 7.4.0+, with WP-CLI used for some workflows
Install
$ npx -y skills add wordpress/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/wordpress/agent-skills
- Categories
- PHP & Laravel, Technical Documentation, Security
More from wordpress/agent-skills
All 17- Wp Performance7K
- Wp Rest Api6.6K
- Wp Block Themes6.5K
- Wordpress Router6.3K
- Wp Wpcli And Ops6.2K
- Wp Project Triage6.2K
- Wp Block Development6.1K
- Wp Playground5.3K
- Wp Phpstan5.1K
- Wp Abilities Api4.8K
- Wp Interactivity Api4.6K
- Wpds4.5K
- Blueprint4.1K
- Wp Plugin Directory Guidelines4.1K
- Wp Abilities Audit3.1K
- Wp Abilities Verify3K
Similar to Wp Plugin Development
More PHP & Laravel
wordpress-plugin-developmentsickn33/agentic-awesome-skills125 installsWordPress plugin development workflow covering architecture, hooks, admin screens, REST endpoints, and WordPress 7.0 features.
wordpress-plugin-fundamentalsbobmatnyc/claude-mpm-skills439 installsModern WordPress plugin scaffolding with OOP structure, hooks, wpdb access, and Settings API guidance.
wp-patternsWordPress/agent-skills2.7K installsGuide for creating and reviewing WordPress block patterns, covering registration, block markup, theme.json design tokens, and accessibility.
wordpressmindrally/skills938 installsExpert WordPress and WooCommerce guidance with PHP standards, security rules, and hook-first extension patterns.
woocommercemindrally/skills880 installsDevelopment guidelines and code patterns for WordPress and WooCommerce plugins, covering PHP standards, security, and extensibility.