Agent skill

Science Content Slide Pages

by Unclecheng-li in Unclecheng-li/AI-Animation-Skill

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.

MITAuto-check passedDocuments & Office

SKILL.md written in Chinese; this summary is our English description.

Install Science Content Slide Pages

skills CLI
$ npx skills add Unclecheng-li/AI-Animation-Skill --skill science-content-ppt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Unclecheng-li/AI-Animation-Skill science-content-ppt --agent claude-code

Project 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/

Facts

Skill name
science-content-ppt
GitHub stars
574
Used in
1 other repo
Token cost
~1.5k tokens
SKILL.md length
234 words
Files
52 (incl. assets)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

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.

  • Works in 5 steps: 生成PPT提示词 → 生成AI_Animation.html → 重构为PPT模板风格(可选) → …
  • Turning popular-science text into a slide-style web page for a video
  • SKILL.md covers 真实案例(OSI 七层网络模型), 模板文件(内置于Skill), 模式一:生成PPT演示网页(默认) and 模式二:生成流程图(需用户明确触发), plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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.

When your agent uses it

  • 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

Example prompts

  • “Turn this explanation of how photosynthesis works into a slide-style animated web page.”
  • “Restyle the AI_Animation.html we just made as a flowchart in the flat UI style.”
  • “Generate a presentation page from this text about how vaccines train the immune system and save it to ./out/.”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 生成PPT提示词
  2. 生成AI_Animation.html
  3. 重构为PPT模板风格(可选)
  4. 确定模板 + 阅读 SUMMARY 参考
  5. 重构为平面UI样式

What it can do on your machine

Read from SKILL.md and the folder at commit 4b107dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from Unclecheng-li/AI-Animation-Skill at commit 4b107dd, republished under its MIT licence (© Unclecheng-li). 234 words, ~1,544 tokens.

Download SKILL.mdSave it as .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.
name
science-content-ppt
description
将科普内容文本转换为可视化PPT风格网页的完整工作流。当用户输入科普内容并希望生成演示页面时触发。支持两种模式:(1) 默认模式:将科普内容生成为仿PPT轮播的单页HTML动画网页;(2) 流程图模式:使用Animation模板将已生成的AI_Animation.html按平面UI样式重构。模板已内置于Skill中。触发词包括"生成PPT"、"生成演示网页"、"生成流程图"等。

Science Content PPT Skill

将科普内容文本转换为可视化PPT风格网页的完整工作流。


真实案例(OSI 七层网络模型)

用户输入文本:

为了使不同计算机厂家生产的计算机能够相互通信,以便在更大的范围内建立计算机网络,国际标准化组织(ISO)在1978年提出了"开放系统互联参考模型"……七层自下而上依次为:物理层、数据链路层、网络层、传输层、会话层、表示层、应用层。其中第四层完成数据传送服务,上面三层面向用户。除了标准的OSI七层模型以外,常见的网络层次划分还有TCP/IP四层协议以及TCP/IP五层协议。

执行流程:

  1. 用下方「Step 1 提示词模板」生成 PPT 提示词
  2. 模型直接生成完整 HTML(或用 Step 3 模板重构)
  3. 用户说"生成流程图"时,用模式二将内容转为平面 UI 风格

输出结果:

  • PPT模式:13页轮播,含封面、简介、七层详情、层级分工、协议对比
  • 流程图模式:横向七层流程卡片,绿色平面UI风格

模板文件(内置于Skill)

调用时使用相对于 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.html

Animation平面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 — 生成PPT提示词

将以下提示词模板应用到用户输入的科普文本内容:

根据以下内容生成基于纯前端页面单页布局仿PPT换页轮播进行直观图形化可视化的介绍,加大文字大小,并运用加粗、下划线、斜体、文字颜色、文字背景等强调方式方便进行视频演示。添加每次切换页面时页面中的各个元素依次"缓入"出现的动画效果(细化到每行文字)。

---
{用户输入的科普内容文本}
---
Step 2 — 生成AI_Animation.html

使用Step 1生成的提示词,调用当前对话模型生成完整的HTML页面代码。

⚠️ 关键:必须追加以下两条约束到生成提示词中:

将emoji图标换成平面ui库的图标(如Font Awesome或Lucide图标库)。添加完成后检查页面中是否还有残留的emoji字符,如有则全部替换为对应的ui图标。
所有动画元素的class名统一使用 an 或 anim-item,以便后续动画重置逻辑能正确识别并处理。

⚠️ 关键:动画重置修复 AI模型直接生成的HTML存在动画只播放一次、切换页面后动画不复发的bug。必须在生成后插入以下修复JS到页面底部(确保在 </body> 前):

