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.
npx skills add MarecGents/marec-agent-skills --skill douyin-downloadergit clone --depth 1 https://github.com/MarecGents/marec-agent-skillsWrote 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.
[](https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader)<a href="https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader"><img src="https://agentmods.dev/badge/skills/marecgents/marec-agent-skills/douyin-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.
<a href="https://agentmods.dev/skills/marecgents/marec-agent-skills/douyin-downloader"><img src="https://agentmods.dev/badge/skills/marecgents/marec-agent-skills/douyin-downloader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00127 | $0.00840 |
| Opus 5 | $0.00063 | $0.00420 |
| Sonnet 5 | $0.00025 | $0.00168 |
| Haiku 4.5 | $0.00013 | $0.00084 |
Grade A, and why
douyin-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.
What it actually says
抖音视频下载
从抖音分享链接下载无水印原视频。通过解析抖音移动端分享页面的 window._ROUTER_DATA 提取视频直链,无需 cookies、无需登录、无需第三方 API。
脚本位置
- 主脚本:
scripts/douyin_dl.py - 运行依赖: Python 3 +
requests库
安装依赖
pip install requests
使用方法
python scripts/douyin_dl.py "<抖音链接>"
# 指定输出文件名
python scripts/douyin_dl.py "https://v.douyin.com/dl1KJ_7jHuM/" -o 我的视频.mp4
支持链接格式
https://v.douyin.com/xxxxx/— 短链接(推荐)https://www.douyin.com/video/xxxxx— 网页版链接https://www.iesdouyin.com/share/video/xxxxx/— 国际版链接
工作原理
- 解析链接:跟随短链接重定向,提取
video_id - 获取信息:用移动端 UA 请求
iesdouyin.com/share/video/{id}/ - 提取数据:从 HTML 中提取
window._ROUTER_DATAJSON(花括号配对解析) - 获取直链:从
loaderData → video_(id)/page → videoInfoRes → item_list[0] → video → play_addr → url_list获取视频直链 - 下载:以平台返回的最高原画质下载无水印视频,保存为
douyin_{video_id}.mp4
输出说明
- 格式: MP4,原画质(最高 4K,取决于平台返回),无水印
- 大小: 原画质视频通常 200-500 MB
- 文件位置: 当前工作目录或
-o指定路径
如果脚本失效(调试指南)
抖音可能更新页面结构导致提取失败。调试步骤:
- 用 iPhone UA 手动访问
https://www.iesdouyin.com/share/video/{video_id}/ - 在页面源码中搜索
_ROUTER_DATA - 追踪新的 JSON 路径找到
url_list - 更新
douyin_dl.py中的提取路径
限制
- 仅支持公开视频(私密/已删除的视频无法下载)
- 抖音 API 可能更新导致数据结构变化,届时需适配
_ROUTER_DATA路径 - 如需小文件,可在脚本
get_download_url中优先从url_list选取较低分辨率的地址(若平台返回),或后续版本增加清晰度参数
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 70 lines · 127 tokens per session scan A 338ca4b26de2
douyin-downloader is a skill published in the GitHub repository MarecGents/marec-agent-skills (3 stars, last pushed 14d ago), licensed MIT. It adds 127 tokens to every session and 840 once invoked, about $0.0006 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.
Other skills, from other repositories
fabric-fusion
Multi-model deliberation. Two to 8 distinct models answer in parallel with web-capable tools, then a judge compares consensus, contradictions, coverage gaps, unique insights, and blind spots. Act mode runs 1–4 read-only references, then one actor reconciles and executes. Use when the cost of being wrong justifies…
fabric-rlm
Recursively decomposes oversized tasks into bounded child Pi agents with fresh context windows. Use for whole-repo audits, massive-context analysis, and multi-file refactors that do not fit one context.
fabric-exec
Python-only troubleshooting and advanced host API reference for fabricexec. Routine pi. coding calls are documented by ambient guidance; load this skill only after an argument-shape error or when an advanced surface needs exact contracts.
fabric-schema
Uses Fabric's typed Schema evidence loop and, when enabled, its bounded local-file transaction channel. Use when surprise must void a plan and mutation claims need explicit postconditions.
fabric-workflow
Runs a dynamic Pi Fabric workflow with code-held phases, fan-out, pipelines, structured agents, and best-effort verification. Use for large audits, migrations, parallel research, or explicit workflow requests.
fabric-ambient
Creates a persistent Pi Fabric supervisor or advisor profile. Use for ambient supervision, ongoing peer review, an advisor, or a goal watcher without another extension.