Wechat Platform Skills
Description
一个标准的 Claude Skills 项目,封装微信公众平台核心 API,可供 AI Agent(Cursor / Claude Code 等)直接调用。
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI