# Publish WeChat Official Account Drafts

Publishing formatted WeChat articles often requires manual copying, image insertion, and draft setup. This skill automates draft creation from Markdown, HTML, text, and images through a controlled Chrome session.

## Install

```bash
npx skillstore add jimliu/baoyu-post-to-wechat
```

## Metadata

- Status: approved
- Slug: jimliu-baoyu-post-to-wechat
- Skillstore revision: r1
- Version status: missing
- Tree hash: 0a03aa497c47cefcbf08282e7e87e569ed7cfa497d8e78ad8651abaf9494ed12
- Author: JimLiu
- GitHub username: JimLiu
- License: MIT
- Repository: https://github.com/JimLiu/baoyu-skills/tree/main/skills/baoyu-post-to-wechat
- Ref: 1ffa7643651792ccb4bd3b15d924d2c97edff755
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: blocked
- Manual install advisory: allowed\_with\_warning
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: network, external\_commands, filesystem, env\_access, scripts
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/jimliu-baoyu-post-to-wechat
- Manifest: https://skillstore.pages.dev/api/skills/jimliu-baoyu-post-to-wechat/manifest

## Capabilities

- Launches Chrome and connects to WeChat Official Account through local browser automation.
- Converts Markdown articles into WeChat-ready HTML with selectable themes.
- Copies images or HTML content to the system clipboard for editor insertion.
- Creates image-text posts with title, content, and one or more local images.
- Preserves a browser profile so users can stay logged in after QR authentication.
- Can save drafts and optionally submit when the command includes submit options.

## Use Cases

- Publish a formatted article draft: Convert a Markdown article into WeChat editor content with title, author, summary, and inline images.
- Create an image-text update: Prepare a short WeChat post with a compressed title, concise body text, and a batch of local images.
- Automate repeat posting steps: Use Claude Code or Codex to run the posting workflow after reviewing source files and image assets.

## Prompt Templates

### Post a simple image-text draft

```
Use this skill to create a WeChat image-text draft with title "{title}", content from "{summary}", and images from "{image_folder}". Do not submit it.
```

### Convert Markdown to an article draft

```
Convert "{markdown_file}" into a WeChat article draft using the "grace" theme. Insert referenced images and save the result as a draft.
```

### Prepare a reviewed campaign post

```
Review "{markdown_file}" and "{image_folder}" for missing assets, then create a WeChat draft. Tell me what was shortened or changed before saving.
```

### Run a controlled publishing workflow

```
Use the WeChat browser automation only after confirming Chrome is available and I am logged in. Create the draft from "{markdown_file}", keep the browser open, and do not click submit without my approval.
```

## Limitations

- Requires Chrome or a compatible Chromium browser and a WeChat Official Account login.
- Uses system clipboard and keyboard automation, so operating system permissions may block actions.
- Depends on WeChat web interface selectors that may break after site changes.
- Can download remote images referenced in Markdown, which may expose URLs to remote servers.

## Best Practices

- Run the workflow in a dedicated browser profile and review the draft before submitting.
- Use local image files when possible to avoid downloading remote assets during publishing.
- Keep WeChat, Chrome, clipboard, and accessibility permissions visible during the first run.

## Anti Patterns

- Do not run the skill on untrusted Markdown without reviewing remote image links and embedded diagrams.
- Do not allow automatic submission for posts that need legal, brand, or editorial approval.
- Do not use the clipboard automation while sensitive applications are frontmost.

## Security Audit

- Audited at: 2026-07-09T04:00:27.273\+00:00
- Summary: The skill provides useful WeChat publishing automation but relies on powerful local capabilities: Chrome DevTools control, persistent authenticated browser profiles, clipboard access, keyboard simulation, filesystem reads and writes, and external process execution. Several scanner hits are false positives from regex parsing, SVG markup, CSS, and localhost checks, but the overall behavior still requires strong user consent and sandboxing. Static review was capped at 400/677 representative findings; omitted static matches are unconfirmed, so automatic publishing stays disabled until manual review.

## Stats

- Views: 302
- Downloads: 126
- Favorites: 4
- Popularity score: 0
