with one click
frontend-slides
使用图片化 slide deck 工作流生成高质量演示文稿,并输出 PPTX/PDF
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
使用图片化 slide deck 工作流生成高质量演示文稿,并输出 PPTX/PDF
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Breakout/Arkanoid-style brick breaker with paddle, ball, bricks, lives, and required powerups
Mario-style 2D platformer with stomp/bump/ability/gate/combo mechanics
深度研究方法论 — 4 阶段结构化研究框架
Endless runner — auto-running player dodges obstacles and collects pickups while distance increases
TODO 一句话描述(给 LLM 看,soft dispatch 用)
Create a pull request after typecheck, targeted tests, branch, commit, and push are complete.
| name | frontend-slides |
| description | 使用图片化 slide deck 工作流生成高质量演示文稿,并输出 PPTX/PDF |
| license | MIT |
| compatibility | code-agent >= 0.16 |
| metadata | {"category":"content-generation","keywords":"frontend-slides, ppt, presentation, slides, powerpoint"} |
| allowed-tools | ["read_file","write_file","edit_file","bash","ask_user_question","image_generate","read_pdf","read_docx","read_xlsx"] |
| user-invocable | true |
你是 frontend-slides skill。使用混合方案:AI 生成纯视觉背景图 + pptxgenjs 渲染真实中文文字,解决 AI 图片中文乱码问题。
ppt_generate。除非用户明确要求调试 legacy 实现,否则不要调用它。slide-deck/<topic-slug>/source-<topic-slug>.mdoutline.mdslides.json(结构化文字数据,混合合成用)prompts/*.mdNN-slide-*.png(纯视觉背景,不含文字)<topic-slug>.pptx(混合合成:AI 背景 + 真实文字)<topic-slug>.pdf用户参数:$ARGUMENTS
优先识别以下信息:
5-10 为短 deck,10-18 为标准 deck,18+ 为深度 deckblueprint、corporate、minimal、bold-editorial、editorial-infographic、sketch-notesexecutives、general、beginners、experts如果用户没有给文件路径,直接把用户提供的主题/内容整理成 source-<topic-slug>.md,不要卡住。
blueprint 或 editorial-infographiccorporateminimalbold-editorialsketch-notesRead / ReadDocument 读取。slide-deck/<topic-slug>/。source-<topic-slug>.md。写入 outline.md。每页都必须包含:
标题要写成结论句,不要只写“市场分析”“方案介绍”这种栏目名。
先生成 slides.json(混合合成脚本需要它来叠加真实文字):
[
{
"index": 1,
"layout": "cover",
"title": "AI Agent 三代演进",
"subtitle": "从 ReAct 到 Multi-Agent 协作",
"bullets": [],
"footnote": ""
},
{
"index": 2,
"layout": "content",
"title": "ReAct 循环:思考-行动-观察",
"subtitle": "",
"bullets": ["LLM 作为推理引擎", "工具调用作为行动", "观察结果反馈循环"],
"footnote": "Source: Yao et al. 2022"
}
]
然后在 prompts/ 下写逐页图片 prompt。
⚠️ 关键区别:图片 prompt 只描述纯视觉背景/装饰,不包含任何文字内容:
prompt 要求:
逐页调用 image_generate 生成背景图片,顺序执行,不要并发轰炸。
要求:
aspect_ratio 固定为 "16:9"expand_prompt 设为 true(让 LLM 扩充视觉细节)*-backup-YYYYMMDD-HHMMSS.png默认使用混合合成脚本(AI 背景图 + 真实中文文字叠加):
# 混合合成(推荐):背景图 + slides.json 文字叠加
node .claude/skills/frontend-slides/scripts/merge-to-pptx-hybrid.mjs <slide-deck-dir>
# 纯图片 PDF(快速预览用)
node .claude/skills/frontend-slides/scripts/merge-to-pdf.mjs <slide-deck-dir>
混合脚本需要 slides.json 存在于 slide-deck 目录中。如果没有 slides.json 则自动降级为纯图片模式。
如果 node 或运行依赖不可用,明确告诉用户缺少运行依赖,并保留已生成的 outline.md、slides.json、prompts/ 和图片,不要丢工作成果。
完成后用用户语言汇报: