Wp Rest Api
技能 活跃用于在构建、扩展或调试 WordPress REST API 端点/路由时使用:register_rest_route、WP_REST_Controller/controller 类、模式/参数验证、permission_callback/身份验证、响应整形、register_rest_field/register_meta,或通过 show_in_rest 公开 CPT/分类法。
通过提供专家级的指导和流程,使使用 AI 助手的开发人员能够正确有效地构建、扩展和调试 WordPress REST API 端点。
功能
- 注册 REST 路由和端点
- 实现自定义控制器类
- 模式和参数验证
- 处理权限回调和身份验证
- 整形 REST API 响应
- 通过 REST 公开 CPT 和分类法
- 向响应添加自定义字段和元数据
使用场景
- 在为 WordPress 插件创建新的自定义 REST API 端点时。
- 在调试与 WordPress REST API 路由相关的 401/403/404 错误时。
- 在需要为自定义帖子类型或分类法的 REST API 响应中添加或修改字段时。
- 在为传入的 REST API 请求实现模式验证时。
非目标
- REST API 以外的通用 WordPress 插件或主题开发。
- 直接管理 WordPress 核心更新或服务器端配置。
- 提供构建整个 WordPress 应用程序的全栈框架。
- 处理与 API 数据消费无关的前端 JavaScript 交互。
Trust
- warning:Issues Attention过去 90 天内打开的问题 (6) 多于已关闭的问题 (2),这表明维护者可能响应缓慢或难以跟上进度。
Execution
- info:Pinned dependencies虽然使用了 Node.js 脚本,但从提供的 SKILL.md 中无法直接看出技能捆绑脚本中显式固定的解释器版本或依赖项锁定文件。
Practical Utility
- info:Usage examples尽管该技能概述了流程并引用了文档,但在 SKILL.md 或其参考资料中并未明确提供演示调用和可观察输出的完整、端到端、即可使用的示例。
安装
npx skills add WordPress/agent-skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
类似扩展
Wordpress Advanced Architecture
98Advanced WordPress development with REST API endpoints, WP-CLI commands, performance optimization, and caching strategies for scalable applications.
Django Expert
99Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select_related/prefetch_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.
Wordpress Pro
99Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security hardening (nonces, sanitization, escaping, capability checks), and optimizes performance through caching and query tuning. Use when building WordPress themes, writing plugins, customizing Gutenberg blocks, extending WooCommerce, working with ACF, using the WordPress REST API, applying hooks and filters, or improving WordPress performance and security.
Spring Boot Engineer
98Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, and configures reactive WebFlux endpoints. Use when building Spring Boot 3.x applications, microservices, or reactive Java applications; invoke for Spring Data JPA, Spring Security 6, WebFlux, Spring Cloud integration, Java REST API design, or Microservices Java architecture.
Wp Interactivity Api
95用于在构建或调试 WordPress Interactivity API 功能(data-wp-* 指令、@wordpress/interactivity store/state/actions、block viewScriptModule 集成、wp_interactivity_*())时使用,包括性能、hydration 和指令行为。
Wordpress Block Editor Fse
95Modern WordPress block development and Full Site Editing with theme.json, block themes, and custom blocks for WordPress 6.7+