Slide Upgrade 标志

Slide Upgrade

社区
lfurze
slide-upgrade

将 PPTX 文件或 Markdown 转换为精美、媲美 Canva 的 HTML 幻灯片。适用于用户要求升级 PowerPoint、将幻灯片重新渲染为 HTML、转换演示文稿,或根据 Markdown/文本制作现代幻灯片。触发短语包括:“升级这个 PPTX”“重新渲染为 HTML 幻灯片”“转换这个演示文稿”“制作 Canva 风格的幻灯片”“slide-upgrade”“把这个转成 HTML 幻灯片”“重新设计这些幻灯片”“制作精美幻灯片”。生成一个 .html 文件(图像以 base64 编码;视频放在 media/ 文件夹中),采用醒目的排版、现代布局,并提供完整的演示文稿导航。

概览

发布者lfurze
代码仓库claude-skills
技能名称slide-upgrade
星标数
24
复刻数
5
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 2 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Slide Upgrade

Convert any input — PPTX, Markdown, or a plain prompt — into a visually stunning, Canva-quality HTML slide deck. Images are base64-encoded into the HTML; videos (too large for inline embedding) are copied to a media/ folder alongside the HTML with relative path references. The output looks like it was designed in Canva or Figma, not PowerPoint.

Design Philosophy

The output should feel like a contemporary creative portfolio or Canva template, not a corporate PowerPoint. Key principles:

  • Massive, bold typography — headings should dominate the slide (100-200px, condensed, uppercase)
  • Full-colour backgrounds — bold yellow, deep blue, rich black, vibrant red — not just white
  • Confident whitespace — don't fill every pixel; let elements breathe
  • Photo-forward layouts — images bleed to edges, use geometric crops (circles, arches, diagonals)
  • Visual hierarchy through scale — the difference between heading and body should be dramatic (5-10x)
  • Slide numbering — prominent slide numbers (01, 02, 03) add editorial structure
  • Horizontal rules — use lines to separate and structure content, not boxes
  • Type as hero — on many slides, the typography IS the design; no images needed

Inputs

PPTX File

  1. Unzip the PPTX and parse the raw XML (see references/pptx-extractor.md) — do not use python-pptx, it misses videos, shape-fill images, and SVGs
  2. Read each slide XML to extract text, images, videos, tables, and backgrounds
  3. Redesign from scratch — don't try to replicate the PPTX layout; reimagine it with Canva-quality design
  4. Base64-encode images for self-contained HTML; copy videos to a media/ folder alongside the HTML with relative path references

Markdown File

  1. Read the .md file
  2. Split on --- horizontal rules for slide breaks (if present)
  3. If no explicit breaks, use heading hierarchy: # H1 = section dividers, ## H2 = individual slides
  4. Parse content per slide, then design

Prompt Only

  1. Plan the slide structure with the user
  2. Generate content and design simultaneously

Workflow

Step 1: Extract & Understand

For PPTX: Unzip and parse the raw XML (see references/pptx-extractor.md):

bash
rm -rf /tmp/pptx-unpacked && mkdir -p /tmp/pptx-unpacked
cd /tmp/pptx-unpacked && unzip -o "path/to/file.pptx" > /dev/null 2>&1

Then:

  1. Read ppt/presentation.xml + ppt/_rels/presentation.xml.rels to determine slide order
  2. List ppt/media/ to see all images (png/jpeg/svg) and videos (mp4)
  3. Check each ppt/slides/_rels/slideN.xml.rels to map media → slides
  4. Read each ppt/slides/slideN.xml to extract text, tables, backgrounds, and layout
  5. Copy videos to media/ folder next to output HTML; base64-encode images

For Markdown: Read the file and identify slide breaks and content hierarchy.

For prompts: Confirm the slide outline with the user.

Step 2: Plan the Design

  1. Choose a theme — pick from presets (see references/canva-aesthetic.md) or create a custom palette based on the content/brand
  2. Choose fonts — pick a display font and body font from Google Fonts. For the Canva aesthetic, strongly prefer bold condensed display fonts: Bebas Neue, Anton, Oswald, Archivo Black, Syne
  3. Map each slide to a layout type — assign from the patterns in references/canva-aesthetic.md
  4. Plan variety — alternate between dark/light backgrounds, image/text-only slides, and layout styles. Never use the same layout twice in a row.

Step 3: Build the HTML

Use the base template from the html-slides skill (~/.claude/skills/html-slides/references/base-template.md), but:

  • Override the theme with the chosen palette
  • Override the fonts with the chosen display/body pair
  • Add the enhanced CSS classes from references/canva-aesthetic.md
  • Build each slide using the Canva-style patterns
