← 返回 Skills 市场
liuxucai

Wordpress Article Publisher.Skill

作者 verifier · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
54
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install wordpress-article-publisher-skill
功能描述
WordPress文章发布助手 - 根据关键词生成文章并发布到WordPress网站。 触发场景:(1) 用户要求"发布文章"、"发布到WordPress"、"wordpress发布" (2) 用户提供了WordPress用户名、密码和API地址 (3) 用户提供了文章关键词,要求生成并发布文章 (4) 用户要求...
使用说明 (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参考
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wordpress-article-publisher-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wordpress-article-publisher-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
WordPress文章发布助手 v1.0.0 - 初始发布 - 支持根据关键词自动生成约1000字结构化文章。 - 可通过PowerShell脚本一键发布生成内容到指定WordPress网站。 - 集成认证收集与严格安全处理,不保存或记录用户密码。 - 支持文章分类、标签、可定制字数与文章修改操作。 - 采用curl.exe解决中文内容编码兼容问题,确保显示正常。 - 提供详细排错与参考文档,辅助新手快速配置和排查。
元数据
Slug wordpress-article-publisher-skill
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Wordpress Article Publisher.Skill 是什么?

WordPress文章发布助手 - 根据关键词生成文章并发布到WordPress网站。 触发场景:(1) 用户要求"发布文章"、"发布到WordPress"、"wordpress发布" (2) 用户提供了WordPress用户名、密码和API地址 (3) 用户提供了文章关键词,要求生成并发布文章 (4) 用户要求... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 54 次。

如何安装 Wordpress Article Publisher.Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wordpress-article-publisher-skill」即可一键安装,无需额外配置。

Wordpress Article Publisher.Skill 是免费的吗?

是的,Wordpress Article Publisher.Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Wordpress Article Publisher.Skill 支持哪些平台?

Wordpress Article Publisher.Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Wordpress Article Publisher.Skill?

由 verifier(@liuxucai)开发并维护,当前版本 v1.0.0。

💬 留言讨论