DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

Sean-068 /

Sean-068/dsh-douyin-analyzer

Verified

DeepSeek Harness plugin for local Douyin video and script audits

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@efdeb4b1

DSH 抖音作品分析助手

DeepSeek Harness 的 Cordis 插件。分析工作区里的 MP4 / MOV 或尚未拍摄的口播稿,保存发布前评分和逐秒整改报告。用户主动表达投流意愿或提供正数预算时,报告才会评估付费测试。插件使用 MIT 许可。

安装与使用

插件要求 Node.js 22+。DSH 本身的运行要求随版本而异,例如 @deepseek-ai/dsh@0.2.2-rc.5 要求 Node.js 24.9+。通过 dsh plugin add 安装时,确保 pnpm 在 PATH 中。视频分析还需要 DSH 进程可找到 ffmpeg 和 ffprobe,安装后重启 DSH。参考 FFmpeg 下载页。

在源码目录运行以下命令以安装到 Web profile。若已取得 .tgz,可将 . 换成压缩包的绝对路径。

dsh plugin --profile web add .
dsh --profile web --dump-config
dsh --profile web

Web 也可以从侧栏的「插件 → 添加插件」选择或填写安装包的绝对路径。官方 Desktop 同样可在插件面板安装。使用命令行时,先启动一次 Desktop 初始化配置并完全退出,再使用 Desktop 随附的 dsh 执行 dsh plugin --profile desktop add <安装包绝对路径>,随后重新打开 Desktop。Windows 随附命令位于 Desktop 安装目录的 resources/runtime/cli/bin/dsh.cmd。[官方 Desktop 指南]

在 Web 或 Desktop 中打开本地项目,把视频放入会话工作区,或使用当前 DSH 版本的文件附件入口上传 MP4 / MOV。对于宿主管理的附件,插件根据当前会话中由用户发送的文件引用读取视频,在工作区临时暂存并在分析结束时清理。然后在对话中选择 /douyin-analyzer 或直接发送请求。

帮我分析 ./test.mp4,准备发抖音。赛道是硬件科普,标题是「为什么 USB-C 线不能只看接口?」。请保存整改报告,预算 100 元测流。

若没有成片或 FFmpeg,提交标题、话题和口播稿即可做文案初筛。默认报告路径为 ./douyin_audit_report.md,再次保存到同一路径会更新该文件。需要保留不同版本时,可指定另一个工作区内的 .md 路径。

Headless 联调

从当前源码目录安装插件到独立的 headless profile。在已有 DSH 模型配置的环境下运行示例。

dsh plugin --profile headless add .
dsh --profile headless --dump-config
dsh --profile headless "帮我分析 ./test.mp4,准备发抖音,预算 100 元测流"

调试尚未安装的源码时,可复制 cordis.patch.yml 为本地调试 patch,将条目 name 改为源码入口 index.js 的绝对路径,再使用 --patch。Windows YAML 建议用正斜杠路径。源码目录还需能解析与当前 DSH 宿主配套的 @deepseek-ai/dsh-tools peer,例如从宿主依赖目录建立本地符号链接,或使用上面的 profile 安装方式由宿主管理解析。

dsh --profile headless --patch /absolute/path/douyin.local.patch.yml --dump-config
dsh --profile headless --patch /absolute/path/douyin.local.patch.yml "帮我分析 ./test.mp4"

分析与报告

工具 用途
douyin_probe_video 分析工作区视频或本次会话上传的视频,提取尺寸、帧率、码率、时长、音轨、开场静音、黑屏、综合响度及 PNG 关键帧。
douyin_evaluate_metrics 评分覆盖开头 3 秒、前 5 秒及整体节奏、声画、标签和合规风险。纯文案模式传 metadata: {}。
douyin_render_report 保存 Markdown,列出时间点、问题、修改动作、钩子、标题和标签。投流请求通过规则门槛后可附预算分配、止损与追投条件。
douyin_report_telemetry 获得本次授权后,将脱敏摘要发送到配置的 Webhook。

规则分数是发布前启发式判断,2 秒跳出率、5 秒完播和整体完播等实际数据需发布后在创作者后台查看。关键帧写入工作区下的 .dsh-douyin-frames-* 目录,可在审片结束后删除。DSH 的 read_image 需要支持图像输入的模型和可用的存储服务。只看抽样帧时,完整字幕、发音、声画同步和素材来源仍需核实。使用远程模型审片时,DSH 会将选中的帧发送到所选模型服务,遵循宿主设置。投流方案仅供人工操作,账号可用入口和最低金额以投放后台为准。[DOU+ 官网 · 巨量千川官网]

选择性上报

上报默认关闭。管理员配置接收地址后,Agent 仍需让用户了解用途、接收方和字段,并在用户明确同意本次上报后传入 consent: true。宿主可用 DOUYIN_ANALYZER_TELEMETRY_ENABLED=true 表示已配置上报功能,该标记独立于本次授权。已配置地址时,明确的本次授权也可单独使用。

  • DOUYIN_ANALYZER_TELEMETRY_ENDPOINT 为完整的 HTTPS 接收地址。开发联调可用 HTTP 回环地址。
  • DOUYIN_ANALYZER_TELEMETRY_TOKEN 为接收端令牌。设置后客户端发送 X-Webhook-Token 和 X-Webhook-Signature。内置接收端要求令牌。
  • 可发送字段包括时长、分辨率、归类后的赛道、总分、红黄绿灯、投流意向、时间,以及已提供的有效 SHA‑256。标题、标签、原视频、音频、关键帧、路径、逐字稿和完整报告留在上报流程之外。
  • 请求最多等待 5 秒。上报失败独立返回状态,已生成的分析报告仍然可用。

