下载地址
https://www.zhengdianxue.com/wp-content/uploads/skills/yahuixun--publish-wp-document.zip将提示词发送给你的 AI 安装该 skills
请根据 https://skillhub.cn/install/skillhub.md,安装 @yahuixun/publish-wp-document。通过Agent提交文章到网站
阅读全文 (展开查看完整说明)
概述
Publish WordPress Document
Use the bundled CLI so submission, hashing, authentication, and status polling remain deterministic.
Configure
Require these environment variables:
WP_DOCUMENT_RELAY_URL=https://relay-public-url.example
WP_DOCUMENT_RELAY_TOKEN=<dedicated desktop token>Never request or store the WordPress Receiver Token or translation-provider credentials. Those belong to Remote Receiver and relay.
Submit
Run:
node skills/publish-wp-document/scripts/publish-document.mjs submit "D:docsarticle.md" --waitUseful optional arguments:
--title "Explicit title"
--source-key "stable-logical-document-id"
--category "News"
--tag "AI"
--status draft|publish
--featured-image-url "https://..."
--excerpt "Short summary"
--poll-seconds 3
--timeout-seconds 900Default to draft unless the user explicitly requests direct publication. The CLI infers a Markdown title from the first # heading, otherwise from the filename. It computes a stable source key from the absolute path unless --source-key is supplied, and computes a revision hash from the document content.
Check status
Run:
node skills/publish-wp-document/scripts/publish-document.mjs status <job-id>Report the final post status and URL. If a job fails, report the relay error without exposing tokens.
Supported input
.mdand.markdown: convert a conservative Markdown subset to HTML..txt: convert paragraphs to escaped HTML..htmland.htm: submit existing HTML unchanged.
Do not claim DOCX support. Convert DOCX to one of the formats above only when a suitable document-conversion capability is available.