← Back to Skills Marketplace
liuxucai

Wordpress Article Publisher.Skill

by verifier · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
54
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install wordpress-article-publisher-skill
Description
WordPress文章发布助手 - 根据关键词生成文章并发布到WordPress网站。 触发场景:(1) 用户要求"发布文章"、"发布到WordPress"、"wordpress发布" (2) 用户提供了WordPress用户名、密码和API地址 (3) 用户提供了文章关键词,要求生成并发布文章 (4) 用户要求...
README (SKILL.md)

WordPress 文章发布助手

功能概述

根据用户提供的关键词自动生成文章(约1000字)并发布到WordPress网站。

工作流程

第一步:收集认证信息

必须收集以下信息(不保存到文件):

  • WordPress用户名
  • 应用程序密码(Application Password)
  • 发布API地址(格式:https://你的域名/wp-json/wp/v2/posts

示例:

用户名:liuxc
应用程序密码:xxxx xxxx xxxx xxxx
发布API:https://3dkee.com/wp-json/wp/v2/posts

第二步:生成文章

根据关键词生成约1000字的文章结构:

引言(100-150字)
优势分析(300-400字)
劣势分析(300-400字)
如何平衡使用(150-200字)
结论(100-150字)

第三步:发布文章

使用 scripts/publish_article.ps1 脚本发布。

脚本使用

publish_article.ps1

参数:

  • -SiteUrl - WordPress站点URL(不含wp-json部分)
  • -Username - WordPress用户名
  • -AppPassword - 应用程序密码
  • -Title - 文章标题
  • -Content - 文章内容(HTML格式)
  • -Status - 发布状态(默认:publish)

使用示例:

.\publish_article.ps1 -SiteUrl "https://3dkee.com" -Username "liuxucai" -AppPassword "xxxx xxxx" -Title "文章标题" -Content "\x3Cp>文章内容\x3C/p>"

注意:

  • 内容必须为HTML格式
  • 使用UTF-8编码确保中文正常显示
  • 脚本使用curl.exe发送请求,避免PowerShell中文编码问题

编码处理

问题: PowerShell的Invoke-RestMethod处理中文UTF-8时存在编码bug

解决方案:

  • JSON文件保存为UTF-8无BOM格式
  • HTTP请求头设置charset=utf-8
  • 使用curl.exe发送请求

详见 references/encoding-fix.md

错误处理

中文显示问号

原因: PowerShell编码问题

解决方案: 重新发布,脚本已使用curl.exe处理

发布失败

可能原因:

  1. 认证信息错误
  2. API地址不正确
  3. 网络连接问题

排查步骤:

  1. 检查认证信息是否正确
  2. 验证API地址是否可访问
  3. 检查应用程序密码是否有效

高级功能

分类和标签

提供关键词时可同时指定:

关键词:AI文章的利弊
分类:科技
标签:人工智能,内容创作

调整字数

关键词:xxx
字数:2000字

修改已发布文章

修改文章 ID 3159 的标题为"新标题"

脚本会自动删除原文章并重新发布。

安全注意事项

  • ✅ 不将密码保存到文件
  • ✅ 不将密码写入日志
  • ✅ 每次会话需要重新提供密码
  • ✅ 临时JSON文件使用后删除

参考文档

  • references/wordpress-setup.md - WordPress应用程序密码设置教程
  • references/encoding-fix.md - 中文编码问题解决方案
  • references/api-reference.md - WordPress REST API参考
Usage Guidance
Review this before installing. Use only a dedicated low-privilege WordPress account, require an HTTPS site URL, and avoid granting delete permissions unless you explicitly want deletion support. Treat the application password as a secret and revoke it after use or if anything looks wrong.
Capability Assessment
Purpose & Capability
The stated purpose is article generation and WordPress publishing, but the artifacts also include a delete script and a documented modify flow that deletes an existing post and republishes it.
Instruction Scope
Live publication and deletion are triggered by broad publishing/modification instructions, with no mandatory preview, dry run, backup, or explicit confirmation for destructive operations.
Install Mechanism
The package is a small skill artifact with markdown references, a manifest, and PowerShell scripts; no installer, persistence hook, or dependency installation was observed.
Credentials
Using WordPress credentials and network requests is expected for publishing, but the scripts accept arbitrary site URLs, do not enforce HTTPS, and can perform live site changes.
Persistence & Privilege
The skill says it does not save passwords and the publish script deletes its temporary JSON file, but supplied application passwords may still authorize creating, editing, or deleting site content depending on the WordPress account permissions.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install wordpress-article-publisher-skill
  3. After installation, invoke the skill by name or use /wordpress-article-publisher-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
WordPress文章发布助手 v1.0.0 - 初始发布 - 支持根据关键词自动生成约1000字结构化文章。 - 可通过PowerShell脚本一键发布生成内容到指定WordPress网站。 - 集成认证收集与严格安全处理,不保存或记录用户密码。 - 支持文章分类、标签、可定制字数与文章修改操作。 - 采用curl.exe解决中文内容编码兼容问题,确保显示正常。 - 提供详细排错与参考文档,辅助新手快速配置和排查。
Metadata
Slug wordpress-article-publisher-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Wordpress Article Publisher.Skill?

WordPress文章发布助手 - 根据关键词生成文章并发布到WordPress网站。 触发场景:(1) 用户要求"发布文章"、"发布到WordPress"、"wordpress发布" (2) 用户提供了WordPress用户名、密码和API地址 (3) 用户提供了文章关键词,要求生成并发布文章 (4) 用户要求... It is an AI Agent Skill for Claude Code / OpenClaw, with 54 downloads so far.

How do I install Wordpress Article Publisher.Skill?

Run "/install wordpress-article-publisher-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Wordpress Article Publisher.Skill free?

Yes, Wordpress Article Publisher.Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Wordpress Article Publisher.Skill support?

Wordpress Article Publisher.Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Wordpress Article Publisher.Skill?

It is built and maintained by verifier (@liuxucai); the current version is v1.0.0.

💬 Comments