View and publish: publish-wp-document skill configuration
background
Users want to know about locally installed publish-wp-document configuration of skills and then publish this conversation to WordPress.
Basic skills information
| project| value||——|—–|| version | 1.2.0 | | installation method | User manual import|| storage path | ~/.workbuddy/skills/publish-wp-document/ |
file structure
publish-wp-document/
├── SKILL.md #Skills Description Document
├── VERSION #Version number (1.2.0)
├── _user_meta.json #Installation meta information
├── agents/
│ └── openai.yaml # Agent interface definition
└── scripts/
├── publish-document.mjs #Core CLI (Configuration/Commit/Status)
├── skill-update.mjs #Skills update script
└── build-release.ps1 #Build a release script
runtime configuration
The configuration file is located at:%APPDATA%publish-wp-documentconfig.json(Windows)
| configuration items| state||——–|——|| relay_url | configured|| token | Configured (not shown here for security reasons)|
core competence
- input format:
.md/.markdown(Conservative Markdown → HTML),.txt(Paragraphs to HTML),.html/.htm(Original direct transmission) - release status: Default
draft, unless explicitly requested by the userpublish - optional parameters:
--title、--source-key、--category、--tag、--status、--featured-image-url、--excerpt
Three main orders
#Configure connection
node scripts/publish-document.mjs configure --relay-url "...& quot; --token "...& quot;
#Submit documents
node scripts/publish-document.mjs submit document path.md--wait
#Check task status
node scripts/publish-document.mjs status <job-id>
summary
This skill has been configured, and the relay address and token are in place. Local Markdown /plain text/ HTML documents can be submitted to WordPress for translation and publishing with a simple command-line operation. This document itself is a first-hand example of publishing to WordPress using this skill.