← Back to Skills Marketplace
sebastiangansca

WordPress Content REST API

by Sebastian Gansca · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ pending
59
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wordpress-content-rest-api
Description
Interact safely with WordPress content via REST API for posts, pages, media, taxonomies, supporting drafts, updates, pagination, search, and retry handling.
README (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.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wordpress-content-rest-api
  3. After installation, invoke the skill by name or use /wordpress-content-rest-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug wordpress-content-rest-api
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 59 downloads so far.

How do I install WordPress Content REST API?

Run "/install wordpress-content-rest-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is WordPress Content REST API free?

Yes, WordPress Content REST API is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does WordPress Content REST API support?

WordPress Content REST API is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created WordPress Content REST API?

It is built and maintained by Sebastian Gansca (@sebastiangansca); the current version is v0.1.0.

💬 Comments