WordPress Content REST API
/install wordpress-content-rest-api
WordPress Content REST API
Use this skill only for WordPress content API work (posts, pages, media, categories, tags).
Do not use it for server admin, plugin/theme management, or shell/WP-CLI tasks.
Safety Rules (Always)
- Start with a dry run before any write.
- Confirm base URL and target environment (
productionvsstaging). - Read current object first, then patch minimally.
- Prefer
status=draftuntil explicit approval to publish. - Avoid bulk destructive updates unless explicitly approved.
- Use least-privilege credentials.
Read references/reliability-and-safety.md first when operating on live sites.
Workflow
- Set auth model (Application Password or Bearer): references/auth.md
- Discover and validate target content: use read/list endpoints with pagination and filters.
- Execute dry-run pass:
- fetch current object
- prepare intended payload
- verify taxonomy/media IDs exist
- Write safely:
- create/update as draft first
- verify response
- publish only with explicit instruction
- Handle retries/rate-limits/errors using standard policy: references/reliability-and-safety.md
Endpoint Scope
Focus on these route families:
/wp-json/wp/v2/posts/wp-json/wp/v2/pages/wp-json/wp/v2/media/wp-json/wp/v2/categories/wp-json/wp/v2/tags
For usage patterns and payload examples, read:
Default Execution Pattern
- Read first (
GET). - Validate dependent IDs (author/category/tag/media).
- Write to draft (
POST/PUT/PATCHwithstatus=draft). - Re-read object and compare expected fields.
- Publish (
status=publish) only after explicit approval.
Done Criteria
Treat a content task as complete only when:
- API response is successful and parsed.
- Changed fields match requested outcome.
- Final status (
draft/publish) matches explicit instruction. - Any partial failures are listed with next action.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install wordpress-content-rest-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/wordpress-content-rest-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
WordPress Content REST API 是什么?
Interact safely with WordPress content via REST API for posts, pages, media, taxonomies, supporting drafts, updates, pagination, search, and retry handling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。
如何安装 WordPress Content REST API?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install wordpress-content-rest-api」即可一键安装,无需额外配置。
WordPress Content REST API 是免费的吗?
是的,WordPress Content REST API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
WordPress Content REST API 支持哪些平台?
WordPress Content REST API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 WordPress Content REST API?
由 Sebastian Gansca(@sebastiangansca)开发并维护,当前版本 v0.1.0。