/agi-super-team:douyin-smart-publishfrom agi-super-team
Automates Douyin (TikTok China) creator platform publishing: content upload, description/topic filling, cover selection, draft saving with safety screenshots. Defaults to draft-only; requires explicit confirmation to publish. Uses Playwright.
Ships in agi-super-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
📋 发布前请确认内容合规:
~/clawd/projects/MediaClaw/references/platforms/douyin.md(社区公约11大类违规、AIGC标识、账号健康分)
每次发布前必须验证以下所有项目,缺一不可:
# 1. 浏览器连接测试
curl -s http://127.0.0.1:18800/json/version | grep -q webkit && echo "✅ Browser OK" || echo "❌ Browser Down"
# 2. 登录态验证
python3 scripts/publish.py doctor --no-headless \
--url "https://creator.douyin.com/creator-micro/content/upload?default-tab=3" \
--screenshot /tmp/douyin_preflight.png
# 3. 文件验证
ls -lh "$VIDEO_OR_IMAGE_FILE"
检查清单:
在每个按钮点击前必须截图当前状态:
打开上传页 → [截图#1: 页面加载] → 上传文件 → [截图#2: 文件上传完成]
→ 填描述 → [截图#3: 描述已填] → 设置封面 → [截图#4: 封面已选]
→ 填话题 → [截图#5: 话题已填] → 点击存草稿 → [截图#6: 草稿确认]
截图命名:/tmp/douyin_safety_{N}_{step_name}_{timestamp}.png
3次失败即停止:
| 失败点 | 失败次数 | 行为 |
|---|---|---|
| 文件上传 | ≥3次失败 | 停止,截图,报告 |
| 描述填充 | ≥3次失败 | 停止,截图,报告 |
| 按钮点击 | ≥2次失败 | 停止,截图,报告 |
| 登录验证 | 失败 | 停止,提示重新登录 |
停止后操作:
/tmp/douyin_safety/如果发布流程中断:
https://creator.douyin.com/creator-micro/content/managels /tmp/douyin_safety/*.png--mode draft,绝不自动切换到 --mode publish已知变体(抖音 UI 经常变化):
| 文案 | 出现场景 | 对应 selector |
|---|---|---|
存草稿 | 视频上传页 | button:has-text('存草稿') |
暂存离开 | 图文上传页 | button:has-text('暂存离开') |
草稿 | 部分版本 | button:has-text('草稿') |
脚本已覆盖所有变体:button:has-text('存草稿'), button:has-text('草稿'), button:has-text('暂存离开')
| 类型 | URL参数 | 说明 |
|---|---|---|
| 视频 | default-tab=1(默认) | 短视频/长视频 |
| 图文 | default-tab=3 | 图片轮播+描述 |
| 全景视频 | default-tab=3(全景) | VR视频 |
| 文章 | default-tab=4 | 长文(≤8000字+30图) |
| 项 | 规则 |
|---|---|
| 时长 | 15秒-60分钟(≥15分钟需粉丝≥1000) |
| 格式 | MP4, WebM(推荐MP4 H.264) |
| 分辨率 | ≥720×1280,推荐1080×1920,最高4K |
| 帧率 | ≤60fps,推荐30fps |
| 大小 | ≤16GB |
| 画幅 | 9:16竖屏(最优) / 16:9横屏 / 3:4 / 4:3 |
| 项 | 规则 |
|---|---|
| 图片数量 | 2-35张 |
| 格式 | JPG, JPEG, PNG, WebP(不支持GIF) |
| 大小 | 单张≤50MB |
| 比例 | 推荐3:4或4:3,不建议超过1:2 |
| 项 | 规则 |
|---|---|
| 标题 | ≤55字(实测,超出截断显示) |
| 描述 | 建议≤200字(含话题标签) |
| 话题 | #话题名 格式,3-5个,精准在前泛在后 |
| @提及 | @用户名 增加互动 |
| POI定位 | 可添加位置(本地推荐加权) |
| emoji | 适度使用,每2-3句1个 |
| 项 | 规则 |
|---|---|
| 视频封面 | 从视频帧选取 或 自定义上传(1080×1920) |
| 图文封面 | 从已上传图片中选择 |
| 推荐 | 竖版9:16,清晰大字,对比色 |
将内容转化为抖音格式时:
核心卖点/痛点句 emoji
补充说明(1-2句)
#精准话题1 #精准话题2 #泛话题3
--mode publish。需要接管/风控/停手规则:见
references/handoff-and-human-trace.md
这份 skill 已经在真实抖音创作者后台完成过一次完整图文草稿测试,链路如下:
storage_state 登录态进入创作者后台这次实战得到的关键经验:
creator-micro/* 下,页面仍可能是扫码登录态;要同时检查页面文案/二维码区。存草稿,而是 暂存离开。inp 6ut[type=file],在授权成功后可直接上传;之前 count=0 的根因是登录页,不是上传能力缺失。推荐排查顺序:
input[type=file] 是否存在发布 / 暂存离开 还是其他变体1. 打开 creator.douyin.com/creator-micro/content/upload
2. 上传视频文件 (拖拽或点击)
3. 等待上传+转码完成
4. 选择/上传封面
5. 填写描述 + #话题 + @提及
6. 🎵 选择BGM(从推荐/热门中选取适合作品氛围的音乐)
7. 设置:可见性(公开/好友/私密)、合拍、下载
8. 可选:定时发布(最远10天)、POI定位
9. 点击 [发布] 或 [存草稿]
1. 打开 creator.douyin.com/creator-micro/content/upload?default-tab=3
2. 上传图片 (2-35张,拖拽排序)
3. 选择封面图
4. 填写描述 + #话题
5. 设置发布选项
6. [发布] 或 [存草稿]
# 0) 冒烟检查(不上传,只打开页面+截图+输出关键信号)
python scripts/publish.py doctor --no-headless \
--screenshot /tmp/douyin_doctor.png
# 1) 从 daily-content 产物直接发布到草稿箱(推荐,SOP直连)
# - 支持 md/txt 两种格式:
# /home/aa/clawd/docs/daily-content/YYYY-MM-DD/douyin/douyin-content-YYYY-MM-DD.md
# /home/aa/clawd/docs/daily-content/YYYY-MM-DD/douyin/douyin-3posts-YYYY-MM-DD.txt
# - pick=1/2/3 选择第几条
# - 默认 mode=draft(只存草稿)
python scripts/publish.py daily \
--source "/home/aa/clawd/docs/daily-content/2026-03-24/douyin/douyin-content-2026-03-24.md" \
--pick 1 \
--type image \
--files "/path/to/img1.jpg,/path/to/img2.jpg" \
--mode draft
# 2) 视频发布(草稿模式)
python scripts/publish.py video \
--file "/path/to/video.mp4" \
--title "可选标题(≤55字)" \
--desc "描述文字 #话题1 #话题2" \
--cover "/path/to/cover.jpg" \
--mode draft
# 3) 图文发布
python scripts/publish.py image \
--files "/path/to/img1.jpg,/path/to/img2.jpg" \
--title "可选标题(≤55字)" \
--desc "图文描述 #话题1" \
--mode draft
# 4) 定时发布(⚠️仅在 Daniel 明确确认后使用 publish)
python scripts/publish.py daily \
--source "/home/aa/clawd/docs/daily-content/2026-03-25/douyin/douyin-3posts-2026-03-25.txt" \
--pick 2 \
--type video \
--file "/path/to/video.mp4" \
--schedule "2026-03-27 21:30" \
--mode publish
| 元素 | 定位策略 | 说明 |
|---|---|---|
| 上传区域 | input[type="file"] / button:has-text("上传视频") | 文件上传;先确认已登录,未登录时可能为 0 |
| 描述输入 | [class*="desc"] [contenteditable] / textarea / [placeholder*="添加作品描述"] | 描述编辑区 |
| 话题输入 | 描述区中输入 # 触发话题搜索 | 话题弹窗选择 |
| 封面选择 | [class*="cover"] / 封面编辑弹窗 | 视频帧或自定义 |
| 音乐选择 | 添加音乐 按钮 / 音乐搜索面板 | 从推荐/热门中选择BGM |
| 发布按钮 | button:has-text("发布") | 发布确认 |
| 草稿按钮 | button:has-text("存草稿") / button:has-text("暂存离开") | 当前实测图文页常见为 暂存离开 |
| 定时开关 | [class*="schedule"] / 时间选择器 | 定时发布 |
| 可见性 | [class*="permission"] / radio按钮 | 公开/好友/私密 |
| 图片排序 | 拖拽操作 | 调整图片顺序 |
注意:抖音使用React + CSS Modules,class名含hash前缀,优先用文本匹配(
has-text)或placeholder定位。
| 时段 | 推荐度 | 说明 |
|---|---|---|
| 7:00-9:00 | ⭐⭐⭐ | 早通勤 |
| 11:30-13:00 | ⭐⭐⭐ | 午休 |
| 17:30-19:00 | ⭐⭐⭐ | 下班通勤 |
| 20:00-22:00 | ⭐⭐⭐⭐⭐ | 晚间黄金档 |
| 22:00-00:00 | ⭐⭐⭐⭐ | 睡前 |
| 错误 | 处理 |
|---|---|
| 登录过期 | 提示扫码,--headless false |
| 滑块验证 | 暂停等待手动完成 |
| 上传超时 | 重试3次,指数退避(10s/30s/90s) |
| 转码失败 | 检查格式/分辨率,降级重传 |
| 描述过长 | 截断到200字并警告 |
| 频率限制 | 建议每天≤3条,间隔≥30分钟 |
daily 模式:已核对 pick 对应的是正确那条内容douyin-smart-publish/
├── SKILL.md
├── scripts/
│ └── publish.py # Playwright 自动发布脚本
├── references/
│ └── platform-rules.md # 完整平台规则
└── templates/
└── desc-template.md # 描述/话题排版模板
在填写完描述后、存草稿前执行。
1. 在发布页面找到"添加音乐"按钮(通常在描述区下方)
2. 点击打开音乐选择面板
3. 切换到"推荐"或"热门"标签页
4. 搜索与作品内容匹配的音乐(搜索关键词参考下方匹配表)
5. 试听前10秒,判断节奏和氛围是否贴合
6. 选择合适音乐 → 点击"使用"
# 找到并点击"添加音乐"按钮
browser(action="act", kind="evaluate", targetId=编辑页targetId, fn="""
() => {
const btns = document.querySelectorAll('button, div, span');
for (const btn of btns) {
const text = btn.textContent.trim();
if (text === '添加音乐' || text === '选择音乐' || text.includes('音乐')) {
if (btn.offsetParent !== null) {
btn.click();
return 'clicked: ' + text;
}
}
}
return 'not found';
}
""")
# 等待音乐面板加载
browser(action="act", kind="wait", timeMs=2000)
# 切换到"推荐"或"热门"标签
browser(action="act", kind="evaluate", targetId=编辑页targetId, fn="""
() => {
const tabs = document.querySelectorAll('div, span, button');
for (const tab of tabs) {
const text = tab.textContent.trim();
if ((text === '推荐' || text === '热门') && tab.offsetParent !== null) {
tab.click();
return 'switched to: ' + text;
}
}
return 'not found';
}
""")
# 搜索匹配音乐(根据内容主题)
browser(action="act", kind="evaluate", targetId=编辑页targetId, fn="""
() => {
const input = document.querySelector('input[placeholder*="搜索音乐"]');
if (input) {
input.value = '{搜索关键词}';
input.dispatchEvent(new Event('input', { bubbles: true }));
return 'searched';
}
return 'search input not found';
}
""")
| 内容类型 | 推荐搜索关键词 | 风格方向 |
|---|---|---|
| AI/科技 | "科技感" "电子" "赛博朋克" | 节奏感强、未来感 |
| 编程/技术 | "轻音乐" "lofi" "学习" | 舒适、不干扰 |
| 行业分析 | "商务" "沉稳" "大气" | 专业、可信 |
| 对比评测 | "节奏" "悬念" "动感" | 起伏感、吸引注意力 |
| 工具推荐 | "轻快" "活力" "阳光" | 积极、轻快 |
| 深度解读 | "史诗" "电影感" "沉浸" | 大气、有层次 |
优先级:
1. 推荐列表前5首中找风格匹配的 → 直接使用
2. 热门榜前10首中找风格匹配的 → 直接使用
3. 搜索关键词后选播放量最高的 → 使用
4. 都不合适 → 跳过音乐选择(不强制)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aaaaqwq/agi-super-team --plugin agi-super-team869 skills in this plugin
/5minbtcBTC 5分钟K线实时方向预测 + 币安预测市场错价套利(paper)。v6.0 真OFI驱动: 方向由当前K线原生 in-candle OFI 净流一票决定(ofi_n=2*(tb/v)-1, REST klines[9] 聚合, 零WS依赖; WS ofi.json 做新鲜度反转保护与交叉校准), 概率=P(close>open|ofi) 经验校准表+Bayesian shrink, edge=EV=p−ask 错价检测, 方向二选一无中性。13因子自v5.9起收敛到3个有证据信号且不再决定bias。黑天鹅防护: ATR spike+FNG<25。launchd 常驻 realtime/watch/trader。⚠️ Binance 端点**人工**双向切换(引擎为单端点硬依赖,无自动故障切换;2026-09-11 曾因 data-api SSL 失败静默断档 6h)。/sales-enablementWhen the user wants to create sales collateral, pitch decks, one-pagers, objection handling docs, or demo scripts. Also use when the user mentions 'sales deck,' 'pitch deck,' 'one-pager,' 'leave-behind,' 'objection handling,' 'deal-specific ROI analysis,' 'demo script,' 'talk track,' 'sales playbook,' 'proposal template,' 'buyer persona card,' 'help my sales team,' 'sales materials,' or 'what should I give my sales reps.' Use this for any document or asset that helps a sales team close deals. For competitor comparison pages and battle cards, see competitor-alternatives. For marketing website copy, see copywriting. For cold outreach emails, see cold-email./accessibility-compliance-accessibility-auditYou are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.Other plugins' skills for the same job