ClaudeChatGPTGeminiCursorOtherIntermediateFreeEditorial

WordPress Agent Skills

WordPress official skill pack — 18 skills teaching AI agents Gutenberg blocks, block themes, plugin security, WP-CLI, and performance.

No reviews
W
WordPress
2,067262

Overview

WordPress Agent Skills is the official Agent Skills pack from the WordPress project — 18 skills, 88 reference documents, and 7 detection scripts that teach AI coding assistants how modern WordPress is actually built: Gutenberg blocks, block themes, the Interactivity and Abilities APIs, plugin security, WP-CLI operations, and Plugin Directory compliance.

The problem it solves

AI assistants are fluent in WordPress from a decade ago. Left alone they produce pre-Gutenberg patterns and classic themes, skip nonce and capability checks in plugin code, omit block deprecations so the editor throws "Invalid block" errors on existing content, and ignore the tooling already sitting in your repo. This pack replaces recalled patterns with documented procedures.

The 18 skills

Routing and detection

  • wordpress-router — classifies the repo (plugin, theme, block theme, core checkout, full site) and routes to the right workflow, with a bundled decision tree.
  • wp-project-triage — detects project type, tooling (Composer, Node, @wordpress/scripts), tests (PHPUnit, Playwright, wp-env), and version hints via a 19 KB detection script and a JSON schema for its output.

Editor and front end

  • wp-block-developmentblock.json, registration, attributes and serialization, dynamic rendering, inner blocks, supports and wrappers, deprecations, debugging, and tooling.
  • wp-block-themestheme.json, templates and parts, patterns, and style variations.
  • wp-patterns — block pattern authoring with references on block markup, designing with theme tokens, pattern categories and registration, visual composition, and anti-patterns.
  • wp-interactivity-apidata-wp-* directives, stores, and server-side rendering.
  • wpds — the WordPress Design System.

PHP, APIs, and data

  • wp-plugin-development — structure, lifecycle, hooks, the Settings API, data and cron, and security.
  • wp-rest-api — routes and endpoints, schema, authentication, discovery and params, custom content types, and response shaping.
  • wp-abilities-api, wp-abilities-audit, and wp-abilities-verify — the deepest area in the pack: registering capability-gated abilities, auditing a plugin's REST surface to propose registrations, and verifying registrations against their declared annotations with a runtime harness, schema lints, and permission round-trips.

Ops, quality, and release

  • wp-wpcli-and-ops — WP-CLI automation, multisite targeting, safe search-replace, cron and cache, and operational safety rules.
  • wp-performance — profiling with wp-cli profile and doctor, autoload option bloat, object cache, database and HTTP API costs, Server-Timing, and headless Query Monitor.
  • wp-phpstan — static analysis configuration, baselines, WordPress-specific annotations, and handling third-party classes.
  • wp-playground and blueprint — WordPress Playground CLI runs, browser previews, share URLs, and declarative Blueprint environment setup.
  • wp-plugin-directory-guidelines — GPL compliance, naming and trademark rules, and a 25 KB guideline review checklist for anyone shipping to the plugin repository.

How it works

Every skill is a self-contained folder: a SKILL.md stating when to use it, the procedure, and how to verify the result; a references/ directory for deep dives loaded only when needed; and optional deterministic scripts/ for detection and validation rather than guesswork. The pack also ships an eval harness with 41 scenario files covering block migration, nonce and capability checks, autoload bloat, trademark review, pattern authoring, and multisite targeting.

AI authorship, disclosed

Unusually for a first-party pack, the project publishes exactly how it was made. The skills were generated with GPT-5.2 Codex (High Reasoning) from official Gutenberg trunk and WordPress developer documentation, then reviewed and edited by WordPress contributors and tested against real tasks drawn from WP Bench. The project states plainly that the skills have not yet been run through a formal evaluation system, because none exists, and labels this v1.

Who it is for

WordPress plugin and theme developers, agencies, and Core contributors using Claude Code, Copilot, Codex, Cursor, or Antigravity who want generated WordPress code that passes review rather than code that looks plausible.

Why it matters

WordPress carries two decades of accumulated patterns, and the wrong one still runs — it just fails security review, breaks the editor on old content, or quietly loads a megabyte of autoloaded options on every request. This pack is maintained in the WordPress organisation itself, targets WordPress 7.0+ on PHP 7.4.0+, and points the agent at the current documented procedure for each task.