Critical Rules
  1. Minimal files — one .html file with CSS/JS embedded and images base64-encoded. Videos go in a media/ folder alongside the HTML (too large for base64). If no videos, the output is a single self-contained file.
  2. 16:9 canvas — 1920x1080 internal resolution, CSS-scaled to viewport.
  3. Content density — max 5 bullets, max 30 words per text block, 40%+ whitespace, one idea per slide.
  4. Font loading — Google Fonts via <link> in <head>. Always include the display font + body font + fallbacks.
  5. Keyboard nav — arrow keys, space, click, touch, F for fullscreen.
Typography Priorities
  • Display headings: condensed, uppercase, 120-200px, weight 800-900
  • Section headings: 60-96px, weight 700
  • Card/table headings: 36-48px, weight 700
  • Body text: 26-32px, weight 400, generous line-height — err on the side of very large
  • Table cells: 28-32px — tables must be legible from the back of the room
  • Labels/tags in diagrams: 24-28px, weight 600
  • Captions/sources: 20-22px, weight 500-600, uppercase with letter-spacing
  • Stat numbers: 100-160px, weight 300 (light) or 900 (black)
  • Absolute minimum 20px for any text on screen — never use 12-18px range
  • When in doubt, go larger. Slides are viewed from a distance.

Step 4: Screenshot & QA

Use Playwright to screenshot each slide:

bash
npx playwright install chromium 2>/dev/null
node -e "
const { chromium } = require('playwright');
(async () => {
  const browser = await chromium.launch();
  const page = await browser.newPage({ viewport: { width: 1920, height: 1080 } });
  await page.goto('file://FILEPATH');
  await page.waitForLoadState('networkidle');
  const count = await page.evaluate(() => document.querySelectorAll('.slide').length);
  for (let i = 0; i < count; i++) {
    await page.evaluate(n => { window.currentSlide = n; showSlide(n); }, i);
    await page.waitForTimeout(300);
    await page.screenshot({ path: '/tmp/html-slides/slide-' + i + '.png' });
  }
  await browser.close();
})();
"

Or use headless Chrome:

bash
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless --screenshot=/tmp/slide.png --window-size=1920,1080 file:///path/to/slides.html

ALWAYS visually inspect screenshots with the Read tool. Check for:

  • Text overflow or clipping
  • Font fallback (wrong font rendering)
  • Colour contrast / readability — especially text over gradients, images, or colour transitions. If a gradient goes light-to-dark, text colour must work against ALL zones, or replace with a solid overlay
  • Any text below 20px — if found, increase it
  • Layout balance and whitespace
  • Image distortion or cropping issues

Step 5: Deliver

  1. Save the .html file to the working directory
  2. Show screenshots of key slides (at minimum: title, a content slide, closing)
  3. Presenting instructions:
    • Open in Chrome/Safari/Firefox
    • Press F for fullscreen
    • Arrow keys or space to navigate
    • Escape to exit fullscreen
    • Cmd+P to export as PDF
  4. Ask if adjustments are needed

Reference Files

  • references/pptx-extractor.md — XML-based approach for extracting PPTX content, images, and videos
  • references/canva-aesthetic.md — Canva-style themes, layout patterns, and CSS techniques
  • ~/.claude/skills/html-slides/references/base-template.md — HTML/CSS/JS boilerplate (from html-slides skill)
  • ~/.claude/skills/html-slides/references/design-system.md — Base theme presets and typography scale
  • ~/.claude/skills/html-slides/references/slide-patterns.md — Standard layout patterns

附带文件

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

常见问题

Slide Upgrade AI 技能有什么作用?

将 PPTX 文件或 Markdown 转换为精美、媲美 Canva 的 HTML 幻灯片。适用于用户要求升级 PowerPoint、将幻灯片重新渲染为 HTML、转换演示文稿,或根据 Markdown/文本制作现代幻灯片。触发短语包括:“升级这个 PPTX”“重新渲染为 HTML 幻灯片”“转换这个演示文稿”“制作 Canva 风格的幻灯片”“slide-upgrade”“把这个转成 HTML 幻灯片”“重新设计这些幻灯片”“制作精美幻灯片”。生成一个 .html 文件(图像以 base64 编码;视频放在 media/ 文件夹中),采用醒目的排版、现代布局,并提供完整的演示文稿导航。

为什么在 TypingMind 中使用 Slide Upgrade?

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

如何在 TypingMind 中安装 Slide Upgrade?

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

哪些 AI 模型可以使用 Slide Upgrade?

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

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

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

Slide Upgrade AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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