douyin-video-downloader

douyin-video-downloader is a skill for Claude Code, Codex from chemny/douyin-video-downloader. It costs 94 tokens per session (2,429 once invoked), scanned A, original, MIT.

A local Node.js command-line tool for collecting and downloading public Douyin videos, cover images, direct music files, and user-page video lists. Douyin is a Chinese short-video platform; the tool records collected information in a local SQLite database.

In plain words
What is it for?
Use it to inspect video quality and cover options, download MP4s or audio, collect videos from user pages using an existing local browser login, and export the local collection as JSON or CSV.
Why use it?
It turns Douyin links and collected lists into files and structured records that can be inspected, exported, or downloaded in batches.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to inspect video quality and cover options, download MP4s or audio, collect videos from user pages using an existing local browser login, and export the local collection as JSON or CSV.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chemny/douyin-video-downloader/douyin-video-downloader
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 chemny/douyin-video-downloader --skill douyin-video-downloader
Clone the repo
git clone --depth 1 https://github.com/chemny/douyin-video-downloader

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-downloader

README.md
[![agentmods](https://agentmods.dev/badge/skills/chemny/douyin-video-downloader/douyin-video-downloader/github.svg)](https://agentmods.dev/skills/chemny/douyin-video-downloader/douyin-video-downloader)
Your own site
<a href="https://agentmods.dev/skills/chemny/douyin-video-downloader/douyin-video-downloader"><img src="https://agentmods.dev/badge/skills/chemny/douyin-video-downloader/douyin-video-downloader/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-downloader

Your own site · 80×15
<a href="https://agentmods.dev/skills/chemny/douyin-video-downloader/douyin-video-downloader"><img src="https://agentmods.dev/badge/skills/chemny/douyin-video-downloader/douyin-video-downloader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00094 $0.02429
Opus 5 $0.00047 $0.01215
Sonnet 5 $0.00019 $0.00486
Haiku 4.5 $0.00009 $0.00243

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

Security

Grade A, and why

douyin-video-downloader scanned grade A with 0 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 12d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 208 lines

How it starts

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

douyin-video-downloader Skill

本 skill 是一个本地 Node.js 抖音视频与直接音频下载工具。

功能

  • 获取抖音视频信息
  • 列出可用视频清晰度/码率候选
  • 按指定清晰度下载 MP4
  • 下载视频时同步下载封面图,默认选择中档尺寸
  • 支持单独下载封面图
  • 下载抖音音乐详情接口暴露的直接音频文件
  • 从采集库批量下载直接音频
  • 用本地 SQLite 采集库记录用户、列表页、视频、统计和音乐信息
  • 自动打开用户主页并复用本地浏览器登录态采集列表
  • 从采集库导出 JSON/CSV,或按批次下载库里的视频
  • 默认尽量使用无水印播放地址

使用方法

先确定 {SKILL_DIR} 为本 SKILL.md 所在目录。

查看视频信息、清晰度和封面候选

node {SKILL_DIR}/douyin-video.js info "抖音分享链接" --cover-size medium

下载默认清晰度

node {SKILL_DIR}/douyin-video.js download "抖音分享链接" -o ./videos

默认选择 best,即脚本能识别到的最高质量候选。

视频下载会同时下载封面图,并把视频、封面和 metadata 路径都写入 metadata JSON。

指定清晰度下载

node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --quality best -o ./videos
node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --quality 720p -o ./videos
node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --quality 0 -o ./videos

--quality 支持:

  • best:最高质量
  • lowest:最低质量
  • 720p / 1080p 这类清晰度标签
  • 数字序号:使用 info 输出中的候选序号
  • ratioformatgear_name 等候选标签的部分匹配

指定封面尺寸下载

node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --cover-size medium -o ./videos
node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --cover-size origin -o ./videos
node {SKILL_DIR}/douyin-video.js download "抖音分享链接" --cover-size 0 -o ./videos
node {SKILL_DIR}/douyin-video.js cover "抖音分享链接" --cover-size medium -o ./videos

--cover-size 支持:

  • medium:默认,中档尺寸
  • small:较小封面候选
  • large / best:按返回宽高选择较大封面
  • origin:原始封面字段
  • raw:原始/未处理封面字段
  • dynamic / animated:动态封面候选
  • gaussian / blur:模糊封面候选
  • 数字序号:使用 info 输出中的封面候选序号
  • none:不下载封面

下载直接音频

node {SKILL_DIR}/douyin-video.js audio "抖音分享链接" -o ./audios

audio 命令会先解析视频对应的 music.mid/id,再请求抖音音乐详情接口获取 music.play_url 并下载原始音频文件。没有直接音频地址时会报错,不会从 MP4 中抽取音频。

视频、封面和音频命令会合并写入同一个 metadata JSON,不会因为后执行音频而覆盖之前的视频或封面文件路径。

创建 SQLite 采集库

node {SKILL_DIR}/douyin-video.js db-init --db ./douyin_collection.sqlite

采集库包含:

  • users:用户资料
  • crawl_pages:每次列表页接口响应
  • videos:视频标题、链接、封面、时长、发布时间等
  • video_stats:点赞、评论、收藏、转发、播放、下载等统计字段
  • music:音乐 ID、标题、作者、时长、直接音频地址等
  • video_downloads:后续批量下载的成功/失败状态、文件路径和错误信息
  • media_downloads:音频等媒体文件的成功/失败状态、文件路径和错误信息

Read the full file on GitHub · 208 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. 12d ago First seen · 208 lines · 94 tokens per session scan A eea33f0610c3

Subscribe to this mod's changes

douyin-video-downloader is a skill published in the GitHub repository chemny/douyin-video-downloader (6 stars, last pushed 1mo ago), licensed MIT. It adds 94 tokens to every session and 2,429 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mission-control

Interact with Mission Control — AI agent orchestration dashboard. Use when registering agents, managing tasks, syncing skills, or querying agent/task status via MC APIs.

builderz-labs/mission-control · 34 tokens

palaia-memory

Check this person's shared memory before answering anything about their own work, and add to it when something is worth keeping. It holds their projects, decisions and reasons, house conventions (naming, commit messages, tests, releases, review and escalation), people and hard-won details, and every AI tool they use…

byte5ai/palaia · 127 tokens

palaia-messenger

Register this session with the shared directory so other AI sessions and this person's dashboard can see what you are doing, then use it to reach another live session directly instead of relaying everything through the person. Use it at the start of a task, before picking one up, when your work depends on or informs…

byte5ai/palaia · 82 tokens

palaia-capture

Save what this person tells you into their shared memory, which every AI tool they use can read. Use it the moment they state a decision and the reason for it, a convention, a correction, or a detail that was expensive to work out — including when they mention it in passing on the way to a different question. Save it…

byte5ai/palaia · 87 tokens

laohan-chuangzuo

A writing workflow for spoken-video scripts. It accepts an outline, raw text, a recording, a web-link queue, or a free-form topic, then organizes the material before writing the script.

hanzhcn/laohan-skills · 176 tokens

laohan-skillcreator

A skill-development tool for creating, reviewing, repairing, and improving Agent Skills, which are reusable instructions that guide coding agents through specialized work.

hanzhcn/laohan-skills · 87 tokens