Auto Weixin Video logo

Auto Weixin Video

Community
zrt-ai-lab
auto-weixin-video

微信视频号自动发布技能。当用户需要发布视频到微信视频号时使用这个技能。技能包含:获取登录Cookie、上传视频、设置标题话题、定时发布、原创声明等功能。

Overview

Publisherzrt-ai-lab
Repositoryopencode-skills
Skill nameauto-weixin-video
Stars
293
Forks
75
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zrt-ai-lab on GitHub. Read the source before you install it.

Installation

Install the Auto Weixin Video AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zrt-ai-lab/opencode-skills/tree/main/auto-weixin-video
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zrt-ai-lab/opencode-skills.git /tmp/opencode-skills
mkdir -p .claude/skills
cp -r /tmp/opencode-skills/auto-weixin-video .claude/skills/auto-weixin-video
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auto Weixin Video in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auto Weixin Video on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auto Weixin Video is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

微信视频号自动发布技能

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

使用场景

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

技术原理

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

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

前置条件

1. 安装依赖

bash
pip install playwright
playwright install chromium

2. 首次登录获取 Cookie

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

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

工作流程

第一步:确认登录状态

检查 Cookie 是否存在且有效:

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

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

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

第二步:准备视频文件

视频文件要求:

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

第三步:发布视频

bash
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无头模式运行(不显示浏览器)❌
使用示例
bash
# 立即发布
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 存储文件(自动生成)

注意事项

  1. Cookie 有效期:微信 Cookie 有效期相对较短,建议每次使用前检查
  2. 发布频率:建议控制发布频率,避免被平台识别为异常行为
  3. 短标题:系统会自动从标题生成 6-16 字的短标题
  4. 话题数量:建议添加 3-5 个相关话题
  5. 原创声明:勾选原创需要符合平台原创规范,否则可能被处罚
  6. 合集:如果账号有合集,视频会自动添加到第一个合集

常见问题

Q: Cookie 失效怎么办?

A: 重新运行 get_cookie.py 扫码登录即可。

Q: 上传失败怎么办?

A: 检查网络连接,确认视频文件格式正确。视频号对 H264 编码支持最好。

Q: 如何批量发布?

A: 可以编写循环脚本,依次调用 publish.py,建议每次发布间隔几分钟。

参考项目

本技能参考了 social-auto-upload 项目的实现。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Auto Weixin Video AI skill do?

微信视频号自动发布技能。当用户需要发布视频到微信视频号时使用这个技能。技能包含:获取登录Cookie、上传视频、设置标题话题、定时发布、原创声明等功能。

Why use Auto Weixin Video on TypingMind?

Because you install it once and use it with any model. Auto Weixin Video is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auto Weixin Video in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zrt-ai-lab/opencode-skills/tree/main/auto-weixin-video. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Auto Weixin Video?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auto Weixin Video?

As many as you like. As long as a model supports skills, you can use Auto Weixin Video with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auto Weixin Video AI skill free?

It is published on GitHub by zrt-ai-lab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