Skip to content

MiniMax-AI/mcode-stack / stacks/youfang/skills/magic-move-deck

magic-move-deck

Unverified

Build Keynote-style Magic Move slide decks as one offline 1920×1080 HTML file: every slide is an architecture / flow diagram seen through a camera, and the elements two slides share morph and fly instead of cross-fading. Four visual styles (hand-drawn, minimal, dark neon, neo-brutalist): the agent first renders one sample slide in each style, the user picks one, then the whole deck is built in that style. Also exports 4K / 1080p video. Use for 做演示 / 做 slides / 做 PPT / Magic Move / 神奇移动 / 架构图演示 / 技术分享 deck / 动画 slides / animated architecture walkthrough. Not for bullet-point decks or a single static diagram.

FileKindSize
SKILL.mdskill md10.5 KB
examples/rag-assistant/README.mdmarkdown6.1 KB
examples/rag-assistant/details/00_cover.htmlother15.5 KB
examples/rag-assistant/details/01_ingestion.htmlother21.2 KB
examples/rag-assistant/details/02_retrieval.htmlother21.2 KB
examples/rag-assistant/details/03_generation.htmlother22.1 KB
examples/rag-assistant/details/99_end.htmlother15.6 KB
examples/rag-assistant/diagram-binding.mdmarkdown2.8 KB
examples/rag-assistant/overview.htmlother23.5 KB
examples/rag-assistant/previews/00_cover.jpgbinary80.6 KB
examples/rag-assistant/previews/01_ingestion.jpgbinary175.3 KB
examples/rag-assistant/previews/02_retrieval.jpgbinary184.5 KB
examples/rag-assistant/previews/03_generation.jpgbinary187.1 KB
examples/rag-assistant/previews/99_end.jpgbinary86.6 KB
examples/rag-assistant/previews/overview.jpgbinary163.2 KB
examples/rag-assistant/previews/trans_d1_to_spot.jpgbinary133.6 KB
examples/rag-assistant/previews/trans_overview_to_d1.jpgbinary78.5 KB
references/bilingual-layout.mdmarkdown2.6 KB
references/cards.mdmarkdown5.0 KB
references/diagram-rules.mdmarkdown4.9 KB
references/magic-move-contract.mdmarkdown7.4 KB
references/styles.mdmarkdown4.3 KB
references/verification.mdmarkdown4.8 KB
scripts/build_deck.pyscript15.8 KB
scripts/render_video.pyscript6.7 KB
scripts/snapshot_deck.pyscript5.0 KB
scripts/styles.pyscript7.3 KB
styles/brutalist/STYLE.mdmarkdown2.1 KB
styles/brutalist/diagram.htmlother12.5 KB
styles/brutalist/preview.pngbinary221.2 KB
styles/handdrawn/STYLE.mdmarkdown2.1 KB
styles/handdrawn/diagram.htmlother14.6 KB
styles/handdrawn/preview.pngbinary302.9 KB
styles/minimal/STYLE.mdmarkdown2.0 KB
styles/minimal/diagram.htmlother12.6 KB
styles/minimal/preview.pngbinary226.2 KB
styles/neon/STYLE.mdmarkdown1.9 KB
styles/neon/diagram.htmlother13.4 KB
styles/neon/preview.pngbinary280.1 KB
templates/card-main.jsscript2.9 KB
templates/detail-main.jsscript4.3 KB
templates/diagram-binding.mdmarkdown1.2 KB
templates/keynote.htmlother38.7 KB

templates/detail-main.js

