WordPress Article Publisher for Openclaw

An automated AI agent skill that generates high-quality structured articles based on keywords and publishes them directly to your WordPress site.

liuxucai
v1.0.0
May 25, 2026
0
614
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install wordpress-article-publisher-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install wordpress-article-publisher-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WordPress Article Publisher?

The WordPress Article Publisher is a highly secure, developer-friendly automation tool designed to bridge the gap between AI-driven content creation and live web publishing. By integrating this skill, users can seamlessly generate structured articles (approximately 1,000 words) from simple keyword prompts and post them directly to a self-hosted WordPress site. This tool eliminates manual copywriting, formatting, and publishing workflows.

Built to operate safely within modern ecosystems, this is one of the premier Openclaw Skills for content managers and digital marketers. It prioritizes system security by strictly enforcing zero-persistence password handling, ensuring your WordPress credentials remain active only during execution. It also addresses technical challenges, such as Windows encoding limitations, by utilizing curl-based REST API interactions to maintain complete character integrity.

WordPress Article Publisher Use Cases

  • Automated Content Generation: Instantly create and publish comprehensive 1,000-word blog posts based on target keywords.
  • Quick Idea Drafts: Spin up rapid, structured outlines (Pros, Cons, Balance, and Conclusions) for upcoming marketing campaigns.
  • Programmatic SEO Execution: Use Openclaw Skills to batch-publish structured landing page variations directly to WordPress.
  • Secure Remote Publishing: Authorize and execute web publishing workflows securely without exposing administrative API keys permanently in configuration files.

How WordPress Article Publisher Works

  1. Authentication Gathering: The agent requests your WordPress username, Application Password, and REST API endpoint. These are processed in-memory and are never saved to disk.
  2. Article Generation: Based on your target keyword, the AI generates a structured, five-part HTML article containing an introduction, pros/cons analysis, comparison logic, and a solid conclusion.
  3. Content Script Preparation: The skill formats the generated HTML content and matches it against targeted categories and tags.
  4. Execution and Publication: A PowerShell helper script (publish_article.ps1) executes a curl request targeting the WordPress REST API, ensuring clean UTF-8 encoding and immediately publishing or drafting the post.
  5. Cleanup: Temporary JSON files used during the API transfer are safely deleted from the system.

WordPress Article Publisher Setup

To get started with the WordPress Article Publisher, ensure you have PowerShell and curl.exe installed on your machine. This ensures Chinese and special UTF-8 character encoding displays correctly.

1. WordPress Configuration

Before executing the script, configure an Application Password in WordPress:

  • Go to WordPress Admin -> Users -> Profile.
  • Scroll to Application Passwords, add a new name, and copy the generated 24-character key.

2. Manual CLI Verification

You can run the publishing helper script directly via PowerShell:

./publish_article.ps1 -SiteUrl "https://yourdomain.com" -Username "your_user" -AppPassword "xxxx xxxx xxxx xxxx" -Title "Your Article Title" -Content "<p>Your HTML Content here</p>"

3. Integrating with Openclaw Skills

Add this skill definition to your local AI coding agent workspace. During execution, the agent will prompt you dynamically for authentication variables.

WordPress Article Publisher Data Schema & Taxonomy

This tool manages temporary publication data and structures generated output dynamically. The API payload adheres to the official WordPress REST API format.

Required Connection Details

Parameter Description Format Storage
SiteUrl Base URL of your WordPress installation https://domain.com Memory only
Username WordPress username with publish privileges String Memory only
AppPassword Generated application password Space-separated string Memory only
API Endpoint Full REST endpoint for posts https://domain.com/wp-json/wp/v2/posts Memory only

Article Structuring Schema

Articles are generated dynamically following a structured 1,000-word template:

  • Introduction (100-150 words): Basic context and overview.
  • Advantages (300-400 words): Key pros or benefits.
  • Disadvantages (300-400 words): Challenges or drawbacks.
  • Balance analysis (150-200 words): Synthesis of trade-offs.
  • Conclusion (100-150 words): Summary and call to action.

Script Files

  • scripts/publish_article.ps1: The primary PowerShell execution script utilizing curl.
  • references/encoding-fix.md: Reference documentation for handling UTF-8 encoding constraints.

WordPress Article Publisher Advanced Features

  • Custom Taxonomy Assignment: Dynamically pass categories and tags alongside your target keywords for instant categorization.
  • Word Count Modification: Customize target length parameter (e.g., scale up to 2000-word comprehensive articles) on demand.
  • Update and Replace Existing Posts: Target an existing article ID (e.g., ID 3159), and the script will automate replacing the post with freshly generated AI content.
  • Encoding Safeguards: Built-in bypass for PowerShell Invoke-RestMethod UTF-8 bugs using custom localized curl executions.
  • Zero-Trust Session Management: Hardened environment routines that prevent credential logging, keeping Openclaw Skills highly secure and enterprise-ready.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*