← 返回
未分类 Key 中文

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.
通过 REST API 安全地与 WordPress 内容交互,支持文章、页面、媒体、分类以及草稿、更新、分页、搜索和重试处理。
sebastiangansca
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 244
下载
💾 0
安装
1
版本
#latest

概述

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

  1. Discover and validate target content:

use read/list endpoints with pagination and filters.

  1. Execute dry-run pass:
    • fetch current object
    • prepare intended payload
    • verify taxonomy/media IDs exist
  2. Write safely:
    • create/update as draft first
    • verify response
    • publish only with explicit instruction
  3. 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.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-23 16:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Telegram Integration

sebastiangansca
配置和故障排除 OpenClaw Telegram 集成,包括新机器人、私信、群组和话题超级群组。用于设置 Telegram 路由和入门配置。
★ 0 📥 241

Google Docs Formatter

sebastiangansca
仅通过指令工作流,使用现有 gog skill/CLI 对 Google Docs 进行格式化、编辑和创建。适用于用户请求格式化 Google文档的场景。
★ 0 📥 294

Yoast SEO Playbook

sebastiangansca
Yoast SEO operating playbook for WordPress delivery. Covers Yoast Free vs Yoast Premium capability boundaries, editor wo
★ 0 📥 278