View on GitHub
function main() {
  // Starter main() for a 1920×1080 detail diagram of a Magic Move deck.
  // Use: copy the chosen styles/<style>/diagram.html (already 1920×1080), replace its main() with this one,
  // then draw. Never edit or bypass the helpers above main(): build_deck.py hooks rc.*, plain, lbl, title,
  // subtitle, frame, arrow, timeline, taskCard, bubble, legend by name; anything painted straight onto ctx
  // never reaches the deck. Every style exposes the same helpers, so this main() renders in any style:
  // don't hard-code a look (roughness, fonts, hex colours) — use C.<slot>, opts(), FONT_TI / FONT_BD.
  //
  // Concept color binding (must match the series' diagram-binding table):
  //   C.agent = ...   C.tools = ...   C.flow = all normal arrows   C.error = rejected / unreachable (red dashed)

  // ---------- Bilingual helpers (pairs are always passed as (中文, English); English leads, larger) ----------
  // Two-line label: English line, then a smaller Chinese line under it.
  const bl = (zh, en, zhSize = 13) => `${en}<br><span style="font-size:${zhSize}px">${zh}</span>`;
  // One-line label "English<em space>中文" — every frame() label uses it (build_deck.py splits on the em space).
  const fl = (zh, en) => `${en}&emsp;<span style="font-size:14px">${zh}</span>`;
  // Shrink the last label to its text width, so its ivory background only masks what it covers.
  const fitLast = () => { L.lastChild.style.width = 'max-content'; };
  // Block centered in (x, y, w, h): EN title / smaller CN title / detail pairs (EN over smaller CN; 'gap' = spacer).
  // The CN title is the node's pairing name: keep it the first bold CJK line inside the box.
  const btext = (x, y, w, h, color, [tz, te], subs = [], o = {}) => {
    const size = o.size || 22, zhSize = o.zhSize || Math.round(size * 0.68);
    const subSize = o.subSize || 15, zhSubSize = o.zhSubSize || 13, pairGap = o.pairGap || 4;
    let html = `<div class="ti" style="font-size:${size}px">${te || tz}</div>`;
    if (te) html += `<div class="ti" style="font-size:${zhSize}px;margin-top:1px">${tz}</div>`;
    let pending = 0, first = true;
    subs.forEach((s) => {
      if (s === 'gap') { pending += 12; return; }
      const [sz, se] = s, mt = (first ? 8 : pairGap) + pending;
      first = false; pending = 0;
      html += `<div style="margin-top:${mt}px;opacity:.88">` +
              `<div style="font-size:${subSize}px">${se || sz}</div>` +
              (se ? `<div style="font-size:${zhSubSize}px">${sz}</div>` : '') + `</div>`;
    });
    plain({ text: html, x, y, w, color: color.stroke, size: subSize });
    L.lastChild.style.top = y + (h - L.lastChild.offsetHeight) / 2 + 'px';   // measured: a wrapped line stays centered
  };
  // Node = box + centered bilingual block. Main subject: bigger box + { box: { strokeWidth: 3.2 } }.
  const bnode = (x, y, w, h, color, t, subs, o = {}) => {
    box(x, y, w, h, color, o.box || {});
    btext(x, y, w, h, color, t, subs, o);
  };
  const RED = { stroke: C.error.stroke, strokeLineDash: [10, 7] };

  // ---------- Title: exactly two title() calls — English (starts with the overview principle's ①–⑳), then Chinese ----------
  const head = '① Principle in English';
  ctx.font = `700 40px ${FONT_TI}`;
  const headW = ctx.measureText(head).width + 24;
  title(head, 60, 66, 40);
  title('中文标题', 60 + headW, 66, 28);
  subtitle('One English sentence: the claim this diagram proves.', 60, 104, 21);
  subtitle('一句中文:这张图要证明的结论', 60, 134, 18);

  // ---------- Zones: frame() + fl(); the label carries a zone keyword listed in keynote.html ZONES ----------
  frame(40, 220, 900, 800, C.agent, fl('受信控制面', 'Trusted control plane'), 10); fitLast();
  frame(980, 220, 900, 800, C.tools, fl('隔离执行区', 'Isolated execution zone'), 10); fitLast();

  // ---------- Nodes: same Chinese name as on the overview, so the box morphs instead of fading ----------
  bnode(100, 300, 360, 240, C.agent, ['业务服务', 'Business service'],
        [['会话 · 权限', 'Sessions · permissions']], { size: 30, zhSize: 19, subSize: 17, zhSubSize: 14, box: { strokeWidth: 3.2 } });
  bnode(1040, 300, 300, 200, C.tools, ['安全沙箱', 'Sandbox'], [['一任务一沙箱', 'One task, one sandbox']]);
  arrow(462, 400, 1038, 400);
  plain({ text: bl('工具调用', 'Tool calls', 14), x: 600, y: 350, w: 300, color: C.caption, size: 16 });
}
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 197kUpdated Claude CodeCodexVerifiedInstall