- Home
- Skills
- Jimliu
- Baoyu Skills
- Baoyu Post To Wechat
baoyu-post-to-wechat_skill
- TypeScript
5.8k
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill jimliu/baoyu-skills --skill baoyu-post-to-wechat- SKILL.md15.0 KB
Overview
This skill posts content to WeChat Official Accounts using either the WeChat API or a Chrome-driven browser flow. It supports articles (HTML, Markdown, or plain text) and image-text posts with multiple images, automating metadata, conversion, and publishing steps. Use it to quickly publish drafts or image-rich posts while honoring configurable defaults.
How this skill works
The skill detects input type (HTML, Markdown file, or plain text), converts Markdown to HTML via a markdown-to-html helper if needed, validates and auto-generates metadata (title, summary, author, cover), then publishes via the chosen method: API for fast drafts or Chrome browser automation for UI-driven posting. It reads optional EXTEND.md settings and can run pre-flight checks for environment and credentials.
When to use it
- Publish a Markdown or plain-text article to a WeChat Official Account.
- Create an image-text post (multiple images) quickly from local images.
- Automate draft creation via WeChat API when you have credentials.
- Use browser automation when API credentials are unavailable but Chrome login exists.
- Batch-save content with auto-generated title/slug and standardized metadata.
Best practices
- Run the pre-flight environment check before first use to verify Chrome, Bun, and credentials.
- Provide EXTEND.md to define defaults (author, publish method, comment settings, chrome profile).
- Install a markdown-to-html skill to enable theme-based HTML conversion and metadata extraction.
- Always ensure a cover image is available for API article type=news (imgs/cover.png or frontmatter cover).
- Prefer API publishing for speed and programmatic comment control; use browser flow for complex UI-only tasks.
Example use cases
- Convert local article.md to themed HTML and publish via API with auto-generated summary and cover fallback.
- Post a short multi-image promotional image-text post using the browser script and image folder.
- Save a plain text note as a dated Markdown file, auto-slug it, convert and publish as an article draft.
- Run the check-permissions script to diagnose missing Chrome path, Bun runtime, or API credentials before publishing.
FAQ
You can provide HTML manually or install a markdown-to-html helper. The workflow will prompt and offer installation guidance if the converter is missing.
Which method should I choose: API or browser?
Choose API for speed and full programmatic control (requires credentials). Choose browser when you lack API credentials or need to operate through the Official Account UI (requires Chrome and a login session).
How are title, summary, and cover handled if missing?
The tool auto-generates title and summary from content when possible. Cover image falls back to frontmatter, imgs/cover.png, or the first inline image; publishing stops if a required cover is missing for news-type articles.