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/G4/SC19.tsx

View on GitHub
import React from 'react';
import {useCurrentFrame} from 'remotion';
import {emphasisPulse, easeOutCubic, easeInOutPow, powOutRemain} from '../../common';
import {CText, Pill, Svg, LineArrow, Check, Cross, DBIcon, ChunkCard, PURPLE, ORANGE, WHITE, GREY, GREY_LIGHT, GREEN, CORAL, fadeIn, scaleIn, exitAccel, abs, SoftIn} from '../../ui';

/**
 * SC19 向量数据库 + 元数据/权限(3299–3482)
 * 节拍:3307 存进向量数据库(DBIcon 缩放入场,3312 三张 ChunkCard 自左滑入)→ 3345 元数据和权限标签
 *      (每张卡贴两枚标签:「来源:员工手册 p.12」白 / 「ACL:财务组」橙,SoftIn 淡入 4 帧错峰;3360 起卡片沿弧线飞入库,
 *      18 帧一张、错峰 12 帧,库随之轻微脉冲;3402 库上出现 ACL 小标)→ 3405 谁能看什么(右侧两个用户图标滑入,
 *      连线 draw-on:财务组 绿勾 / 实习生 红叉)→ 3432 这一步定下来(库边框紫柔光脉冲)→ 3475 起 8 帧离场。
 * 依据 research §2.4:块携带来源/页码/ACL 等元数据,查询时先按元数据预过滤;OWASP LLM08 要求权限感知的向量库。
 */
export const F0 = 3299;
const B_DB = 3307, B_CARDS = 3312, B_TAGS = 3345, B_FLY = 3360, B_ACL = 3402, B_USERS = 3405, B_LOCK = 3432, EXIT = 3475;

const DB = {cx: 640, cy: 330, w: 160, h: 170};
const CARD = {x: 60, w: 210, h: 96};
const CARDS = [
  {y: 205, src: '来源:员工手册 p.12', srcW: 250, acl: 'ACL:财务组', seed: 1},
  {y: 350, src: '来源:差旅补充规定 2025', srcW: 290, acl: 'ACL:财务组', seed: 2},
  {y: 495, src: '来源:员工手册 p.12', srcW: 250, acl: 'ACL:财务组', seed: 3},
];
const USERS = [
  {cx: 930, cy: 300, label: '财务组', ok: true},
  {cx: 930, cy: 480, label: '实习生', ok: false},
];
const flyEase = easeInOutPow(2.2);

/** 用户小图标:圆头 + 肩线(SVG 全幅内) */
const UserIcon: React.FC<{cx: number; cy: number; color?: string; s?: number}> = ({cx, cy, color = WHITE, s = 1}) => (
  <g transform={`translate(${cx} ${cy}) scale(${s}) translate(${-cx} ${-cy})`} stroke={color} strokeWidth={2.5} fill="#000">
    <circle cx={cx} cy={cy - 16} r={13} />
    <path d={`M${cx - 27},${cy + 26} a27,27 0 0 1 54,0 Z`} strokeLinejoin="round" />
  </g>
);

