Decklume 标志

Decklume

社区
GgauravJ05
decklume

Create beautiful, animated HTML presentations — lectures, pitch decks, conference talks, thesis defenses, class projects — from a topic, notes, a document or a PowerPoint (.pptx). Outlines the story first, shows the user's own slides in three visual styles side by side, builds a single-file deck with Magic-Move transitions, step-by-step builds, charts and a presenter view, then verifies it with an automated design QA pass. Use whenever someone wants to make, convert, restyle or improve slides or a presentation.

概览

发布者GgauravJ05
代码仓库decklume
技能名称decklume
星标数
3
复刻数
2
附带文件
46
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 46 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 GgauravJ05 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Decklume AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/GgauravJ05/decklume/tree/main/skills/decklume
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GgauravJ05/decklume.git /tmp/decklume
mkdir -p .claude/skills
cp -r /tmp/decklume/skills/decklume .claude/skills/decklume
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Decklume,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Decklume。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Decklume 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Decklume

Decklume turns content into a presentation that looks designed, not generated. It does that with constraints, not adjectives: a fixed 1920×1080 canvas, a type scale, a 12-column grid, 30 tested layouts, curated themes and a QA gate that fails a deck on real defects. Your job is the story and the content. The engine handles layout, typography and motion.

SKILL_DIR below means the directory containing this file. Every script uses Node ≥ 18 built-ins only. QA, preview images and PDF export use Playwright, which installs itself once into ~/.cache/decklume (never into the user's project).

Non-negotiables

  1. Write slide content, not layout CSS. Use the layout classes in references/layouts.md. Never hand-position text with pixel values to make something fit. If it doesn't fit, split the slide.
  2. One idea per slide, and the headline says it. Content slides get an assertion headline (a short claim), not a topic label: "Half the night is stage N2", not "Sleep stages".
  3. Show, don't ask about taste. People choose a style by seeing their own slides rendered three ways, never from a list of adjectives.
  4. Nothing ships until qa.mjs passes and you have looked at the contact sheet yourself.
  5. No internal text on slides. Never put theme names, "Option A", file names, prompts or requirement notes ("bold option", "audience: VCs") on a slide.
  6. Never invent facts. Statistics, dates, quotes and citations come from the user's material or from well-established knowledge you are sure of. If a slide needs a number you don't have, ask, or write the slide without it. Never fabricate a source line.

Phase 0 — Detect the job

The user has…ModeStart at
A topic, notes, an essay, a docNew deckPhase 1
A .pptxConvertRun node SKILL_DIR/scripts/extract-pptx.mjs deck.pptx .decklume/import, read extracted-slides.json, then Phase 1 with that content. Native charts arrive as ready-made decklume_attrs.
A PDF or Markdown deckConvertRead it, treat it as notes, Phase 1
An existing Decklume deck (*.deck.html)EditEdit the source, rebuild, Phase 5
Any other HTML deck to improveRestyleExtract its content into a new source, then Phase 1

Working files go in .decklume/ next to the deck. Delete it at the end unless the user wants to keep it.

Phase 1 — Brief (one round of questions)

Ask everything you still need in one message (use the structured question tool if available). Skip anything the user already told you.

  1. Purpose and audience. Lecture or class, pitch, conference talk, thesis or research defense, internal review, workshop.
  2. Mode. Speaker-led (few words, big type, the speaker carries it) or reading (self-contained slides people read without a speaker).
  3. Length. Minutes or rough slide count. Default to about one slide per minute for talks.
  4. Assets. Logo, brand colours, images, data, a template to match.

If the user gives images, look at every one. Decide which are usable, what each shows, and design the outline around them (3 product screenshots means 3 feature slides). Never use an image you haven't looked at.

Phase 2 — Storyline (get it approved before any design)

Read references/storyline.md. Write .decklume/outline.md as a numbered table:

#LayoutHeadline (assertion)Content
  • Choose an arc that fits the purpose (lecture, pitch, research talk, update; see the reference).
  • Each row names one layout from the layout reference. Vary them: avoid three identical layouts in a row, and use section, statement, KPI or quote slides as breathing room.
  • Respect the content limits of each layout. Split rather than cram.
  • Mark build steps (step) where a speaker reveals points one at a time, and plan one or two Magic Move pairs (morph) where the same element should travel between consecutive slides (a number, a title, an image).

Show the outline to the user as a compact table and ask: "Does this story work? Change anything before I design it." Revise until they're happy.

Phase 3 — Style discovery (three directions, their own content)

  1. Run node SKILL_DIR/scripts/build.mjs --list-themes --json and choose three genuinely different directions for this audience and mood, using each theme's mood, formality, density, scheme, best_for and avoid_for:
    • A safe fit: the theme that best matches the brief.
    • A contrast: a different scheme or temperament (dark vs light, serif vs grotesk).
    • A wildcard: another built-in theme, or a custom theme designed for this deck when the brief has a sharper opportunity (a brand, a subject with its own visual culture). See references/custom-themes.md.
    • If the user named a theme or a look, honour it as one of the three.
  2. Write .decklume/sample.deck.html with the title slide plus the two most representative content slides from the approved outline, using real headlines and content.
  3. Render the comparison:
    bash
    node SKILL_DIR/scripts/preview.mjs .decklume/sample.deck.html --themes a,b,c --png
    Look at .decklume/preview/index.png yourself. If a direction looks weak with this content, swap it before showing the user.
  4. Open .decklume/preview/index.html for the user (open on macOS, xdg-open on Linux, start on Windows) and ask which direction they want: A, B, C, or a mix ("A's type with C's colours"). For a mix, create a custom theme from the closest one.

Phase 4 — Build the deck

Write <name>.deck.html (front matter + slides) next to where the user wants the deck, following references/layouts.md exactly.

html
---
title: How Sleep Shapes Memory
description: One sentence for link previews and search.
author: Name
theme: folio
---
<section class="slide l-title">…</section>
<section class="slide l-list" data-dim>…</section>
  • Speaker notes: <aside class="notes">…</aside> inside any slide. Write them for speaker-led decks. They appear in the presenter view.
  • Builds: add class="step" to elements revealed one press at a time; data-dim on the slide dims earlier steps.
  • Magic Move: give the same data-morph="name" to an element on two consecutive slides, or set data-transition="morph" to pair matching titles, numbers and images automatically.
  • Motion: set a deck transition: in front matter (fade, push, rise, cover, zoom, wipe, iris, blur, flip, morph, none) and override it per slide with data-transition. Use data-anim for element entrances (rise, wipe, type, count, draw…), data-anim on .step for build effects (including highlight), and <pre class="code" data-lines="1-3|5"> for code walkthroughs. Read references/motion.md; one deck default plus a few deliberate overrides.
  • Charts: <figure class="chart" data-type="bar|hbar|line|donut" data-labels="…" data-series="Name:1,2,3" data-highlight="2">. Highlight the one data point the headline is about.
  • Images: relative paths only (assets/photo.jpg). Every <img> gets meaningful alt text (alt="" for pure decoration).
  • Deck-specific CSS is allowed in a <style> block for small touches that use theme tokens (var(--c-accent)). If you're writing a lot of it, use a different layout or a custom theme instead.

Then build:

bash
node SKILL_DIR/scripts/build.mjs <name>.deck.html          # → <name>.html

Fix every build warning (unknown layout, missing asset, absolute path).

Phase 5 — QA gate (mandatory)

bash
node SKILL_DIR/scripts/qa.mjs <name>.html [--density reading]
  • Errors must reach zero. They cover overflow, clipped text, safe-area collisions, overlapping text, type below the minimum size, WCAG contrast failures, web fonts that didn't load, leaked placeholder text, broken images, JS errors and non-16:9 scaling. Fix the cause: split the slide, shorten copy, change layout. Don't shrink type and don't hide the problem with overflow: hidden.
  • Read the contact sheet (<name>.qa/contact-sheet.png) and look at it like a designer. Check rhythm and variety across slides, alignment, empty or overloaded slides, awkward line breaks in headlines, and widows. Open individual slides from <name>.qa/slides/ where something looks off.
  • Treat warnings as design feedback: crowding, missing alt text, long headlines and slop patterns.
  • Rebuild and re-run until it passes. Delete the .qa folder afterwards.

Phase 6 — Deliver

Open the deck for the user and tell them briefly:

  • the file, its theme and slide count;
  • controls: → / Space next, ← back, O overview, P presenter window (notes, timer, next slide), F fullscreen, B blackout, E edit text in the browser (⌘/Ctrl+S saves), ? all shortcuts;
  • that the deck is one self-contained HTML file. It works offline once fonts are cached and runs on any device. Use --inline-assets at build time to bake images into the file for easy sharing.

Then offer the next steps:

  • PDF (vector, selectable text): node SKILL_DIR/scripts/export.mjs <name>.html
  • PNG per slide: node SKILL_DIR/scripts/export.mjs <name>.html --png
  • Live link: node SKILL_DIR/scripts/deploy.mjs <name>.html (Vercel), or any static host (GitHub Pages, Netlify Drop).

Editing later

Users come back with "make slide 6 punchier" or "add a slide about X". Edit the .deck.html source (never the built .html), rebuild, re-run QA. If the user edited text in the browser with E and saved, their saved .html is now the newest version. Copy those text changes back into the source before rebuilding.

Reference files

FileRead when
references/storyline.mdPhase 2: arcs, assertion headlines, pacing
references/layouts.mdPhases 2–4: every layout's markup and content limits
references/design-rules.mdPhase 4: typography, colour, motion, charts, anti-slop
references/motion.mdPhase 4: transitions, entrances, builds, code walkthroughs, recipes
references/custom-themes.mdDesigning a wildcard, brand or mixed theme

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Decklume AI 技能有什么作用?

Create beautiful, animated HTML presentations — lectures, pitch decks, conference talks, thesis defenses, class projects — from a topic, notes, a document or a PowerPoint (.pptx). Outlines the story first, shows the user's own slides in three visual styles side by side, builds a single-file deck with Magic-Move transitions, step-by-step builds, charts and a presenter view, then verifies it with an automated design QA pass. Use whenever someone wants to make, convert, restyle or improve slides or a presentation.

为什么在 TypingMind 中使用 Decklume?

因为您只需安装一次,就能搭配任何模型使用。Decklume 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Decklume?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/GgauravJ05/decklume/tree/main/skills/decklume。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Decklume?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Decklume 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Decklume 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Decklume AI 技能免费吗?

是的。GgauravJ05 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