Skip to main content
skill CX Codex

wp-abilities-verify — Claude Code skill: what it does, how to install

Verifies WordPress plugin Abilities API registrations, flags hidden database writes in readonly callbacks, and validates schemas.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add WordPress/agent-skills --skill wp-abilities-verify -a claude-code
Open on GitHub

What wp-abilities-verify does

The skill audits Abilities API registrations in WordPress plugins. Its main focus is spotting contradictions between annotations and actual code. When a callback is marked as readonly: true but calls $wpdb->update or modifies settings via update_option, the audit flags a failure. It also monitors destructive: false flags and validates schema constraints.

Verification runs in two modes. Static mode works directly from the repository without a live WordPress instance. It enumerates registrations with rg and inspects callbacks. Runtime mode needs a working container such as wp-env. In this mode, the agent queries wp_get_abilities() and tests callbacks against active user roles.

A clean report in static mode means the code shape matches expectations, but it does not prove that writes never happen. Because of hidden side effects, you should run runtime checks before merging pull requests in production plugins. Prerequisites include running wp-project-triage beforehand and having at least one call to wp_register_ability.

What it helps with

  • detect hidden database writes in callbacks marked as readonly
  • validate access restrictions defined in permission_callback
  • catch schema formatting errors before opening a pull request
  • verify audit documentation against registered abilities in code

Example prompts for the agent

  • Run a static verification of registered abilities in this WordPress plugin and write the report to reports/abilities.md
  • Check all readonly annotations and parameter schemas in the plugin using wp-abilities-verify
  • Execute wp-abilities-verify in runtime mode using npm run wp-env start to bring up the test stack

How to install wp-abilities-verify

1Skills CLI (Vercel)

npx skills add WordPress/agent-skills --skill wp-abilities-verify -a claude-code

2Manually: put the files in place

~/.claude/skills/wp-abilities-verify/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wp-abilities-verify/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wp-abilities-verify

How to install wp-abilities-verify in Claude Code?

Run npx skills add WordPress/agent-skills --skill wp-abilities-verify -a claude-code in your terminal. Once added, the skill becomes available to the agent in your project.

What does wp-abilities-verify do?

It checks Abilities API registrations in WordPress plugins against their annotations. The skill detects methods marked as readonly that still modify options or database records, and inspects permission callbacks alongside JSON schemas.

What is the difference between static and runtime modes?

Static mode inspects plugin source code without spinning up a WordPress environment to spot obvious contract violations. Runtime mode requires a live environment like wp-env or Docker to execute callbacks with test users and check for actual idempotency.

Similar skills

Everything for Testing and QA →

From the same set19

wp-abilities-api A skill for WordPress Abilities API work: registering abilities and categories in PHP, exposing them over REST, reading them in JS. Useful when a client can't see an ability. CX Codex +1 4,300installs wp-interactivity-api Guides AI agents through WordPress Interactivity API implementation and debugging. Helps configure directives, connect script modules, and eliminate hydration mismatches. CX Codex +1 4,200installs wpds Feeds WordPress Design System docs to your agent through an MCP server, so UI work lands on real components and tokens instead of guesses. CX Codex +1 4,000installs blueprint Create and inspect JSON Blueprints for WordPress Playground with this skill. Use it to configure an environment as a Blueprint file, rather than just launch or share one. CX Codex +1 3,700installs wp-plugin-directory-guidelines Audits WordPress plugins against 18 WordPress.org Directory guidelines, verifying GPL license compatibility and freemium rules before submission. CX Codex +1 3,600installs wp-abilities-audit This skill reviews a WordPress plugin’s REST surface and writes a planning document for proposed Abilities API registrations. CX Codex +1 2,700installs wp-patterns Creates and updates WordPress block patterns, then checks registration and markup. Useful for templates, starter pages, and Query Loop layouts. CX Codex +1 2,200installs wp-env Configures and manages Docker-based WordPress environments using @wordpress/env. Useful when you need a real MySQL database, WP-CLI, or PHPUnit testing. CX Codex +1 679installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor