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/card-main.js

View on GitHub
function main() {
  // Starter main() for the opening card (key 'cv') or closing card (key 'end'), 1920×1080.
  // Use: copy the chosen styles/<style>/diagram.html, replace its main() with this one.
  // Colours come from the style's C.card (card frame / fill / accent / title / text); the deck's frosted glass
  // behind the card (C.card.glass / pane / shadow) is applied by keynote.html automatically.
  // In the deck the card floats over the frosted overview; rendered alone it is a standalone cover.
  // Contract with keynote.html:
  //   - the card is the LARGEST shape in this diagram (keynote's frosted #card pane is sized from it);
  //   - its title is drawn with title() — its words fly to the overview's title() words with the same text,
  //     CJK line ↔ CJK line, Latin line ↔ Latin line (by script, not by line order);
  //   - the closing card repeats the opening card's title, so overview → end replays the cover move backwards.
  const K = C.card;
  C.title = K.title;                    // title() reads C.title at call time
  const W = canvas.width, cx = W / 2;
  const centered = (text, size) => { ctx.font = `700 ${size}px ${FONT_TI}`; return cx - ctx.measureText(text).width / 2; };
  // Picture on the label layer; build_deck.py inlines it as a data URI. Path is relative to this HTML file.
  // Pictures never pair in Magic Move — they only fade.
  const pic = (src, x, y, w, h) => {
    const im = document.createElement('img');
    im.src = src; im.className = 'label';
    Object.assign(im.style, { left: x + 'px', top: y + 'px', width: w + 'px', height: h + 'px' });
    L.appendChild(im);
  };

  // The card: drawn with the style's own box(), so it matches the diagrams (rough / rounded / chamfered / shadowed).
  box(330, 249, 1260, 580, { stroke: K.stroke, fill: K.fill });

  // Use the overview title's words: every shared word flies; the rest fades.
  const en = 'Deck Title In English', zh = '中文演示标题';
  title(en, centered(en, 72), 446, 72);   // closing card: 64 / 38 px
  title(zh, centered(zh, 44), 514, 44);
  rc.line(cx - 290, 557, cx + 290, 557, { stroke: K.accent, strokeWidth: 2.2, roughness: 1.1, bowing: 1 });

  lbl({ text: 'Team Name', sub: '团队名', x: cx - 470, y: 640, w: 420, color: K.muted, size: 32, subSize: 19 });
  rc.line(cx, 642, cx, 712, { stroke: K.accent, strokeWidth: 1.6, roughness: 1.2 });
  lbl({ text: 'Speaker Name', sub: '分享人', x: cx + 50, y: 640, w: 420, color: K.muted, size: 32, subSize: 19 });

  // Optional QR tile, bottom right (see references/cards.md for generating assets/qr.svg).
  // const qx = 1668, qy = 776, qs = 196;
  // rc.rectangle(qx, qy, qs, qs, { stroke: K.stroke, strokeWidth: 2, roughness: 1.3, bowing: 1, fill: '#ffffff', fillStyle: 'solid' });
  // pic('assets/qr.svg', qx + 14, qy + 14, qs - 28, qs - 28);
  // plain({ text: 'Scan to ...', x: qx - 40, y: qy + qs + 12, w: qs + 80, color: K.accent, size: 18, weight: 700 });
}
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