alchaincyf avatar

Huashu Douyin Script

This is a complete workflow for reverse-engineering viral Douyin videos and turning them into production-ready scripts. It downloads competitor videos, runs them through Gemini's video analysis API to extract hook patterns and pacing formulas, then generates new scripts based on those formulas plus a library of proven conversational styles. The real value is in step 6, the compliance checker, which rewrites medical claims and time-based promises that'll get flagged by Douyin's ad审核 system. You feed it competitor links and product details, it spits out scripts for either organic seeding videos or paid Qianchuan ads. Built by a Chinese indie dev who clearly ships a lot of short-form video content and got tired of manually dissecting what makes stuff convert.

skills.sh installs
1K
GitHub stars
2.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add alchaincyf/huashu-skills --skill huashu-douyin-script --agent claude-code

Installs into .claude/skills of the current project.

Files

抖音爆款脚本创作

从竞品视频拆解到脚本生成的完整工作流。将「凭感觉模仿爆款」变成「AI系统拆解+结构化复制」。

环境要求

  • uv(Python包管理器)
  • yt-dlp(抖音视频下载,需 pip install yt-dlp 或 brew install yt-dlp)
  • GEMINI_API_KEY 环境变量(用于Gemini视频分析,从 https://aistudio.google.com/apikey 获取)
  • GEMINI_BASE_URL 环境变量(可选,自定义API端点如代理/中转,不设置则用官方端点)
  • Chrome浏览器已登录抖音(用于提取下载Cookie)

路径约定:下文中 SKILL_DIR 指本SKILL.md所在目录的绝对路径。运行脚本前,先用 dirname 或 Glob 工具确定SKILL.md的实际位置,替换 SKILL_DIR。

6步工作流

Step 1: 收集输入

向用户收集以下信息:

必填:

  • 抖音视频链接(1-5个对标/竞品视频)
  • 产品信息(名称、核心卖点、目标人群、价格)
  • 脚本类型:种草视频 or 千川投放素材

选填:

  • 产品图片(用于脚本中的视觉参考)
  • 目标时长(种草默认30秒,千川默认15秒)
  • 品牌调性要求
  • 投放目标(直播间引流/商品详情页/关注转化)

如果用户只提供了部分信息,主动询问缺失项。


Step 2: 下载视频

运行下载脚本:

uv run SKILL_DIR/scripts/download_douyin.py \
  --urls "URL1" "URL2" \
  --output-dir _temp/douyin-downloads

参数说明:

  • --urls:支持短链、页面链接、分享文本(自动提取URL)
  • --output-dir:默认当前工作目录下 _temp/douyin-downloads/
  • --cookies-browser:默认chrome,可选edge/firefox

下载失败时:

  1. 提示用户确认Chrome已登录抖音
  2. 建议手动下载视频放入 _temp/douyin-downloads/
  3. 如果有douyin-mcp-server可用,尝试通过MCP下载

Step 3: Gemini视频分析(可并行)

对每个下载成功的视频,调用 Gemini 视频分析:

Sponsors

Details

Repository
github.com/alchaincyf/huashu-skills
Category
Automation & Workflows
First seen
Jun 3, 2026

More from alchaincyf/huashu-skills

All 21
1alonw0 avatarweb-asset-generatoralonw0/web-asset-generatorGenerate web assets including favicons, app icons (PWA), and social media meta images (Open Graph) for Facebook, Twitter, WhatsApp, and LinkedIn. Use when users981skills.sh installs
2jnmetacode avatarchinese-git-workflowjnmetacode/superpowers-zh国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。979skills.sh installs
3aradotso avatarai-marketing-skills-automationaradotso/marketing-skillsai marketing skills automation976skills.sh installs
4jnmetacode avatardispatching-parallel-agentsjnmetacode/superpowers-zh当面对 2 个以上可以独立进行、无共享状态或顺序依赖的任务时使用970skills.sh installs
5aradotso avatarios-marketing-capture-automationaradotso/marketing-skillsios marketing capture automation965skills.sh installs
6jwynia avatarpdf-generatorjwynia/agent-skillsCreate and manipulate PDF files programmatically. Use when the user needs to generate PDFs, fill PDF forms, extract PDF content, add watermarks/overlays, or mer921skills.sh installs