Skip to content

anbeime/skill / skills/anything2explainer/anything2explainer

anything2explainer

Unverified

给一个主题,产出一条黑底 MG 风格(幕底可选星点或点阵波)、有配音字幕章节进度条的科普讲解视频(中文或英文;Remotion 代码动画;时长由用户定,常用 3–5 分钟)。内含可编译模板、图元库、配音/分镜/渲染工具、风格与动效规范、多 agent 分工协议与 QC 判据,以及一条完整样片(《RAG 与知识库》)作为质量标尺。Turn any topic into a narrated motion-graphics explainer video in Chinese or English, on a black canvas with a star-field or dot-field backdrop, TTS voiceover, subtitles and a chapter progress bar, every frame drawn in code with Remotion. Use when the user asks for an explainer, educational or science-communication video about a topic, or wants an article or document turned into a video.

FileKindSize
.gitignoreother397 B
CITATION.cffother1.1 KB
LICENSEother4.9 KB
README.mdmarkdown17.2 KB
README_ZH.mdmarkdown16.0 KB
SKILL.mdskill md20.9 KB
examples/contrast/01_hero_size_bad_f0128.jpgbinary44.2 KB
examples/contrast/01_hero_size_good_f0138.jpgbinary50.0 KB
examples/contrast/02_hero_reveal_bad_f1729.jpgbinary49.3 KB
examples/contrast/02_hero_reveal_good_f1105.jpgbinary43.6 KB
examples/contrast/03_big_number_good_f7258.jpgbinary47.2 KB
examples/contrast/03_sparse_axis_bad_f1900.jpgbinary35.3 KB
examples/contrast/04_formula_bad_f3033.jpgbinary55.3 KB
examples/contrast/04_result_number_good_f2613.jpgbinary82.2 KB
examples/contrast/05_clean_bg_good_f1237.jpgbinary61.3 KB
examples/contrast/05_clutter_bg_bad_f1651.jpgbinary36.5 KB
examples/contrast/06_ending_bad_f7540.jpgbinary48.0 KB
examples/contrast/06_ending_good_f8100.jpgbinary57.2 KB
examples/contrast/README.mdmarkdown1.4 KB
examples/contrast/contrast_sheet.jpgbinary398.9 KB
examples/rag/AGENT_RAG_BUILD_RULES.mdmarkdown9.4 KB
examples/rag/AGENT_RAG_QC_RULES.mdmarkdown2.9 KB
examples/rag/README.mdmarkdown1.0 KB
examples/rag/frames/overview_1.jpgbinary282.3 KB
examples/rag/frames/overview_2.jpgbinary331.9 KB
examples/rag/frames/overview_3.jpgbinary326.7 KB
examples/rag/frames/overview_4.jpgbinary374.1 KB
examples/rag/frames/overview_5.jpgbinary319.4 KB
examples/rag/frames/overview_6.jpgbinary285.3 KB
examples/rag/frames/ref_agentic_loop_f6900.jpgbinary71.6 KB
examples/rag/frames/ref_chapter_card_f1490.jpgbinary35.8 KB
examples/rag/frames/ref_chunk_size_f2200.jpgbinary86.5 KB
examples/rag/frames/ref_graphrag_f6600.jpgbinary71.6 KB
examples/rag/frames/ref_hnsw_f3260.jpgbinary85.3 KB
examples/rag/frames/ref_hybrid_rrf_f4640.jpgbinary95.8 KB
examples/rag/frames/ref_long_context_f7480.jpgbinary63.0 KB
examples/rag/frames/ref_lost_in_middle_f5250.jpgbinary89.0 KB
examples/rag/frames/ref_moat_f8100.jpgbinary71.4 KB
examples/rag/frames/ref_paper_f1300.jpgbinary88.4 KB
examples/rag/frames/ref_parse_f1760.jpgbinary74.0 KB
examples/rag/frames/ref_rag_reveal_f1090.jpgbinary45.1 KB
examples/rag/frames/ref_ragas_f6150.jpgbinary129.7 KB
examples/rag/frames/ref_rerank_funnel_f4900.jpgbinary80.1 KB
examples/rag/frames/ref_shortcomings_f0600.jpgbinary83.6 KB
examples/rag/frames/ref_title_f0058.jpgbinary48.9 KB
examples/rag/frames/ref_vector_space_f2990.jpgbinary93.2 KB
examples/rag/narration.txtmarkdown4.4 KB
examples/rag/qc/qc_v1_C1.mdmarkdown14.4 KB
examples/rag/qc/qc_v1_C2.mdmarkdown22.5 KB
examples/rag/qc/qc_v1_C3.mdmarkdown16.7 KB
examples/rag/qc/qc_v1_C4.mdmarkdown23.0 KB
examples/rag/qc/qc_v3_final.mdmarkdown12.7 KB
examples/rag/research.mdmarkdown47.7 KB
examples/rag/shots_src/G0/Overlay.tsxother10.5 KB
examples/rag/shots_src/G0/Preview.tsxother224 B
examples/rag/shots_src/G0/index.tsscript1.4 KB
examples/rag/shots_src/G0/util.tsscript167 B
examples/rag/shots_src/G1/BUILD_NOTES.mdmarkdown12.1 KB
examples/rag/shots_src/G1/Preview.tsxother344 B
examples/rag/shots_src/G1/SC01.tsxother448 B
examples/rag/shots_src/G1/SC02.tsxother4.6 KB
examples/rag/shots_src/G1/SC03.tsxother4.7 KB
examples/rag/shots_src/G1/SC04.tsxother4.9 KB
examples/rag/shots_src/G1/SC05.tsxother7.0 KB
examples/rag/shots_src/G1/index.tsscript664 B
examples/rag/shots_src/G1/layout.tsxother6.8 KB
examples/rag/shots_src/G2/BUILD_NOTES.mdmarkdown15.3 KB
examples/rag/shots_src/G2/Preview.tsxother344 B
examples/rag/shots_src/G2/SC06.tsxother4.0 KB
examples/rag/shots_src/G2/SC07.tsxother5.1 KB
examples/rag/shots_src/G2/SC08.tsxother6.1 KB
examples/rag/shots_src/G2/SC09.tsxother7.1 KB
examples/rag/shots_src/G2/SC10.tsxother5.6 KB
examples/rag/shots_src/G2/index.tsscript657 B
examples/rag/shots_src/G2/parts.tsxother10.7 KB
examples/rag/shots_src/G3/BUILD_NOTES.mdmarkdown13.2 KB
examples/rag/shots_src/G3/Preview.tsxother344 B
examples/rag/shots_src/G3/SC11.tsxother3.9 KB
examples/rag/shots_src/G3/SC12.tsxother3.0 KB
examples/rag/shots_src/G3/SC13.tsxother2.3 KB
examples/rag/shots_src/G3/SC14.tsxother5.1 KB
examples/rag/shots_src/G3/SC15.tsxother7.3 KB
examples/rag/shots_src/G3/g3ui.tsxother12.1 KB
examples/rag/shots_src/G3/index.tsscript660 B
examples/rag/shots_src/G4/BUILD_NOTES.mdmarkdown13.1 KB
examples/rag/shots_src/G4/Preview.tsxother344 B
examples/rag/shots_src/G4/SC16.tsxother5.1 KB
examples/rag/shots_src/G4/SC17.tsxother5.9 KB
examples/rag/shots_src/G4/SC18.tsxother9.8 KB
examples/rag/shots_src/G4/SC19.tsxother6.9 KB
examples/rag/shots_src/G4/SC20.tsxother8.3 KB
examples/rag/shots_src/G4/index.tsscript660 B
examples/rag/shots_src/G4/vspace.tsscript3.2 KB
examples/rag/shots_src/G5/BUILD_NOTES.mdmarkdown12.9 KB
examples/rag/shots_src/G5/Preview.tsxother344 B
examples/rag/shots_src/G5/SC21.tsxother5.3 KB
examples/rag/shots_src/G5/SC22.tsxother5.0 KB
examples/rag/shots_src/G5/SC23.tsxother5.3 KB
examples/rag/shots_src/G5/SC24.tsxother5.7 KB
examples/rag/shots_src/G5/SC25.tsxother8.5 KB
examples/rag/shots_src/G5/g5util.tsxother3.4 KB
examples/rag/shots_src/G5/index.tsscript660 B
examples/rag/shots_src/G5/vspace.tsxother3.7 KB
examples/rag/shots_src/G6/BUILD_NOTES.mdmarkdown12.8 KB
examples/rag/shots_src/G6/Preview.tsxother344 B
examples/rag/shots_src/G6/SC26.tsxother7.9 KB
examples/rag/shots_src/G6/SC27.tsxother3.8 KB
examples/rag/shots_src/G6/SC28.tsxother7.9 KB
examples/rag/shots_src/G6/SC29.tsxother5.8 KB
examples/rag/shots_src/G6/SC30.tsxother3.0 KB
examples/rag/shots_src/G6/index.tsscript881 B
examples/rag/shots_src/G6/ui.tsxother12.4 KB
examples/rag/shots_src/G7/BUILD_NOTES.mdmarkdown12.9 KB
examples/rag/shots_src/G7/Preview.tsxother344 B
examples/rag/shots_src/G7/SC31.tsxother1.2 KB
examples/rag/shots_src/G7/SC32.tsxother3.3 KB
examples/rag/shots_src/G7/SC33.tsxother5.4 KB
examples/rag/shots_src/G7/SC34.tsxother5.8 KB
examples/rag/shots_src/G7/SC35.tsxother2.7 KB
examples/rag/shots_src/G7/SC36.tsxother7.8 KB
examples/rag/shots_src/G7/SC37.tsxother10.4 KB
examples/rag/shots_src/G7/g7ui.tsxother9.5 KB
examples/rag/shots_src/G7/index.tsscript818 B
examples/rag/shots_src/G8/BUILD_NOTES.mdmarkdown14.1 KB
examples/rag/shots_src/G8/Preview.tsxother375 B
examples/rag/shots_src/G8/SC38.tsxother3.9 KB
examples/rag/shots_src/G8/SC39.tsxother2.7 KB
examples/rag/shots_src/G8/SC40.tsxother899 B
examples/rag/shots_src/G8/SC41.tsxother4.8 KB
examples/rag/shots_src/G8/SC42.tsxother3.1 KB
examples/rag/shots_src/G8/SC43.tsxother2.7 KB
examples/rag/shots_src/G8/SC44.tsxother4.5 KB
examples/rag/shots_src/G8/index.tsscript818 B
examples/rag/shots_src/G8/shared.tsxother21.0 KB
examples/rag/storyboard_src.mdmarkdown34.8 KB
examples/rag/timeline.mdmarkdown6.2 KB
examples/rag/ui_rag.tsxother19.2 KB
examples/rag/交付说明.mdmarkdown4.6 KB
examples/rag/分镜表.mdmarkdown32.7 KB
reference/agent-build-rules.mdmarkdown13.0 KB
reference/agent-qc-rules.mdmarkdown6.2 KB
reference/composition-and-light.mdmarkdown11.5 KB
reference/lessons.mdmarkdown32.1 KB
reference/motion-vocabulary.mdmarkdown10.1 KB
reference/narration-guidance.mdmarkdown7.0 KB
reference/narration-storyboard.mdmarkdown21.4 KB
reference/prompts.mdmarkdown8.2 KB
reference/research-brief.mdmarkdown3.4 KB
reference/style-guide.mdmarkdown10.5 KB
template/.gitignoreother90 B
template/package.jsonmanifest457 B
template/public/fonts/Audiowide-Regular.ttfbinary68.3 KB
template/public/fonts/Exo2-Italic.ttfbinary295.5 KB
template/public/fonts/LICENSE.mdmarkdown5.4 KB
template/public/fonts/NotoSansSC.ttfbinary16.9 MB
template/public/fonts/Orbitron[wght].ttfbinary37.7 KB
template/remotion.config.tsscript1.1 KB
template/script/narration.txtmarkdown591 B
template/scripts/frame_metrics.pyscript9.4 KB
template/scripts/motion_check.pyscript7.9 KB
template/scripts/new_project.shscript1.4 KB
template/scripts/preview.shscript1.1 KB
template/scripts/render.shscript989 B
template/scripts/render_storyboard.pyscript1.3 KB
template/scripts/selfcheck.pyscript6.2 KB
template/scripts/sheet.pyscript1.6 KB
template/scripts/still.shscript1.1 KB
template/scripts/test_render.shscript732 B
template/scripts/tts_build.pyscript28.5 KB
template/src/Main.tsxother2.5 KB
template/src/Root.tsxother1.8 KB
template/src/common/DotFieldBg.tsxother3.7 KB
template/src/common/Fog.tsxother1.5 KB
template/src/common/Footage.tsxother2.8 KB
template/src/common/Glitch.tsxother5.3 KB
template/src/common/ProgressBar.tsxother4.0 KB
template/src/common/StarField.tsxother5.6 KB
template/src/common/Subtitle.tsxother3.1 KB
template/src/common/easing.tsscript5.4 KB
template/src/common/index.tsscript462 B
template/src/common/lib.tsxother4.5 KB
template/src/common/subs.tsscript175 B
template/src/common/textfit.tsscript3.3 KB
template/src/common/timeline.tsscript355 B
template/src/common/types.tsscript870 B
template/src/config.tsscript4.0 KB
template/src/fx.tsxother16.8 KB
template/src/index.tsscript89 B
template/src/overlay/Overlay.tsxother13.7 KB
template/src/overlay/Preview.tsxother250 B
template/src/overlay/index.tsscript1.6 KB
template/src/shots/G1/Preview.tsxother356 B
template/src/shots/G1/index.tsscript478 B
template/src/shots/G2/Preview.tsxother356 B
template/src/shots/G2/index.tsscript478 B
template/src/shots/G3/Preview.tsxother356 B
template/src/shots/G3/index.tsscript478 B
template/src/shots/G4/Preview.tsxother356 B
template/src/shots/G4/index.tsscript478 B
template/src/shots/G5/Preview.tsxother356 B

