← Back to Skills Marketplace
kaisersong

kai-slide-creator

by Kaiser · GitHub ↗ · v2.14.0 · MIT-0
darwinlinuxwindows ✓ Security Clean
234
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install genppt
Description
生成零依赖 HTML 演示文稿 — 21 种设计预设,视觉风格探索,播放/演讲者模式。适用于路演、产品发布、技术分享等场景。
README (SKILL.md)

kai-slide-creator

生成零依赖 HTML 演示文稿,纯浏览器运行。

核心亮点

  • 21 种设计预设 — Bold Signal、Blue Sky、Terminal Green 等,避免通用 AI 审美
  • 视觉风格探索 — 生成 3 个预览,看图选风格而非描述风格
  • 播放模式 — F5/▶ 全屏,幻灯片缩放适配,控制栏自动隐藏
  • 演讲者模式 — P 键打开同步窗口:备注、计时器、页数、翻页
  • 浏览器内编辑 — E 键进入编辑模式,Ctrl+S 保存
  • 两种规划深度 — 自动 (快速出稿) / 精修 (更强叙事和视觉锁定)
  • 内容 Review 系统 — 16 个检查点,精修模式自动执行

安装

Claude Code: 告诉 Claude「安装 https://github.com/kaisersong/slide-creator

OpenClaw: clawhub install kai-slide-creator

ClawHub 页面:https://clawhub.ai/skills/kai-slide-creator


使用方式

/slide-creator --plan [prompt]       # 生成 PLANNING.md 大纲
/slide-creator --generate            # 从 PLANNING.md 生成 HTML
/slide-creator --review [file.html]  # 16 项检查点自动优化
/slide-creator                       # 交互式创建(风格探索)

规划深度:

  • 自动 (Auto) — 快速出稿,约 3-6 分钟
  • 精修 (Polish) — 深度规划,约 8-15 分钟,自动执行 Review

内容类型 → 风格推荐:

内容类型 推荐风格
数据报告 / KPI 看板 Data Story、Enterprise Dark、Swiss Modern
商业路演 / VC Deck Bold Signal、Aurora Mesh、Enterprise Dark
开发工具 / API 文档 Terminal Green、Neon Cyber、Neo-Retro Dev Deck
研究 / 思想领导力 Modern Newspaper、Paper & Ink、Swiss Modern
创意 / 个人品牌 Vintage Editorial、Split Pastel、Neo-Brutalism
产品发布 / SaaS Aurora Mesh、Glassmorphism、Electric Studio

命令路由

slide-creator now supports two user-facing planning depths:

  • 自动 / Auto — default path for fast drafts, light interaction, and direct generation momentum
  • 精修 / Polish — deeper planning for decks that need stronger structure, visual locking, and page-aware image decisions

参考驱动 remains supported, but only as an internal reference-driven branch inside 精修.

命令路由

命令 加载内容 行为
--plan [prompt] references/planning-template.md 检测规划深度,创建 PLANNING.md,不生成 HTML
--generate SKILL.md HARD RULES + references/html-template.md + 风格文件 + base-css.md 从 PLANNING.md 生成 HTML,执行 16 项生成前校验
--review [file.html] references/review-checklist.md + 目标 HTML 执行 16 项检查点 → 确认窗口 → 修复/报告
无 flag (交互式) references/workflow.md + 其他按需 遵循 Phase 0-5(Phase 3 Step 7 必须执行 16 项校验)
直接给内容 + 风格 SKILL.md HARD RULES + references/html-template.md + 风格文件 + base-css.md 立即生成,执行 16 项生成前校验

渐进式披露: 每个命令只加载所需文件。--plan 不接触 CSS。


生成契约

每次生成的 HTML 必须包含播放模式和编辑模式(默认开启)。

  1. 播放模式 — F5 / ▶ 按钮,全屏缩放,PresentMode
  2. 编辑模式 — 左上角热区,✏ Edit 开关,contenteditable,备注面板
  3. 水印 — 右下角固定显示 By kai-slide-creator v[version] · [preset-name][version] 从 SKILL.md frontmatter 读取,[preset-name] 为选中的风格预设名称(如 Blue SkyEnterprise Dark),播放模式下隐藏,HTML 源码中置于 \x3C/body> 之后 \x3C/html> 之前
  4. 风格强制 — 所有 CSS 主题值(颜色、字体、图表色等)必须且只能来自选中的风格参考文件。模板 html-template.md 中的占位符([from style file])和注释示例值仅为结构示意,禁止直接使用。生成后对照风格文件的 checklist 验证。

详见 references/html-template.md生成任何 HTML 前必读此文件

省略播放模式是生成错误。仅当用户明确选择「无需编辑」时可省略编辑模式。


Pre-Write Validation Pipeline(生成前校验流水线)

这些规则在组装完整 HTML 后、写入文件前自动执行。逐条搜索违规项并修复。

