home / skills / theonelee / theone_claude_skill / script_to_ppt

script_to_ppt skill

/vlog_workflow/script_to_ppt

This skill converts Markdown drafts into visually engaging PPT presentations with themed colors, structured slides, and automated image generation.

npx playbooks add skill theonelee/theone_claude_skill --skill script_to_ppt

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
2.3 KB
---
name: vlog_script_to_ppt
description: 将手写稿转换为图文并茂、颜色吸引眼球的PPT
---

# Vlog Script to PPT Skill

将用户的 Markdown 手写稿转换为视觉吸引力强的 PPT 演示文稿。

## 输入

- 手写稿文件路径(Markdown 格式的 `draft.md`)
- PPT 主题/标题
- 配色风格(可选,默认"科技蓝")
- 期望页数(可选,默认根据内容自动决定)

## 配色方案

| 风格 | 主色 | 辅色 | 背景 | 适用场景 |
|------|------|------|------|----------|
| 科技蓝 | #1A73E8 | #34A853 | #FFFFFF | 技术/编程类 |
| 活力橙 | #FF6D00 | #FFD600 | #FFF8E1 | 生活/娱乐类 |
| 清新绿 | #00C853 | #00BFA5 | #E8F5E9 | 自然/健康类 |
| 深邃紫 | #6200EA | #AA00FF | #F3E5F5 | 创意/设计类 |
| 商务灰 | #37474F | #607D8B | #ECEFF1 | 商业/职场类 |

## 执行步骤

1. **读取手写稿**:解析 `draft.md`,提取标题和各段内容
2. **结构规划**:
   - 封面页(标题 + 副标题)
   - 目录页(如果内容较多)
   - 内容页(每页一个核心观点,文字简洁 + 关键词高亮)
   - 过渡页(章节之间的分隔)
   - 结尾页(感谢/互动引导)
3. **生成配图**:对每个内容页,使用 `generate_image` 工具生成与主题匹配的配图
4. **生成 PPT**:运行 `scripts/generate_ppt.py` 脚本
5. **用户确认**:告知用户 PPT 路径,让用户预览并提出修改意见

## 脚本使用

```bash
# 依赖安装
pip install python-pptx Pillow

# 生成 PPT
python3 scripts/generate_ppt.py \
  --input ~/vlog_projects/{project}/draft.md \
  --output ~/vlog_projects/{project}/slides.pptx \
  --title "节目标题" \
  --theme tech_blue
```

## 每页布局规则

- **文字**: 每页不超过 5 个要点,每个要点不超过 15 个字
- **字号**: 标题 36pt,正文 24pt,注释 18pt
- **图片**: 每页至少一张配图或图标,占页面 40% 面积
- **留白**: 四周留足边距,不让内容显得拥挤

## 适合口播的设计

- 内容按口播节奏分页,每页对应 30-60 秒的讲述
- 将页码标注在口播稿中,方便录制时翻页
- 使用动画效果(渐入)引导观众注意力

## 输出

- 生成的 PPT 文件路径:`~/vlog_projects/{project}/slides.pptx`
- 建议的演示时间
- 可调整的内容清单

Overview

This skill converts a handwritten vlog script in Markdown into a visually engaging, image-rich PowerPoint presentation. It organizes your content into a clear slide structure, applies an eye-catching color theme, and generates matching images for each slide. The output is ready for recording or live presentation with timing and layout optimized for voiceover.

How this skill works

The tool parses the draft.md file to extract title, sections, and key points, then plans a slide structure including cover, agenda, content, transitions, and closing. For each content slide it generates supporting imagery and applies the chosen color palette and typography rules. Finally it runs a PPT generator to assemble slides and returns the output path plus suggested presentation time and editable adjustments.

When to use it

  • You have a Markdown vlog script and need a quick, professional slide deck
  • Preparing short explainer videos where each slide matches a 30–60s voiceover segment
  • You want consistent visual themes across episodes or series
  • Converting long text into bite-sized slides for recording or livestreams
  • Needing a rapid prototype before detailed visual design work

Best practices

  • Keep each slide to one core idea and ≤5 bullet points for clarity
  • Use the provided color themes to match vlog tone (tech, vibrant, calm, creative, business)
  • Follow the typography rules: title 36pt, body 24pt, notes 18pt for on-screen readability
  • Ensure draft.md uses clear headings and short sentences to improve automatic slide splitting
  • Review generated images and tweak prompts if a more specific visual is required

Example use cases

  • Turn a tutorial Markdown draft into a sequenced slide deck for screen-recorded lessons
  • Create episode slides for a lifestyle vlog using the vibrant orange or fresh green themes
  • Generate pitch-style visuals for product or feature walkthroughs using the business gray theme
  • Produce creative-design presentations with deep purple theme and tailored imagery
  • Rapidly prototype a public talk from a rough script to rehearse timing and flow

FAQ

What input formats are supported?

The skill expects a Markdown file (draft.md) with headings and paragraphs; images in the draft can be embedded via standard Markdown links.

Can I customize colors or slide count?

Yes — choose one of the preset palettes or supply a preferred hex pair; slide count can be set or left to automatic layout based on content.