Slides 标志

Slides

社区
nghiahsgs
slides

Create stunning HTML presentations with 50,000+ unique design combinations. 50 aesthetics, 20 palettes, 10 fonts, 30+ effects. Zero dependencies, anti-AI-slop.

概览

发布者nghiahsgs
代码仓库skills-slides
技能名称slides
星标数
36
复刻数
5
附带文件
19
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 19 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nghiahsgs/skills-slides.git \
  .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 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Slides Skill

Create beautiful, self-contained HTML presentation files. Zero external dependencies. Works offline. Opens directly in any browser.

Token system: 50 aesthetics × 20 palettes × 10 fonts × 5 layouts × 30+ effects = 50,000+ unique combinations. Search tool: python scripts/search.py — look up tokens by vibe keyword.


Supporting Files

FilePurposeWhen to Load
references/viewport-base.cssMandatory CSS foundation for viewport fittingAlways — copy into every presentation
references/html-template.mdFull HTML skeleton + SlidePresentation JS classAlways — use as structural template
references/animation-patterns.mdEffect-to-feeling table, entrance/bg CSS, tilt/magnetic JSWhen adding motion effects
references/anti-slop-checklist.md10-point quality gateAlways — run before delivery
references/css-effects-cookbook.mdComplete copy-paste CSS/JS for backgrounds, cards, text, motionWhen implementing specific effects
tokens/aesthetics.csv50 aesthetic styles with vibe keywordsVia search.py
tokens/color-palettes.csv20 color systems with full hex values + WCAG ratiosVia search.py
tokens/font-pairings.csv10 font pairs with Google Fonts URLsVia search.py
tokens/layout-patterns.csv5 layout grids with CSS templatesVia search.py
tokens/effects-library.csv30+ effects with complete CSS snippetsVia search.py

Content Density Rules

Slide TypeMaximum Content
Title1 heading + 1 subtitle + optional tagline
Content1 heading + 4–6 bullets OR 1 heading + 2 paragraphs
Feature grid1 heading + 6 cards max (2×3 or 3×2)
Code1 heading + 8–10 lines of code
Quote1 quote (max 3 lines) + attribution
Image1 heading + 1 image (max 60vh height)
Data / chart1 heading + 1 visualization + 1-line insight
Section divider1 label + 1 statement (no bullets)

Override rule: When in doubt, use fewer elements. White space is a design feature.

Viewport Fill Rule (NON-NEGOTIABLE)

Every slide MUST visually fill the viewport — no awkward empty space. When content is sparse:

  1. Scale up text — If a slide has only 3-4 bullets, increase font-size to clamp(0.9rem, 2vw, 1.4rem) and gap to clamp(0.8rem, 2vh, 1.5rem)
  2. Scale up heading — Content slides with few items: use clamp(1.5rem, 4.5vw, 3rem) for h2
  3. Add vertical padding — Use padding-top/bottom: clamp(3rem, 10vh, 8rem) to center content with breathing room
  4. Expand cards — If grid has only 3 cards, increase card-padding and gap; consider grid-template-columns: repeat(3, 1fr) with fixed sizing
  5. Never leave >30% of viewport empty on any edge — if content doesn't fill, enlarge it

Quick reference by bullet count:

BulletsBody font-sizeBullet gapH2 size
1-2clamp(1rem, 2.2vw, 1.5rem)clamp(1rem, 2.5vh, 2rem)clamp(1.6rem, 5vw, 3.2rem)
3-4clamp(0.9rem, 2vw, 1.35rem)clamp(0.8rem, 2vh, 1.5rem)clamp(1.5rem, 4.5vw, 3rem)
5-6clamp(0.8rem, 1.6vw, 1.15rem)clamp(0.5rem, 1.2vh, 1rem)clamp(1.3rem, 3.5vw, 2.5rem)

Centering rule: These slide types MUST use align-items: center; text-align: center on .slide-content:

  • Stats / metrics / data slides
  • Quote slides
  • AMA / Q&A slides
  • Thank you / closing slides
  • Any slide with a single focal element (1 big number, 1 emoji, 1 image)

Phase 0: Detect Mode

Identify which workflow applies before asking anything else.

  • New presentation → proceed to Phase 1
  • PPTX/PDF/images to convert → read content first, then Phase 1 (pre-fill answers from existing content)
  • Enhance existing HTML → read the file, identify what to improve, skip Phase 1 unless aesthetic change needed

Phase 1: Content Discovery

Ask these questions. Accept answers in any format (bullet list, paragraph, paste of notes).

