# Send Wordpress REST API to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "wordpress",
    "name": "Wordpress REST API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/codedao12/wordpress",
    "canonicalUrl": "https://clawhub.ai/codedao12/wordpress",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/wordpress",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wordpress",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "package.json",
      "SKILL.md",
      "env_example.md",
      "assets/wordpress-rest-api-guide.md",
      "scripts/wp-cli.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "wordpress",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-11T03:55:52.070Z",
      "expiresAt": "2026-05-18T03:55:52.070Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wordpress",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=wordpress",
        "contentDisposition": "attachment; filename=\"wordpress-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "wordpress"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/wordpress"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/wordpress",
    "downloadUrl": "https://openagent3.xyz/downloads/wordpress",
    "agentUrl": "https://openagent3.xyz/skills/wordpress/agent",
    "manifestUrl": "https://openagent3.xyz/skills/wordpress/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/wordpress/agent.md"
  }
}
```
## Documentation

### Purpose

Provide a production-ready CLI for WordPress REST API automation. This skill focuses on content workflows (posts/pages), taxonomy (categories/tags), user reads, and safe custom requests without external HTTP libraries.

### Best fit

You want a stable CLI for automation and bot workflows.
You need JSON-in/JSON-out for pipelines.
You prefer simple HTTP with no extra dependencies.

### Not a fit

You must handle OAuth flows or complex browser-based auth.
You need advanced media uploads (multipart streaming).

### Requirements

Node.js 18+ (for native fetch).

### One-time setup

Enable the WordPress REST API (default in modern WordPress).
Create an Application Password for a WordPress user.
Confirm the user has the right role (e.g., Editor/Admin).

### Install

cd wordpress
npm install

### Run

node scripts/wp-cli.js help
node scripts/wp-cli.js posts:list --query per_page=5
node scripts/wp-cli.js posts:create '@post.json'

You can also use npm:

npm run wp -- posts:list --query per_page=5

### Credentials

Supported options (first match wins):

Basic auth token: WP_BASIC_TOKEN (base64 of user:app_password)
User + app password: WP_USER + WP_APP_PASSWORD
JWT bearer token: WP_JWT_TOKEN

### Required env

WP_BASE_URL (e.g., https://example.com)

### Input conventions

JSON can be inline or loaded from file with @path.
Query params use --query key=value (repeatable) or --query key1=value1,key2=value2.

### Command map (high level)

Posts:

posts:list, posts:get, posts:create, posts:update, posts:delete

Pages:

pages:list, pages:get, pages:create, pages:update, pages:delete

Taxonomy:

categories:list, categories:create
tags:list, tags:create

Users:

users:list, users:get

Advanced:

request (raw method + path)

### Operational guidance

Prefer context=view for read-only list calls.
Use status=draft when staging content.
Implement retries for 429 and transient 5xx errors in orchestrators.

### Expected output

JSON to stdout; non-zero exit code on errors.

### Security notes

Never log or commit tokens or application passwords.
Use a dedicated low-privilege WordPress account where possible.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: codedao12
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-11T03:55:52.070Z
- Expires at: 2026-05-18T03:55:52.070Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/wordpress)
- [Send to Agent page](https://openagent3.xyz/skills/wordpress/agent)
- [JSON manifest](https://openagent3.xyz/skills/wordpress/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/wordpress/agent.md)
- [Download page](https://openagent3.xyz/downloads/wordpress)