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/ease.js
View on GitHub/** Small pure helpers shared by primitives. No state, no clocks. */
export const clamp = (v, a, b) => Math.min(b, Math.max(a, v));
export const clamp01 = (v) => clamp(v, 0, 1);
export const mix = (a, b, t) => a + (b - a) * t;
export const invLerp = (a, b, v) => (a === b ? (v >= b ? 1 : 0) : clamp01((v - a) / (b - a)));
/** GSAP-equivalent expo.out, evaluated per frame. */
export const expoOut = (p) => (p >= 1 ? 1 : p <= 0 ? 0 : 1 - Math.pow(2, -10 * p));
export const cubicInOut = (p) => (p < 0.5 ? 4 * p * p * p : 1 - Math.pow(-2 * p + 2, 3) / 2);
export const sineInOut = (p) => -(Math.cos(Math.PI * clamp01(p)) - 1) / 2;
/**
* Content swap inside a morphing container: short blur in, shorter blur out.
* Enter and exit get their own windows so old and new text never overlap.
*/
export const swap = (t, tin, tout, inDur = 0.18, outDur = 0.1) => {
const i = expoOut(clamp01((t - tin) / inDur));
const o = clamp01((t - tout) / outDur);
return {
visible: t >= tin - 0.02 && t <= tout + outDur + 0.02,
opacity: i * (1 - o),
blur: (1 - i) * 10 + o * 8,
scale: mix(0.96, 1, i) * mix(1, 0.98, o),
};
};
/** Apply a swap() result to an element. */
export const applySwap = (el, s, extraTransform = "") => {
el.style.visibility = s.visible ? "visible" : "hidden";
el.style.opacity = s.opacity.toFixed(4);
el.style.filter = s.blur > 0.05 ? `blur(${s.blur.toFixed(2)}px)` : "none";
el.style.transform = `${extraTransform} scale(${s.scale.toFixed(4)})`.trim();
};
/** Typing schedule with seeded jitter; returns how many characters are visible at t. */
export const typedCount = (text, t0, cps, t, seed = 1) => {
const chars = Array.from(text);
let at = t0;
let n = 0;
for (let i = 0; i < chars.length; i++) {
if (t < at) break;
n = i + 1;
const j = 0.7 + 0.6 * hash01(i, seed);
at += (1 / cps) * j * (/[,。,.;;::]/.test(chars[i]) ? 2.2 : 1);
}
return n;
};
/** Deterministic 0..1 hash of an integer and a seed (no Math.random). */
export const hash01 = (i, seed = 1) => {
let x = (i * 374761393 + seed * 668265263) | 0;
x = (x ^ (x >>> 13)) * 1274126177;
x = x ^ (x >>> 16);
return ((x >>> 0) % 100000) / 100000;
};
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 |