Community编程与开发github.com

PPT 生成技能

当用户请求生成、创建或制作演示文稿(PPT/PPTX)时使用此技能。通过为每张幻灯片生成图像,并将它们组合成 PowerPoint 文件,创建视觉丰富的幻灯片。

PPT 生成技能 是什么?

该技能通过为每张幻灯片生成 AI 图像并将其组合成 PPTX 文件,生成专业的 PowerPoint 演示文稿。工作流程包括:规划具有一致视觉风格的演示文稿结构,使用前一张幻灯片作为参考图像来确保风格一致性依次生成幻灯片图像,最后将图像组装成最终演示文稿。它支持多种演示文稿风格,如 Business、Academic、Minimal、Apple Keynote 和 Creative。该技能适用于任何支持调用外部技能和脚本的 AI 代理平台(如 Claude Code、Coder、Cursor),通过 JSON 规划文件、bash 命令和 Python 脚本进行控制,从而生成高质量的、风格一致的演示文稿。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bytedance/deer-flow/tree/main/skills/public/ppt-generation

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

PPT 生成技能 是做什么的?

概述

此技能通过为每张幻灯片生成 AI 图像并将其组合成 PPTX 文件,生成专业的 PowerPoint 演示文稿。工作流程包括:使用一致的视觉风格规划演示文稿结构,依次生成幻灯片图像(使用前一张幻灯片作为参考以实现风格一致性),最后将图像组装成最终演示文稿。

核心能力

  • 规划并构建具有统一视觉风格的多张幻灯片演示文稿
  • 支持多种演示文稿风格:商务、学术、简约、苹果主题、创意
  • 使用图像生成技能为每张幻灯片生成独特的 AI 图像
  • 通过使用前一张幻灯片作为参考图像来保持视觉一致性
  • 将图像组合成专业的 PPTX 文件

演示文稿风格

在创建演示文稿计划时,请选择以下一种风格:

风格描述最适合
玻璃态带有模糊效果的磨砂玻璃面板、浮动半透明卡片、鲜艳的渐变背景、通过分层营造深度感科技产品、AI/SaaS 演示、未来主义推介
暗色高端丰富的黑色背景 (#0a0a0a)、发光强调色、微妙的发光效果、奢华品牌美学高端产品、高管演示、高端品牌
渐变现代大胆的网渐变、流畅的色彩过渡、现代排版、鲜艳而精致初创企业、创意机构、品牌发布
新粗野主义原始粗体排版、高对比度、故意的“丑陋”美学、反设计作为设计、孟菲斯风格前卫品牌、面向 Z 世代、颠覆性初创公司
3D 等距清晰的等距插图、浮动 3D 元素、柔和阴影、技术前沿美学技术讲解、产品特性、SaaS 演示
编辑杂志级布局、复杂的排版层次、戏剧性的摄影、Vogue/Bloomberg 美学年度报告、奢侈品牌、思想领导力
极简瑞士基于网格的精确性、Helvetica 风格的排版、大胆使用留白、永恒的现代主义建筑、设计公司、高端咨询
主题演讲苹果风格美学,搭配大胆排版、戏剧性图像、高对比度、电影感主题演讲、产品发布、励志演讲

工作流程

第 1 步:理解需求

当用户请求生成演示文稿时,请确认:

  • 主题/题目:演示文稿是关于什么的
  • 幻灯片数量:需要多少张幻灯片(默认:5-10)
  • 风格:商务 / 学术 / 简约 / 主题演讲 / 创意
  • 宽高比:标准 (16:9) 或经典 (4:3)
  • 内容大纲:每张幻灯片的关键点
  • 您不需要检查 /mnt/user-data 下的文件夹

第 2 步:创建演示文稿计划

在 /mnt/user-data/workspace/ 中创建一个 JSON 文件,包含演示文稿结构。重要:包含 style 字段以定义整体视觉一致性。

{
  "title": "演示文稿标题",
  "style": "keynote",
  "style_guidelines": {
    "color_palette": "深黑色背景,白色文本,单一强调色(蓝色或橙色)",
    "typography": "粗体无衬线标题,干净的正文字体,戏剧性的大小对比",
    "imagery": "高质量摄影,全出血图像,电影构图",
    "layout": "充足的留白,居中焦点,每张幻灯片最少的元素"
  },
  "aspect_ratio": "16:9",
  "slides": [
    {
      "slide_number": 1,
      "type": "title",
      "title": "主标题",
      "subtitle": "副标题或标语",
      "visual_description": "用于图像生成的详细描述"
    },
    {
      "slide_number": 2,
      "type": "content",
      "title": "幻灯片标题",
      "key_points": ["要点 1", "要点 2", "要点 3"],
      "visual_description": "用于图像生成的详细描述"
    }
  ]
}

第 3 步:依次生成幻灯片图像

重要:严格按顺序,逐张生成幻灯片。不要并行或批量生成图像。每张幻灯片都依赖前一张幻灯片的输出作为参考图像。并行生成幻灯片会破坏视觉一致性,是不允许的。

  1. 读取图像生成技能:/mnt/skills/public/image-generation/SKILL.md

  2. 对于第一张幻灯片(幻灯片 1),创建一个建立视觉风格的提示:

{
  "prompt": "专业演示文稿幻灯片。[计划中的 style_guidelines]。标题:'Your Title'。[visual_description]。此幻灯片为整个演示文稿建立视觉语言。",
  "style": "[基于所选风格——例如苹果主题演讲美学、戏剧性灯光、电影感]",
  "composition": "清晰的布局,清晰的文字层次,[风格特定的构图]",
  "color_palette": "[来自 style_guidelines]",
  "typography": "[来自 style_guidelines]"
}
python /mnt/skills/public/image-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/slide-01-prompt.json \
  --output-file /mnt/user-data/outputs/slide-01.jpg \
  --aspect-ratio 16:9
  1. 对于后续幻灯片(幻灯片 2+),使用前一张幻灯片作为参考图像:
{
  "prompt": "专业演示文稿幻灯片,延续参考图像的视觉风格。保持相同的配色方案、排版风格和整体美学。标题:'Slide Title'。[visual_description]。与参考图像保持视觉一致性。",
  "style": "与参考图像风格完全匹配",
  "composition": "与参考图像相似的布局原则,根据此内容进行调整",
  "color_palette": "与参考图像相同",
  "consistency_note": "此幻灯片必须看起来与参考图像属于同一演示文稿"
}
python /mnt/skills/public/image-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/slide-02-prompt.json \
  --reference-images /mnt/user-data/outputs/slide-01.jpg \
  --output-file /mnt/user-data/outputs/slide-02.jpg \
  --aspect-ratio 16:9
  1. 对所有剩余幻灯片继续此过程,始终参考前一张幻灯片:
# 幻灯片 3 参考幻灯片 2
python /mnt/skills/public/image-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/slide-03-prompt.json \
  --reference-images /mnt/user-data/outputs/slide-02.jpg \
  --output-file /mnt/user-data/outputs/slide-03.jpg \
  --aspect-ratio 16:9

# 幻灯片 4 参考幻灯片 3
python /mnt/skills/public/image-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/slide-04-prompt.json \
  --reference-images /mnt/user-data/outputs/slide-03.jpg \
  --output-file /mnt/user-data/outputs/slide-04.jpg \
  --aspect-ratio 16:9

第 4 步:组合 PPT

生成所有幻灯片图像后,调用组合脚本:

python /mnt/skills/public/ppt-generation/scripts/generate.py \
  --plan-file /mnt/user-data/workspace/presentation-plan.json \
  --slide-images /mnt/user-data/outputs/slide-01.jpg /mnt/user-data/outputs/slide-02.jpg /mnt/user-data/outputs/slide-03.jpg \
  --output-file /mnt/user-data/outputs/presentation.pptx

参数:

  • --plan-file:演示文稿计划 JSON 文件的绝对路径(必需)
  • --slide-images:按顺序排列的幻灯片图像的绝对路径(必需,空格分隔)
  • --output-file:输出 PPTX 文件的绝对路径(必需)

[!NOTE] 不要读取 python 文件,只需使用参数调用它。

完整示例:玻璃态风格(最现代前卫)

用户请求:“创建一个关于 AI 产品发布的演示文稿”

步骤 1:创建演示文稿计划

创建 /mnt/user-data/workspace/ai-product-plan.json:

{
  "title": "Introducing Nova AI",
  "style": "glassmorphism",
  "style_guidelines": {
    "color_palette": "鲜亮的紫色到青色渐变背景 (#667eea→#00d4ff),15-20% 白色不透明度的磨砂玻璃面板,电光强调色",
    "typography": "SF Pro Display 风格,粗体 700 重量白色标题,带有微妙的文字阴影,干净 400 重量正文,在玻璃上具有出色的对比度",
    "imagery": "抽象 3D 玻璃球体,浮动半透明几何形状,柔和发光球体,通过透明分层营造深度感",
    "layout": "居中磨砂玻璃卡片,32px 圆角,48-64px 内边距,浮动在渐变之上,通过柔和阴影营造层次深度",
    "effects": "玻璃面板上 20-40px 背景模糊,微妙的白色边框发光,与渐变相匹配的柔和彩色阴影,光线折射效果",
    "visual_language": "Apple Vision Pro / visionOS 美学,通过透明营造高级深度感,未来感且平易近人,2024 年设计趋势"
  },
  "aspect_ratio": "16:9",
  "slides": [
    {
      "slide_number": 1,
      "type": "title",
      "title": "Introducing Nova AI",
      "subtitle": "Intelligence, Reimagined",
      "visual_description": "令人惊叹的渐变背景,从深紫色 (#667eea) 流过洋红色到青色 (#00d4ff)。中央:大型磨砂玻璃面板,具有强烈的背景模糊效果,包含粗体白色标题 'Introducing Nova AI' 和较浅的副标题。面板周围浮动 3D 玻璃球体和抽象形状,营造深度感。玻璃面板后方发出柔和光芒。高级 visionOS 美学。玻璃卡片具有微妙的白色边框(1px rgba 255,255,255,0.3)和柔和的紫色阴影。"
    },
    {
      "slide_number": 2,
      "type": "content",
      "title": "Why Nova?",
      "key_points": ["10x faster processing", "Human-like understanding", "Enterprise-grade security"],
      "visual_description": "相同的紫色-青色渐变背景。左侧:浮动磨砂玻璃卡片,包含粗体白色标题 'Why Nova?',下方三个关键点带有微妙的玻璃药丸徽章。右侧:抽象 3D 神经网络可视化,呈现为相互连接的玻璃节点并带有柔和光芒。浮动半透明几何形状(二十面体、环面)增加深度感。与前一张幻灯片保持一致的玻璃态美学。"
    },
    {
      "slide_number": 3,
      "type": "content",
      "title": "How It Works",
      "key_points": ["Natural language input", "Multi-modal processing", "Instant insights"],
      "visual_description": "与前几张幻灯片一致的渐变背景。中央构图:三个堆叠的磨砂玻璃卡片略微倾斜,显示工作流程步骤,由柔和发光线条连接。每个卡片都有一个抽象图标。构图周围浮动玻璃球体和光粒子。顶部粗体白色标题 'How It Works'。通过卡片分层和透明度营造深度感。"
    },
    {
      "slide_number": 4,
      "type": "content",
      "title": "Built for Scale",
      "key_points": ["1M+ concurrent users", "99.99% uptime", "Global infrastructure"],
      "visual_description": "相同的渐变背景。不对称布局:右侧包含大型磨砂玻璃面板,以粗体排版显示指标。左侧:抽象 3D 地球仪,由玻璃面板和连接线构成,代表全球规模。浮动数据可视化元素作为带有数字的小型玻璃卡片。整个画面充满柔和的环境光。高级科技美学。"
    },
    {
      "slide_number": 5,
      "type": "conclusion",
      "title": "The Future Starts Now",
      "subtitle": "Join the waitlist",
      "visual_description": "戏剧性的结尾幻灯片。渐变背景稍显鲜艳。中央磨砂玻璃卡片包含粗体标题 'The Future Starts Now' 和行动号召副标题。卡片后方:柔和光线爆发和浮动玻璃粒子营造庆祝效果。多个分层玻璃形状营造深度感。视觉上最具冲击力的幻灯片,同时保持风格一致。"
    }
  ]
}

步骤 2:读取图像生成技能

读取 /mnt/skills/public/image-generation/SKILL.md 以了解如何生成图像。

步骤 3:使用参考链接依次生成幻灯片图像

幻灯片 1 - 标题(建立视觉语言):

创建 /mnt/user-data/workspace/nova-slide-01.json:

{
  "prompt": "采用玻璃态设计的超高端演示文稿标题幻灯片。背景:平滑流动的渐变,从深紫色 (#667eea) 经过洋红色 (#f093fb) 到青色 (#00d4ff),柔和而鲜艳。中央:大型磨砂玻璃面板,具有强烈的背景模糊效果,32px 圆角,包含粗体白色无衬线标题 'Introducing Nova AI'(72pt,SF Pro Display 风格,字重 700),带有微妙的文字阴影,下方副标题 'Intelligence, Reimagined' 字重较轻。玻璃面板具有微妙的白色边框(1px rgba 255,255,255,0.25)和柔和的紫色调投影。卡片周围浮动:具有折射效果的 3D 玻璃球体,半透明几何形状(二十面体、抽象斑点),营造深度和维度感。玻璃面板后方发出柔和的光芒。微小的浮动光粒子。Apple Vision Pro / visionOS UI 美学。专业演示幻灯片,16:9 宽高比。超现代、高端科技产品发布感觉。",
  "style": "玻璃态,visionOS 美学,Apple Vision Pro UI 风格,高端科技,2024 设计趋势",
  "composition": "居中玻璃卡片作为焦点,浮动 3D 元素在边缘营造深度感,40% 留白,清晰的视觉层次",
  "lighting": "来自渐变的柔和环境光,通过玻璃元素的光线折射,3D 形状上的微妙边缘光",
  "color_palette": "紫色渐变 #667eea,洋红色 #f093fb,青色 #00d4ff,磨砂白色 rgba(255,255,255,0.15),纯白色文本 #ffffff",
  "effects": "玻璃面板上的背景模糊,带有色彩倾向的柔和投影,光线折射,玻璃上的微妙噪点纹理,浮动粒子"
}
python /mnt/skills/public/image-generation/scripts/generate.py \
  --prompt-file /mnt/user-data/workspace/nova-slide-01.json \
  --output-file /mnt/user-data/outputs/nova-slide-01.jpg \
  --aspect-ratio 16:9

幻灯片

…

[为翻译而截断]

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bootstrap

Generate a personalized SOUL.md through a warm, adaptive onboarding conversation. Trigger when the user wants to create, set up, or initialize their AI partner's identity — e.g., "create my SOUL.md", "bootstrap my agent", "set up my AI partner", "define who you are", "let's do onboarding", "personalize this AI", "make you mine", or when a SOUL.md is missing. Also trigger for updates: "update my SOUL.md", "change my AI's personality", "tweak the soul".

bytedance/academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bytedance/chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

bytedance/claude-to-deerflow

Interact with DeerFlow AI agent platform via its HTTP API. Use this skill when the user wants to send messages or questions to DeerFlow for research/analysis, start a DeerFlow conversation thread, check DeerFlow status or health, list available models/skills/agents in DeerFlow, manage DeerFlow memory, upload files to DeerFlow threads, or delegate complex research tasks to DeerFlow. Also use when the user mentions deerflow, deer flow, or wants to run a deep research task that DeerFlow can handle.

bytedance/consulting-analysis

Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

bytedance/data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to CSV/JSON/Markdown.

bytedance/deep-research

Use this skill instead of WebSearch for ANY question requiring web research. Trigger on queries like "what is X", "explain X", "compare X and Y", "research X", or before content generation tasks. Provides systematic multi-angle research methodology instead of single superficial searches. Use this proactively when the user's question needs online information.

bytedance/find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

bytedance/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

bytedance/github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

bytedance/image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/ppt-generation

Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

bytedance/skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

bytedance/surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

bytedance/vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/video-generation

Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.

bytedance/web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

相关技能