automattic avatar

Wp Plugin Development

Handles the full lifecycle of WordPress plugin development, from bootstrap structure and hook registration through activation routines, Settings API integration, and release packaging. Enforces security fundamentals (nonces, capabilities, sanitization, escaping, prepared statements) and steers you toward predictable patterns like keeping admin code out of the frontend and avoiding fragile activation hook bugs. Targets WordPress 6.9+ and expects a filesystem agent with bash, node, and optionally WP-CLI. The procedure is methodical: triage the repo, detect plugin headers, apply architecture guardrails, then verify activation, settings persistence, and uninstall cleanup. If you're building or refactoring a WordPress plugin and want guardrails that match the Plugin Handbook, this keeps you honest.

skills.sh installs
529
GitHub stars
211
last updated
Jun 3, 2026

Install

$ npx -y skills add automattic/agent-skills --skill wp-plugin-development --agent claude-code

Installs into .claude/skills of the current project.

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

  1. Run triage:
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. 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:

Sponsors

Details

Repository
github.com/automattic/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from automattic/agent-skills

All 12
1rainlib avatarscriptwriter-skillrainlib/ai-storyboardUse when creating episodic scripts, ensuring series continuity, adapting story concepts into visual narratives, or preparing scripts with sufficient beats for s529skills.sh installs
2aj-geddes avatarkpi-dashboard-designaj-geddes/useful-ai-promptsDesign and build dashboards that track key performance indicators. Select relevant metrics, visualize data effectively, and communicate insights to stakeholders528skills.sh installs
3dbt-labs avatarmigrating-dbt-project-across-platformsdbt-labs/dbt-agent-skillsIf you're moving a dbt project between warehouses like Snowflake and Databricks, this walks you through the dialect conversion using dbt...528skills.sh installs
4jwynia avatargood-thinkingjwynia/agent-skillsDiagnose thinking failures and maintain process-sovereignty by auditing cognitive orientation and operation balance.528skills.sh installs
5plugin87 avatarperformanceplugin87/ux-ui-agent-skillsOptimize UI performance against Core Web Vitals — LCP, INP, CLS — with loading/code-split strategy, layout-shift prevention, and animation performance rules. Us528skills.sh installs
6plugin87 avatarprototypeplugin87/ux-ui-agent-skillsMove an idea up the fidelity ladder (content-first → wireframe → low-fi → high-fi → code) with a validation plan at each level, plus user-journey mapping and us528skills.sh installs