- Home
- Skills
- Plugins World
- Pw Skills
- Pw Post To Wechat
pw-post-to-wechat_skill
- TypeScript
19
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 plugins-world/pw-skills --skill pw-post-to-wechat- SKILL.md15.3 KB
Overview
This skill automates publishing content to WeChat Official Accounts, supporting both multi-image posts and full Markdown articles. It uses Chrome DevTools Protocol to log in, fill editors, upload images, and optionally save drafts. Smart compression enforces title and content limits and article publishing supports three themes (default, grace, simple).
How this skill works
The tool parses Markdown or accepts explicit title/content and image parameters, converts Markdown to HTML for article mode, and inserts image placeholders for automated replacement. It launches a Chrome instance via CDP, navigates to the WeChat editor, uploads images, pastes formatted content or HTML, and optionally saves drafts based on the --submit flag. Profile directories can be reused to keep login sessions and speed repeated runs.
When to use it
- You need to publish content directly to a WeChat Official Account (sends to public account).
- You have a Markdown file to publish as a formatted article or a post paired with images.
- You want to batch-publish multiple posts or automate repetitive publishing steps.
- You need automated image uploads and clipboard-based image insertion for article HTML.
Best practices
- Provide frontmatter (title, author) in Markdown to ensure correct metadata extraction.
- Keep image filenames prefixed with numbers (01-, 02-) to control upload order and mobile display.
- Limit titles to 20 characters and post content to 1000 characters to avoid automatic compression.
- Use --profile to persist Chrome login and avoid repeated QR code scans for frequent publishing.
- Preview without --submit first, then run with --submit to save drafts only after verification.
Example use cases
- Quick multi-image post: extract title and intro from article.md, upload up to 9 images from a folder, preview or save as draft.
- Full article publish: convert a Markdown article to themed HTML (default/grace/simple), paste into editor, and replace image placeholders automatically.
- Batch publishing: loop over many Markdown files and image folders with --submit and a persistent --profile for unattended draft creation.
- Custom one-off publish: specify --title, --content and multiple --image flags to craft a tailored multi-image post and save as draft.
FAQ
By default it previews only; add --submit to save as a draft. Final publishing through WeChat backend must be done manually after review.
How do I avoid scanning QR codes every run?
Use --profile with a persistent Chrome profile directory to keep login sessions and avoid repeated QR scanning.