---
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:
   - 01. Title
   - 02. Introduction
   - 03. Content
   - 04. Conclusion
   - 05. Q&A
   - 06. References
   - 07. 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



---
Source attribution: crazywoola
Original project: https://github.com/crazywoola/dify-x/blob/75d8a95a5141904a448a3bf9bd220ed525f0a408/.codex/deck-creator/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2025 crazywoola

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: crazywoola
Original project: https://github.com/crazywoola/dify-x/blob/75d8a95a5141904a448a3bf9bd220ed525f0a408/.codex/deck-creator/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Design, Marketing, Project & Program Management
Roles: Brand Strategist, Content Marketer, Graphic Designer, Project Manager, UX Designer
Specialties: Design, Frontend
Tools: Infographic Creator, Reveal.Js
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 9338534ca3bbedb20dd6b0365f21791cb5a6b7d692627b6bd7220e95a1674c81
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Dave AI catalog attribution. Original instruction and supporting files are preserved.