What's Included

  • wordpress-router — classifies the repo and routes to the right workflow, with a bundled decision tree
  • wp-project-triage — a 19 KB detection script plus JSON output schema for project kind, tooling, tests, and versions
  • wp-block-development — block.json, registration, attributes and serialization, dynamic rendering, inner blocks, deprecations, and a block listing script
  • wp-block-themes — theme.json, templates and parts, patterns, style variations, and a block theme detection script
  • wp-patterns — block markup reference, designing with theme tokens, pattern categories and registration, visual composition, and anti-patterns
  • wp-interactivity-api — data-wp-* directives, stores, and server-side rendering
  • wp-plugin-development — structure, lifecycle, hooks, Settings API, data and cron, security, and a plugin detection script
  • wp-rest-api — routes and endpoints, schema, authentication, discovery and params, custom content types, and response shaping
  • wp-abilities-api, wp-abilities-audit, and wp-abilities-verify — registration patterns, REST surface auditing, and verification with a runtime harness, schema lints, and permission round-trips
  • wp-wpcli-and-ops — automation, multisite targeting, safe search-replace, cron and cache, and operational safety rules
  • wp-performance — wp-cli profile and doctor, autoload option bloat, object cache, database and HTTP costs, Server-Timing, headless Query Monitor, and an inspection script
  • wp-phpstan — configuration, baselines, WordPress annotations, third-party class handling, and an inspection script
  • wp-playground and blueprint — Playground CLI runs, browser previews, share URLs, and declarative Blueprint environment setup
  • wp-plugin-directory-guidelines — GPL compliance, naming and trademark rules, and a 25 KB guideline review checklist
  • wpds — the WordPress Design System skill
  • 88 reference documents loaded on demand, plus 7 deterministic detection and validation scripts
  • An eval harness with 41 scenario files covering block migration, security checks, performance, patterns, and Plugin Directory review
  • skillpack-build.mjs and skillpack-install.mjs for multi-editor packaging, with dry-run and per-skill selection

Installation

Option 1 — skills CLI (fastest)

bash
npx skills add WordPress/agent-skills --skill wp-plugin-development

List everything available:

bash
npx skills add WordPress/agent-skills --list

Install several at once, or globally:

bash
npx skills add WordPress/agent-skills --skill wp-plugin-development wp-abilities-api wp-playground
npx skills add WordPress/agent-skills --skill wp-plugin-development --global

npx skills add defaults to project scope, so the skills can be committed and shared with your team. Add -g / --global for user-wide install.

Option 2 — Build and install the skillpack

Clone, build, then install for every editor you use:

bash
git clone https://github.com/WordPress/agent-skills.git
cd agent-skills
node shared/scripts/skillpack-build.mjs --clean

Globally, for Claude Code:

bash
node shared/scripts/skillpack-install.mjs --global
node shared/scripts/skillpack-install.mjs --global --skills=wp-playground,wp-block-development

Into a project, for several editors at once:

bash
node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor

That writes to .codex/skills/, .github/skills/, .claude/skills/, and .cursor/skills/. Cursor global is --targets=cursor-global; Antigravity is opt-in and must be named at both build and install time.

Preview first with --dry-run, or list with --list.

Option 3 — Copy a folder

Copy any directory from skills/ into your assistant's instructions directory.

Scope notes

Global installs live in your home directory and apply to every project; project installs live in the repo and can be committed. When a skill exists in both, the project copy wins.

Use it

Start with the router, which triages the repo before anything else runs:

Add a settings page to this plugin, with proper nonce and capability checks.

The router classifies the codebase, wp-project-triage detects the tooling and versions, and the relevant domain skill supplies the procedure and the verification step.

Requirements

  • An AI assistant that reads project-level instructions — Claude Code, GitHub Copilot, OpenAI Codex, Cursor, or Antigravity
  • Node.js, for the skills CLI and the bundled build and install scripts
  • A WordPress project targeting WordPress 7.0 or newer on PHP 7.4.0 or newer
  • WP-CLI installed for the operations, performance, and multisite workflows
  • Composer and PHP tooling if you use the PHPStan static analysis skill
  • Docker or a Playground-capable environment for the wp-playground and blueprint skills

Changelog

v1.0.02026-08-25

Initial marketplace listing of the official WordPress agent skills pack (18 skills, 88 references, 41 eval scenarios) at its v1 skill set.

FAQs

Reviews

Sign in to leave a rating and review.

No reviews yet. Be the first to review this skill!