
Baoyu Post To Wechat
Publish markdown blog posts to a WeChat Official Account with formatting, themes, and image placeholders handled automatically.
Overview
baoyu-post-to-wechat is an agent skill most often used in Grow (also Launch) that posts markdown articles to WeChat Official Accounts with themes and image handling.
Install
npx skills add https://github.com/ideacco/baoyu-skills-openclaw --skill baoyu-post-to-wechatWhat is this skill?
- CLI via bun: wechat-article.ts from --markdown or pre-rendered --html
- Themes: default, grace, simple, modern
- Frontmatter and flags for title, author, summary overrides
- Image pipeline: markdown → WECHATIMGPH_N placeholders → paste HTML → replace in editor
- Optional --profile for Chrome profile when driving the WeChat editor
Adoption & trust: 1 installs on skills.sh; 12 GitHub stars; 1/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
What problem does it solve?
You have markdown articles but manually reformatting and uploading images in the WeChat editor wastes time and breaks layout.
Who is it for?
Indie founders and creators who already write in markdown and maintain a WeChat Official Account for audience reach.
Skip if: Teams without WeChat publishing access, or products that only need a website or newsletter with no WeChat channel.
When should I use this skill?
You need to publish or update a markdown (or HTML) article on a WeChat Official Account.
What do I get? / Deliverables
A themed HTML paste into WeChat plus a documented image-replacement sequence so articles go live on your Official Account with consistent formatting.
- Executed wechat-article posting flow
- Formatted article live or ready in the WeChat editor with images placed
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Grow is where solo builders republish written work to owned channels; WeChat posting is a recurring content ops task. Content is the primary shelf because the skill converts markdown articles into channel-ready posts, not app-store or SEO technical work.
Where it fits
You publish a weekly essay from repo markdown with the grace theme and custom summary.
You post a product launch article the same day you ship, using frontmatter author and title overrides.
How it compares
Skill-wrapped browser posting workflow, not a headless WeChat API integration you can fully automate without the official editor.
Common Questions / FAQ
Who is baoyu-post-to-wechat for?
Solo builders and marketers who publish long-form content on WeChat Official Accounts and want agent-assisted conversion from markdown.
When should I use baoyu-post-to-wechat?
Use in Grow when shipping a new article to subscribers; in Launch when distributing launch notes or changelog posts to your WeChat audience after a release.
Is baoyu-post-to-wechat safe to install?
The skill drives local scripts and browser profiles—review the Security Audits panel on this page and only use Chrome profiles and credentials you control.
SKILL.md
READMESKILL.md - Baoyu Post To Wechat
# Article Posting (文章发表) Post markdown articles to WeChat Official Account with full formatting support. ## Usage ```bash # Post markdown article npx -y bun ./scripts/wechat-article.ts --markdown article.md # With theme npx -y bun ./scripts/wechat-article.ts --markdown article.md --theme grace # With explicit options npx -y bun ./scripts/wechat-article.ts --markdown article.md --author "作者名" --summary "摘要" ``` ## Parameters | Parameter | Description | |-----------|-------------| | `--markdown <path>` | Markdown file to convert and post | | `--theme <name>` | Theme: default, grace, simple, modern | | `--title <text>` | Override title (auto-extracted from markdown) | | `--author <name>` | Author name | | `--summary <text>` | Article summary | | `--html <path>` | Pre-rendered HTML file (alternative to markdown) | | `--profile <dir>` | Chrome profile directory | ## Markdown Format ```markdown --- title: Article Title author: Author Name --- # Title (becomes article title) Regular paragraph with **bold** and *italic*. ## Section Header  - List item 1 - List item 2 > Blockquote text [Link text](https://example.com) ``` ## Image Handling 1. **Parse**: Images in markdown are replaced with `WECHATIMGPH_N` 2. **Render**: HTML is generated with placeholders in text 3. **Paste**: HTML content is pasted into WeChat editor 4. **Replace**: For each placeholder: - Find and select the placeholder text - Scroll into view - Press Backspace to delete the placeholder - Paste the image from clipboard ## Scripts | Script | Purpose | |--------|---------| | `wechat-article.ts` | Main article publishing script | | `md-to-wechat.ts` | Markdown to HTML with placeholders | | `md/render.ts` | Markdown rendering with themes | ## Example Session ``` User: /post-to-wechat --markdown ./article.md Claude: 1. Parses markdown, finds 5 images 2. Generates HTML with placeholders 3. Opens Chrome, navigates to WeChat editor 4. Pastes HTML content 5. For each image: - Selects WECHATIMGPH_1 - Scrolls into view - Presses Backspace to delete - Pastes image 6. Reports: "Article composed with 5 images." ``` --- name: first-time-setup description: First-time setup flow for baoyu-post-to-wechat preferences --- # First-Time Setup ## Overview When no EXTEND.md is found, guide user through preference setup. **BLOCKING OPERATION**: This setup MUST complete before ANY other workflow steps. Do NOT: - Ask about content or files to publish - Ask about themes or publishing methods - Proceed to content conversion or publishing ONLY ask the questions in this setup flow, save EXTEND.md, then continue. ## Setup Flow ``` No EXTEND.md found | v +---------------------+ | AskUserQuestion | | (all questions) | +---------------------+ | v +---------------------+ | Create EXTEND.md | +---------------------+ | v Continue to Step 1 ``` ## Questions **Language**: Use user's input language or saved language preference. Use AskUserQuestion with ALL questions in ONE call: ### Question 1: Default Theme ```yaml header: "Theme" question: "Default theme for article conversion?" options: - label: "default (Recommended)" description: "Classic layout - centered title with border, white-on-color H2 (default: blue)" - label: "grace" description: "Elegant - text shadows, rounded cards, refined blockquotes (default: purple)" - label: "simple" description: "Minimal modern - asymmetric rounded corners, clean whitespace (default: green)" - label: "modern" description: "Large rounded corners, pill headings, spacious (default: orange)" ``` ### Question 2: Default Color ```yaml header: "Color" question: "Default color preset? (theme default if not set)" options: - label: "Theme default (Recommended)" description: "Use the theme's built-in default color" - label: "blue" description: "#0F4C81 经典蓝" - label: "red" descripti