Loading...
Loading...
Directly publish local Markdown/HTML articles to WeChat Official Account draft box via WeChat Official Account API. Supports multiple themes, preset colors, and automatic image upload.
npx skill4agent add bulls-cows/skills yy-post-to-wx.baoyu-skills/.env~/.baoyu-skills/.envWECHAT_APP_ID=your_app_id
WECHAT_APP_SECRET=your_app_secretEXTEND.mddefault_theme: default
default_color: blue
default_author: Your Name
need_open_comment: 1
only_fans_can_comment: 0| Configuration Item | Description | Default Value |
|---|---|---|
| Default theme | |
| Default color | Theme default |
| Default author | Empty |
| Whether to enable comments | |
| Whether only fans can comment | |
defaultgracesimplemodernbluegreenvermilionyellowpurpleskyroseoliveblackgraypinkredorange#ff0000# Using Bun
bun skills/yy-post-to-wx/scripts/main.ts <file> [options]
# Using npx bun
npx -y bun skills/yy-post-to-wx/scripts/main.ts <file> [options]| Parameter | Description | Example |
|---|---|---|
| Input file path | |
| Theme name | |
| Color name or hex | |
| Force specify title | |
| Force specify summary | |
| Force specify author | |
| Specify cover image | |
| Disable external link to bottom citation conversion | |
# Publish Markdown file
bun skills/yy-post-to-wx/scripts/main.ts ./my-article.md --theme default --color blue
# Specify author and cover
bun skills/yy-post-to-wx/scripts/main.ts ./post.md --author "Baoyu" --cover ./imgs/cover.png
# Disable citation conversion
bun skills/yy-post-to-wx/scripts/main.ts ./article.md --no-citebun skills/yy-post-to-wx/scripts/main.ts <file>cd skills/yy-post-to-wx/scripts
npm install
cd ../../..bun skills/yy-post-to-wx/scripts/check-permissions.tsmarkedfront-matter