auto-douyin

zrt-ai-lab/opencode-skills · updated May 11, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/zrt-ai-lab/opencode-skills --skill auto-douyin
0 commentsdiscussion
summary

这个技能用于自动化发布视频到抖音创作者中心。

skill.md

抖音视频自动发布技能

这个技能用于自动化发布视频到抖音创作者中心。

使用场景

  • 用户需要发布视频到抖音时
  • 用户说"发抖音"、"上传抖音"、"发布到抖音"时
  • 用户有视频文件需要分发到抖音平台时

技术原理

基于 Playwright 浏览器自动化,模拟真实用户操作抖音创作者中心(https://creator.douyin.com):

  1. 首次使用需扫码登录,保存 Cookie
  2. 后续使用 Cookie 自动登录
  3. 自动化填充标题、话题、封面等信息
  4. 支持定时发布

前置条件

1. 安装依赖

pip install playwright
playwright install chromium

2. 首次登录获取 Cookie

python .opencode/skills/auto-douyin/scripts/get_cookie.py

执行后会打开浏览器,使用抖音 APP 扫码登录,登录成功后 Cookie 会自动保存。

工作流程

第一步:确认登录状态

检查 Cookie 是否存在且有效:

python .opencode/skills/auto-douyin/scripts/check_cookie.py

如果 Cookie 失效,需要重新获取:

python .opencode/skills/auto-douyin/scripts/get_cookie.py

第二步:准备视频文件

视频文件要求:

  • 格式:.mp4(推荐)
  • 分辨率:建议 1080x1920(竖版 9:16)
  • 文件大小:建议不超过 4GB

可选:准备同名的封面图片(.png.jpg

第三步:发布视频

python .opencode/skills/auto-douyin/scripts/publish.py \
    --video "视频文件路径" \
    --title "视频标题" \
    --tags "话题1,话题2,话题3" \
    [--cover "封面图片路径"] \
    [--schedule "2025-01-31 18:00"]

参数说明

参数 简写 说明 必填
--video -v 视频文件路径
--title -t 视频标题(最多30字)
--tags -g 话题标签,逗号分隔
--cover -c 封面图片路径
--schedule -s 定时发布时间(格式:YYYY-MM-DD HH:MM)
--headless 无头模式运行(不显示浏览器)

使用示例

# 立即发布,自动生成封面
python .opencode/skills/auto-douyin/scripts/publish.py \
    -v ~/Videos/demo.mp4 \
    -t "今天学到一个超实用的技巧" \
    -g "干货分享,效率提升,学习"

# 定时发布,指定封面
python .opencode/skills/auto-douyin/scripts/publish.py \
    -v ~/Videos/demo.mp4 \
    -t "周末vlog|一个人的惬意时光" \
    -g "vlog,周末日常,生活记录" \
    -c ~/Videos/demo_cover.png \
    -s "2025-02-01 18:00"

# 无头模式(后台运行)
python .opencode/skills/auto-douyin/scripts/publish.py \
    -v ~/Videos/demo.mp4 \
    -t "测试视频" \
    --headless

目录结构

.opencode/skills/auto-douyin/
├── skill.md              # 技能说明文档
├── scripts/
│   ├── get_cookie.py     # 获取登录 Cookie
│   ├── check_cookie.py   # 检查 Cookie 有效性
│   └── publish.py        # 发布视频主脚本
└── cookies/
    └── douyin.json       # Cookie 存储文件(自动生成)

注意事项

  1. Cookie 有效期:Cookie 通常有效期较长,但如果长时间未使用或平台更新,可能需要重新登录
  2. 发布频率:建议控制发布频率,避免被平台识别为异常行为
  3. 标题限制:抖音标题最多30字,超出会自动截断
  4. 话题数量:建议添加3-5个相关话题,提高曝光
  5. 封面选择:如不指定封面,系统会自动从视频中选取推荐封面
  6. 定时发布:定时发布时间需在当前时间之后,且在平台允许的时间范围内

常见问题

Q: Cookie 失效怎么办?

A: 重新运行 get_cookie.py 扫码登录即可。

Q: 上传失败怎么办?

A: 检查网络连接,确认视频文件格式正确,查看脚本输出的错误信息。

Q: 如何批量发布?

A: 可以编写循环脚本,依次调用 publish.py,建议每次发布间隔几分钟。

参考项目

本技能参考了 social-auto-upload 项目的实现。

how to use auto-douyin

How to use auto-douyin on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add auto-douyin
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/zrt-ai-lab/opencode-skills --skill auto-douyin

The skills CLI fetches auto-douyin from GitHub repository zrt-ai-lab/opencode-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/auto-douyin

Reload or restart Cursor to activate auto-douyin. Access the skill through slash commands (e.g., /auto-douyin) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.661 reviews
  • Ganesh Mohane· Dec 24, 2024

    I recommend auto-douyin for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Naina Smith· Dec 20, 2024

    Useful defaults in auto-douyin — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Tariq Zhang· Dec 16, 2024

    Keeps context tight: auto-douyin is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Lucas Tandon· Dec 12, 2024

    We added auto-douyin from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Ama Ramirez· Dec 4, 2024

    Solid pick for teams standardizing on skills: auto-douyin is focused, and the summary matches what you get after install.

  • Kabir Khanna· Nov 23, 2024

    I recommend auto-douyin for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Sakshi Patil· Nov 15, 2024

    Solid pick for teams standardizing on skills: auto-douyin is focused, and the summary matches what you get after install.

  • Neel Ghosh· Nov 7, 2024

    auto-douyin is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Aanya Liu· Nov 7, 2024

    Registry listing for auto-douyin matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Lucas Huang· Nov 7, 2024

    Useful defaults in auto-douyin — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 61

1 / 7