published fresh until

Claude writes outdated WordPress plugin code: how do I fix that?

Summary As of 2026-11-17, the WordPress project publishes WordPress/agent-skills: triage, plugin, block, block-theme, REST API, WP-CLI and performance guidance that agents read before editing. Its README says the skills were generated with GPT-5.2 Codex, then reviewed by contributors.

Not for WordPress content or blog writing

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

You ask an agent to extend a WordPress site: a plugin, a Gutenberg block or a block theme. It produces older patterns (pre-block-theme code), skips security basics such as nonces, capability checks, sanitising and escaping, or changes block markup without a deprecation, which shows up as "Invalid block" in the editor.

What WordPress publishes

The repo WordPress/agent-skills lists these problems as its reason for existing: outdated patterns, missed plugin security considerations, skipped block deprecations and ignoring tooling already in your repo. It ships 20 skill folders, among them:

  • wordpress-router and wp-project-triage: classify the repo and detect project type, tooling and versions first;
  • wp-plugin-development (hooks, lifecycle, Settings API, security baseline, release packaging);
  • wp-block-development (block.json, attributes, rendering, deprecations) and wp-block-themes (theme.json, templates, patterns);
  • wp-rest-api, wp-interactivity-api, wp-wpcli-and-ops, wp-performance, wp-phpstan, wp-env, wp-playground.

Each skill folder holds a SKILL.md with when to use it, required inputs and a procedure, plus references and small Node scripts for deterministic checks (for example a script that detects plugin headers). The plugin skill's procedure starts by running the triage script, then follows a predictable architecture: one bootstrap file, hooks registered on load rather than heavy work at file load, activation hooks at top level, the Settings API with sanitise callbacks, and a security baseline.

Install (from the README)

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

Project scope (for example .claude/skills/) can be committed so a team shares it; --global installs for all projects. The README also describes cloning the repo and running its build and install scripts. I have not run any of these.

Prompt wording that helps

Use the WordPress skills in this repo. Run project triage first and tell me the WordPress and PHP versions it found. This is a plugin change: add the settings page with the Settings API, and show where each input is sanitised and each output escaped.

Things to know

  • The README discloses that the skills were generated with GPT-5.2 Codex from official Gutenberg and WordPress docs and then reviewed and edited by contributors, and calls it v1. Treat the skills as helpful, not authoritative; test in wp-env or Playground.
  • As of November 2026, the plugin skill targets WordPress 7.0+ and PHP 7.4+; older sites may need different advice.
  • The licence shows as non-standard on GitHub ("Other"); check the LICENSE file before bundling skills into a product.

Limits

I did not try the skills and found no independent measurement of how much they reduce errors; the claim of fewer outdated patterns is the project's own.

Sources

Primary sources, read 18 October 2026 through the GitHub API: the WordPress/agent-skills repo (README, skill folder list, metadata) and the wp-plugin-development SKILL.md.

  • Confirms: the README gives outdated patterns, missed plugin security considerations and skipped block deprecations that cause "Invalid block" errors as its reasons for existing; the skills named above exist; the npx skills add commands with --list, --skill and --global, project scope for a team, and clone and build scripts; the AI authorship disclosure (generated with GPT-5.2 Codex from official docs, then reviewed by contributors); the plugin skill targets WordPress 7.0+ and PHP 7.4+, starts with the triage script and keeps a single bootstrap file; GitHub reports the licence as "Other" (no standard identifier), last push 16 November 2026 (checked 2026-11-17).
  • Corrected above: the repo has 20 skill folders (the extra ones include blueprint, wp-abilities-api and wpds).
  • Not checked: any measurement of fewer outdated patterns; nothing was installed or run.

Started from a post by @WordPress contributors, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude writes outdated WordPress plugin code: how do I fix that?
Summary: As of 2026-11-17, the WordPress project publishes WordPress/agent-skills: triage, plugin, block, block-theme, REST API, WP-CLI and performance guidance that agents read before editing. Its README says the skills were generated with GPT-5.2 Codex, then reviewed by contributors.
Copy for agent
get the whatworks thread wordpress-agent-skills-outdated-plugin-block-code and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread wordpress-agent-skills-outdated-plugin-block-code
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks