frontend-slides by affaan-m/everything-claude-code
npx skills add https://github.com/affaan-m/everything-claude-code --skill frontend-slides创建零依赖、动画丰富的 HTML 演示文稿,完全在浏览器中运行。
灵感来源于 zarazhangrui 作品中展示的视觉探索方法(致谢:@zarazhangrui)。
.ppt 或 .pptx 幻灯片转换为 HTML 演示文稿在生成之前,请阅读 STYLE_PRESETS.md 以了解视口安全的 CSS 基础、密度限制、预设目录和 CSS 注意事项。
选择一条路径:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
.ppt.pptx仅询问最低限度所需信息:
如果用户已有内容,请要求他们在确定样式前粘贴内容。
默认采用视觉探索方式。
如果用户已经知道所需的预设,则跳过预览并直接使用。
否则:
.ecc-design/slide-previews/ 目录下生成 3 个单页幻灯片预览文件。在将情绪映射到样式时,请使用 STYLE_PRESETS.md 中的预设指南。
输出以下两者之一:
presentation.html[演示文稿名称].html仅当文稿包含提取的或用户提供的图片时,才使用 assets/ 文件夹。
必需的结构:
STYLE_PRESETS.md 的视口安全 CSS 基础将此视为硬性规定。
规则:
.slide 必须使用 height: 100vh; height: 100dvh; overflow: hidden;clamp() 进行缩放使用 STYLE_PRESETS.md 中的密度限制和强制性 CSS 块。
在以下尺寸下检查完成的文稿:
如果可以使用浏览器自动化,请使用它来验证没有幻灯片溢出且键盘导航正常工作。
在交付时:
使用适用于当前操作系统的正确打开器:
open file.htmlxdg-open file.htmlstart "" file.html对于 PowerPoint 转换:
python-pptx 的 python3 来提取文本、图片和备注。python-pptx 不可用,询问是安装它还是回退到基于手动/导出的工作流程。保持转换跨平台。当 Python 可以完成工作时,不要依赖仅限 macOS 的工具。
包含:
main、section、nav)prefers-reduced-motion除非用户明确要求更密集的幻灯片且可读性仍然保持,否则使用以下最大值:
| 幻灯片类型 | 限制 |
|---|---|
| 标题 | 1 个标题 + 1 个副标题 + 可选标语 |
| 内容 | 1 个标题 + 4-6 个要点或 2 个短段落 |
| 功能网格 | 最多 6 个卡片 |
| 代码 | 最多 8-10 行 |
| 引用 | 1 个引用 + 出处 |
| 图片 | 1 张受视口约束的图片 |
-clamp(...)frontend-patterns 用于文稿周围的组件和交互模式liquid-glass-design 当演示文稿有意借鉴苹果玻璃美学时e2e-testing 如果您需要对最终文稿进行自动化浏览器验证每周安装数
326
仓库
GitHub 星标
69.1K
首次出现
11 天前
安全审计
安装于
codex312
gemini-cli290
kimi-cli289
amp289
cline289
github-copilot289
Create zero-dependency, animation-rich HTML presentations that run entirely in the browser.
Inspired by the visual exploration approach showcased in work by zarazhangrui (credit: @zarazhangrui).
.ppt or .pptx slides into an HTML presentationBefore generating, read STYLE_PRESETS.md for the viewport-safe CSS base, density limits, preset catalog, and CSS gotchas.
Choose one path:
.ppt or .pptxAsk only the minimum needed:
If the user has content, ask them to paste it before styling.
Default to visual exploration.
If the user already knows the desired preset, skip previews and use it directly.
Otherwise:
.ecc-design/slide-previews/.Use the preset guide in STYLE_PRESETS.md when mapping mood to style.
Output either:
presentation.html[presentation-name].htmlUse an assets/ folder only when the deck contains extracted or user-supplied images.
Required structure:
STYLE_PRESETS.mdTreat this as a hard gate.
Rules:
.slide must use height: 100vh; height: 100dvh; overflow: hidden;clamp()Use the density limits and mandatory CSS block in STYLE_PRESETS.md.
Check the finished deck at these sizes:
If browser automation is available, use it to verify no slide overflows and that keyboard navigation works.
At handoff:
Use the correct opener for the current OS:
open file.htmlxdg-open file.htmlstart "" file.htmlFor PowerPoint conversion:
python3 with python-pptx to extract text, images, and notes.python-pptx is unavailable, ask whether to install it or fall back to a manual/export-based workflow.Keep conversion cross-platform. Do not rely on macOS-only tools when Python can do the job.
Include:
main, section, nav)prefers-reduced-motionUse these maxima unless the user explicitly asks for denser slides and readability still holds:
| Slide type | Limit |
|---|---|
| Title | 1 heading + 1 subtitle + optional tagline |
| Content | 1 heading + 4-6 bullets or 2 short paragraphs |
| Feature grid | 6 cards max |
| Code | 8-10 lines max |
| Quote | 1 quote + attribution |
| Image | 1 image constrained by viewport |
-clamp(...)frontend-patterns for component and interaction patterns around the deckliquid-glass-design when a presentation intentionally borrows Apple glass aestheticse2e-testing if you need automated browser verification for the final deckWeekly Installs
326
Repository
GitHub Stars
69.1K
First Seen
11 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex312
gemini-cli290
kimi-cli289
amp289
cline289
github-copilot289
99,500 周安装