examples/rag/shots_src/G2/SC09.tsx

View on GitHub
import React from 'react';
import {useCurrentFrame} from 'remotion';
import {stepKf, clamp01, emphasisPulse, FONT_ORB, FONT_SERIF} from '../../common';
import {CText, Box, Pill, TechText, WHITE, GREY, GREY_LIGHT, GREY_MID, PURPLE, PURPLE_LIGHT, TEXT_GLOW, BLOOM_SOFT, slideUp, fadeIn, SoftIn} from '../../ui';
import {mixHex} from './parts';

/**
 * SC09 2020 论文 · N 1130–1328(S09 1138–1326:1138「2020年」/ 1152「Facebook AI 的研究者在论文里」/ 1211「正式提出了这个名字」/ 1238「Retrieval-Augmented Generation」)
 * 事实依据(research/RAG调研.md §1):Lewis et al.,《Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks》, Facebook AI Research (Meta), NeurIPS 2020。
 * 版式:左 论文卡 (140,140,380,460):三行标题(Times 22/700)+ 作者行「Lewis et al. · NeurIPS 2020」灰 + 摘要灰线两栏 + 右下小柱状图;
 *       右 「2020」Orbitron 96 (860,300) → 胶囊「Facebook AI Research」(690,376,340,50) → 大号 Exo 2 两行 Retrieval-Augmented / Generation (860,495/545)。
 * 节拍:1138 年份 SoftIn + 2016→2020 计数(每 3 帧 +1,14 帧);1146 论文卡 slideUp(Δ90/22 + 8 帧淡入;QC v1:原 Δ300 在 1151–1158 穿过字幕带);1152 胶囊 SoftIn(本镜头无 glitch,协议 §8);
 *       1211 标题下紫色下划线 draw-on 14 帧 + 标题块 emphasisPulse 1.06 + 三词 1211/1215/1219 依次 12 帧白闪(QC v1:原仅 3px 下划线,1167–1240 静止 73 帧);
 *       1238/1248/1258 标题中 Retrieval / Augmented / Generation 依次 11 帧灰→紫;1238 大号英文 slideUp(Δ160/22);1323–1328 整组 6 帧淡出。
 */
