deck-creator

crazywoola 的头像作者 crazywoola

在此存储库中创建、更新和翻译 Dify X Reveal.js 幻灯片。当要求为 ctrip/paypal/pupu/milvus/aispeech/dentsply/oceanbase/legalai 平台(包括平台 HTML (index.html/index_en.html) 和法律工作流程 YAML)起草幻灯片、提取大纲或维护双语 CN/EN 同等性时使用。

📖 中文导读:在此存储库中创建、更新和翻译 Dify X Reveal.js 幻灯片。当要求为 ctrip/paypal/pupu/milvus/aispeech/dentsply/oceanbase/legalai 平台(包括平台 HTML (index.html/index_en.html) 和法律工作流程 YAML)起草幻灯片、提取大纲或维护双语 CN/EN 同等性时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: deck-creator description: Create, update, and translate Dify X Reveal.js slide decks in this repo. Use when asked to draft slides, extract outlines, or maintain bilingual CN/EN parity for the ctrip/paypal/pupu/milvus/aispeech/dentsply/oceanbase/legalai decks, including deck HTML (index.html/index_en.html) and legal workflow YAMLs.

Deck Creator

Overview

Use existing decks as the source of truth to create outlines, edits, or translations. Keep CN and EN versions aligned while preserving deck-specific structure and styling.

Workflow

  1. Identify the topic and target audience based on the user's request.
  2. Identify the theme of the deck based on the user's request.
  3. Use reveal.js to create a new deck.
  4. Use the following structure:
      1. Title
      1. Introduction
      1. Content
      1. Conclusion
      1. Q&A
      1. References
      1. Contact
  5. Enrich the deck with the topic and content from the user's request.
    • For the content, use vertical stack to present the content.
    • Use $infographic-syntax-creator when embedding AntV Infographic charts (see Infographic Integration).
  6. Add support for speaker notes, and add speaker notes for each slide.
  7. Add xiaohongshu and bilibili qr code to the contact slide.

Output Expectations

  • Deliver CN and EN versions as separate outputs when generating new content.
  • Keep slide order, numbering, and vertical stack structure aligned across languages.
  • Call out any ambiguous translations or terminology conflicts.

Infographic Integration (AntV Infographic + Reveal.js)

  • Load @antv/infographic via script tag and use a fixed-height container (vh or min-height) so the chart can measure.
  • Insert a container with data-infographic="key" and render from a JS map that uses the exact same key.
  • Render only after the slide is visible and sized (hook Reveal.on('ready') and Reveal.on('slidechanged'); re-render on resize).
  • Clear the container before re-rendering to avoid stacked canvases.
  • If a chart is missing, first check key mismatches or zero-size containers.

Brand & Assets

  • Brand: use Dify Blue #0033ff; logo in assets/logo.svg.
  • Fonts: prefer Söhne / Söhne Mono; fallbacks Inter, JetBrains Mono, Mi Sans / Noto Sans SC / Noto Sans Mono SC.
  • Assets: assets/ contains logo.svg, bilibili.png, xiaohongshu.png for brand and contact slides.

References