Wechat Platform Skills — AI skill for Claude Code
一个标准的 Claude Skills 项目,封装微信公众平台核心 API,可供 AI Agent(Cursor / Claude Code 等)直接调用.
How to install Wechat Platform Skills
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open aierwiki/wechat_platform_skills and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Wechat Platform Skills does
一个标准的 Claude Skills 项目,封装微信公众平台核心 API,可供 AI Agent(Cursor / Claude Code 等)直接调用。
Alternatives in AI
- Wechat Acp — Bridge WeChat chat messages to any ACP-compatible AI agent (Claude, Codex, Copilot, Qwen, Gemini, OpenCode and 488 ★
- CLI WeChat Bridge — 将 AI 命令行工具以最为原生的方式,集成到微信 ClawBot / 企业微信 bot 中,目前支持集成 Codex、Claude Code、OpenCode、Pi Agent 478 ★
- Aiwg — Cognitive architecture for AI-augmented software development 204 ★
README
WeChat Platform Skills
一个标准的 [Claude Skills](https://docs.anthropic.com/) 项目,封装微信公众平台核心 API,可供 AI Agent(Cursor / Claude Code 等)直接调用。
功能
| 能力 | 说明 |
|---|---|
| 多账号管理 | 支持在配置文件中存储多个公众号账号,通过名称区分,适合频繁切换账号的场景 |
| 灵活凭证提供 | 支持命令行参数和配置文件两种方式提供凭证,满足不同使用场景 |
| Access Token | 每次实时获取,无缓存,避免账号切换时的混淆问题 |
| 上传封面图 | 上传为永久素材,返回 media_id,用于创建草稿 |
| 上传正文图片 | 返回微信 CDN URL,可直接用于 HTML 正文 |
| 创建草稿 | 支持标题、正文、封面、作者、摘要、评论设置等完整参数 |
| HTML 合规检查 | 发布前检查 HTML 是否符合微信规范,覆盖 20 条规则,输出问题说明与修复建议 |
安装
方式一:一键安装为 Claude Skill
cd wechat_platform_skills
chmod +x install-skill.sh
./install-skill.sh
安装后 AI Agent 会在需要操作公众号时自动触发该技能。
方式二:手动使用
pip install -r requirements.txt
快速开始
1. 配置多账号(可选)
配置文件位于 `~/.wechat_platform/config.json`,支持存储多个账号:
# 添加账号
python3 scripts/wechat_platform.py config --add main --appid YOUR_APPID --appsecret YOUR_APPSECRET
python3 scripts/wechat_platform.py config --add backup --appid ANOTHER_APPID --appsecret ANOTHER_SECRET
# 列出所有账号
python3 scripts/wechat_platform.py config --list
# 查看指定账号(AppSecret 自动脱敏)
python3 scripts/wechat_platform.py config --get main
# 删除账号
python3 scripts/wechat_platform.py config --remove backup
# 清除所有配置
python3 scripts/wechat_platform.py config --clear
2. 两种方式提供凭证
每个操作命令都需要提供凭证,按优先级从高到低:
**方式 1:命令行参数(适合临时操作)**
python3 scripts/wechat_platform.py token --appid wx123 --appsecret abc456
**方式 2:配置文件(推荐,适合日常使用)**
# 先添加账号到配置文件
python3 scripts/wechat_platform.py config --add main --appid wx123 --appsecret abc456
# 使用时指定账号名称
python3 scripts/wechat_platform.py token --account main
3. 获取 Access Token
# 使用配置文件中的账号(推荐)
python3 scripts/wechat_platform.py token --account main --json
# 直接提供凭证
python3 scripts/wechat_platform.py token --appid wx123 --appsecret abc456
4. 上传封面图
python3 scripts/wechat_platform.py upload-cover cover.png --account main --json
# 返回 {"success":true,"data":{"media_id":"..
Related Skills
Huashu Slide Codex
Codex-only AI visual material production skill — slides + WeChat covers + Bilibili/YouTube thumbnails, powered
Huashu Slide Doubao
Doubao-only AI visual material production skill — slides + WeChat covers + Bilibili/YouTube thumbnails, powere
Wechat Video Skill
WeChat Video Skill —— 教会你的 AI Agent 下载微信视频号视频的 Agent Skill。给链接 → 解密无水印 MP4 → 自动发回微信/飞书。适用于 Claude Code / Codex
Cc Connect
Bridge local AI coding agents (Claude Code, Cursor, Gemini CLI, Codex) to messaging platforms (Feishu/Lark, Di
Touchpoint
Give your AI agent eyes and hands on any desktop — cross-platform accessibility API with MCP server
Open AI Agents Hub
Open-source, self-hosted platform to build, host, and chat with AI agents — LLM chat bots and image/video gene
Related Agents
Benchmark Agent
Use this agent for competitive intelligence and platform benchmarking — it obsessively tracks where Cursor, De
Wlroots Expert
wlroots C API expert — scene graph, listener wiring, surface lifecycle, seat/cursor invariants, xdg-shell + xw
Model Runner
Deterministic wrapper that runs a prompt on a non-Claude model (OpenAI via Codex, Cursor's composer/grok/glm,