本地 Node.js 接收器

在源码目录里把 DOUYIN_ANALYZER_TELEMETRY_TOKEN 设置为私有长随机值,并运行 node server/local-receiver.js。接收器默认监听 127.0.0.1:8787 并写入 data/records.jsonl,分别可通过 PORT 和 DOUYIN_ANALYZER_RECORDS_PATH 调整。可另行配置 DOUYIN_ANALYZER_TELEMETRY_ADMIN_TOKEN 供管理查询使用。

在 DSH 进程中配置同一个写令牌及 DOUYIN_ANALYZER_TELEMETRY_ENDPOINT=http://127.0.0.1:8787/api/v1/ingest。查询时传入管理令牌,未单独配置管理令牌时使用写令牌。

curl --header 'X-Webhook-Token: <管理令牌>' 'http://127.0.0.1:8787/api/v1/records?trafficLight=GREEN'

Windows 可用 curl.exe。查询也支持 ?niche=数码测评及 /admin/records 路径,可组合过滤,按时间返回最近 100 条匹配记录。JSONL 请保存在私有目录,由接收方按用途管理记录的留存和删除。

Cloudflare Workers 接收器

在源码目录执行 npx wrangler login 和 npx wrangler kv namespace create RECORDS,再创建 wrangler.toml,填入命名空间 ID。

name = "dsh-douyin-telemetry"
main = "server/worker.js"
compatibility_date = "2026-12-01"

[[kv_namespaces]]
binding = "RECORDS"
id = "<KV 命名空间 ID>"
npx wrangler secret put DOUYIN_ANALYZER_TELEMETRY_TOKEN
npx wrangler secret put DOUYIN_ANALYZER_TELEMETRY_ADMIN_TOKEN
npx wrangler deploy

写令牌发给获授权的客户端,管理令牌使用另一个随机值并由管理员保管。将 DSH 接收地址设为 Worker HTTPS URL 加 /api/v1/ingest。查询使用管理令牌。KV 跨区域读写存在可见性延迟,部署与存储配额以 Cloudflare 控制台为准。两个接收器示例随源码提供。[KV 绑定 · Worker Secrets]

测试、打包和上架

node --test
npm pack --dry-run
npm pack
  1. 建立公开 GitHub 仓库,推送源码,并保留根目录中的 package.json 和 cordis.patch.yml。仓库可通过 dsh plugin --profile web add github:<owner>/dsh-douyin-analyzer 安装。可选用 npm publish --access public 发布 npm 版本。
  2. 通过 GitHub 设置或 gh repo edit <owner>/dsh-douyin-analyzer --add-topic dsh-plugin 添加 Topic,便于社区目录发现。[DSH 官方仓库]
  3. 按目录当前的贡献说明,向 Awesome DSH Plugin 或 DeepSeek Harness Plugins 提交收录 PR。后者提供 submit-dsh-plugin 贡献流程。收录条件、审核和索引刷新周期由各目录决定。[Awesome DSH Plugin · DeepSeek Harness Plugins]

English

DSH Douyin Analyzer is an MIT-licensed Cordis bundle for reviewing local MP4/MOV files and draft scripts. It measures technical video and audio properties, extracts keyframes, grades five preflight dimensions, and writes a Markdown audit with changes organized by timestamp.

  1. Install Node.js 22+ and meet the Node requirement of your DSH version. Install pnpm, ffmpeg, and ffprobe on the DSH host's PATH.
  2. From the checkout, run dsh plugin --profile web add ., verify with dsh --profile web --dump-config, and start or restart the profile. You can pass an absolute path to the packed .tgz in place of ..
  3. Open a local DSH project and place your video in its workspace, or attach it through a DSH version with generic file uploads. Ask the agent to analyze it or invoke /douyin-analyzer. Example request follows.

Audit ./test.mp4 for my hardware education account. Suggest edits and save the report. I have CNY 100 for a paid test.

In official Desktop, install from the Plugins panel, or launch Desktop once, quit it, use the bundled dsh plugin --profile desktop add <absolute tarball path>, and reopen Desktop.

The default report is ./douyin_audit_report.md, and reusing a report path replaces its contents. Keyframes stay in workspace directories named .dsh-douyin-frames-* that you can delete after review. Enable an image-capable DSH model to review them. A hosted model can receive frames through DSH's model integration. Script-only review works without FFmpeg. Scores are editorial heuristics. Actual retention metrics and ad options are available from the platform after publishing or when setting up a campaign. Promotion planning requires explicit interest or a positive budget, and the user places any order manually.

Telemetry requires a configured DOUYIN_ANALYZER_TELEMETRY_ENDPOINT and affirmative per-report consent. It can send duration, resolution, a grouped niche, score, traffic light, promotion interest, timestamp, and an optional supplied SHA‑256. Media, visible frames, paths, original titles, tags, scripts, and full audit files are excluded. Set DOUYIN_ANALYZER_TELEMETRY_TOKEN to authenticate. The source includes a loopback Node receiver and a Cloudflare Worker. Both use POST /api/v1/ingest and authenticated GET /api/v1/records. The Worker requires a distinct DOUYIN_ANALYZER_TELEMETRY_ADMIN_TOKEN for reads and a RECORDS KV binding.

Run node --test and npm pack to verify and build the bundle. For distribution, publish the source to a public GitHub repository, add the dsh-plugin topic, and follow the contribution instructions for the desired community directory. The npm registry is an optional distribution channel.

—/ 5

No ratings yet

Verified DSH bundle

Commit efdeb4b17781

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout