
auto-weixin-video
微信视频号自动发布技能。当用户需要发布视频到微信视频号时使用这个技能。技能包含:获取登录Cookie、上传视频、设置标题话题、定时发布、原创声明等功能。
- Installs
- 198
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/zrt-ai-lab/opencode-skills --skill auto-weixin-video- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads auto-weixin-video automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
微信视频号自动发布技能
这个技能用于自动化发布视频到微信视频号创作者中心。
使用场景
- 用户需要发布视频到视频号时
- 用户说"发视频号"、"上传视频号"、"发布到微信视频号"时
- 用户有视频文件需要分发到视频号平台时
技术原理
基于 Playwright 浏览器自动化,模拟真实用户操作微信视频号创作者中心(https://channels.weixin.qq.com):
- 首次使用需微信扫码登录,保存 Cookie
- 后续使用 Cookie 自动登录
- 自动化填充标题、话题、短标题等信息
- 支持定时发布、原创声明、添加到合集
前置条件
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"]
参数说明
| 参数 | 简写 | 说明 | 必填 |
|---|---|---|---|
--video | -v | 视频文件路径 | ✅ |
--title | -t | 视频标题 | ✅ |
--tags | -g | 话题标签,逗号分隔 | ❌ |
--original | -o | 声明原创 | ❌ |
--category | -c | 原创类型(如:生活、科技) | ❌ |
--schedule | -s | 定时发布时间(格式:YYYY-MM-DD HH:MM) | ❌ |
--draft | 保存为草稿而不发布 | ❌ | |
--headless | 无头模式运行(不显示浏览器) | ❌ |
使用示例
# 立即发布
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "今天学到一个超实用的技巧" \
-g "干货分享,效率提升,学习"
# 声明原创 + 定时发布
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "周末vlog|一个人的惬意时光" \
-g "vlog,周末日常,生活记录" \
--original \
-s "2025-02-01 18:00"
# 保存为草稿
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "测试视频" \
--draft
目录结构
.opencode/skills/auto-weixin-video/
├── skill.md # 技能说明文档
├── scripts/
│ ├── get_cookie.py # 获取登录 Cookie
│ ├── check_cookie.py # 检查 Cookie 有效性
│ └── publish.py # 发布视频主脚本
└── cookies/
└── weixin_video.json # Cookie 存储文件(自动生成)
注意事项
- Cookie 有效期:微信 Cookie 有效期相对较短,建议每次使用前检查
- 发布频率:建议控制发布频率,避免被平台识别为异常行为
- 短标题:系统会自动从标题生成 6-16 字的短标题
- 话题数量:建议添加 3-5 个相关话题
- 原创声明:勾选原创需要符合平台原创规范,否则可能被处罚
- 合集:如果账号有合集,视频会自动添加到第一个合集
常见问题
Q: Cookie 失效怎么办?
A: 重新运行 get_cookie.py 扫码登录即可。
Q: 上传失败怎么办?
A: 检查网络连接,确认视频文件格式正确。视频号对 H264 编码支持最好。
Q: 如何批量发布?
A: 可以编写循环脚本,依次调用 publish.py,建议每次发布间隔几分钟。
参考项目
本技能参考了 social-auto-upload 项目的实现。
FAQ
What does the auto-weixin-video skill do?
微信视频号自动发布技能。当用户需要发布视频到微信视频号时使用这个技能。技能包含:获取登录Cookie、上传视频、设置标题话题、定时发布、原创声明等功能。
How do I install auto-weixin-video?
Run npx skills add https://github.com/zrt-ai-lab/opencode-skills --skill auto-weixin-video in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/auto-weixin-video/ (personal) or .claude/skills/auto-weixin-video/ (project).
Which AI agents can use auto-weixin-video?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is auto-weixin-video safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains auto-weixin-video?
It is published by zrt-ai-lab in zrt-ai-lab/opencode-skills. It has 198 recorded installs.
More from zrt-ai-lab/opencode-skills
auto-douyin
zrt-ai-lab/opencode-skills
抖音视频自动发布技能。当用户需要发布视频到抖音时使用这个技能。技能包含:获取登录Cookie、上传视频、设置标题话题、定时发布等功能。
videocut-clip
zrt-ai-lab/opencode-skills
执行视频剪辑。根据确认的删除任务执行FFmpeg剪辑,循环直到零口误,生成字幕。触发词:执行剪辑、开始剪、确认剪辑
videocut-self-update
zrt-ai-lab/opencode-skills
自更新 skills。记录用户反馈,更新方法论和规则。触发词:更新规则、记录反馈、改进skill
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image