const F0 = 1130;
const T_YEAR = 1138, T_CARD = 1146, T_PILL = 1152, T_UNDER = 1211, T_WORDS = 1238, T_BIG = 1238, T_EXIT = 1323;
const CARD = {x: 140, y: 140, w: 380, h: 460};
const YEAR_KF: Array<[number, number]> = [[T_YEAR, 2016], [T_YEAR + 3, 2017], [T_YEAR + 6, 2018], [T_YEAR + 9, 2019], [T_YEAR + 13, 2020]];
/** 摘要灰线:[col(0/1), row, 宽度比例] */
const ABS_ROWS = 8;
const ABS_W = [0.98, 0.9, 1, 0.84, 0.95, 1, 0.88, 0.6, 0.97, 0.93, 1, 0.8, 0.9, 0.55];
const CHART_BARS: Array<[number, string]> = [[30, GREY_MID], [44, GREY_MID], [58, PURPLE], [74, PURPLE]];

/** 标题词:k = 灰→紫进度(1238 起);f = 白闪强度 0→1→0(1211 起,与 k 不重叠) */
const Word: React.FC<{k: number; f?: number; children: React.ReactNode}> = ({k, f = 0, children}) => (
  <span style={{color: f > 0 ? mixHex(GREY_LIGHT, WHITE, f) : mixHex(GREY_LIGHT, PURPLE_LIGHT, k), textShadow: f > 0 ? `0 0 ${Math.round(6 + 10 * f)}px rgba(255,255,255,${(0.85 * f).toFixed(2)})` : k > 0.5 ? '0 0 8px rgba(161,117,241,.6)' : undefined, fontWeight: 700}}>{children}</span>
);
/** 12 帧三角脉冲 0→1→0 */
const tri = (n: number, len = 12) => (n <= 0 || n >= len ? 0 : n < len / 2 ? n / (len / 2) : 1 - (n - len / 2) / (len / 2));