现有 8 项(HARD RULES Rule 1-7 + 标题质量)+ 9 项视觉/组件硬规则:

  1. 内容密度 ≥65%(Rule 1)
  2. 列平衡 ≥60%(Rule 2)
  3. 标题换行 ≤3 行(Rule 3)
  4. 标题禁止通用标签(Rule 4)
  5. 禁止连续 3 页同布局(Rule 5)
  6. 三概念法则 ≤3(Rule 6)
  7. 90/8/2 色彩律(Rule 7)
  8. 标题质量(断言式,非通用标签)

新增视觉硬规则(来自 impeccable-anti-patterns.md): 9. U+FE0F 零容忍: HTML 中不得出现 U+FE0F 变体选择符(emoji 使用基础形式) 10. letter-spacing 上限: 正文/列表/卡片元素的 letter-spacing 不得超过 0.05em 11. 纯黑背景禁用: #000 / #000000 背景 → 替换为 #111#18181B 12. bounce/elastic easing 禁用: 检测 ease.*back|bounce → 替换为 cubic-bezier(0.16, 1, 0.3, 1) 13. 嵌套卡片: 检测 .card / .glass-card 等容器内再嵌套同类容器 → 扁平化 14. cramped padding: 卡片/容器 padding \x3C 0.75rem → 增加到 ≥0.75rem 15. light text on light bg: 浅色文字(#888/#999/#cbd5e1/var(--text-secondary))在浅色背景(#f0f4f8/#fef3c7/#e8f5e9/#fff 等亮度 >60% 的颜色)上 → 加深文字为深色(#1e293b/#334155)或覆盖 color: inherit 到卡片上 16. 组件丰富度: 检测整个 deck 中是否超过 50% 的幻灯片仅使用同一种组件模式(如全是 .g + .bl)→ 至少一半的幻灯片必须使用 2-3 种不同组件类型(step/callout/stat/kbd/table/callout/quote 等) 17. SVG 箭头连线可见: \x3Cline> 元素的起点和终点距离必须 ≥30px,确保线段可见。箭头从外框边缘指向中心图形边缘(如圆外切点),不得指向圆心或进入圆内部。下侧/右侧/左侧的箭头都需要足够的连线长度,rect 位置应与圆保持 ≥30px 间距

完整反模式映射表见 references/impeccable-anti-patterns.md

标题质量规则

Do NOT 使用这些通用标签作为幻灯片标题: 概览、Overview、架构介绍、Introduction、Summary、总结、结论、Key Insights、Next Steps、方法论、背景、问题分析、关键发现、展望、简介、说明、系统介绍、方案说明。

Instead,使用断言式标题(陈述结论或主张):

  • XX 架构概览 → ✅ XX 架构可确保流量峰值期零遗漏
  • Overview → ✅ How XX ensures zero downtime during traffic spikes
  • 系统介绍 → ✅ 三个核心模块,支撑日活百万级业务
  • 关键发现 → ✅ 80% 的用户流失来自首次加载超时

幻灯片标题模板(选一种匹配):

  • "[Subject] 可确保/证明/支撑 [具体收益/结果]" — 技术/架构页
  • "N 个 [核心概念],解决 [关键痛点]" — 能力/特性页
  • "[数据/事实] — [洞察/含义]" — 数据/发现页
  • "[行动/决策] 的 N 个步骤/原则" — 方法/流程页
  • 最短有力断言(≤12 字中文 / ≤6 英文词)— 强调/宣言页

快速路由:

  • PLANNING.md 已存在 → 读取并作为真相源,跳至 Phase 3
  • 用户直接给内容 + 风格 → 跳过 Phase 1/2,立即生成
  • 用户有 .ppt/.pptx 文件 → Phase 4(PPT 转换)
  • 用户要增强现有 HTML → 读取后遵循 Enhancement Mode 守则
  • 其他情况 → Phase 1(内容发现)

风格参考文件

仅读取已选风格的文件。

风格 文件
Blue Sky references/blue-sky-starter.html
Aurora Mesh references/aurora-mesh.md
Chinese Chan references/chinese-chan.md
Data Story references/data-story.md
Enterprise Dark references/enterprise-dark.md
Glassmorphism references/glassmorphism.md
Neo-Brutalism references/neo-brutalism.md
其他风格 STYLE-DESC.md 相关章节
自定义主题 themes/\x3Cname>/reference.md

风格选择器 / 心情映射references/style-index.md

视口 CSS / 密度限制references/base-css.md

设计质量规则references/design-quality.md

Impeccable 反模式(视觉硬规则)references/impeccable-anti-patterns.md


面向 AI 智能体

其他智能体可直接调用:

# 从主题或备注生成
/slide-creator 为 [主题] 制作路演 deck

# 从计划文件生成(跳过交互式 Phase)
/slide-creator --generate  # 自动读取 PLANNING.md

# 两阶段(生成前审查大纲)
/slide-creator --plan "Acme v2 产品发布"
# (如需要,编辑 PLANNING.md)
/slide-creator --generate

# 生成后导出 PPTX
/kai-html-export presentation.html                    # 图片模式(像素级,默认)
/kai-html-export --mode native presentation.html      # Native 模式(文字可编辑)

相关技能

  • kai-report-creator — 长篇幅可滚动 HTML 报告(非幻灯片)
  • kai-html-export — 导出 PPTX/PNG,或发布为分享链接
Usage Guidance
What to consider before installing: - This skill is coherent and appears to do what it claims: generate HTML slide decks from prompts, templates, or user files. It ships many style/reference files and demos (hosted on GitHub Pages) that the agent will read when needed. - It requires python3 (small utilities/tests and possible PPTX conversion); ensure python3 on your machine is acceptable. The skill has no hidden installers but installation instructions include cloning a GitHub repo or using ClawHub. - Generated HTML demos reference external resources (e.g., Google Fonts and the project's GitHub Pages demos). If you need fully offline output, plan to self-host fonts/resources or edit templates to remove remote links. - The skill may read user-supplied PPT/PPTX or HTML files when you ask it to convert or enhance them — don’t feed private secrets or unrelated sensitive system files. - The SKILL.md contains strict post‑generation rules (watermark placement, playback/edit modes and many style rules); these are design choices rather than security issues but note the watermark insertion description (between </body> and </html>) is slightly unusual — review generated output to ensure valid HTML. - If you need a higher assurance level, inspect the repository locally (the files are included) and run the included read-only Python script (check-doc-sync.py) to understand doc contracts before invoking the skill. Overall: coherent and proportionate to its purpose; low technical risk, but check external asset usage and avoid sending sensitive files if unsure.
Capability Analysis
Type: OpenClaw Skill Name: genppt Version: 2.14.0 The kai-slide-creator skill bundle is a comprehensive tool for generating zero-dependency HTML presentations. The bundle includes extensive design presets, a multi-stage validation pipeline (SKILL.md), and a content review system (review-checklist.md). The included Python scripts (check-doc-sync.py, validate.py) and test suites are focused on maintaining document consistency and ensuring the quality of the generated HTML. The 'Edit Mode' and 'Presenter Mode' features in the generated demos use standard web APIs like BroadcastChannel and the File System Access API for legitimate functionality. No evidence of data exfiltration, malicious code execution, or prompt injection was found across the code or documentation.
Capability Tags
cryptorequires-oauth-token
Capability Assessment
Purpose & Capability
Name/description (HTML slide generator with presets) matches the shipped files (templates, styles, demos, doc rules). The frontmatter requires python3 — reasonable because there are small Python utilities (doc checks, tests) and possible PPTX conversion guidance, but the 'zero‑dependency, browser‑run' claim is primarily about output; note the requirement is modest and expected rather than a broad cloud credential requirement.
Instruction Scope
SKILL.md instructs the agent to read repository reference files, PLANNING.md, and optionally user-provided .ppt/.pptx or HTML when relevant. It does not direct reading of unrelated system files, environment variables, or external endpoints for exfiltration. Commands and file reads described align with the skill's purpose.
Install Mechanism
No install spec (instruction-only) and no arbitrary downloads; repository contains templates, docs, and small Python scripts. This is low risk from an automatic-install perspective.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The requested permissions are proportional to a local authoring/generation tool.
Persistence & Privilege
always:false (no forced global presence) and no instructions to change other skills or system-wide configs. The skill is user‑invocable and does not request elevated persistence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install genppt
  3. After installation, invoke the skill by name or use /genppt
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.14.0
Add text contrast validation (Rule 15) and SVG arrow visibility rules (Rule 17), CSS contrast fallback for light backgrounds, Checklist 1.6 auto-detect contrast
v2.3.1
- Added TODO.md and scripts/share-tiiny.py to the project. - Updated SKILL.md with minor clarifications and an updated export command example for PPTX (now references kai-html-export). - Updated references/html-template.md. - Improved or adjusted test coverage in tests/test_demo_quality.py.
v2.2.0
**Skill renamed and documentation updated for clarity & expanded guidance.** - Skill renamed from genppt to kai-slide-creator. - SKILL.md updated with clear scope, new command routing, and detailed style mapping suggestions. - Expanded documentation on supported workflows: from prompt, notes, or files, for both Chinese and English slides. - Added tables for style recommendations by content type and explanation of file loading logic. - Clarified relations to other skills (report-creator, frontend-design). - No code or feature changes described; focused on improved instructions and skill positioning.
Metadata
Slug genppt
Version 2.14.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is kai-slide-creator?

生成零依赖 HTML 演示文稿 — 21 种设计预设,视觉风格探索,播放/演讲者模式。适用于路演、产品发布、技术分享等场景。 It is an AI Agent Skill for Claude Code / OpenClaw, with 234 downloads so far.

How do I install kai-slide-creator?

Run "/install genppt" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is kai-slide-creator free?

Yes, kai-slide-creator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does kai-slide-creator support?

kai-slide-creator is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, windows).

Who created kai-slide-creator?

It is built and maintained by Kaiser (@kaisersong); the current version is v2.14.0.

💬 Comments