blueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing,…
Verify a WordPress plugin's Abilities API registrations: enumerate abilities, check that callback behavior matches each annotation's claim (the adversarial readonly-but-writes detection), validate permissions and schemas, and validate audit documents produced by
Claude Code
$ npx -y skills add WordPress/agent-skills --skill wp-abilities-verify --agent claude-code
Codex
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a codex -y
Cursor
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a cursor -y
Gemini CLI
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a gemini-cli -y
GitHub Copilot
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a github-copilot -y
OpenCode
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a opencode -y
Windsurf
$ npx skills add WordPress/agent-skills --skill wp-abilities-verify -a windsurf -y
name: wp-abilities-verify description: "Verify a WordPress plugin's Abilities API registrations: enumerate abilities, check that callback behavior matches each annotation's claim (the adversarial readonly-but-writes detection), validate permissions and schemas, and validate audit documents produced by wp-abilities-audit." compatibility: "Targets WordPress 7.0+ plugins (PHP 7.4.0+). Requires a runnable environment (wp-env, docker-based dev stack, or equivalent) for runtime mode; static mode runs entirely from the plugin checkout with no env. Filesystem-based agent with bash + node."
Verify a WordPress plugin's Abilities API registrations. The centerpiece is the **adversarial annotation correctness check**: a `readonly: true` ability that actually writes (via `$wpdb->update`, `update_option`, a non-GET delegate, etc.) is a security and UX disaster because agents plan actions on the basis of the annotations they introspect. This skill catches those lies by reading the callback body and comparing what it does against what the annotation claims.
The skill also validates audit docs produced by `wp-abilities-audit`, checks permission gates and schema hygiene, and optionally executes each ability against a live environment.
lands.
where a refactor turned a readonly ability into a writing one).
via source inspection, runs the adversarial correctness check, runs schema and permission lints, and validates audit docs.
does PLUS: `wp_get_abilities()` for authoritative enumeration, executes each ability with curated inputs, confirms permission roundtrip against real users, and runs a twin-invocation heuristic on `idempotent: true` abilities to flag candidates for review (return-value equality is a signal, not a verdict — core defines idempotent as "no additional effect on the environment").
Both modes produce the same structured report format.
A static-mode PASS means "no obvious-shape violations," not "verified write-free." For high-stakes plugins, run runtime mode before landing — it catches bootstrap-order, permission-roundtrip, and idempotency issues that static can't. See `references/annotation-correctness.md` for the static blind spots.
1. **Plugin checkout path** — working tree to verify. 2. **Mode** — `static` or `runtime`. Default to static if unspecified. 3. **(Runtime only) Env-up command** — read the plugin's `AGENTS.md`. Common patterns: `npm run wp-env start`, `npx wp-env start`, or a composer-based bring-up. Plugin families with their own dev tooling will document their own command. Do NOT assume `npm run wp-env` works. 4. **(Optional) Audit doc path** — enables cross-checks between the audit and the registered abilities, and validates the audit itself. 5. **Report output path** — explicit path, typically the user's vault.
on `wp_register_ability(` → return a clear "no abilities registered" report, not an empty PASS.
Read `references/audit-schema-validation.md`. Validate the audit against the canonical schema owned by `wp-abilities-audit`. Surface missing required fields, multiple `reference_ability: true`, and `backing: null` entries that aren't paired with a `surfaced_gaps` entry. `backing: null` alone is WARN (intentional gap output), not FAIL.
Read `references/static-enumeration.md`. Find each `wp_register_ability(` call, extract the name, the annotation block, and the execute-callback location. Use a multi-line tool (`rg --multiline --pcre2`) — the canonical formatting splits the call across lines. Record each ability's source-file + line + annotations + callback byte range.
Read `references/runtime-harness.md`. Bring the env up using the command from `AGENTS.md`, then enumerate via `wp_get_abilities()` over wp-cli and cross-check against the static inventory. Source-only → FAIL (registration not firing). Runtime-only → WARN (dynamic registration path).
Read `references/annotation-correctness.md`. Read each callback body and verify it matches the annotation claim:
options table, post / user / term / comment data, the filesystem, cron, or via non-GET HTTP / REST delegates.
cancel, or trash.
additional effect on the environment (per the `idempotent` annotation's docblock in `class-wp-ability.php`). Static catches counter writes and per-call cron schedules; runtime adds a twin-invocation heuristic for visible state changes.
The reference lists common write patterns as a starting set, not a checklist — plugin vocabularies vary, and the agent extends with verbs specific to the plugin under verification.
False positives get suppressed via an inline `// verify-ignore: <annotation> -- <reason>` comment.
Read `references/permission-roundtrip.md`. Static: classify each `permission_callback` against the six shapes (preferred Shape A `current_user_can(...)`; FAIL on Shape B-bad `WP_REST_Request` patterns or Shape E literal `true`). Runtime: anon and subscriber denied; admin allowed (unless deliberately public). When an audit was provided, cross-chec
Teach AI coding assistants how to build WordPress the right way. Agent Skills are portable bundles of instructions, checklists, and scripts that help AI assistants (Claude, Copilot, Codex, Cursor, etc.)
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing,…
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you…
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*,…
Audit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces…
Use when developing WordPress (Gutenberg) blocks: block.json metadata, register_block_type(_from_metadata),…
Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.