Douyin Live Recorder logo

Douyin Live Recorder

Community
WeiZhuochun
douyin-live-recorder

抖音直播切片号矩阵内容生产 Skill。支持多直播间监控、开播自动录制、边录边传、高光识别、自动剪辑、标题生成和授权账号批量发布。用户需要配置、启动、停止或查看直播内容流水线时使用;仅处理已获授权的直播内容。

Overview

PublisherWeiZhuochun
Repositorydouyin-live-recorder
Skill namedouyin-live-recorder
Stars
261
Forks
0
Bundled files
14
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.

  • 14 bundled files

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

  • Open source

    Published by WeiZhuochun on GitHub. Read the source before you install it.

Installation

Install the Douyin Live Recorder 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/WeiZhuochun/douyin-live-recorder/tree/main
  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/WeiZhuochun/douyin-live-recorder.git \
  .claude/skills/douyin-live-recorder
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Douyin Live Recorder 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 Douyin Live Recorder 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 Douyin Live Recorder 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.

抖音直播切片号矩阵内容生产 Skill

多直播间监控 → 开播自动录制 → 边录边传 → 高光识别 → 自动剪辑 → 标题生成 → 多账号发布。 适用场景:将已授权直播内容加工为切片号矩阵的持续素材供给。

架构概览

monitor.sh(主守护进程)
  ├── 每 60 秒轮询所有目标直播间
  ├── 检测到开播 → 启动 record_room.sh(后台)
  │                  └── ffmpeg 分片录制(每 10 分钟一个 clip)
  │                       └── 启动 watch_upload.sh(后台)
  │                              └── 分片完成即上传网盘
  └── 检测到下播 → 上传末尾分片 → content_pipeline.py
                                      ├── 高光候选排序
                                      ├── 竖屏自动剪辑
                                      ├── 标题/元数据生成
                                      └── 多账号发布适配器

目录结构

~/douyin_archive/
├── recordings/<session_tag>/      # 录制分片
│   ├── clip_000.mp4
│   ├── clip_001.mp4
│   ├── .uploaded/                 # 已上传标记
│   └── highlights/                # 成片、元数据与发布台账
├── logs/
│   ├── monitor.log
│   └── <room_id>.log
└── state/
    ├── monitor.pid
    ├── <room_id>.pid              # 录制进程 PID
    └── <room_id>.session          # 当前会话信息

~/.claude/skills/douyin-live-recorder/config/
├── rooms.json                     # 监控房间配置
├── pipeline.json                  # 高光、剪辑、标题与发布策略
└── accounts.json                  # 本地账号适配器,不提交仓库

触发规则

满足以下任一条件即执行:

  • 用户提及"启动监控"、"开始录制"、"无人值守"
  • 用户提及"添加直播间"、"配置房间"
  • 用户提及"查看录制状态"、"录制进度"
  • 用户提及"停止监控"、"停止录制"
  • 用户提及"高光识别"、"自动剪辑"、"标题生成"、"矩阵发布"

核心操作

1. 配置监控房间

编辑 ~/.claude/skills/douyin-live-recorder/config/rooms.json,添加目标直播间:

json
{
  "rooms": [
    {"douyin_id": "直播间ID_1", "name": "主播A", "enabled": true},
    {"douyin_id": "直播间ID_2", "name": "主播B", "enabled": true}
  ],
  "segment_seconds": 600,
  "check_interval": 60,
  "netdisk_base": "直播归档"
}

2. 启动无人值守监控

bash
bash ~/.claude/skills/douyin-live-recorder/scripts/monitor.sh start
  • 后台运行,关闭终端不受影响
  • 日志写入 ~/douyin_archive/logs/monitor.log

3. 查看录制状态

bash
bash ~/.claude/skills/douyin-live-recorder/scripts/status.sh

输出当前正在录制的房间、分片上传、高光生成与矩阵发布进度。

4. 停止监控

bash
bash ~/.claude/skills/douyin-live-recorder/scripts/monitor.sh stop

停止监控守护进程,不中断正在进行的录制。 如需同时停止所有录制:

bash
bash ~/.claude/skills/douyin-live-recorder/scripts/monitor.sh stopall

5. 运行内容生产流水线

录制结束后自动执行。手动补跑或预演发布时:

bash
python3 ~/.claude/skills/douyin-live-recorder/scripts/content_pipeline.py \
  --session-dir ~/douyin_archive/recordings/<session> \
  --session-tag <session> --streamer <主播> \
  --config ~/.claude/skills/douyin-live-recorder/config/pipeline.json \
  --publish --dry-run

发布属于外部操作。先检查生成的视频、标题和账号映射,得到用户明确确认后才能移除 --dry-run。账号密钥只能通过环境变量注入。


工作流:开播到归档完整链路

monitor.sh 检测到开播
  ↓
record_room.sh 启动
  ├── streamlink 拉取直播流
  └── ffmpeg -f segment 每 600 秒切一个分片
        ↓(分片写完)
watch_upload.sh 检测到新完整分片
  ├── bdpan whoami(确认登录)
  ├── bdpan mkdir 直播归档/<YYYYMM>/<session_tag>/raw
  ├── bdpan upload <本地分片> <远端路径含文件名>
  └── 写入 .uploaded/<分片名> 标记
        ↓(主播下播,ffmpeg 退出)
record_room.sh 退出前上传最后一片
  ↓(watch_upload.sh 清理退出)
content_pipeline.py 识别高光并生成竖屏切片
  ↓
生成标题和元数据 → 发布适配器分发至已授权账号
  ↓
记录 publish-ledger.jsonl 发布台账

与 bdpan-storage Skill 的协作

上传操作遵循 bdpan-storage Skill 所有规范:

  • 命令使用 API 路径,展示时使用"我的应用数据/bdpan/..."
  • 执行前先 bdpan whoami 确认登录
  • 网盘路径规则:直播归档/<YYYYMM>/<session_tag>/raw/<文件名>
  • 远端路径必须含文件名

注意事项

  • 分片上传(bdpan upload)为免费功能;分享链接生成需 SVIP
  • 建议 segment_seconds 设为 600(10 分钟),过短影响上传效率
  • 本 Skill 不录制直播弹幕
  • 仅处理已获得主播或版权方授权的直播内容
  • 默认关闭真实发布;启用前必须配置本地账号文件并完成预演

参考文档

文档何时查阅
setup.md首次配置环境
troubleshooting.md录制/上传失败排查
content-pipeline.md配置高光、标题和多账号发布

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 Douyin Live Recorder AI skill do?

抖音直播切片号矩阵内容生产 Skill。支持多直播间监控、开播自动录制、边录边传、高光识别、自动剪辑、标题生成和授权账号批量发布。用户需要配置、启动、停止或查看直播内容流水线时使用;仅处理已获授权的直播内容。

Why use Douyin Live Recorder on TypingMind?

Because you install it once and use it with any model. Douyin Live Recorder 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 Douyin Live Recorder in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/WeiZhuochun/douyin-live-recorder/tree/main. 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 Douyin Live Recorder?

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 Douyin Live Recorder?

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

Is the Douyin Live Recorder AI skill free?

It is published on GitHub by WeiZhuochun. 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 👇