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/runtime/spring.js
View on GitHub/**
* Closed-form springs, ported from promo-video's src/cinematic/spring.ts.
* Every value is a pure function of time: a value that changes target many
* times is the sum of one step response per change, so seeking backwards,
* skipping frames or rendering out of order always gives the same frame.
*/
export const hz = (f) => 2 * Math.PI * f;
/** Snappy UI spring: ~1.5% overshoot. */
export const UI = { w: hz(2.1), z: 0.82 };
/** Critically damped, for the cursor and anything that must not overshoot. */
export const CURSOR = { w: hz(2.4), z: 1 };
/** Slower camera. */
export const CAM = { w: hz(1.25), z: 0.95 };
/** Fast press/release. */
export const PRESS = { w: hz(5), z: 0.75 };
/** Leading / trailing edges for liquid indicators. */
export const LEAD = { w: hz(3.2), z: 0.86 };
export const TRAIL = { w: hz(1.7), z: 0.9 };
/** Gentle reveal for diagrams and labels in teaching scenes. */
export const REVEAL = { w: hz(1.8), z: 0.9 };
/** Unit step response of a damped spring, `tau` seconds after the step. */
export const step = (tau, { w, z }) => {
if (tau <= 0) return 0;
if (z >= 1) return 1 - Math.exp(-w * tau) * (1 + w * tau);
const wd = w * Math.sqrt(1 - z * z);
return 1 - Math.exp(-z * w * tau) * (Math.cos(wd * tau) + ((z * w) / wd) * Math.sin(wd * tau));
};
/** keys: [time, target] in seconds; the first key is the starting value. */
export const track = (t, keys, c = UI) => {
let v = keys[0][1];
for (let i = 1; i < keys.length; i++) v += (keys[i][1] - keys[i - 1][1]) * step(t - keys[i][0], c);
return v;
};
const rgb = (hex) => [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));
/** Colour keys [time, '#rrggbb'], sprung per RGB channel. */
export const trackColor = (t, keys, c = UI) => {
const ch = [0, 1, 2].map((k) => track(t, keys.map(([tt, col]) => [tt, rgb(col)[k]]), c));
return `rgb(${ch.map((v) => Math.round(Math.min(255, Math.max(0, v)))).join(",")})`;
};
/** keys with a per-change spring: [time, target, cfg]. Lets a leading edge ride a faster spring than the trailing one. */
export const trackCfg = (t, keys, fallback = UI) => {
let v = keys[0][1];
for (let i = 1; i < keys.length; i++) v += (keys[i][1] - keys[i - 1][1]) * step(t - keys[i][0], keys[i][2] ?? fallback);
return v;
};
/** Value driven directly by the pointer while held, then springing from wherever it was released to `after`. */
export const dragged = (t, held, live, before, after, c = UI) => {
if (t < held[0]) return before;
if (t <= held[1]) return live(t);
const v = live(held[1]);
return after + (v - after) * (1 - step(t - held[1], c));
};
/** 0 → 1 appearance at t0 on spring c (a single step). */
export const appear = (t, t0, c = REVEAL) => step(t - t0, c);
/** 0 → 1 at t0, back to 0 at t1 (both sprung). */
export const pulse = (t, t0, t1, c = REVEAL) => step(t - t0, c) - step(t - t1, c);
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 |