This automates posting videos to WeChat Video Channel using Playwright to drive a real browser through the creator center. You scan a QR code once to save cookies, then run a script with your video file, title, and hashtags. It handles the usual publishing options: scheduled posts, original content declarations, and draft mode. The setup is straightforward if you've used browser automation before, just pip install playwright and run the cookie script. Cookie expiration is the main friction point since WeChat sessions don't last long, so you'll need to rescan periodically. Worth it if you're publishing to WeChat Video regularly and want to skip the manual upload dance, especially for batch operations where you can script multiple uploads with delays between them.

skills.sh installs
198
GitHub stars
299
last updated
Aug 21, 2026

Install

$ npx -y skills add zrt-ai-lab/opencode-skills --skill auto-weixin-video --agent claude-code

Installs into .claude/skills of the current project.

Files

微信视频号自动发布技能

这个技能用于自动化发布视频到微信视频号创作者中心。

使用场景

  • 用户需要发布视频到视频号时
  • 用户说"发视频号"、"上传视频号"、"发布到微信视频号"时
  • 用户有视频文件需要分发到视频号平台时

技术原理

基于 Playwright 浏览器自动化,模拟真实用户操作微信视频号创作者中心(https://channels.weixin.qq.com):

  1. 首次使用需微信扫码登录,保存 Cookie
  2. 后续使用 Cookie 自动登录
  3. 自动化填充标题、话题、短标题等信息
  4. 支持定时发布、原创声明、添加到合集

前置条件

1. 安装依赖

pip install playwright
playwright install chromium

2. 首次登录获取 Cookie

python .opencode/skills/auto-weixin-video/scripts/get_cookie.py

执行后会打开浏览器,使用微信扫码登录,登录成功后 Cookie 会自动保存。

工作流程

第一步:确认登录状态

检查 Cookie 是否存在且有效:

python .opencode/skills/auto-weixin-video/scripts/check_cookie.py

如果 Cookie 失效,需要重新获取:

python .opencode/skills/auto-weixin-video/scripts/get_cookie.py

第二步:准备视频文件

视频文件要求:

  • 格式:.mp4(推荐)
  • 分辨率:建议 1080x1920(竖版 9:16)或 1920x1080(横版 16:9)
  • 时长:建议 1 分钟以内效果最佳

第三步:发布视频

python .opencode/skills/auto-weixin-video/scripts/publish.py \
    --video "视频文件路径" \
    --title "视频标题" \
    --tags "话题1,话题2,话题3" \
    [--original] \
    [--schedule "2025-01-31 18:00"]
参数说明

Sponsors

Details

Repository
github.com/zrt-ai-lab/opencode-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from zrt-ai-lab/opencode-skills

All 3
1get-convex avatarcomponents-guideget-convex/convex-agent-pluginsGuide to using Convex components for feature encapsulation. Learn about sibling components, creating your own, and when to use components vs monolithic code.196skills.sh installs
2meleantonio avatarresearch-ideationmeleantonio/awesome-econ-ai-stuffGenerate research questions from economic phenomena196skills.sh installs
3appwrite avatarappwrite-phpappwrite/agent-skillsappwrite php195skills.sh installs
4az9713 avatarvoice-dna-creatoraz9713/ai-co-writing-claude-skillsAnalyze writing samples to create a comprehensive voice DNA profile. Use when the user wants to capture their unique writing voice, needs to create a voice prof195skills.sh installs
5jwilger avatartddjwilger/agent-skillsUse this skill whenever the user wants to write code using TDD, test-driven development, or test-first methodology. Triggers on: "/tdd", "let's do TDD", "write 195skills.sh installs
6muratcankoylan avatarlatent-briefingmuratcankoylan/agent-skills-for-context-engineeringIf you're running orchestrator-worker agent systems and watching token costs compound as the orchestrator's trajectory gets replayed to...195skills.sh installs