export const SC09: React.FC = () => {
  const N = useCurrentFrame() + F0;
  const ex = N - T_EXIT;
  const exOp = ex <= 0 ? 1 : Math.max(0, 1 - ex / 6);

  const year = stepKf(N, YEAR_KF);
  const cn = N - T_CARD;
  const cardY = CARD.y + slideUp(cn, 90, 22);
  const cardOp = cn < 0 ? 0 : fadeIn(cn, 8);
  const under = clamp01((N - T_UNDER) / 14);
  const fl = [0, 1, 2].map((i) => tri(N - (T_UNDER + 4 * i), 12));
  const titleS = emphasisPulse(N - T_UNDER, {peak: 1.06, up: 8, hold: 4, down: 10});
  const kw = [0, 1, 2].map((i) => clamp01((N - (T_WORDS + 10 * i)) / 11));
  const gn = N - T_BIG;
  const bigDy = slideUp(gn, 160, 22);
  const bigOp = gn < 0 ? 0 : fadeIn(gn, 10);

  return (
    <div style={{position: 'absolute', inset: 0, opacity: exOp}}>
      {/* 论文卡 */}
      {cardOp > 0 ? (
        <Box x={CARD.x} y={cardY} w={CARD.w} h={CARD.h} r={8} sw={3} opacity={cardOp} style={{filter: BLOOM_SOFT}}>
          {/* 标题三行 */}
          <div style={{position: 'absolute', left: 20, right: 20, top: 30, textAlign: 'center', fontFamily: FONT_SERIF, fontSize: 22, lineHeight: '28px', color: GREY_LIGHT, fontWeight: 700, whiteSpace: 'nowrap', transformOrigin: '50% 50%', transform: titleS === 1 ? undefined : `scale(${titleS.toFixed(4)})`}}>
            <div><Word k={kw[0]} f={fl[0]}>Retrieval</Word>-<Word k={kw[1]} f={fl[1]}>Augmented</Word> <Word k={kw[2]} f={fl[2]}>Generation</Word></div>
            <div>for Knowledge-Intensive</div>
            <div>NLP Tasks</div>
          </div>
          {/* 下划线(1211 draw-on,左锚) */}
          {under > 0 ? <div style={{position: 'absolute', left: 40, top: 122, width: (CARD.w - 80) * under, height: 2.5, background: PURPLE_LIGHT, boxShadow: '0 0 8px rgba(102,45,248,.7)'}} /> : null}
          {/* 作者行 */}
          <div style={{position: 'absolute', left: 0, right: 0, top: 138, textAlign: 'center', fontFamily: FONT_SERIF, fontSize: 22, lineHeight: '26px', color: GREY, whiteSpace: 'nowrap'}}>Lewis et al. · NeurIPS 2020</div>
          <div style={{position: 'absolute', left: 24, top: 176, width: CARD.w - 48, height: 1.5, background: GREY, opacity: 0.7}} />
          {/* 摘要两栏灰线 */}
          {Array.from({length: ABS_ROWS}, (_, i) => (
            <React.Fragment key={i}>
              <div style={{position: 'absolute', left: 24, top: 194 + i * 17, width: 156 * ABS_W[i], height: 3, background: GREY_MID}} />
              <div style={{position: 'absolute', left: 200, top: 194 + i * 17, width: 156 * ABS_W[(i + 5) % ABS_W.length], height: 3, background: GREY_MID}} />
            </React.Fragment>
          ))}
          {/* 左下继续文本;右下小图表 */}
          {Array.from({length: 6}, (_, i) => <div key={`b${i}`} style={{position: 'absolute', left: 24, top: 344 + i * 17, width: 156 * ABS_W[(i + 2) % ABS_W.length], height: 3, background: GREY_MID}} />)}
          <div style={{position: 'absolute', left: 200, top: 340, width: 156, height: 96, boxSizing: 'border-box', border: `1.5px solid ${GREY}`}}>
            {CHART_BARS.map(([h, c], i) => <div key={i} style={{position: 'absolute', left: 16 + i * 32, bottom: 12, width: 20, height: h, background: c, opacity: c === PURPLE ? 0.9 : 0.8}} />)}
            <div style={{position: 'absolute', left: 8, right: 8, bottom: 11, height: 1.5, background: GREY}} />
          </div>
        </Box>
      ) : null}

      {/* 右:年份计数 */}
      <SoftIn N={N} f0={T_YEAR}>
        <CText cx={860} cy={300} size={96} weight={700} family={FONT_ORB} letterSpacing={4} color={WHITE} shadow={TEXT_GLOW} style={{fontVariantNumeric: 'tabular-nums'}} dy={-2}>
          {year}
        </CText>
      </SoftIn>
      {/* 胶囊 Facebook AI Research */}
      <SoftIn N={N} f0={T_PILL}>
        <Pill x={690} y={376} w={340} h={50} sw={2.5} text="Facebook AI Research" fontSize={26} weight={700} letterSpacing={0.5} style={{filter: BLOOM_SOFT}} />
      </SoftIn>
      {/* 大号英文两行 */}
      {bigOp > 0 ? (
        <div style={{position: 'absolute', inset: 0, opacity: bigOp}}>
          <TechText cx={860} cy={495 + bigDy} text="Retrieval-Augmented" fontSize={42} scaleX={0.82} weight={700} />
          <TechText cx={860} cy={545 + bigDy} text="Generation" fontSize={42} scaleX={0.82} weight={700} />
        </div>
      ) : null}
    </div>
  );
};
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall