andyhuo520/vibe-knowledge / skills/ai-teardown
ai-teardown
Unverified「AI 拆机课」系列课工作室:输入一个主题(AI 产品、开源项目/书、人物历史、软件教程),产出由浅入深、每句话有出处的中文讲解视频系列 + 每节互动版 + 课程总页。流水线:收集资料 → 确认对象与课时 → 大纲 → 逐节旁白(MiMo 克隆音色 + 逐字对齐)→ scenes.json 画面编排(Notion 极简手绘引擎 / 马卡龙模板引擎,IconPark 图标与插画、Noto 动态 emoji、AntV X6 流程图、像素讲解小人、截图圈注、终端录屏)或 film.js 代码成片(cine 引擎:Three.js、粒子、着色器、真片段叠加、曲库配乐)→ Hyperframes / 无头 GPU 逐帧 1080p 渲染 → Artifact 发布 → 课程总页 + 导学视频。触发:做系列课 / 做课程视频 / 把某本书或某个开源项目做成课 / 科普讲解视频 / 教学视频 / 课程地图 / 导学视频 / 互动课件 / 「拆机课」「上手课」「实战课」「编排课」/ 王炸讲解片 / 用真实会话和成片教人做视频。不用于:单支宣传片(用 promo-video)、单张信息图、纯文章写作。
engine/cine/engine/narr.js
View on GitHub// 旁白时间轴:读配音生成的 timings.json(逐字时间、[[cue]] 时间),提供「某句话说到某个字是第几秒」和字幕。
// 片头冷开场(样片片段)占 off 秒,旁白整体往后挪 off。
export class Narr {
constructor(tl, off = 0) {
this.tl = tl;
this.off = off;
this.beats = tl.beats;
this.ids = Object.keys(tl.beats);
this.total = tl.total + off;
this.subs = this.buildSubs();
}
// "B03" 开始 / "B03.count" 读到 [[count]] / "B03@三千" 读到「三千」/ "B03.end" 结束;可加 "+0.4" "-0.2"
t(spec) {
const m = /^(B\d+)(?:\.([a-z0-9_]+)|@([^+\-]+))?([+-]\d+(?:\.\d+)?)?$/.exec(spec);
if (!m) throw new Error(`时间写法不对:${spec}`);
const b = this.beats[m[1]];
if (!b) throw new Error(`没有这一拍:${spec}`);
let v;
if (m[2] === "end") v = b.end;
else if (m[2]) {
if (b.cues[m[2]] === undefined) throw new Error(`${m[1]} 里没有 [[${m[2]}]]`);
v = b.cues[m[2]];
} else if (m[3]) {
const i = b.text.indexOf(m[3]);
if (i < 0) throw new Error(`${m[1]} 里没有「${m[3]}」`);
v = b.chars[i];
} else v = b.start;
return v + this.off + (m[4] ? parseFloat(m[4]) : 0);
}
// 字幕:按标点断句,太长的再从中间的逗号或空格切开;每条从第一个字出现到下一条开始(同一拍内)
buildSubs() {
const out = [];
const P = ",。;:!?、,.;:!?";
for (const id of this.ids) {
const b = this.beats[id];
const txt = b.text;
let segs = [], s0 = 0;
for (let i = 0; i <= txt.length; i++) {
const num = txt[i] === "." && /\d/.test(txt[i - 1] || "") && /\d/.test(txt[i + 1] || ""); // 5.5 这种小数点不断句
if (i === txt.length || (P.includes(txt[i]) && !num)) {
if (i > s0) segs.push([s0, i]);
s0 = i + 1;
}
}
// 合并太短的、切开太长的
const merged = [];
for (const sg of segs) {
const last = merged[merged.length - 1];
if (last && sg[1] - last[0] <= 16 && sg[0] - last[1] <= 1 && (last[1] - last[0]) < 7) last[1] = sg[1];
else merged.push([...sg]);
}
merged.forEach(([a, z], k) => {
const start = b.chars[a] + this.off;
const next = k + 1 < merged.length ? b.chars[merged[k + 1][0]] + this.off : b.end + this.off + 0.15;
out.push({ text: txt.slice(a, z).trim().replace(/[,。;:、]/g, " "), start: start - 0.05, end: next - 0.04 }); // 字幕里不留标点,用全角空格隔开
});
}
return out;
}
sub(t) {
for (const s of this.subs) if (t >= s.start && t < s.end) return s;
return null;
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |