Skip to content
Back to skills

Dy Publish

ASecurity

抖音安全投稿流与自动挂起 T+3/T+7 追踪。发布前运行 dy_preflight.py 检查本地视频画幅/大小、 封面尺寸、文案字数/话题/错别字、凌晨发布时段与重复标题;向用户展示完整投稿方案并取得明确确认后, 依次安全执行封面上传、视频上传与投稿发布,并自动登记待复盘队列。触发词:"发布视频"、"帮我投稿抖音"、 "上传抖音"、"dy publish"、"dy-publish"。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentspythonshell

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add Wizane630/douyin-creator-open-cli-skills --skill dy-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dy Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dy Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wizane630-dy-publish/badge)](https://www.skillsdirectory.com/skills/wizane630-dy-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dy-publish
description: >-
  抖音安全投稿流与自动挂起 T+3/T+7 追踪。发布前运行 dy_preflight.py 检查本地视频画幅/大小、
  封面尺寸、文案字数/话题/错别字、凌晨发布时段与重复标题;向用户展示完整投稿方案并取得明确确认后,
  依次安全执行封面上传、视频上传与投稿发布,并自动登记待复盘队列。触发词:"发布视频"、"帮我投稿抖音"、
  "上传抖音"、"dy publish"、"dy-publish"。
---

# /dy-publish — 安全预检投稿与自动追踪登记

把一切“传完才发现是横屏/发错时段/标题错别字”的低级损失,全数挡在按下发布之前。

## 资源路径说明

优先读取当前 Skill 目录下 `scripts/`、`references/`;开发态回退 `../../scripts/`、`../../shared-references/`。
执行前必读 `preflight-checklist.md` 与 `cli-bridge.md`。

## 铁律

1. **确认前零写入**:用户确认完整方案前,**严禁提前执行** `video upload-image`、`video upload` 或 `video publish`。
2. **必须展示完整可确认信息**:目标授权账号昵称、本地视频文件名与大小、可核验分辨率/画幅(无法核验须明示)、封面图(如有)、最终完整文案与话题、可见范围(`private_status`: 0公开/1仅自己/2好友)、排重与时段警告。
3. **幂等与断点保留**:若封面或视频已上传成功但 `video publish` 失败,保留已取得的 `image_id` / `video_id`,**不要重复上传**;遇到超时或 `WRITE_OUTCOME_UNKNOWN` 先用 `video list` 核实,禁止自动重发投稿。
4. **变更必重审**:一旦修改文件、标题、封面或可见范围,必须重新向用户展示并确认。

## 执行流程

### Step 1 — 核实账号与本地素材预检

1. 核对授权账号:
   ```powershell
   python scripts/dy_collect.py check
   ```
2. 执行技术与文案联合预检:
   ```powershell
   python scripts/dy_preflight.py --video "<VIDEO_PATH>" --cover "<COVER_PATH_IF_ANY>" --title "<FINAL_TEXT>" --state ".douyin-ops/state.json"
   ```
3. 若 `passed: false`(存在 `blockers`),立即停止并给出修复建议;若存在 `warnings`(如横屏、凌晨时段、主标题过长、错别字或标题相似),高亮列出。

### Step 2 — 展示完整投稿确认单

向用户呈现结构化确认单(含账号昵称、视频文件/大小/画幅、封面图、完整文案、可见范围、关联的盲测预测单路径、`preflight` 警告清单),最后明确询问:
**“确认按以上方案投稿吗?(如需先设为仅自己可见,请告诉我)”**

### Step 3 — 确认后分步安全提交

用户明确确认后(注意多字段 JSON 需写为无 BOM UTF-8 文件传 `--data @publish.json`):
1. 若有自定义封面:执行 `douyin-open-cli video upload-image --file "<COVER_PATH>" --yes`,提取真实 `image_id`。
2. 执行 `douyin-open-cli video upload --file "<VIDEO_PATH>" --yes`,提取加密 `video_id`(媒体 ID,非作品 ID)。
3. 组装无 BOM UTF-8 的 `publish.json`(含 `video_id`、`text`、`private_status`,可选 `custom_cover_image_url` 或 `cover_tsp`、`publish_way: 0`),执行:
   ```powershell
   douyin-open-cli video publish --data "@.douyin-ops/cache/publish.json" --yes
   ```
4. 仅当接口明确成功时汇报“运行成功,投稿已提交”及实际返回的作品 ID;清理敏感缓存前先完成 Step 4。

### Step 4 — 自动登记 T+3 / T+7 追踪队列

更新 `.douyin-ops/state.json`:
- 将本条作品写入 `recent_publishes` 与 `tracking_queue`(记录 `video_id`、`title`、`published_at`、关联 `prediction_file`、`due_t3 = +3天`、`due_t7 = +7天`、`status: "pending_t3"`);若关联了 `predictions/*.md`,把其 frontmatter 的 `video_id` 补全并改 `status: "published"`(**不改任何预测分数**)。
- 提示用户 3 天后说 **「复盘刚发的视频」**(`dy-retro`)即可自动校准。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.