export const SC19: React.FC = () => {
  const N = useCurrentFrame() + F0;
  const ne = N - EXIT;
  const exitOp = ne <= 0 ? 1 : Math.max(0, 1 - ne / 8);
  const exitDy = exitAccel(ne, 0.5);
  if (N < B_DB) return null;

  // 库:缩放入场 × 收卡脉冲 × 3432 强调脉冲
  const sDb = scaleIn(N - B_DB);
  let sPulse = 1;
  CARDS.forEach((_, i) => {
    sPulse *= emphasisPulse(N - (B_FLY + i * 12 + 15), {peak: 1.05, up: 4, hold: 2, down: 8});
  });
  const sLock = emphasisPulse(N - B_LOCK, {peak: 1.1, up: 12, hold: 4, down: 14});
  const lockGlow = N < B_LOCK ? 0 : Math.min(1, (sLock - 1) / 0.1 + 0.15);
  const sAll = sDb * sPulse * sLock;

  return (
    <div style={{position: 'absolute', inset: 0, opacity: exitOp, transform: `translateY(${exitDy.toFixed(2)}px)`}}>
      {/* 库后方紫柔光(3432 起) */}
      {lockGlow > 0 ? <div style={{...abs(DB.cx - DB.w / 2 + 10, DB.cy - DB.h / 2 + 10, DB.w - 20, DB.h - 20), borderRadius: '50% / 30%', boxShadow: '0 0 30px 14px rgba(102,45,248,.55), 0 0 70px 30px rgba(102,45,248,.3)', opacity: lockGlow}} /> : null}

      {/* 三张卡(+ 标签):自左滑入 → 贴标签 → 沿弧线飞入库 */}
      {CARDS.map((c, i) => {
        const nIn = N - (B_CARDS + i * 2);
        if (nIn < 0) return null;
        const slideX = -320 * powOutRemain(nIn, 22, 2.5);
        const inOp = fadeIn(nIn, 8);
        // 飞行
        const t = (N - (B_FLY + i * 12)) / 18;
        const e = t <= 0 ? 0 : flyEase(Math.min(1, t));
        const cx0 = CARD.x + CARD.w / 2, cy0 = c.y + CARD.h / 2;
        const dx = (DB.cx - cx0) * e;
        const dy = (DB.cy - cy0) * e - 90 * Math.sin(Math.PI * e);
        const sc = 1 - 0.78 * e;
        const flyOp = e < 0.7 ? 1 : Math.max(0, 1 - (e - 0.7) / 0.28);
        if (flyOp <= 0) return null;
        return (
          <div key={i} style={{...abs(CARD.x, c.y, CARD.w, CARD.h), opacity: inOp * flyOp, transform: `translate(${(slideX + dx).toFixed(2)}px, ${dy.toFixed(2)}px) scale(${sc.toFixed(4)})`, transformOrigin: '50% 50%'}}>
            <ChunkCard x={0} y={0} w={CARD.w} h={CARD.h} lines={4} seed={c.seed} />
            {/* 标签(伸出卡片右缘,指向库) */}
            <SoftIn N={N} f0={B_TAGS + i * 4} style={{overflow: 'visible'}}>
              <Pill x={CARD.w - 24} y={12} w={c.srcW} h={30} text={c.src} fontSize={22} weight={600} textDy={-1.5} style={{filter: 'drop-shadow(0 2px 2px rgba(0,0,0,.6))'}} />
              <Pill x={CARD.w - 24} y={52} w={150} h={30} text={c.acl} fontSize={22} weight={700} fill={ORANGE} sw={2} textDy={-1.5} glow="0 0 12px 3px rgba(240,95,65,.45)" />
            </SoftIn>
          </div>
        );
      })}

      {/* 库 */}
      {sDb > 0 ? (
        <div style={{position: 'absolute', inset: 0, transform: `translate(${DB.cx}px, ${DB.cy}px) scale(${sAll.toFixed(4)}) translate(${-DB.cx}px, ${-DB.cy}px)`, transformOrigin: '0 0'}}>
          <DBIcon cx={DB.cx} cy={DB.cy} w={DB.w} h={DB.h} label="向量数据库" labelSize={26} accent={PURPLE} sw={2.5} />
          {/* ACL 小标(卡片入库后) */}
          <SoftIn N={N} f0={B_ACL} style={{overflow: 'visible'}}>
            <Pill x={DB.cx + 28} y={DB.cy - DB.h / 2 - 14} w={68} h={30} text="ACL" fontSize={22} weight={800} fill={ORANGE} sw={2} textDy={-1} letterSpacing={1} glow="0 0 12px 3px rgba(240,95,65,.45)" />
          </SoftIn>
        </div>
      ) : null}

      {/* 右:谁能看什么 */}
      {USERS.map((u, i) => {
        const n = N - (B_USERS + i * 4);
        if (n < 0) return null;
        const dxIn = 300 * powOutRemain(n, 22, 2.5);
        const op = fadeIn(n, 10);
        const pArrow = easeOutCubic((N - (B_USERS + 8 + i * 6)) / 14);
        const pMark = easeOutCubic((N - (B_USERS + 20 + i * 6)) / 12);
        return (
          <React.Fragment key={i}>
            <div style={{position: 'absolute', inset: 0, opacity: op, transform: `translateX(${dxIn.toFixed(2)}px)`}}>
              <Svg>
                <UserIcon cx={u.cx} cy={u.cy} color={u.ok ? WHITE : GREY} />
              </Svg>
              <CText cx={u.cx + 88} cy={u.cy + 4} size={26} weight={700} color={u.ok ? WHITE : GREY_LIGHT}>{u.label}</CText>
            </div>
            <Svg>
              {pArrow > 0 ? <LineArrow x0={DB.cx + DB.w / 2 + 12} y0={DB.cy + (u.ok ? -10 : 20)} x1={u.cx - 40} y1={u.cy} p={pArrow} color={u.ok ? WHITE : GREY} rodW={u.ok ? 3 : 2.5} headL={18} headW={20} dashed={!u.ok} opacity={u.ok ? 1 : 0.85} /> : null}
              {pMark > 0 ? (u.ok ? <Check cx={u.cx + 180} cy={u.cy} size={46} p={pMark} sw={6} color={GREEN} /> : <Cross cx={u.cx + 180} cy={u.cy} size={36} p={pMark} sw={6} color={CORAL} />) : null}
            </Svg>
          </React.Fragment>
        );
      })}
    </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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated 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: 322kUpdated Claude CodeCodexVerifiedInstall