Slides 标志

Slides

社区
yugasun
slides

Generate high-quality HTML slide presentations with beautiful templates. Make sure to use this skill whenever the user mentions slides, presentation, PPT, deck, keynote, 演示文稿, or 幻灯片 — even if they don't explicitly ask for HTML or templates. This skill handles both polished multi-template workflows and fast self-contained themes. Use it for any request involving creating, building, or generating a presentation regardless of how the request is phrased.

概览

发布者yugasun
代码仓库slides-skills
技能名称slides
星标数
4
复刻数
0
附带文件
123
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 123 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Interactive HTML Slide Generator

Output Directory

Generated decks are saved under ~/slides/<deck-name>/ by default. Before generating, the skill:

  1. Expands ~ to the user's home directory
  2. Creates the output directory if it doesn't exist (mkdir -p)
  3. Creates slides/<deck-name>/previews/ for Workflow A preview files
  4. Creates slides/<deck-name>/ for the final deck

Custom root directory: If the user specifies a path (e.g., "save it to ~/my-decks" or "output to /tmp/slides"), use that instead of the default. Respect the user's intent — don't override a explicitly requested path.

Directory initialization example:

bash
mkdir -p ~/slides/my-deck/previews
mkdir -p ~/slides/my-deck/previews

Two Workflows

This skill supports two workflows:

  • Workflow A — Beautiful HTML Templates (recommended): 32 professionally-designed templates. Best for polished, visually distinctive decks. Asks about occasion and mood, presents 3 candidates, builds from real template HTML/CSS/JS.
  • Workflow B — Built-in CSS Themes: 4 CSS themes (Cyberpunk, Corporate, Minimal, Nature). Fast, self-contained single-file output, no external dependencies.

Default to Workflow A unless the user explicitly asks for a specific theme or wants a minimal/lightweight output.


Workflow A — Beautiful HTML Templates (Recommended)

Step 1 — Clarify Taste

Ask the user two questions before picking any template:

"Two quick questions before I pick a template:

  1. What's the occasion? (e.g. product launch, research talk, brand manifesto, classroom, team review, etc.)
  2. What mood / vibe do you want? (e.g. confident & editorial, warm & playful, dark & moody, quiet & literary, etc.)"

Wait for the user's answer. Do not skip this — the user's stated taste reveals what no inferred brief can.

Step 2 — Read index.json and Shortlist 3 Candidates

Read skills/ppt/beautiful-html-templates/index.json. Match the user's stated occasion + mood against each template's mood, tone, formality, density, and scheme fields.

