Frontend Slides
zarazhangrui/frontend-slides
Builds animated HTML slide decks that run in the browser with no dependencies, or converts PowerPoint files to the web, starting from visual style previews.
Turns popular-science text into an animated slide-style single-page HTML presentation, or restyles it as a flat-UI flowchart, using templates built into the skill.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
Claude Code skills documentation · loads skills from .claude/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .claude/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .agents/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .cursor/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .gemini/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-pptInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .github/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "science-content-ppt" agent skill from https://github.com/Unclecheng-li/AI-Animation-Skill/tree/main into .opencode/skills/science-content-ppt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "science-content-ppt", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
science-content-pptTurns popular-science text into an animated slide-style single-page HTML presentation, or restyles it as a flat-UI flowchart, using templates built into the skill.
This Chinese-language workflow converts popular-science text into a web page that behaves like a slide deck, meant for use in videos. In the default mode it applies a prompt template to the text and has the model produce a single-page HTML carousel with large, emphasized text and elements that ease in line by line. A worked example in the skill turns a description of the OSI seven-layer network model into a 13-page carousel.
The generated page is then patched so animations replay on every slide change, emoji are swapped for icon-library icons and animated elements share consistent class names. An optional step rebuilds the page on one of the built-in PPT templates, which the model picks by reading a summary file. A second mode restructures an existing AI_Animation.html into horizontal flowchart cards in a flat green UI style, using the Animation templates. All templates ship inside the skill.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4b107dd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Science Content Slide Pages loads about 1.5k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 234 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Unclecheng-li/AI-Animation-Skill at commit 4b107dd, republished under its MIT licence (© Unclecheng-li). 234 words, ~1,544 tokens.
.claude/skills/science-content-ppt/SKILL.md (or your agent's skills folder). This skill also uses 51 other files; get the full folder from GitHub.将科普内容文本转换为可视化PPT风格网页的完整工作流。
用户输入文本:
为了使不同计算机厂家生产的计算机能够相互通信,以便在更大的范围内建立计算机网络,国际标准化组织(ISO)在1978年提出了"开放系统互联参考模型"……七层自下而上依次为:物理层、数据链路层、网络层、传输层、会话层、表示层、应用层。其中第四层完成数据传送服务,上面三层面向用户。除了标准的OSI七层模型以外,常见的网络层次划分还有TCP/IP四层协议以及TCP/IP五层协议。
执行流程:
输出结果:
调用时使用相对于 Skill 根目录的路径:
PPT轮播模板(模式一,默认,Step 3 使用):
# 优先使用 level2 模板(由当前对话模型根据内容选择最合适的)
assets/templates/PPT Template-level2/ ← 优先选用
assets/templates/PPT/PPT-Generate-3.html
assets/templates/PPT/PPT-Generate-1.html
assets/templates/PPT/PPT-Generate-2.html
assets/templates/PPT/PPT-Generate-4.html
assets/templates/PPT/PPT-Generate-5.html
assets/templates/PPT/PPT-Generate-6.html
assets/templates/PPT/PPT-Generate-7.htmlAnimation平面UI模板(模式二,默认):
assets/templates/Animation/RNN-3.html ← 默认
assets/templates/Animation/RNN-2.html
assets/templates/Animation/RNN-4.html
assets/templates/Animation/RNN-5.html
assets/templates/Animation/RNN-6.html
assets/templates/Animation/RNN-7.html
assets/templates/Animation/LSTM-1.html
assets/templates/Animation/Comprehension.html
assets/templates/Animation/GPU.html
assets/templates/Animation/word2vec-1.html
assets/templates/Animation/onehot.html
assets/templates/Animation/onehot-drawback.html
assets/templates/Animation/The fatal flaw of DNN.html
assets/templates/Animation/Cross-modal disentanglement - 2.html当用户提供科普文本希望生成演示页面时,执行以下步骤:
将以下提示词模板应用到用户输入的科普文本内容:
根据以下内容生成基于纯前端页面单页布局仿PPT换页轮播进行直观图形化可视化的介绍,加大文字大小,并运用加粗、下划线、斜体、文字颜色、文字背景等强调方式方便进行视频演示。添加每次切换页面时页面中的各个元素依次"缓入"出现的动画效果(细化到每行文字)。
---
{用户输入的科普内容文本}
---使用Step 1生成的提示词,调用当前对话模型生成完整的HTML页面代码。
⚠️ 关键:必须追加以下两条约束到生成提示词中:
将emoji图标换成平面ui库的图标(如Font Awesome或Lucide图标库)。添加完成后检查页面中是否还有残留的emoji字符,如有则全部替换为对应的ui图标。所有动画元素的class名统一使用 an 或 anim-item,以便后续动画重置逻辑能正确识别并处理。⚠️ 关键:动画重置修复
AI模型直接生成的HTML存在动画只播放一次、切换页面后动画不复发的bug。必须在生成后插入以下修复JS到页面底部(确保在 </body> 前):
(function() {
// 克隆节点强制重置CSS动画,确保每次切换页面动画重新触发
document.querySelectorAll('.slide').forEach(function(s) {
s.querySelectorAll('.an, .anim-item, [style*="animation"]').forEach(function(item) {
var clone = item.cloneNode(true);
item.parentNode.replaceChild(clone, item);
});
});
})();输出路径:由用户决定,用户未指定时默认输出到桌面 /home/mt/桌面/AI_Animation.html
以PPT模板对生成的网页进行重构。
模板选择规则:
assets/templates/PPT Template-level2/ 目录中选择(共20+个模板)assets/templates/PPT/ 目录提示词模板:
以页面 {模板相对路径} 为模板重构 {用户指定的输出路径}。
请将AI_Animation.html的内容按照指定PPT模板的布局、样式和轮播机制进行重构,保持科普内容不变,优化视觉效果使其更适合视频演示。模板路径示例:
assets/templates/PPT Template-level2/3-1.htmlassets/templates/PPT/PPT-Generate-3.html模板目录清单:
PPT Template-level2/(优先):1.html ~ 9-3.html 共 25 个模板,见下方 SUMMARY 参考PPT/(回退):PPT-Generate-1.html ~ PPT-Generate-7.htmlAI 选模板参考文档: assets/templates/PPT Template-level2/SUMMARY.md
Step 3 重构前,AI 必须先阅读
SUMMARY.md,根据科普内容类型从 25 个模板中选择最合适的一个,再进行重构。选模板的核心依据:
- 对比/辩论类 → 8-1(12组VS)、8-3(30组VS)、6-2(架构对比)
- 步骤/流程类 → 3-2(SVG流程图)、6-1/6-3/6-4(步骤动画)
- 案例/实验类 → 4-2、4-3(代码雨动画)
- 警示/危险类 → 5-4(13页+15种动画)、7-3(红色脉冲)
- 轻量/快速 → 3-3(331行)、4-1(315行)、9-3(5页)
- 最强视觉冲击 → 2(13种动画)、6-2(15种动画+红绿VS对比)
注意:重构完成后需检查目标模板是否内置了动画重置修复JS,如没有需手动添加。
当用户说"生成流程图"时,执行以下步骤:
AI 必须先阅读: assets/templates/Animation/SUMMARY.md
根据科普内容类型,从 14 个 Animation 模板中选择最合适的一个:
| 内容类型 | 推荐模板 | 原因 |
|---|---|---|
| RNN/LSTM 循环网络 | RNN-3(隐藏态,默认)> RNN-4(标准流程) | 深绿主题,RNN 系列 |
| 梯度消失/爆炸 | RNN-6(爆炸警示)> RNN-7(双问题) | explode + shake 动画 |
| 架构/系统/多模块 | Comprehension > Cross-modal | 架构卡片 + 连线动画 |
| Word2Vec/词向量 | word2vec-1 | 语义向量可视化 |
| One-hot 编码 | onehot(介绍)> onehot-drawback(缺陷) | 向量稀疏性可视化 |
| DNN/深度学习缺陷 | The fatal flaw of DNN | 紫色警示风格 |
| GPU/计算硬件 | GPU | 计算节点连接动画 |
| LSTM 三阶段 | LSTM-1 | 门控结构三阶段 |
默认模板: assets/templates/Animation/RNN-3.html
用户可指定其他 Animation 模板。
提示词模板:
将 {用户指定的输出路径} 网页的每相邻的两页的内容合并后按照指定网页的平面UI样式进行视觉重构,保持现有颜色方案不变。
具体实施要求包括:
1. 精确还原模板中的布局结构、元素间距、字体样式、图标设计和视觉层次
2. 确保所有交互元素(按钮、表单、导航等)的视觉表现与参考网页一致
3. 维持原有的颜色值和配色方案
4. 保证修改后的页面在不同设备和浏览器上具有良好的响应式表现
5. 优化DOM结构以匹配UI设计,同时保持原有功能完整性和交互逻辑不变
完成后需进行视觉一致性检查,确保实现效果与参考网页达到95%以上的相似度。
模板路径:{模板相对路径,默认 assets/templates/Animation/RNN-3.html}原因:CSS animation-fill-mode: forwards 使动画只执行一次,display:none 也无法重置动画状态。
解决方案:切换页面时克隆 DOM 节点(cloneNode(true) + replaceChild),强制浏览器重新渲染动画。这是跨浏览器最可靠的方案。
代码:
document.querySelectorAll('.slide').forEach(function(s) {
s.querySelectorAll('.an, .anim-item').forEach(function(item) {
var clone = item.cloneNode(true);
item.parentNode.replaceChild(clone, item);
});
});现象:模型生成的HTML有时只有200-400行,内容单薄。 解决:在提示词中明确要求"代码1000行以上",或分多步生成后拼接内容。
说明:流程图模式不生成新内容,仅将已生成的 AI_Animation.html 的页面内容按模板样式重新视觉呈现。需先有 PPT 版内容再说"生成流程图"。
| 参数 | 默认值 | 说明 |
|---|---|---|
| PPT模板路径 | assets/templates/PPT Template-level2/(模型自选) | 模式一使用的模板,模型根据内容特点选择最合适的 level2 模板 |
| 流程图模板路径 | assets/templates/Animation/RNN-3.html | 模式二使用的模板 |
| 输出路径 | /home/mt/桌面/AI_Animation.html | 生成的网页文件,用户未指定时使用默认值 |
| 动画修复JS | 内置于模板 | 切换页面时克隆节点重置CSS动画 |
模式一(默认PPT流程):
用户输入科普内容 → Skill自动完成提示词生成、网页生成、动画修复全流程
模式二(流程图):
用户输入科普内容后再说"生成流程图" → 将已生成的AI_Animation.html按Animation模板重构为平面UI风格
模板替换:
用户可通过"以xxx.html为模板"指定其他内置模板进行重构
© Unclecheng-li, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 51 other files (assets) in the repository root of Unclecheng-li/AI-Animation-Skill.
Open the folder on GitHubat commit 4b107dd
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Unclecheng-li/AI-Animation-Skill, which our catalogue first saw on October 7, 2026.
Science Content Slide Pages next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Science Content Slide Pages this skillUnclecheng-li/AI-Animation-Skill | 574 | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Frontend Slideszarazhangrui/frontend-slides | 30k | 16 repos | ~7k | Automated safety check: Pass | MIT | |
| HTML PPT Studiolewislulu/html-ppt-skill | 8.6k | 4 repos | ~4.7k | Automated safety check: Pass | MIT | |
| HTML Presentation Structure Guideshanraisshan/claude-code-best-practice | 67k | — | ~882 | Automated safety check: Pass | MIT | |
| Openkb Deck EditorialVectifyAI/OpenKB | 4.8k | 1 repos | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Presentation Styling Referenceshanraisshan/claude-code-best-practice | 67k | — | ~780 | Automated safety check: Pass | MIT |
zarazhangrui/frontend-slides
Builds animated HTML slide decks that run in the browser with no dependencies, or converts PowerPoint files to the web, starting from visual style previews.
lewislulu/html-ppt-skill
Authors static HTML presentations from a library of themes, layouts and animations, with keyboard navigation, for talks, pitch decks and reports.
shanraisshan/claude-code-best-practice
Documents how a single-file HTML slide deck is built: slide markup, the four-level journey bar, navigation and the renumbering rules after edits.
VectifyAI/OpenKB
A skill your agent uses when the user asks the openkb chat to make a deck / slide presentation / PPT / slides / 演示稿 / 幻灯片 from their compiled KB content.
shanraisshan/claude-code-best-practice
Reference for the CSS classes, HTML slide patterns and code-block highlighting spans used in a project's presentation/index.html slide deck.
Russell-cell/PPT-as-code
Plans and builds HTML-based web presentations through staged quick, basic or advanced workflows, with optional visualization planning, motion, a workbench and PPTX export handoff.
Categories
Turns popular-science text into an animated slide-style single-page HTML presentation, or restyles it as a flat-UI flowchart, using templates built into the skill. This Chinese-language workflow converts popular-science text into a web page that behaves like a slide deck, meant for use in videos. In the default mode it applies a prompt template to the text and has the model produce a single-page HTML carousel with large, emphasized text and elements that ease in line by line.
Science Content Slide Pages fits situations like: turning popular-science text into a slide-style web page for a video; generating an animated single-page HTML presentation from pasted content; rebuilding an existing animated page as a flat-UI flowchart; picking a built-in slide template that suits the content.
Run `npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a claude-code`. Or copy the skill folder (the Unclecheng-li/AI-Animation-Skill repository) into .claude/skills/science-content-ppt in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a codex`. Or copy the skill folder (the Unclecheng-li/AI-Animation-Skill repository) into .agents/skills/science-content-ppt in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/science-content-ppt, .gemini/skills/science-content-ppt, .github/skills/science-content-ppt and .opencode/skills/science-content-ppt in your project.
SKILL.md names no scripts, command-line tools or credentials: Science Content Slide Pages is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Science Content Slide Pages is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Science Content Slide Pages: Frontend Slides (zarazhangrui/frontend-slides, 30k stars), HTML PPT Studio (lewislulu/html-ppt-skill, 8.6k stars), HTML Presentation Structure Guide (shanraisshan/claude-code-best-practice, 67k stars) and Openkb Deck Editorial (VectifyAI/OpenKB, 4.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Unclecheng-li (a GitHub user) maintains it in Unclecheng-li/AI-Animation-Skill, which has 574 GitHub stars. The repository was last updated on April 16, 2026.
Source: Unclecheng-li/AI-Animation-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.