SuperAPI AI Directory

ppt-generator

General & other

View repository

Updated 10-16 08:48

About this skill

PPT Generator Skill

A complete solution focused on PPT generation.

Trigger Conditions

Activated when a user request involves the following:

  • Generate PPT / slides / presentation
  • Create PPT / make PPT
  • Outline to PPT
  • PPT style selection
  • Modify a certain page of a PPT

Style Selection Guide (22 styles)

When a user raises a PPT request,you (Claude) select a style according to the following guide, do not call any Python recommendation function.

Analysis Dimensions

  1. Scenario: tech / business / education / creative / lifestyle / academic / gaming / historical
  2. Audience: beginners / general / experts / executives / children
  3. Tone: formal / casual / playful / serious / warm / professional

Style Scoring Table

First tier: General high-quality styles (quality score 9-10)

Style Quality Stability Applicable Scenario Applicable Audience Tone
apple 10 9 tech(10), business(9), education(7), data(9) executives(10), general(9), experts(8) professional, elegant
minimal 9 9 business(10), tech(8) executives(10), experts(8) formal, zen
corporate 9 9 business(10), data(8) executives(9), general(8) formal, trustworthy

Second tier: Professional domain styles (quality score 8)

Style Quality Stability Applicable Scenario Applicable Audience Tone
blueprint 8 9 tech(10), data(9), academic(8) experts(10), general(7) technical, precise
notion 8 9 tech(9), business(8), data(10) general(9), experts(8) clean, functional
scientific 8 8 academic(10), tech(7) experts(10), academics(10) formal, precise
editorial 8 8 business(8), academic(7) general(8), experts(7) professional, readable
editorial_infographic 8 8 academic(9), tech(8), education(7) general(9), experts(8) informative, clear
intuition_machine 8 7 tech(9), academic(9) experts(9), bilingual(10) technical, bilingual

Third tier: Educational styles (quality score 7-8)

Style Quality Stability Applicable Scenario Applicable Audience Tone
sketch_notes 8 7 education(10), tech(6) beginners(10), general(8) warm, friendly
chalkboard 7 8 education(10) beginners(9), children(8) nostalgic, teaching
fantasy_animation 8 7 education(8), creative(9), story(10) children(10), beginners(9) playful, magical

Fourth tier: Creative styles (quality score 7-8)

Style Quality Stability Applicable Scenario Applicable Audience Tone
watercolor 8 7 lifestyle(10), creative(9), health(8), historical(8) general(9), beginners(8) warm, artistic
vector_illustration 8 7 education(8), creative(9) children(9), beginners(8) cute, friendly
dark_atmospheric 8 7 gaming(10), creative(9), entertainment(10) general(8), youth(9) dramatic, cinematic
bold_editorial 8 7 business(8), marketing(10) general(9), executives(7) bold, impactful
storytelling 7 7 story(10), creative(8) general(8), beginners(7) narrative, emotional

Fifth tier: Specialty styles (quality score 6-7)

Style Quality Stability Applicable Scenario Applicable Audience Tone
pixel_art 7 7 gaming(10), tech(6) youth(10), developers(8) retro, playful
vintage 7 7 historical(10), story(8) general(8) nostalgic, classic
neumorphism 6 6 tech(7), creative(7) general(7) modern, soft
material 7 8 tech(8), business(6) general(8) clean, systematic
fluent 7 8 tech(8), business(7) general(8) modern, fluid

Quick Selection Guide

Select by Scenario

What the user says includes Recommended styles (by priority)
AI, technology, system, architecture, data apple → blueprint → notion
Business, investment, enterprise, reporting, proposal corporate → apple → minimal
Tutorial, learning, beginner, training sketch_notes → chalkboard → apple
Children, story, animation, fun fantasy_animation → vector_illustration
Game, pixel, retro, developer pixel_art → dark_atmospheric
History, tradition, culture, ancient, adventure, nostalgia vintage → watercolor → editorial
Life, health, travel, art watercolor → vector_illustration
Science, academic, research, paper scientific → blueprint → editorial_infographic
Product launch, marketing, launch event bold_editorial → dark_atmospheric → apple
SaaS, product, dashboard, metrics notion → apple → minimal

Select by Audience

Audience Type Recommended Style Reason
Executives/Investors minimal, corporate, apple Concise, professional, high-end
Technical experts blueprint, scientific, intuition_machine Precise, information-dense
Beginners/Entry-level sketch_notes, chalkboard, fantasy_animation Friendly, easy to understand
Children fantasy_animation, vector_illustration, pixel_art Fun, cute
General public apple, notion, watercolor Balanced, general

Select by Tone

Tone Recommended Style
Formal and Professional corporate, minimal, apple
Warm and Friendly sketch_notes, watercolor, fantasy_animation
Lively and Fun pixel_art, vector_illustration, chalkboard
High-end and Elegant minimal, dark_atmospheric, bold_editorial
Technically Precise blueprint, scientific, notion

Theme Color Selection (apple style only)

Theme Applicable Scenarios
soft_blue Technology, AI, Data (default)
deep_indigo Business, Finance, Professional
fresh_green Health, Environment, Growth
warm_orange Education, Vitality, Creativity
rose_pink Lifestyle, Fashion
elegant_purple Creativity, High-end, Mysterious
cool_teal Fresh, Modern
neutral_grey Minimalist, Neutral

Available Layouts

Layout Purpose
cover Cover Page
section_divider Section Divider Page
content_left Left-aligned Content Page
content_center Centered Emphasis Page
content_two_column Two-column Comparison Page
title_hero Large Title Hero Page
key_stat Key Data Page
quote_callout Quote Emphasis Page
icon_grid Icon Grid Page
three_columns Three-column Layout Page
timeline Timeline/Process Page
comparison Comparison Page
hub_spoke Hub and Spoke Page
pyramid Pyramid Hierarchy Page
agenda Agenda/Table of Contents Page

Workflow

Process 1: Generate PPT

  1. Analyze user requirements - Identify scenario, audience, tone
  2. Select style - Select the most suitable style based on the scoring table above
  3. Inform the user - Explain the selected style and the reason
  4. Create output directory - ~/ppt-output/{项目名}/
  5. Generate slides - Call the Python execution layer
import sys
from pathlib import Path
sys.path.insert(0, 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')
)

Process 2: Batch Generation

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

Process 3: Export PPTX

python ~/.claude/skills/ppt-generator/scripts/assemble_pptx.py \
    --input_dir ~/ppt-output/项目名/ \
    --output ~/ppt-output/项目名/presentation.pptx

Output Directory Structure

~/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

Configure Dependencies

Image Generation Dependencies ~/.claude/skills/shared-lib/config.yaml, including:

Provider Description
google-local Local Google API Proxy (preferred)
ModelScope Alibaba Tongyi Z-Image
volcengine ByteDance Volcano Engine
ApiMart ApiMart Image Generation

Notes

  1. Style selection is done by AI - Judge based on the scoring table in this document, do not call the Python recommendation function
  2. Quality first - When multiple styles have similar match scores, choose the one with the higher quality score
  3. Audience first - Children/beginners → friendly style; executives → concise style
  4. Stability considerations - For important occasions, choose styles with high stability (apple, corporate, minimal)
  5. Style consistency - Use only one style per PPT, do not mix them