1. What is this presentation for? (conference talk, internal demo, sales pitch, teaching, portfolio...)
2. How many slides? (rough estimate or exact)
3. Do you have content ready? (paste it, upload a file, or describe topics)
4. Any images to include? (file paths, URLs, or "generate placeholders")
5. Should slides be editable in-browser? (adds contenteditable double-click system)
6. Anything to avoid? (colors, styles, competitors' look, overused patterns)

If the user has provided enough context to proceed without asking, skip directly to Phase 2.


Phase 2: Style Discovery

Step 1 — User describes vibe

Ask: "Describe how you want this to feel. Any words, references, vibes, colors, or examples."

Examples of good vibe inputs: "dark and techy like a cyberpunk UI", "clean and minimal like a Swiss poster", "warm and editorial like a magazine", "bold startup energy"

Step 2 — Search aesthetics

bash
python scripts/search.py "[vibe keywords]" --domain aesthetic -n 5

Present top 3–5 matches with names and vibe keywords. Ask user to pick one (or combine elements).

Step 3 — Load matching tokens

bash
python scripts/search.py --compatible [aesthetic_id]

This returns compatible palettes, fonts, layouts, and effects for the chosen aesthetic.

Step 4 — Generate 3 visual previews

Create 3 minimal HTML snippets (title slide only, ~30 lines each) showing distinct directions within the chosen aesthetic — different palette or layout variation. Present as code blocks the user can mentally compare. Ask: "Which direction feels right? Or mix elements from multiple?"

Step 5 — Confirm selections

Lock in: aesthetic ID, palette ID, font ID, layout ID, 2–3 effects.


Phase 3: Generate Presentation

3a. Load foundation

  1. Read full references/viewport-base.css — paste verbatim into <style>
  2. Read references/html-template.md — use skeleton and JS class
  3. Check references/animation-patterns.md for chosen effect CSS

3b. Apply tokens

From search.py results:

  • Palette: map bg_primary → --bg, bg_secondary → --surface, text_primary → --text, text_secondary → --text-muted, accent_1 → --accent, accent_2 → --accent-2, glow_color → --glow
  • Font: paste the css_import value at top of <style>, set --font-display and --font-body
  • Effects: paste css_code_snippet from effects-library.csv tokens; add required JS if js_required: true

3c. Build slides

Generate slides sequentially. Apply content density rules strictly.

Slide structure pattern:

html
<section class="slide [aesthetic-class]" id="slide-N"
         role="region" aria-label="Slide N: [topic]"
         data-slide-index="[N-1]">
    <!-- Background layer (decorative, aria-hidden) -->
    <div class="slide-bg" aria-hidden="true">
        <!-- Signature effect elements here -->
    </div>
    <!-- Content layer -->
    <div class="slide-content">
        <!-- Entrance-animated elements with --delay stagger -->
    </div>
</section>

Stagger pattern for lists:

html
<li class="enter-fade-up" style="--delay:0.1s">First item</li>
<li class="enter-fade-up" style="--delay:0.2s">Second item</li>

3d. Run anti-slop checklist

Read references/anti-slop-checklist.md. Verify all 10 points pass before continuing.

Checklist (verify each before output):

  • Display font is NOT Inter/Roboto/Arial/system-ui
  • NO purple gradient on white background
  • Shadows use sm/md/lg hierarchy tokens, not one value everywhere
  • All colors reference CSS variables
  • All font sizes use clamp() or var(--*-size) variables
  • At least 1 signature visual effect matches chosen aesthetic
  • Background has texture/gradient/depth (not flat solid)
  • 3+ distinct text sizes with clear visual order
  • All text passes WCAG AA 4.5:1 contrast
  • prefers-reduced-motion media query present and correct

3e. Output

Deliver as a single .html file. File name format: [topic-slug]-slides.html


Phase 4: PPTX Conversion (if applicable)

When converting from PowerPoint/PDF:

  1. Extract content structure — do not rewrite it; preserve all text, data, and speaker context
  2. Map slide types: title → slide-title, bullets → slide-content, images → slide-image, charts → slide-data
  3. Recreate charts/graphs as CSS or SVG (no chart.js or external libs)
  4. For images: use <img> with relative path if file is available, or SVG placeholder if not
  5. Apply the same design system from Phase 2/3 — the content is theirs, the design is new

Phase 5: Delivery

After generating the file:

  1. Confirm file path — state the absolute path to the generated .html file
  2. Open in browser — run: open [filepath] (macOS) or start [filepath] (Windows)
  3. Summarize:
    • Number of slides
    • Aesthetic chosen + palette + font
    • Key effects applied
    • Any content decisions made (e.g., condensed long bullet lists)

Phase 6: Share & Export

Offer these options after delivery:

Deploy to Vercel (instant public URL)

bash
# Requires Vercel CLI: npm i -g vercel
cd [directory-containing-html]
vercel --name [presentation-name]
# Follow prompts — public URL in ~30 seconds

Export to PDF

bash
# Using Chrome headless (prints each slide as a page)
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --headless --print-to-pdf="slides.pdf" \
  --print-to-pdf-no-header \
  --no-pdf-header-footer \
  "file:///[absolute-path-to-html]"

Convert to PPTX (best-effort)

Note: HTML → PPTX conversion loses animations. For fidelity, recommend PDF export instead. If PPTX is required, suggest LibreOffice Impress as the conversion tool.


Error Handling

IssueResolution
Content overflows slideCut bullets to max 6; reduce font-size token; remove one element
Font not loadingAdd <link rel="preconnect" href="https://fonts.googleapis.com"> before font link; verify URL from font-pairings.csv
Backdrop-filter not workingAdd -webkit-backdrop-filter duplicate; check browser support note in html-template.md
Snap scroll jumpy on mobileEnsure overscroll-behavior: none on body; check scroll-snap-stop: always on .slide
Canvas particle system laggyReduce particle count to 40; add will-change: transform to canvas
PPTX images not foundUse base64 inline encoding or SVG placeholder; note the missing asset in delivery summary

Quick Reference: search.py

bash
# Find aesthetics by vibe
python scripts/search.py "dark futuristic" --domain aesthetic -n 5

# Find palettes by color/mood
python scripts/search.py "warm gold luxury" --domain palette -n 3

# Get full compatible design system for an aesthetic
python scripts/search.py --compatible startup-pitch

# Fetch a specific token by ID
python scripts/search.py --get palette midnight-aurora
python scripts/search.py --get font clash-satoshi
python scripts/search.py --get effect gradient-mesh

Domains: aesthetic | palette | font | layout | effect

附带文件

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

常见问题

Slides AI 技能有什么作用?

Create stunning HTML presentations with 50,000+ unique design combinations. 50 aesthetics, 20 palettes, 10 fonts, 30+ effects. Zero dependencies, anti-AI-slop.

为什么在 TypingMind 中使用 Slides?

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

如何在 TypingMind 中安装 Slides?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/nghiahsgs/skills-slides/tree/main。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 技能免费吗?

nghiahsgs 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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