SuperAPI AI 工具集

slide-creator

设计与创作

查看项目

更新于 10-16 02:12

技能介绍

用途

Slide Creator 用于将书面内容转换为视觉幻灯片图片。它适合把博客文章、新闻通讯、文章或大纲等文本材料,转化为演示用的幻灯片图像。该技能通过分析文本、提取关键要点,并借助 AI 图像生成来产出演示级幻灯片图片。

主要能力

  • 分析源内容,识别主题、关键章节、需要可视化的要点以及逻辑流程与过渡。
  • 创建幻灯片大纲,典型结构为:标题页、引言/问题陈述、若干关键要点页(每页一个概念)、结论/总结页,以及可选的行动号召页。
  • 为每张幻灯片生成图像提示词,要求视觉上捕捉关键概念、全篇风格一致、为文字叠加留出适当空间,并匹配目标宽高比(通常为 16:9)。
  • 生成幻灯片图片,支持单张生成与批量生成。
  • 接受反馈并重新生成特定幻灯片,支持局部编辑与迭代精修。

使用方式

前置条件

  • 必须提供 nano-banana 技能用于图像生成。
  • Python 3.10+。
  • 已安装 google-genai 包。

工作流程

  1. 输入:接收内容(博客文章、文章、新闻通讯、大纲)。
  2. 分析:提取关键要点与结构。
  3. 大纲:创建包含标题与要点的幻灯片大纲。
  4. 生成:创建图像提示词并生成幻灯片图片。
  5. 精修:接受反馈并重新生成特定幻灯片。

生成幻灯片图片

单张幻灯片:

python ~/.claude/skills/nano-banana/scripts/generate_image.py \
    "Professional slide background: [concept], [style], 16:9 aspect, clean with text space" \
    slide_01.png --aspect 16:9

批量生成:

python ~/.claude/skills/nano-banana/scripts/batch_generate.py \
    slide_prompts.json ./slides/ --aspect 16:9 --parallel 3

精修

编辑已有幻灯片:

python ~/.claude/skills/nano-banana/scripts/edit_image.py \
    slides/slide_03.png "make the colors more vibrant" slides/slide_03_v2.png

当用户请求更改时:

  • 特定幻灯片:仅用修改后的提示词重新生成该张。
  • 风格变更:创建新提示词并批量重新生成全部。
  • 小幅编辑:使用 edit_image.py 进行调整。
  • 迭代:使用 chat_session.py 进行复杂精修。

幻灯片提示词模式

  • 标题页:Bold typography-inspired background for [topic] presentation, [style], gradient [colors], modern and professional, 16:9 aspect ratio
  • 概念页:Visual metaphor for [concept]: [metaphor description], [style], [brand colors], clean composition with space on [left/right] for text overlay, presentation graphic
  • 数据/统计页:Abstract data visualization representing [metric/trend], infographic style, [colors], clean white background, professional presentation graphic
  • 过渡/章节页:Section divider for [section name], abstract [theme] imagery, gradient [colors], full bleed background, minimal text space
  • 结论页:Inspiring background for conclusion: [theme], uplifting atmosphere, [colors], professional, space for summary points

风格预设

参见 references/slide-styles.md 中的预定义风格预设:

  • Corporate:专业蓝色、简洁线条、极简。
  • Creative:大胆色彩、动态构图。
  • Technical:深色主题、代码/电路美学。
  • Minimalist:留白、细微点缀。
  • Warm:大地色调、有机形状。

批量生成格式

创建 slide_prompts.json 文件:

[
    {
        "prompt": "Title slide for AI presentation, modern tech aesthetic, blue gradient, bold composition",
        "filename": "slide_01_title.png",
        "aspect": "16:9"
    },
    {
        "prompt": "Visual metaphor: neural network as interconnected nodes, tech illustration style, blue and purple",
        "filename": "slide_02_intro.png",
        "aspect": "16:9"
    },
    {
        "prompt": "Growth chart concept, abstract rising bars with glow effect, tech presentation style",
        "filename": "slide_03_growth.png",
        "aspect": "16:9"
    }
]

示例:博客文章转幻灯片

输入博客文章(节选):

# The Future of Remote Work

Remote work is transforming how we think about productivity...

## Key Benefits
1. Flexibility
2. Work-life balance
3. Global talent access

## Challenges
- Communication
- Culture building
- Technology needs

## Best Practices
...

生成的幻灯片大纲:

  1. 标题:"The Future of Remote Work"
  2. 钩子:远程工作转型视觉
  3. 益处:灵活性隐喻
  4. 益处:工作生活平衡视觉
  5. 益处:全球连接
  6. 挑战:沟通障碍
  7. 解决方案:最佳实践概览
  8. 结论:未来展望

生成的提示词:

[
    {"prompt": "Title slide: Future of Remote Work, modern office fading into home workspace, professional blue tones", "filename": "slide_01.png"},
    {"prompt": "Remote work transformation: office desk morphing into laptop anywhere, clean illustration style", "filename": "slide_02.png"},
    {"prompt": "Flexibility concept: person working from beach, mountain, city cafe montage, lifestyle photography style", "filename": "slide_03.png"}
]

高质量幻灯片提示

  • 一致性:在所有提示词中使用相同的风格关键词。
  • 文字空间:始终包含 "space for text" 或 "clean area for overlay"。
  • 宽高比:标准演示使用 16:9。
  • 一个概念:每张幻灯片只可视化一个关键点。
  • 色彩和谐:建立调色板并在每个提示词中引用。

输出结构

output_dir/
├── slide_01_title.png
├── slide_02_intro.png
├── slide_03_point1.png
├── slide_04_point2.png
├── slide_05_point3.png
├── slide_06_conclusion.png
└── slide_prompts.json  # Save prompts for reference

适用场景

  • 将博客文章、新闻通讯、文章或大纲快速转化为演示幻灯片图片。
  • 需要批量生成风格统一的幻灯片图像。
  • 需要根据反馈对个别幻灯片进行迭代修改。

限制

  • 依赖 nano-banana 技能进行图像生成,该技能必须可用。
  • 需要 Python 3.10+ 并安装 google-genai 包。
  • 关于收费、价格、平台支持范围等信息,资料暂未提供。