javascript
(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

Step 3 — 重构为PPT模板风格(可选)

以PPT模板对生成的网页进行重构。

模板选择规则:

  1. 优先从 assets/templates/PPT Template-level2/ 目录中选择(共20+个模板)
  2. 由当前对话的模型根据科普文案的内容特点(主题、结构、复杂度)自行判断,选出最合适的一个PPT模板
  3. 若 level2 中没有合适选项,则回退到 assets/templates/PPT/ 目录

提示词模板:

以页面 {模板相对路径} 为模板重构 {用户指定的输出路径}。

请将AI_Animation.html的内容按照指定PPT模板的布局、样式和轮播机制进行重构,保持科普内容不变,优化视觉效果使其更适合视频演示。

模板路径示例:

  • Level2 示例:assets/templates/PPT Template-level2/3-1.html
  • 默认回退:assets/templates/PPT/PPT-Generate-3.html
  • 用户可指定其他内置模板

模板目录清单:

  • PPT Template-level2/(优先):1.html ~ 9-3.html 共 25 个模板,见下方 SUMMARY 参考
  • PPT/(回退):PPT-Generate-1.html ~ PPT-Generate-7.html

AI 选模板参考文档: 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,如没有需手动添加。


模式二:生成流程图(需用户明确触发)

当用户说"生成流程图"时,执行以下步骤:

Step 1 — 确定模板 + 阅读 SUMMARY 参考

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 模板。

Step 2 — 重构为平面UI样式

提示词模板:

将 {用户指定的输出路径} 网页的每相邻的两页的内容合并后按照指定网页的平面UI样式进行视觉重构,保持现有颜色方案不变。

具体实施要求包括:
1. 精确还原模板中的布局结构、元素间距、字体样式、图标设计和视觉层次
2. 确保所有交互元素(按钮、表单、导航等)的视觉表现与参考网页一致
3. 维持原有的颜色值和配色方案
4. 保证修改后的页面在不同设备和浏览器上具有良好的响应式表现
5. 优化DOM结构以匹配UI设计,同时保持原有功能完整性和交互逻辑不变

完成后需进行视觉一致性检查,确保实现效果与参考网页达到95%以上的相似度。

模板路径:{模板相对路径,默认 assets/templates/Animation/RNN-3.html}

已知问题与解决方案(实操总结)

Q1: 切换页面后动画不重触发

原因:CSS animation-fill-mode: forwards 使动画只执行一次,display:none 也无法重置动画状态。 解决方案:切换页面时克隆 DOM 节点(cloneNode(true) + replaceChild),强制浏览器重新渲染动画。这是跨浏览器最可靠的方案。 代码:

javascript
document.querySelectorAll('.slide').forEach(function(s) {
    s.querySelectorAll('.an, .anim-item').forEach(function(item) {
        var clone = item.cloneNode(true);
        item.parentNode.replaceChild(clone, item);
    });
});
Q2: AI直接生成的HTML代码量不足

现象:模型生成的HTML有时只有200-400行,内容单薄。 解决:在提示词中明确要求"代码1000行以上",或分多步生成后拼接内容。

Q3: 流程图模式不生成新内容

说明:流程图模式不生成新内容,仅将已生成的 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

Files

SKILL.md and 51 other files (assets) in the repository root of Unclecheng-li/AI-Animation-Skill.

  • SKILL.md
  • CHANGELOG.md
  • LICENSE
  • README.md
  • assets/templates/Animation/Comprehension.html
  • assets/templates/Animation/Cross-modal disentanglement - 2.html
  • assets/templates/Animation/GPU.html
  • assets/templates/Animation/LSTM-1.html
  • assets/templates/Animation/RNN-2.html
  • assets/templates/Animation/RNN-3.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/SUMMARY.md
  • assets/templates/Animation/The fatal flaw of DNN.html
  • assets/templates/Animation/onehot-drawback.html
  • assets/templates/Animation/onehot.html
  • … and 34 more

Open the folder on GitHubat commit 4b107dd

Used in 1 other repository

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.

Compare with similar skills

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.

Science Content Slide Pages compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Science Content Slide Pages this skillUnclecheng-li/AI-Animation-Skill5741 repos~1.5kAutomated safety check: PassMIT
Frontend Slideszarazhangrui/frontend-slides30k16 repos~7kAutomated safety check: PassMIT
HTML PPT Studiolewislulu/html-ppt-skill8.6k4 repos~4.7kAutomated safety check: PassMIT
HTML Presentation Structure Guideshanraisshan/claude-code-best-practice67k—~882Automated safety check: PassMIT
Openkb Deck EditorialVectifyAI/OpenKB4.8k1 repos~2.1kAutomated safety check: PassApache-2.0
Presentation Styling Referenceshanraisshan/claude-code-best-practice67k—~780Automated safety check: PassMIT

Similar skills

  • 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.

    30k GitHub starsUsed in 16 repos~7k tokens
    Documents & OfficeAuto-check passed
  • HTML PPT Studio

    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.

    8.6k GitHub starsUsed in 4 repos~4.7k tokens
    Documents & OfficeAuto-check passed
  • HTML Presentation Structure Guide

    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.

    67k GitHub stars~882 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Openkb Deck Editorial

    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.

    4.8k GitHub starsUsed in 1 repo~2.1k tokens
    Documents & OfficeAuto-check passed
  • Presentation Styling Reference

    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.

    67k GitHub stars~780 tokensUpdated today
    Documents & OfficeAuto-check passed
  • PPT as Code

    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.

    190 GitHub stars~11k tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed

Questions about Science Content Slide Pages

What does Science Content Slide Pages do?

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.

When should I use Science Content Slide Pages?

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.

How do I install Science Content Slide Pages in Claude Code?

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.

How do I install Science Content Slide Pages in Codex?

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.

Can I use Science Content Slide Pages in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Science Content Slide Pages need to run?

SKILL.md names no scripts, command-line tools or credentials: Science Content Slide Pages is instructions for the agent only.

Does Science Content Slide Pages access the network?

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.

Is Science Content Slide Pages safe to install?

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.

What licence does Science Content Slide Pages use?

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.

How many tokens does Science Content Slide Pages use?

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.

What are the alternatives to Science Content Slide Pages?

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.

Who maintains Science Content Slide Pages?

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.