Pick three templates whose tones genuinely fit and are different enough from each other (e.g., don't pick three editorial templates — pick one editorial, one warmer alternative, and one wildcard).

Step 3 — Build Title-Slide Previews of Each Candidate

For each of the 3 candidates:

  1. Read skills/ppt/beautiful-html-templates/templates/<slug>/template.html
  2. Extract the first slide only (the cover/title slide)
  3. Replace placeholder content with the user's actual topic/title/subtitle/author/date
  4. Save as ~/slides/<deck-name>/previews/01-<slug>.html
  5. Initialize ~/slides/<deck-name>/ for later use

Open each preview with open <path> (macOS) and send the user a message:

"Three options to compare:

  1. — ~/slides/<deck-name>/previews/01-template-a.html
  2. — ~/slides/<deck-name>/previews/02-template-b.html
  3. — ~/slides/<deck-name>/previews/03-template-c.html

Which one feels right?"

Wait for the user to pick.

Step 4 — Build the Full Deck

Once the user picks:

  1. Read skills/ppt/beautiful-html-templates/templates/<slug>/template.html in full
  2. Adapt every slide per the rules in AGENTS.md §3 — preserve the design system, replace placeholder content
  3. Add/remove/split slides to match the user's content outline
  4. If a layout is missing, design it using the template's fonts, color palette, decorative vocabulary, and spacing rhythm — see AGENTS.md §5
  5. Ensure the navigation (keyboard/click) works correctly
  6. Save the final deck as ~/slides/<deck-name>/index.html

Step 5 — Open and Deliver

Open the final deck with open <path>. Send:

"Done. Your deck is at ~/slides/<deck-name>/index.html — opened in your browser."


Workflow B — Built-in CSS Themes (Fallback)

Use this when the user wants a specific theme or a self-contained minimal output.

Theme Selection

ThemeStyleWhen to Use
CyberpunkDark, neon, futuristicDefault — tech, gaming, innovation
CorporateLight, professional, blue/slateBusiness, formal reports
MinimalBlack & white, Swiss styleAcademic, stark, editorial
NatureCream/green, elegant serifWarm, organic, literary

Default to Cyberpunk if no theme is specified.

Assembly Process

  1. Read reference files: the selected CSS theme + templates/template.html + templates/scripts.js + templates/layouts.md
  2. Load Template: Start with template.html
  3. Inject CSS: Replace /* CSS_INJECTION_POINT */ with the selected theme CSS
  4. Inject JS: Replace /* JS_INJECTION_POINT */ with scripts.js, then replace [TOTAL_SLIDES_COUNT] with the actual number
  5. Generate Slides: Create HTML using patterns from layouts.md
  6. Inject Slides: Replace <!-- SLIDES_INJECTION_POINT -->
  7. Save: ~/slides/<deck-name>/index.html

Overflow Prevention (Workflow B)

Slides are fixed 1280×720px. Overflow is hidden and will clip content silently.

ElementMaxIf Exceeded
Bullets5Split into 2 slides
Cards3Use .compact or split
Code lines10Use .scrollable on content-area
Card body2 linesShorten

Rules:

  • Max 5 bullets per slide, each max 1-2 lines
  • Max 3 cards per grid slide
  • Never stack bullets + cards + code on the same slide
  • Use .compact class to reduce font sizes and spacing
  • Prefer splitting over cramming

Template Index Summary

SlugNameMoodScheme
8-bit-orbit8-Bit Orbitretro-tech, playful, cyberpunkdark
biennale-yellowBiennale Yelloweditorial, atmospheric, warmlight
block-frameBlockFrameneobrutalist, pastel-neonmixed
blue-professionalBlue Professionalclean, modern, professionallight
bold-posterBold Postereditorial, massive displaylight
broadsideBroadsidedark editorial, orange accentdark
capsuleCapsulemodular, pastel-poplight
cartesianCartesianquiet, warm, classicallight
cobalt-gridCobalt Gridelectric, graph-paperdark
coralCoralcream/coral, oversized displaydark
creative-modeCreative Modeconfident, multi-colorlight
daisy-daysDaisy Dayscheerful, pastel, hand-drawnlight
editorial-tri-toneEditorial Tri-Tonedusty pink, mustard, burgundylight
groveGroveforest-green, classical serifdark
long-tableLong Tablecream/rust, supper-clublight
matMatdark sage, mid-century moderndark
monochromeMonochromeivory, all-black, literarylight
neo-grid-boldNeo-Grid Boldneo-brutalist, neon yellowlight
peoples-platformPeople's Platformactivist, bold colorslight
pin-and-paperPin & Paperyellow paper, handwrittenlight
pink-scriptPink Scripthot pink, late-night luxurydark
playfulPlayfulsun-warm, indie launchlight
raw-gridRaw Gridneo-brutalist, thick borderslight
retro-windowsRetro WindowsWindows 95, pixel nostalgialight
retro-zineRetro Zineriso-printed, beige/greenlight
sakura-chromaSakura Chromavintage Japanese cassettelight
scatterbrainScatterbrainpost-it, pastel handwritinglight
signalSignalnavy, bone, muted-golddark
soft-editorialSoft Editorialserif, warm paper, sage/blushlight
stencil-tabletStencil & Tabletstencil-cut, earth palettelight
studioStudioblack canvas, electric yellowdark
vellumVellumnavy, yellow italic serifdark

Full details in beautiful-html-templates/index.json.

附带文件

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

还有 63 个文件。

常见问题

Slides AI 技能有什么作用?

Generate high-quality HTML slide presentations with beautiful templates. Make sure to use this skill whenever the user mentions slides, presentation, PPT, deck, keynote, 演示文稿, or 幻灯片 — even if they don't explicitly ask for HTML or templates. This skill handles both polished multi-template workflows and fast self-contained themes. Use it for any request involving creating, building, or generating a presentation regardless of how the request is phrased.

为什么在 TypingMind 中使用 Slides?

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

如何在 TypingMind 中安装 Slides?

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

哪些 AI 模型可以使用 Slides?

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

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

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

Slides AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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