← 返回 Skills 市场
sebastiangansca

WordPress Content REST API

作者 Sebastian Gansca · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ pending
59
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

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)

  1. Start with a dry run before any write.
  2. Confirm base URL and target environment (production vs staging).
  3. Read current object first, then patch minimally.
  4. Prefer status=draft until explicit approval to publish.
  5. Avoid bulk destructive updates unless explicitly approved.
  6. Use least-privilege credentials.

Read references/reliability-and-safety.md first when operating on live sites.

Workflow

  1. Set auth model (Application Password or Bearer): references/auth.md
  2. Discover and validate target content: use read/list endpoints with pagination and filters.
  3. Execute dry-run pass:
    • fetch current object
    • prepare intended payload
    • verify taxonomy/media IDs exist
  4. Write safely:
    • create/update as draft first
    • verify response
    • publish only with explicit instruction
  5. 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/PATCH with status=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.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wordpress-content-rest-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wordpress-content-rest-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: auth (Application Password/Bearer), safe read/write flows for posts/pages/media, draft-update-publish patterns, taxonomy handling, pagination/search, retry/rate-limit guidance, and dry-run-first safety rules.
元数据
Slug wordpress-content-rest-api
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论