freestylefly avatar

Canghe Post To Wechat

This automates posting to WeChat Official Accounts through either API calls or Chrome automation. It handles two content types: full articles with HTML/markdown conversion and theme support, and image-text posts with up to 9 images. The workflow is thorough, running preflight checks for Chrome, accessibility permissions, and API credentials before publishing. It looks for config in EXTEND.md to set defaults like author name and comment settings, falling back to a guided first-time setup. The browser automation route uses CDP to handle the full posting UI when API access isn't available. Built for Bun runtime with bilingual support matching user language.

skills.sh installs
498
GitHub stars
474
last updated
Aug 21, 2026

Install

$ npx -y skills add freestylefly/canghe-skills --skill canghe-post-to-wechat --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

ScriptPurpose
scripts/wechat-browser.tsImage-text posts (图文)
scripts/wechat-article.tsArticle posting via browser (文章)
scripts/wechat-api.tsArticle posting via API (文章)
scripts/check-permissions.tsVerify environment & permissions

Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

# Check project-level first
test -f .canghe-skills/canghe-post-to-wechat/EXTEND.md && echo "project"

# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.canghe-skills/canghe-post-to-wechat/EXTEND.md" && echo "user"

Sponsors

Details

Repository
github.com/freestylefly/canghe-skills
Categories
Frontend Development, Backend & APIs
First seen
Jun 3, 2026

More from freestylefly/canghe-skills

All 29
1next-safe-action avatarsafe-action-better-authnext-safe-action/skillsUse when adding authentication or authorization to safe actions with Better Auth -- covers betterAuth() middleware setup, typed session context (BetterAuthConte496skills.sh installs
2davila7 avatarcoding-standardsdavila7/claude-code-templatesUniversal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.494skills.sh installs
3parcadei avatarhelpparcadei/continuous-claude-v3Interactive workspace discovery - learn what tools, workflows, agents, and hooks are available493skills.sh installs
4davila7 avatarautonomous-agentsdavila7/claude-code-templatesAutonomous agents are AI systems that can independently decompose goals, plan actions, execute tools, and self-correct without constant human guidance. The chal492skills.sh installs
5glebis avatarpdf-generationglebis/claude-skillsProfessional PDF generation from markdown using Pandoc with Eisvogel template and EB Garamond fonts. Use when converting markdown to PDF, creating white papers,489skills.sh installs
6irangareddy avataropenclaw-cliirangareddy/openclaw-essentialsMaster the OpenClaw CLI - gateway, agents, channels, skills, hooks, and automation485skills.sh installs