Wp plugin development

From wpgaurav/WordPress-skills · View interactive version

Wp plugin development is an AI agent skill from the GitHub repository wpgaurav/WordPress-skills. 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.

How to use this skill

Skill file

From Agent Skills for WordPress. Copyright (C) 2026 WordPress Contributors, licensed under GPL-2.0-or-later. Changed from upstream: the compatibility: frontmatter line was dropped when this copy was made in March 2026, and license frontmatter plus this notice were added on 2026-10-24. See NOTICE.md.

WP Plugin Development

When to use

Use this skill for plugin work such as:

Inputs required

Procedure

0) Triage and locate plugin entrypoints

  1. Run triage:
  1. Detect plugin headers (deterministic scan):

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:

See:

2) Hooks and lifecycle (activation/deactivation/uninstall)

Activation hooks are fragile; follow guardrails:

See:

3) Settings and admin UI (Settings API)

Prefer Settings API for options:

See:

4) Security baseline (always)

Before shipping:

See:

5) Data storage, cron, migrations (if needed)

See:

Verification

Failure modes / debugging

See:

Escalation

For canonical detail, consult the Plugin Handbook and security guidelines before inventing patterns.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.