
专家级的 WordPress 知识,适用于 AI 编码助手——模块、主题、插件及最佳实践
概览
Agent Skills 是一套可移植的指令、检查清单和脚本包,帮助 AI 助手(Claude、Copilot、Codex、Cursor 等)理解 WordPress 开发模式,避免常见错误,并遵循最佳实践。 这些技能是用 GPT-5.2 Codex(高推理)从官方古腾堡和 WordPress 文档中生成的,然后由 WordPress 贡献者审核和编辑。我们用 AI 助手测试技能,并根据结果反复改进。这是 v1,随着社区使用和修复,技能会不断提升。详情请参见 docs/ai-authorship.md。(WordPress AI 指南) AI编码助手很强大,但它们经常:- 生成过时的WordPress模式(古腾堡之前、封块前主题) - 插件开发中忽略关键的安全考虑 - 跳过正确的块弃用,导致“无效块”错误 - 忽略仓库中已有的工具 Agent Skills通过提供AI助手以实际可用的形式来解决这个问题。
概述(AI 翻译)
教AI编码助手正确构建WordPress。
Agent Skills 是一套可移植的指令、检查清单和脚本包,帮助 AI 助手(Claude、Copilot、Codex、Cursor 等)理解 WordPress 开发模式,避免常见错误,并遵循最佳实践。
AI 作者身份披露: 这些技能是使用 GPT-5.2 Codex(高推理)从官方古腾堡和 WordPress 文档中生成的,随后由 WordPress 贡献者审核和编辑。我们用 AI 助手测试技能,并根据结果进行迭代。这是 v1,随着社区使用和修复贡献,技能会不断提升。详情请参见 docs/ai-authorship.md。(WordPress AI 指南)
为什么是技能探员?
AI编码助手功能强大,但它们通常会:
- 生成过时的WordPress模式(古腾堡之前,前块主题)
- 插件开发中忽视关键的安全考量
- 跳过适当的区块弃用,导致“无效区块”错误
- 忽略仓库中已有的工具
Agent Skills通过为AI助手提供专家级的WordPress知识,并以他们实际可用的格式来解决这个问题。
可用技能
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Agent Skills for WordPress
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.) understand WordPress development patterns, avoid common mistakes, and follow best practices.
AI Authorship Disclosure: These skills were generated using GPT-5.2 Codex (High Reasoning) from official Gutenberg and WordPress documentation, then reviewed and edited by WordPress contributors. We tested skills with AI assistants and iterated based on results. This is v1, and skills will improve as the community uses them and contributes fixes. See docs/ai-authorship.md for details. (WordPress AI Guidelines)
Why Agent Skills?
AI coding assistants are powerful, but they often:
- Generate outdated WordPress patterns (pre-Gutenberg, pre-block themes)
- Miss critical security considerations in plugin development
- Skip proper block deprecations, causing “Invalid block” errors
- Ignore existing tooling in your repo
Agent Skills solve this by giving AI assistants expert-level WordPress knowledge in a format they can actually use.
Available Skills
| Skill | What it teaches |
|---|---|
| wordpress-router | Classifies WordPress repos and routes to the right workflow |
| wp-project-triage | Detects project type, tooling, and versions automatically |
| wp-block-development | Gutenberg blocks: block.json, attributes, rendering, deprecations |
| wp-block-themes | Block themes: theme.json, templates, patterns, style variations |
| wp-plugin-development | Plugin architecture, hooks, settings API, security |
| wp-rest-api | REST API routes/endpoints, schema, auth, and response shaping |
| wp-interactivity-api | Frontend interactivity with data-wp-* directives and stores |
| wp-abilities-api | Capability-based permissions and REST API authentication |
| wp-abilities-audit | Audit a plugin’s REST surface and propose Abilities API registrations |
| wp-abilities-verify | Verify a plugin’s Abilities API registrations against their declared annotations |
| wp-wpcli-and-ops | WP-CLI commands, automation, multisite, search-replace |
| wp-performance | Profiling, caching, database optimization, Server-Timing |
| wp-phpstan | PHPStan static analysis for WordPress projects (config, baselines, WP-specific typing) |
| wp-playground | WordPress Playground routing, CLI runs, browser previews, and snapshots |
| wpds | WordPress Design System |
| wp-plugin-directory-guidelines | WordPress Plugin Directory Guidelines |
| blueprint | WordPress Playground Blueprints for declarative environment setup |
| wp-env | Local WordPress development with @wordpress/env: setup, configuration, WP-CLI, Xdebug, troubleshooting |
How It Works
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add wordpress/agent-skills