wp-abilities-api by wordpress/agent-skills
npx skills add https://github.com/wordpress/agent-skills --skill wp-abilities-api当任务涉及以下情况时,请使用此技能:
wp-abilities/v1) 向客户端暴露能力,@wordpress/abilities),wp-project-triage)。signals.isWpCoreCheckout 和 versions.wordpress.core。在代码库中搜索以下内容:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
wp_register_ability(wp_register_ability_category(wp_abilities_api_initwp_abilities_api_categories_initwp-abilities/v1@wordpress/abilities如果不存在,请决定是全新引入 Abilities API(新注册 + 客户端使用)还是仅使用现有能力。
如果需要逻辑分组,请尽早注册一个能力类别(参见 references/php-registration.md)。
在 PHP 注册中实现能力,包含:
id(带命名空间),label/description,category,meta:
readonly: true,show_in_rest: true。使用文档中说明的 Abilities API 注册初始化钩子,以确保它们在正确的时间加载(参见 references/php-registration.md)。
references/rest-api.md)。meta.show_in_rest 已启用,并且您正在查询正确的端点。@wordpress/abilities API。wp-project-triage 显示 signals.usesAbilitiesApi: true(如果适用)。wp-abilities/v1 下的端点在预期时返回您的能力和类别。meta.show_in_rest,references/rest-api.mdreferences/php-registration.md每周安装量
377
代码仓库
GitHub 星标数
985
首次出现
2026年2月1日
安全审计
安装于
codex270
opencode266
cursor263
gemini-cli260
github-copilot258
kimi-cli247
Use this skill when the task involves:
wp-abilities/v1),@wordpress/abilities),wp-project-triage first if you haven’t).signals.isWpCoreCheckout and versions.wordpress.core.Search for these in the repo:
wp_register_ability(wp_register_ability_category(wp_abilities_api_initwp_abilities_api_categories_initwp-abilities/v1@wordpress/abilitiesIf none exist, decide whether you’re introducing Abilities API fresh (new registrations + client consumption) or only consuming.
If you need a logical grouping, register an ability category early (see references/php-registration.md).
Implement the ability in PHP registration with:
id (namespaced),label/description,category,meta:
readonly: true when the ability is informational,show_in_rest: true for abilities you want visible to clients.Use the documented init hooks for Abilities API registration so they load at the right time (see references/php-registration.md).
references/rest-api.md).meta.show_in_rest is enabled and you’re querying the right endpoint.@wordpress/abilities APIs for client-side access and checks.wp-project-triage indicates signals.usesAbilitiesApi: true after your change (if applicable).wp-abilities/v1 return your ability and category when expected.meta.show_in_rest,references/rest-api.mdreferences/php-registration.mdWeekly Installs
377
Repository
GitHub Stars
985
First Seen
Feb 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex270
opencode266
cursor263
gemini-cli260
github-copilot258
kimi-cli247
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装