跳到正文
cccskills
免费在 GitHub 公开

video-sync

Match videos from 王二讲Agent to their scripts, then add Bilibili links and Douyin video IDs to the designated documentation files. Identify missing entries while preserving existing links and IDs.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

把「王二讲Agent」的 B 站视频链接同步到 docs/src/ai/video/readme.md,把抖音视频 ID 同步到 docs/src/.vuepress/agentInterview.ts 的 douyinVideoIds 映射表(页面会渲染成播放器)。

当用户说 B 站更新了、抖音更新了、同步视频链接、把视频地址放进脚本、更新 readme 视频时使用。

查看安装方法

适用场景

  • Add newly published Bilibili videos to the documentation
  • Register Douyin video IDs for embedded players
  • Check which scripts still lack video references
  • Identify videos without matching scripts

包含的文件(3)

  • SKILL.md3.3 KB
  • scripts/douyin_extract.js715 B
  • scripts/video_sync.py6.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

视频链接同步

两个频道

落点约定

  • B 站链接只写进 docs/src/ai/video/readme.md,追加在题目的「完整答案」那一行末尾,格式 · [B站视频](https://www.bilibili.com/video/BVxxxx/)。
  • 抖音视频不写进 md。写进 docs/src/.vuepress/agentInterview.ts 的 douyinVideoIds 映射表,一行 "脚本名": "视频ID",,由 agentInterviewPlugin 渲染成页面里的抖音播放器(线上效果见 https://javabetter.cn/ai/video/what-is-agent.html )。
  • 映射表的键必须先在同文件的 agentInterviewMeta 里有 meta 条目、在 agentInterviewGroups 里有分组,否则插件不渲染。新脚本要先手工补这两处,meta 的标题和摘要照脚本内容写,不编数据。
  • 已有链接和已有 ID 一律不动。

流程

  1. 拉 B 站列表:python3 .claude/skills/video-sync/scripts/video_sync.py bili。接口无需登录,NEW 标记的就是 readme 还没引用的视频。
  2. 拉抖音列表:抖音必须登录,curl 和内置浏览器拿不到数据。用 Claude in Chrome 打开抖音主页,关掉登录弹窗,滚到底部出现「暂时没有更多了」,再用 javascript_tool 执行 scripts/douyin_extract.js,分段取回「视频ID|标题」。
  3. 看缺口:python3 .claude/skills/video-sync/scripts/video_sync.py status,输出 readme 里缺 B 站链接的题目和映射表里缺抖音 ID 的脚本,缺 meta 的会单独标出来。
  4. 人工配对:按视频标题和简介对到脚本文件名,写成两个 TSV 映射文件,每行 脚本名<TAB>BV号 或 脚本名<TAB>抖音视频ID。只配缺口里的条目。
  5. 写入:python3 .claude/skills/video-sync/scripts/video_sync.py apply --bili B站映射.tsv --douyin 抖音映射.tsv。脚本幂等,重复跑不会重复追加;缺 meta 的脚本会被跳过并提示。
  6. 同步 GitHub 首页:readme 有改动时运行 node docs/src/ai/scripts/gen-readme.mjs,更新 ai-better 仓库 README 的统计表和题目目录,和 readme 一起在 ai-better 提交。
  7. 汇报三类剩余:readme 有题但两边都没视频的、视频有但没脚本的、两边有视频但 readme 没题的。这三类由用户决定要不要补。

禁令

  • 同一题在某平台有多条视频(例如早期重录版)时,取标题和脚本最贴合的那条,其余在汇报里说明,不写入。
  • 标题拿不准对应哪个脚本时不要猜,列出来问用户。
  • 不给 readme 加抖音链接,不往口播稿 md 里写任何视频链接,除非用户明确要求。
  • 抓取抖音一律走 Claude in Chrome,不用内置浏览器,不用 WebFetch。Chrome DevTools MCP 可能被别的实例占用,不要为此杀进程。

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Write AI tool reviews, setup tutorials, interview preparation articles, and technical explanations, or update existing articles against current source code. The workflow covers research, outline approval, prose checks, and source documentation.

中文简介正在准备中。当前显示英语简介。

  • Write a setup tutorial for an AI tool
  • Update an article against current source code
  • Prepare technical interview explanations
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

Automate browser tasks such as reading JavaScript-rendered pages, filling forms, clicking through workflows, and taking screenshots. Maintain login sessions, manage separate browsers, and capture network responses, with approval checks for sensitive actions.

中文简介正在准备中。当前显示英语简介。

  • Extracting content from pages that use JavaScript
  • Automating form entry and page navigation
  • Checking page appearance with screenshots
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

Turn narration scripts into animated explainer videos using Remotion and 火山 TTS, a text-to-speech service. Prepare scripts, synchronize visuals with narration, preview each chapter, correct pronunciations, and export a verified MP4 with voice audio.

中文简介正在准备中。当前显示英语简介。

  • Turn a narration script into an animated explainer video
  • Synchronize subtitles and visuals with narration
  • Preview and refine a video chapter by chapter
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

Create a coordinated set of video covers in 3:4, 16:9, and 4:3 formats from AI or Java scripts. Choose illustrations featuring a consistent presenter character or text-only layouts with white titles and yellow keywords.

中文简介正在准备中。当前显示英语简介。

  • Creating matching vertical and horizontal video covers
  • Making text-only covers with white and yellow lettering
  • Keeping the same presenter character across covers
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

Write or refine Chinese spoken video scripts about AI technology, interview questions, and current topics. New scripts follow research and outline approval, while revisions provide specific wording changes and reasons for the edits.

中文简介正在准备中。当前显示英语简介。

  • Writing a spoken script explaining AI technology
  • Turning technical interview questions into video scripts
  • Preparing a script about a current AI topic
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

Search Zhihu, a Chinese knowledge-sharing platform, for answers, articles, people, and topics. Filter by content type and creation date, sort results, and collect structured records containing excerpts, authors, votes, and links across multiple pages.

中文简介正在准备中。当前显示英语简介。

  • Finding Zhihu answers and articles on a topic
  • Comparing highly upvoted answers
  • Collecting recently created content
itwanger/toBeBetterJavaer1.8万2026年10月18日 更新

查看 itwanger 的全部技能

报告此技能的问题