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/SC10.tsx

View on GitHub
import React from 'react';
import {useCurrentFrame} from 'remotion';
import {clamp01, powOutRemain, easeInOutPow} from '../../common';
import {Pill, Svg, LineArrow, Check, DocIcon, LLMIcon, WHITE, GREY, PURPLE, PURPLE_LIGHT, fadeIn, scaleIn, stagger, SoftIn} from '../../ui';
import {mixHex, StepPill} from './parts';

/**
 * SC10 检索 + 生成 = 靠证据 · N 1329–1480(S10 1337–1478:1337「它把检索和生成两个动作接在一起」/ 1413「回答不再只靠记忆」/ 1454「而是靠证据」)
 * 版式:上半 两个大胶囊「检索」「生成」200×70 34px,中心 y 247:自两侧滑入到 x 380 / 900,再向中间靠拢到 470 / 810,
 *       两胶囊之间用 3px 白线自各自边缘长出接到中点、中点紫色接头(r9)+ 4 帧白闪 = "接成一体"。
 *       下半左 LLMIcon (300,445) size 110 + 胶囊「记忆」(368,423):淡入后 8 帧变灰并下沉 12px;
 *       下半右 三张 DocIcon(首行紫)(748/814/880, 410) + 紫胶囊「证据」(962,423) + 绿勾 (1150,445);中间白箭头 (528→700, 445)。
 * 节拍:1337 滑入(Δ520/22);1362 靠拢 18 帧;1380 连接线 16 帧;1392 接头缩放入 6 帧;1396 白闪 4 帧;
 *       1413 记忆组淡入 12 帧;1421 起 11 帧变灰 + 12 帧下沉;1450 箭头 14 帧;1454/1456/1458 文档缩放入;1458「证据」SoftIn(本镜头无 glitch,协议 §8);1462 绿勾 12 帧;1475–1480 整组 6 帧淡出到 0(opacity = 1 − (n/6)^1.5,与 1481 章节卡「02」淡入相接;复验 C1-3:原 exitFade 0.87→0 硬切)。
 */
const F0 = 1329;
const T_IN = 1337, T_CONV = 1362, T_LINK = 1380, T_JOINT = 1392, T_FLASH = 1396, T_MEM = 1413, T_GREY = 1421, T_ARROW = 1450, T_EV = 1454, T_EVPILL = 1458, T_CHECK = 1462, T_EXIT = 1474;

const PW = 200, PH = 70, PY = 212, CY = PY + PH / 2; // 247
const LY = 445; // 下半组中轴 y
const DOCS_X = [748, 814, 880];
const FLASH_A = [0.85, 0.55, 0.3, 0.12];

export const SC10: React.FC = () => {
  const N = useCurrentFrame() + F0;
  // 末 6 帧(1475–1480)整组淡出到 0:n=1..6 → 0.93 / 0.81 / 0.65 / 0.46 / 0.24 / 0
  const exOp = N <= T_EXIT ? 1 : Math.max(0, 1 - Math.pow((N - T_EXIT) / 6, 1.5));

  // 上半:两胶囊中心 x
  const rem = N < T_IN ? 1 : powOutRemain(N - T_IN, 22, 2.5);
  const conv = N < T_CONV ? 0 : easeInOutPow(2.5)(clamp01((N - T_CONV) / 18));
  const cxL = 380 - 520 * rem + 90 * conv;
  const cxR = 900 + 520 * rem - 90 * conv;
  const pillOp = N < T_IN ? 0 : 1;
  // 连接线:自胶囊边缘向中点长出
  const lp = clamp01((N - T_LINK) / 16);
  const lx0 = cxL + PW / 2, rx0 = cxR - PW / 2;
  const jointS = N < T_JOINT ? 0 : scaleIn(N - T_JOINT, 6);
  const fi = N - T_FLASH;
  const flashA = fi >= 0 && fi < FLASH_A.length ? FLASH_A[fi] : 0;

  // 下半左:记忆组
  const mn = N - T_MEM;
  const memOp = mn < 0 ? 0 : fadeIn(mn, 12);
  const gk = clamp01((N - T_GREY) / 11);
  const sink = 12 * easeInOutPow(2.5)(clamp01((N - T_GREY) / 12));
  const memCol = mixHex(WHITE, GREY, gk);
  const memAccent = mixHex(PURPLE, GREY, gk);

  // 下半右:证据组
  const ap = clamp01((N - T_ARROW) / 14);
  const chk = clamp01((N - T_CHECK) / 12);

  return (
    <div style={{position: 'absolute', inset: 0, opacity: exOp}}>
      {/* 上半:检索 / 生成 */}
      {pillOp > 0 ? (
        <>
          <Pill x={cxL - PW / 2} y={PY} w={PW} h={PH} sw={3} text="检索" fontSize={34} weight={800} letterSpacing={4} textDy={-3} />
          <Pill x={cxR - PW / 2} y={PY} w={PW} h={PH} sw={3} text="生成" fontSize={34} weight={800} letterSpacing={4} textDy={-3} />
        </>
      ) : null}
      <Svg>
        {lp > 0 ? (
          <>
            <line x1={lx0} y1={CY} x2={lx0 + (640 - lx0) * lp} y2={CY} stroke={WHITE} strokeWidth={3} />
            <line x1={rx0} y1={CY} x2={rx0 - (rx0 - 640) * lp} y2={CY} stroke={WHITE} strokeWidth={3} />
          </>
        ) : null}
        {jointS > 0 ? <circle cx={640} cy={CY} r={10 * jointS} fill={PURPLE} stroke={WHITE} strokeWidth={2.5} /> : null}
        {flashA > 0 ? (
          <>
            <circle cx={640} cy={CY} r={26 + 10 * fi} fill={WHITE} opacity={flashA * 0.55} />
            <circle cx={640} cy={CY} r={12 + 3 * fi} fill={WHITE} opacity={flashA} />
          </>
        ) : null}
        {/* 记忆 → 证据 箭头 */}
        <LineArrow x0={528} y0={LY} x1={700} y1={LY} p={ap} />
        {/* 绿勾 */}
        {chk > 0 ? <Check cx={1150} cy={LY} size={56} sw={6} p={chk} /> : null}
      </Svg>

      {/* 下半左:记忆(白→灰、下沉) */}
      {memOp > 0 ? (
        <div style={{position: 'absolute', inset: 0, opacity: memOp, transform: sink ? `translateY(${sink.toFixed(2)}px)` : undefined}}>
          <LLMIcon cx={300} cy={LY} size={110} color={memCol} accent={memAccent} glow={gk < 0.5} />
          <Pill x={368} y={LY - 22} w={130} h={44} sw={2} stroke={memCol} text="记忆" fontSize={26} weight={700} color={memCol} />
        </div>
      ) : null}

      {/* 下半右:证据(三文档 2 帧错峰缩放入 + 紫胶囊 + 绿勾) */}
      {DOCS_X.map((x, i) => {
        const n = N - T_EV - stagger(i, 2);
        if (n < 0) return null;
        const s = 0.2 + 0.8 * scaleIn(n, 21);
        return (
          <div key={i} style={{position: 'absolute', left: x, top: LY - 35, width: 56, height: 70, opacity: fadeIn(n, 6), transform: `scale(${s.toFixed(4)})`, transformOrigin: '50% 50%'}}>
            <DocIcon x={0} y={0} w={56} h={70} lines={4} sw={2.5} accent={PURPLE_LIGHT} />
          </div>
        );
      })}
      <SoftIn N={N} f0={T_EVPILL}>
        <StepPill cx={1027} y={LY - 22} text="证据" active />
      </SoftIn>
    </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