douyin-video-transcribe

douyin-video-transcribe is a skill for Claude Code, Codex from liusencomic-cyber/douyin-agent-kit. It costs 68 tokens per session (8,336 once invoked), scanned C, original, MIT.

A workflow for turning Douyin videos or image posts into text, summaries, intent judgments, and archived notes. Douyin is a Chinese social-media platform for short videos and image posts.

In plain words
What is it for?
Use it to download Douyin content, transcribe audio, extract visible text with OCR, summarize posts, classify their intent, and send the results to Obsidian or Todo.
Why use it?
It removes the manual work of downloading posts, transcribing speech, reading text in images, summarizing content, and deciding where to save it.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Good fit Use it to download Douyin content, transcribe audio, extract visible text with OCR, summarize posts, classify their intent, and send the results to Obsidian or Todo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/liusencomic-cyber/douyin-agent-kit/video-transcribe
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add liusencomic-cyber/douyin-agent-kit --skill video-transcribe
Clone the repo
git clone --depth 1 https://github.com/liusencomic-cyber/douyin-agent-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for douyin-video-transcribe

README.md
[![agentmods](https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe/github.svg)](https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe)
Your own site
<a href="https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe"><img src="https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for douyin-video-transcribe

Your own site · 80×15
<a href="https://agentmods.dev/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe"><img src="https://agentmods.dev/badge/skills/liusencomic-cyber/douyin-agent-kit/video-transcribe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.08336
Opus 5 $0.00034 $0.04168
Sonnet 5 $0.00014 $0.01667
Haiku 4.5 $0.00007 $0.00834

Measured 10d ago against content hash d4bff768890e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

douyin-video-transcribe scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/douyin_download.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/douyin_note_imgs/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -L -o /dev/null -w "%{url_effective}" "https://v.douyin.com/XXXX/"
skills/video-transcribe/SKILL.md · 389 lines

How it starts

The opening of the file, as written. The whole thing — 389 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent 无关声明:本技能与具体 Agent 解耦,可在 Hermes / OpenClaw / WorkBuddy / Claude Code / Codex / 任意本地 Agent 上运行。文中提到的 vision_analyze 等工具名 仅为示例:如你的 Agent 无此能力,请按 agents/adapter-contract.md 适配,视觉/OCR 走 douyin_agent_kit.config.yamlvision.ocr_provider / vision.fallback_ocr。 各 Agent 接入方式见 agents/<你的agent>.md(设置向导生成的 AGENT_SETUP.md 会指向对应文档)。

抖音内容提取与智能归档

将抖音视频/图文 → 提取文字 → 归纳总结 → 判断意图 → 自动执行后续动作。

脚本速查:下载统一用 scripts/douyin_download.py(Scrapling 版,视频+图文双类型,直连→DynamicFetcher→StealthyFetcher 自动降级)。必须用安装了 scrapling 的 Python 运行(系统 Python 可能无 scrapling,需 pip install scrapling)。

环境依赖

环节 工具 说明
浏览器自动化 Scrapling DynamicFetcher/StealthyFetcher 访问抖音页面,获取cookie、视频URL、图片
下载视频/图片 页面内fetch() 利用浏览器cookie绕过防盗链
提取音频 ffmpeg 提取音频轨为 wav
语音转文字 whisper (homebrew) turbo 模型,首次下载 ~1.5GB
视频截帧 ffmpeg 每3秒截一帧用于画面OCR
视频画面OCR 视觉模型 (vision_analyze) 识别店铺招牌、店名、路标、字幕标注
图片OCR 视觉模型 (vision_analyze) 识别图文作品中的文字
归纳总结 LLM 基于原文生成结构化总结
意图判断 LLM 分析内容类型,决定后续动作
归档 Obsidian / Todo 根据意图写入对应位置

工作流程总览

用户发链接 → 解析短链 → 判断类型(视频/图文)
  ├─ 视频: douyin_download.py下载 → whisper转录 + 截帧OCR
  └─ 图文: douyin_download.py下载 → 页面文字 + 图片OCR
→ 合并文字 → LLM归纳总结 → **在聊天中展示完整结果**
  ├─ 工具类/策略类 → 意图判断 → 归档/待办
  └─ 知识/方法论类 → **深度分析(理论映射)** → 展示分析 → 归档

Step 0: Playwright 启动(图文和视频共用)

douyin_download.py 基于 Scrapling 已内置浏览器启动逻辑。若需手动写 Playwright 脚本:

  • Playwright 1.59+ 默认用 chromium_headless_shell,安装可能不完整。必须先用 find_chromium() 探测实际路径(~/Library/Caches/ms-playwright/Google Chrome for Testing.appChromium.app),通过 executable_path 参数启动。
  • 不要浪费时间 playwright install(经常超时)。若 executable_path 不存在,可创建符号链接指向已装 Chrome,但优先 executable_path。
  • 详见 references/playwright-chromium-path.md

Step 1: 解析链接 & 判断类型

短链格式 v.douyin.com/XXXX 先解析重定向获取真实URL:

curl -s -L -o /dev/null -w "%{url_effective}" "https://v.douyin.com/XXXX/"

根据URL路径判断类型:

  • /video/<ID> → 视频类型
  • /note/<ID> → 图文作品
  • 其他路径 → 按视频流程处理

Read the full file on GitHub · 389 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 389 lines · 68 tokens per session scan C d4bff768890e

Subscribe to this mod's changes

douyin-video-transcribe is a skill published in the GitHub repository liusencomic-cyber/douyin-agent-kit (2 stars, last pushed 10d ago), licensed MIT. It adds 68 tokens to every session and 8,336 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.