Agent skill · Backend & API

baoyu-post-to-wechat

Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-codeships scripts
Install
npx skills add ECNU-ICALK/AutoSkill --skill baoyu-post-to-wechat --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 30
SKILL.md size: 13 KB
Bundled scripts: yes
Path: SkillBank/Common/baoyu-skills/baoyu-post-to-wechat/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Post to WeChat Official Account ## Language **Match user's language**: Respond in the same language the user uses. If user writes in Chinese, respond in Chinese. If user writes in English, respond in English. ## Script Directory **Agent Execution**: Determine this SKILL.md directory as `SKILL_DIR`, then use `${SKILL_DIR}/scripts/<name>.ts`. | Script | Purpose | |--------|---------| | `scripts/wechat-browser.ts` | Image-text posts (图文) | | `scripts/wechat-article.ts` | Article posting via browser (文章) | | `scripts/wechat-api.ts` | Article posting via API (文章) | | `scripts/check-permissions.ts` | Verify environment & permissions | ## Preferences (EXTEND.md) Use Bash to check EXTEND.md existence (priority order): ```bash # Check project-level first test -f .baoyu-skills/baoyu-post-to-wechat/EXTEND.md && echo "project" # Then user-level (cross-platform: $HOME works on macOS/Linux/WSL) test -f "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md" && echo "user" ``` ┌────────────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├────────────────────────────────────────────────────────┼───────────────────┤ │ .baoyu-skills/baoyu-post-to-wechat/EXTEND.md

What's inside
Steps it walks through
  1. Language
  2. Script Directory
  3. Preferences (EXTEND.md)
  4. Pre-flight Check (Optional)
  5. Image-Text Posting (图文)
  6. Article Posting Workflow (文章)
  7. Step 0: Load Preferences
  8. Step 1: Determine Input Type
  9. Step 2: Check Markdown-to-HTML Skill
  10. Step 3: Convert Markdown to HTML
  11. Step 4: Validate Metadata
  12. Step 5: Select Publishing Method and Configure
  13. Step 6: Publish to WeChat
  14. Step 7: Completion Report
Ships with 24 files
  • references/article-posting.md
  • references/config/first-time-setup.md
  • references/image-text-posting.md
  • scripts/cdp.ts
  • scripts/check-permissions.ts
  • scripts/copy-to-clipboard.ts
  • scripts/md-to-wechat.ts
  • scripts/md/LICENSE
  • scripts/md/extensions/alert.ts
  • scripts/md/extensions/footnotes.ts
  • scripts/md/extensions/index.ts
  • scripts/md/extensions/infographic.ts
  • scripts/md/extensions/katex.ts
  • scripts/md/extensions/markup.ts
  • scripts/md/extensions/plantuml.ts
  • scripts/md/extensions/ruby.ts
  • scripts/md/extensions/slider.ts
  • scripts/md/extensions/toc.ts
  • scripts/md/render.ts
  • scripts/md/themes/base.css
  • scripts/md/themes/default.css
  • scripts/md/themes/grace.css
  • scripts/md/themes/simple.css
  • scripts/md/utils/languages.ts
first 24 of 30
Commands it runs
Check project-level first
test -f .baoyu-skills/baoyu-post-to-wechat/EXTEND.md && echo "project"
Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md" && echo "user"
npx -y bun ${SKILL_DIR}/scripts/check-permissions.ts
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --markdown article.md --images ./images/
npx -y bun ${SKILL_DIR}/scripts/wechat-browser.ts --title "标题" --content "内容" --image img.png --submit
mkdir -p "$(pwd)/post-to-wechat/$(date +%Y-%m-%d)"
Save content to: post-to-wechat/yyyy-MM-dd/[slug].md
Check if baoyu-markdown-to-html exists
More from AutoSkill
All skills →
About this skill
What does the baoyu-post-to-wechat skill do?

Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill baoyu-post-to-wechat --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going