/skills:repostfrom skills
Searches YouTube, downloads videos, creates bilingual EN/ZH clips, and publishes to 视频号/公众号 or Bilibili. Handles the full pipeline or individual stages like editing, subtitling, cover creation, and publishing.
Ships in skills. 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.
End-to-end pipeline for this channel: search → download → edit → publish.
Use the bundled command recipes from the user’s media workspace. Resolve scripts/ relative to this skill directory. Do only the requested stages.
wechat defaults to 视频号; bili is B站 and all means 视频号 + B站. 公众号 requires an explicit request. Use the channel’s portrait layout for 视频号 and --layout bili for B站; reuse the translation across renders.Use the command recipes for standalone editing. For authorized publishing, use the available browser integration; the platform reference describes the form workflow. Credit the source channel and use the platform’s 转载 declaration. Once publication is authorized, carry it through without routine prompts. Hand login or verification back to the user when required; confirm one-time edits to an existing public post.
Each video lives in a topic dir <日期>-<选题>/, keyed by its YouTube id in
metadata.json. Before downloading anything:
grep -l "<video_id>" 2026-*/metadata.json
Hit → ls that dir and start from the first missing artifact; never redo a
finished stage:
| artifact | stage that makes it |
|---|---|
metadata.json | create the dir right after download (see step 5 for its fields) |
source.clean.en.srt | 3.1 clean |
zh.json | 3.2 translate |
*-vertical.mp4 | 3.3 render |
validation/ | 3.4 sync check |
cover.jpg | 4 cover |
publications/<platform>.json | step 5 only — status for that destination |
Source files go in downloads/<video_id>.*.
Several URLs at once (the user often sends a batch): run each video's download → translate → render in parallel, but publish strictly one at a time (queue the validated topic dirs and publish them sequentially). Report each published time as it lands.
When the workspace has a scout tool or pick list, reuse its metadata. Otherwise use the yt-dlp search recipe in command recipes for the requested subject and time window, and present the matches for selection.
Picks by number ("发前 3 条", "第 2、5 条", "#1 拆系列") refer to the newest
scout/*.md list (unless the user names one): resolve them to URLs from its
推荐转载 table, then run this pipeline per URL. Reuse that list's
scout/<stem>.json entry (title, channel, upload date, description) for step 2's
metadata.json instead of fetching it again.
Use the download recipe with downloads/<id>.*, original audio, English captions and a thumbnail. Then create the topic dir <日期>-<选题>/ with metadata.json
(source_id/source_url/source_channel/source_title/source_upload_date).
For editorial cuts or a shorter adaptation, use the shared editing guide
to pick cuts for each segment. Preserve the speaker’s meaning and attribution.
For a full translation, preserve the source timeline. For an excerpt, cut picture,
sound and cues together and validate against the selected excerpt. For trimmed excerpts pass the matching cut source to scripts/validate.py --source. For a series,
put the retained clean-cue ranges for each part in <topic>/series.json (e.g. [{"cues":[[0,6],[10,41]]}]), run scripts/split_series.py <topic>, then render each part and validate it with --source downloads/<id>-pN.mp4.
See render options. The channel defaults are:
--layout bili.--zoom-at only to emphasise one specific detail.scripts/clean_srt.py the .en-orig.srt if present, else .en.srt (the plain
en track of an AI-dubbed video can be a back-translation — verified garbage),
→ <topic>/source.clean.en.srt + <topic>/transcript.txt (one numbered cue
per line). Read the whole transcript; it drives the title, translation, cover.<topic>/zh.json ({"<cue-index>": "中文"}).
Never use YouTube's machine zh — it drifts.
zh-part-N.json, and
write en-fix-part-N.json for English cues the ASR mangled — the EN line
is on screen too, so fix code/API names, product names, numbers (e.g.
"Torch. 2 3" → torch.zeros(2, 3), "Oxer" → oxker), checking spellings
against the thumbnail/slides. Then /usr/bin/python3 scripts/merge_zh.py <topic> (fails loudly on any missing cue).scripts/verticalize.py → <topic>/<id>-vertical.mp4 (--title Chinese,
≤ ~12 CJK chars so it stays on one line — it is on screen the whole video;
--kicker "<channel> · <English title>").scripts/validate.py <topic> — must print OK, then Read the output frames it
lists and confirm the picture matches the subtitle at that moment. Any
mismatch blocks publishing.The vertical clips open on a black intro, so the platform's auto-cover (first
frame) is a black screen. Never ship that. Generate a cover that states the
topic at a glance with scripts/make_cover.py: a big yellow keyword (a term or
number from the talk) + a Chinese one-line subtitle (+ optional english tagline).
Make it eye-catching: pass --bg-image so a real picture fills the top. Pick it
from the video, not blindly from the thumbnail:
-ss T -frames:v 1) or tile a contact sheet
(-vf fps=1/60,scale=320:-2,tile=8x4) and choose a speaker close-up with eyes
open or the most striking diagram/screen. Talking-head frames: check a few
seconds apart, blinks are common.Enter this stage on a publication request. Follow 分平台发布记录 for every destination. Search only that target account’s list for the same work before submitting. Compare source IDs, episode start times and titles/descriptions for mirrors; on 视频号 read full card descriptions in the iframe (snapshots may truncate). A match or inaccessible list affects only that destination.
视频号 (channels.weixin.qq.com): import the existing publishTopic export
from the bundled scripts/publish_channels_ego.mjs when using Ego Browser and call await publishTopic(task, absolutePath)
in the Ego Browser runtime. With another browser integration, follow the form workflow and write the same per-platform receipt. The module is a JavaScript API, not a publishing CLI.
Pass an active Ego Browser TaskSpace (task, with page p1) and the absolute
path to the topic directory. The caller owns the TaskSpace lifecycle.
Prepare metadata.json with source_id, source_url, short_title (≤16
chars) and description (summary + 转载自 <channel>[ 官方] YouTube:《原标题》,原视频发布于 YYYY-MM-DD。 原视频:<url> [原片由 <sponsor> 赞助,保留完整内容;]中英字幕由 <实际署名> 整理翻译。 #tags
— use “官方” only for the company's own channel; credit sponsors and mark launch
claims as 宣称). The first YouTube URL in description must match source_id,
including the start time for a series episode. Set collection to the name
of an existing 合集 when applicable. Provide exactly one *-vertical.mp4,
cover.jpg, and a passing validation/validation.json for the current render
and its validation frames. Review those frames yourself before calling.
The publisher validates the files, checks the 视频号 list and reserves its own receipt immediately before submission. Pass the verified account name via the optional account option. It records the observed status and list timestamp; check the matching card for public visibility if still pending. A lost response requires read-only reconciliation.
After each publish, close the loop with scout:
scout/*.md list, mark the matching platform in its row once public
(e.g. ✅ 视频号已发 MM-DD HH:MM or ✅ B站已发 MM-DD HH:MM) so the list doubles as the tracker
for "继续发剩下的".scout/channels.txt and the source channel is new, append
<channel_url> # <name> (1) so tomorrow's scout watches it.Changing an already-published post's cover or description: manual only, after explicit user confirmation. Have the user use 修改描述和封面 in 视频号. The edit is one-time, cannot be undone, and leaves a public 修改记录.
公众号 (mp.weixin.qq.com): when explicitly requested, use Ego Browser to create and save the video into 素材库, wait for approval, then publish from the 素材库 entry. Final confirmation needs the user's admin WeChat QR scan.
哔哩哔哩 / Bilibili (member.bilibili.com): use Ego Browser on
/platform/upload/video/frame with the --layout bili render. Fill
标题/简介/标签/分区, select 内容为转载 and enter the source credit, then set
the cover and click 立即投稿. Record 稿件投递成功 as submitted. Update this receipt when review or public visibility is verified.
If a session logs out (视频号/B站 shows a login QR), hand it to the user to scan — you can't log in. Report the published time/URL after each platform.
references/commands.md (opens in a new tab)references/editing.md (opens in a new tab)references/publication.md (opens in a new tab)references/publishing.md (opens in a new tab)scripts/clean_srt.py (opens in a new tab)scripts/make_cover.py (opens in a new tab)scripts/merge_zh.py (opens in a new tab)scripts/publish_channels_ego.mjs (opens in a new tab)scripts/split_series.py (opens in a new tab)scripts/validate.py (opens in a new tab)scripts/verticalize.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
16 skills in this plugin
/animateMake a black-and-white comic-style animated product demo — a single HTML page of timed scenes (logo slam, terminal walkthroughs, sessions messaging each other, feature grids) that loops in the browser and renders to a crisp GIF/MP4 for a README or landing page. Use whenever the user wants an animated intro, demo video, product showcase, README GIF, "动画介绍 / 动图 / 宣传动画", or asks for a comic / manga / ink / hand-drawn look for a demo — even if they only say "make the intro video better" or "the README GIF looks dull"./auto-devAutonomous development workflow - understand an issue, plan changes, implement with change notes, and run an iterative verify-fix loop until passing. Use this skill when the user mentions auto dev, fix a bug, implement a feature, develop a fix, autonomous development, work on an issue, debug this, make it work, implement this change, help me fix this test, or wants an end-to-end code-change workflow. Do NOT trigger for code explanation or review requests where no code changes are needed./auto-researchGenerate a program.md for autonomous AI research experiments (Karpathy's autoresearch paradigm). Interviews user about codebase, metric, and constraints, then produces a tailored program for an AI agent to iterate autonomously./chessRun or record a Chinese chess (象棋, Xiangqi) match between two models. Use for `/chess <red-model> vs <black-model>` and requests to set up a San Session Group showmatch, adjust its board or clean spectator view, or save game checkpoints. Not for Western chess or standalone position analysis./find-skillFind, compare, and optionally install agent skills from skills.sh, GitHub, and official sources. Use when someone asks what skills fit a task or project, wants to compare candidates, or asks to install a named skill. Installation requires explicit approval./gitGit workflow automation - commit/push with sign-off, create/list/compact/rebase PRs, and contribute to upstream repos. Use this skill whenever the user mentions PR, pull request, create PR, show my PRs, list PRs, squash commits, compact commits, rebase PR, commit and push, push updates, push changes, contribute to a repo, fork and submit, or wants to manage any aspect of Git operations.npx claudepluginhub yanmxa/skills --plugin skills