Ppt Generator logo

Ppt Generator

Community
bozhouDev
ppt-generator

生成专业 PPT 演示文稿,支持 22 种风格,自动根据内容选择最佳风格,输出到 ~/ppt-output/

Overview

PublisherbozhouDev
Repositorybozhou-skills
Skill nameppt-generator
Stars
78
Forks
7
Bundled files
6
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bozhouDev on GitHub. Read the source before you install it.

Installation

Install the Ppt Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bozhouDev/bozhou-skills/tree/main/ppt-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bozhouDev/bozhou-skills.git /tmp/bozhou-skills
mkdir -p .claude/skills
cp -r /tmp/bozhou-skills/ppt-generator .claude/skills/ppt-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ppt Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ppt Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ppt Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PPT Generator Skill

专注于 PPT 生成的完整解决方案。

⚠️ 路径解析(每次执行前必须先运行)

此 skill 支持项目级安装(<project>/.claude/skills/)和全局安装(~/.claude/skills/)。执行任何命令前,先确定 SKILLS_DIR:

bash
SKILLS_DIR=$(python3 -c "
from pathlib import Path
cwd = Path.cwd()
for p in [cwd, *cwd.parents]:
    s = p / '.claude/skills'
    if (s / 'ppt-generator').exists():
        print(s); exit()
print(Path.home() / '.claude/skills')
")

后续所有命令均使用 $SKILLS_DIR 替代 ~/.claude/skills。

触发条件

当用户请求涉及以下内容时激活:

  • 生成 PPT / 幻灯片 / 演示文稿
  • 制作 PPT / 做 PPT
  • 大纲转 PPT
  • PPT 风格选择
  • 修改 PPT 某一页

风格选择指南(22 种风格)

当用户提出 PPT 需求时,你(Claude)根据以下指南选择风格,不要调用任何 Python 推荐函数。

分析维度

  1. 场景: tech / business / education / creative / lifestyle / academic / gaming / historical
  2. 受众: beginners / general / experts / executives / children
  3. 调性: formal / casual / playful / serious / warm / professional

风格评分表

第一梯队:通用高质量风格(质量分 9-10)
风格质量稳定适用场景适用受众调性
apple109tech(10), business(9), education(7), data(9)executives(10), general(9), experts(8)professional, elegant
minimal99business(10), tech(8)executives(10), experts(8)formal, zen
corporate99business(10), data(8)executives(9), general(8)formal, trustworthy
第二梯队:专业领域风格(质量分 8)
风格质量稳定适用场景适用受众调性
blueprint89tech(10), data(9), academic(8)experts(10), general(7)technical, precise
notion89tech(9), business(8), data(10)general(9), experts(8)clean, functional
scientific88academic(10), tech(7)experts(10), academics(10)formal, precise
editorial88business(8), academic(7)general(8), experts(7)professional, readable
editorial_infographic88academic(9), tech(8), education(7)general(9), experts(8)informative, clear
intuition_machine87tech(9), academic(9)experts(9), bilingual(10)technical, bilingual
第三梯队:教育风格(质量分 7-8)
风格质量稳定适用场景适用受众调性
sketch_notes87education(10), tech(6)beginners(10), general(8)warm, friendly
chalkboard78education(10)beginners(9), children(8)nostalgic, teaching
fantasy_animation87education(8), creative(9), story(10)children(10), beginners(9)playful, magical
第四梯队:创意风格(质量分 7-8)
风格质量稳定适用场景适用受众调性
watercolor87lifestyle(10), creative(9), health(8), historical(8)general(9), beginners(8)warm, artistic
vector_illustration87education(8), creative(9)children(9), beginners(8)cute, friendly
dark_atmospheric87gaming(10), creative(9), entertainment(10)general(8), youth(9)dramatic, cinematic
bold_editorial87business(8), marketing(10)general(9), executives(7)bold, impactful
storytelling77story(10), creative(8)general(8), beginners(7)narrative, emotional
第五梯队:特色风格(质量分 6-7)
风格质量稳定适用场景适用受众调性
pixel_art77gaming(10), tech(6)youth(10), developers(8)retro, playful
vintage77historical(10), story(8)general(8)nostalgic, classic
neumorphism66tech(7), creative(7)general(7)modern, soft
material78tech(8), business(6)general(8)clean, systematic
fluent78tech(8), business(7)general(8)modern, fluid

快速选择指南

按场景选择

用户说的内容包含推荐风格(按优先级)
AI、技术、系统、架构、数据apple → blueprint → notion
商业、投资、企业、汇报、提案corporate → apple → minimal
教程、学习、入门、培训sketch_notes → chalkboard → apple
儿童、故事、动画、有趣fantasy_animation → vector_illustration
游戏、像素、复古、开发者pixel_art → dark_atmospheric
历史、传统、文化、古代、探险、怀旧vintage → watercolor → editorial
生活、健康、旅行、艺术watercolor → vector_illustration
科学、学术、研究、论文scientific → blueprint → editorial_infographic
产品发布、营销、发布会bold_editorial → dark_atmospheric → apple
SaaS、产品、仪表盘、指标notion → apple → minimal

按受众选择

受众类型推荐风格原因
高管/投资人minimal, corporate, apple简洁、专业、高端
技术专家blueprint, scientific, intuition_machine精确、信息密集
初学者/入门sketch_notes, chalkboard, fantasy_animation友好、易懂
儿童fantasy_animation, vector_illustration, pixel_art有趣、可爱
普通大众apple, notion, watercolor平衡、通用

按调性选择

调性推荐风格
正式专业corporate, minimal, apple
温暖友好sketch_notes, watercolor, fantasy_animation
活泼有趣pixel_art, vector_illustration, chalkboard
高端大气minimal, dark_atmospheric, bold_editorial
技术精确blueprint, scientific, notion

主题色选择(仅 apple 风格)

主题适用场景
soft_blue科技、AI、数据(默认)
deep_indigo商业、金融、专业
fresh_green健康、环保、成长
warm_orange教育、活力、创意
rose_pink生活方式、时尚
elegant_purple创意、高端、神秘
cool_teal清新、现代
neutral_grey极简、中性

可用布局

布局用途
cover封面页
section_divider章节分隔页
content_left左对齐内容页
content_center居中强调页
content_two_column两栏对比页
title_hero大标题英雄页
key_stat关键数据页
quote_callout引用强调页
icon_grid图标网格页
three_columns三栏布局页
timeline时间线/流程页
comparison对比页
hub_spoke中心辐射页
pyramid金字塔层级页
agenda议程/目录页

工作流

流程 1:生成 PPT

  1. 分析用户需求 - 识别场景、受众、调性
  2. 选择风格 - 根据上述评分表选择最合适的风格
  3. 告知用户 - 说明选择的风格和原因
  4. 创建输出目录 - ~/ppt-output/{项目名}/
  5. 生成幻灯片 - 调用 Python 执行层
python
import sys, os
from pathlib import Path
sys.path.insert(0, str(Path(os.environ.get('SKILLS_DIR', str(Path.home() / '.claude/skills'))) / 'shared-lib'))

from presentation import create_session, PresentationGenerator

# 1. 创建 session
session = create_session(
    title='项目标题',
    style='vintage',  # 你选择的风格
    language='zh',
    audience='general'
)

# 2. 创建输出目录
output_dir = session.create_output_directory('项目标题')

# 3. 生成幻灯片
gen = PresentationGenerator(style='vintage')
gen.generate_slide(
    layout='cover',
    content='标题\n副标题',
    output_path=str(output_dir / 'slide_01.png')
)

流程 2:批量生成

python
# 批量生成多页
results = gen.batch_generate_slides(
    slides_config=[
        {'layout': 'cover', 'content': '标题'},
        {'layout': 'content_left', 'content': '要点列表'},
    ],
    output_dir=str(output_dir)
)

流程 3:导出 PPTX

bash
python "$SKILLS_DIR/ppt-generator/scripts/assemble_pptx.py" \
    --input_dir ~/ppt-output/项目名/ \
    --output ~/ppt-output/项目名/presentation.pptx

输出目录结构

~/ppt-output/{项目名}/
├── prompts/
│   ├── 01-slide-封面.md
│   ├── 02-slide-xxx.md
│   └── ...
├── slide_01.png
├── slide_02.png
├── slide_03.png
├── ppt_content.yaml
├── presentation.pptx
└── presentation.pdf

配置依赖

图片生成依赖 $SKILLS_DIR/shared-lib/config.yaml,包含:

Provider说明
google-local本地 Google API 代理(优先)
ModelScope阿里通义 Z-Image
volcengine字节跳动火山引擎
ApiMartApiMart 图像生成

注意事项

  1. 风格选择由 AI 完成 - 根据本文档的评分表判断,不调用 Python 推荐函数
  2. 质量优先 - 多个风格匹配度接近时,选择质量分更高的
  3. 受众优先 - 儿童/初学者 → 友好风格;高管 → 简洁风格
  4. 稳定性考虑 - 重要场合选择稳定性高的风格(apple, corporate, minimal)
  5. 风格一致 - 一个 PPT 只用一种风格,不要混用

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ppt Generator AI skill do?

生成专业 PPT 演示文稿,支持 22 种风格,自动根据内容选择最佳风格,输出到 ~/ppt-output/

Why use Ppt Generator on TypingMind?

Because you install it once and use it with any model. Ppt Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ppt Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bozhouDev/bozhou-skills/tree/main/ppt-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ppt Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ppt Generator?

As many as you like. As long as a model supports skills, you can use Ppt Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ppt Generator AI skill free?

It is published on GitHub by bozhouDev. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