当前位置: 首页 > Skill >

SVG PPT Generator

SVG PPT Generator

SVG PPT Generator

基于SVG的PPT生成器,拥有9种主题、8种布局、30+图表及600+图标

1.0.0 2026.11.21 631
获取Skill文件查看使用说明
作 者:陈禾 许可证: 更新时间:2026.11.21
本文目录展开

PPT Generator Skill

Professional presentation engine. Generates SVG pages and converts them to native editable PPTX via svg_to_pptx. Includes 8 layout templates covering dark, light, consulting, tech, and more.

When to Use

  • User asks to create a PPT / presentation / slides
  • User provides content, outline, or data that needs to become a PPTX
  • User mentions "make a PPT", "generate slides", "presentation", etc.

Interaction Flow (must follow)

After receiving a PPT request, do not generate immediately. Guide the user step by step:

Step 1: Confirm Topic and Duration

Got it, I'll make this PPT for you. Topic: "{extracted from user message}" — correct? How long is the presentation? This determines page count:

  • 10 min → 10-12 pages
  • 20 min → 15-18 pages
  • 30 min → 22-25 pages
  • 45 min → 28-35 pages

Duration is required — do not skip this. Page count directly depends on it.

If the user already provided a detailed outline, skip topic confirmation but still ask duration.

Step 2: Pick a Style

Pick a style (just reply with the number):

  1. dark_warm (default) — dark warm tone, AI/tech feel

  2. consultant — white + blue, consulting style

  3. cloud_orange — deep navy + orange, cloud/tech architecture

  4. ai_ops — full dark, ops/DevOps style

  5. tech_blue — blue tech, formal business

  6. smart_red — red business

  7. exhibit — light showcase, data-heavy

  8. pixel_retro — pixel retro, creative/fun

Step 3: Confirm Outline

Propose a structure based on the topic and style:

Based on your needs, here's a suggested structure ({N} pages):

P1 — Cover: {title}

P2 — Table of Contents

P3 — {Section 1 title}

...

P{N} — Closing: {key takeaway / CTA}

Want to adjust anything, or shall I start generating?

Step 4: Generate

Only start after user confirms. Send a status message:

Starting generation, estimated X minutes.

Then execute the Technical Flow below.

Step 5: Deliver and Iterate

Send the final PPTX with a brief note:

PPT is ready, {N} pages total. Want changes? Just say:

  • "Update the data on page 3"
  • "Add a page about XX"
  • "Make the colors darker"

Technical Flow (executed in Step 4)

Read design_spec.md + reference SVGs → Write SVG files → svg_to_pptx → Deliver

Phase 1: Read Design Spec

Load the target style's design spec and reference templates:

ppt-master-assets/templates/layouts/{style}/design_spec.md   ← colors, fonts, layout rules
ppt-master-assets/templates/layouts/{style}/01_cover.svg      ← cover reference
ppt-master-assets/templates/layouts/{style}/02_chapter.svg    ← chapter page reference
ppt-master-assets/templates/layouts/{style}/03_content.svg    ← content page reference
ppt-master-assets/templates/layouts/{style}/04_ending.svg     ← ending page reference

Phase 2: Generate SVG Files

Use the write tool to create SVG files page by page in /tmp/ppt_svgs/{style}/.

SVG Rules:

  1. viewBox must be 0 0 1280 720 (16:9)
  2. Strictly follow design_spec.md for colors, fonts, and layout
  3. Do not use: foreignObject, clipPath, mask, <style>, class
  4. File naming: 01_cover.svg, 02_toc.svg, 03_chapter1.svg... in order
  5. All text uses <text> elements with font-family, font-size, fill
  6. Background: full-coverage <rect>. Decorations: <rect>/<circle>/<line>/<path>
  7. Tables: manual <rect> + <text> layout (no HTML tables)
  8. Fill the page — avoid large empty areas
  9. Titles should state insights, not category labels

Suggested order:

  • Cover and ending first (set the tone)
  • Chapter dividers next (consistent style)
  • Content pages last (data-heavy, one at a time)

Phase 3: SVG → PPTX Conversion

svg_to_pptx converts SVG elements into native DrawingML shapes (not images):

  • <text> → editable text boxes (double-click to edit)
  • <rect> → native rectangles (drag, recolor)
  • <circle> / <ellipse> → native circles
  • <line> / <path> → native lines/paths
  • Tables (rect + text combos) → editable shape groups

The output PPTX is fully editable in PowerPoint, just like a manually created file.

import sys, os
sys.path.insert(0, os.path.expanduser(
    "~/.openclaw/workspace/skills/ppt-generator/ppt-master-assets/scripts"))
from svg_to_pptx import create_pptx_with_native_svg
from pathlib import Path

svgs = sorted(Path("/tmp/ppt_svgs/{style}").glob("*.svg"))
create_pptx_with_native_svg(svgs, Path("/tmp/output.pptx"),
                            canvas_format="ppt169",
                            use_native_shapes=True,  # required! otherwise SVG is embedded as image
                            verbose=True)

Phase 4: Cross Review (optional, requires user confirmation)

After generating the first draft, ask the user:

First draft is ready. Want to run a cross-review? Multiple reviewers check in parallel — more thorough but takes a few minutes.

If the user agrees and the agent supports subagents, run a review-fix cycle:

  1. Round 1 (full review): Launch 5 reviewer subagents in parallel

    • 🎤 Presentation Coach — narrative arc, flow, pacing
    • 👥 Target Audience — simulated audience reaction, comprehension
    • 🔬 Domain Expert — factual accuracy, technical depth
    • 📋 Content Auditor — structure, typos, data consistency
    • 👁️ Visual Inspector — layout, alignment, readability
  2. Fix: Aggregate all issues, fix by priority (🔴 before ⚠️)

  3. Round 2 (regression): 3 reviewers verify the fixes

  4. Exit criteria: 🔴=0 and ⚠️≤3, or round≥4 force exit

Skip if user says "no review" or "just a quick draft".

Phase 5: Deliver

Only send the final version. Do not send intermediate versions unless the user asks.

Style Directory Mapping

# Style Directory Background
1 Dark Warm dark_warm Dark cover + light content
2 Consultant consultant White + blue
3 Cloud Orange cloud_orange Deep navy + orange
4 AI Ops ai_ops Dark
5 Tech Blue 科技蓝商务 Blue
6 Smart Red smart_red Red
7 Exhibit exhibit Light
8 Pixel Retro pixel_retro Dark

Default recommendation: dark_warm.

Design Spec Location

Each template in ppt-master-assets/templates/layouts/{directory}/ contains:

  • design_spec.md — full design parameters
  • 01_cover.svg — cover template
  • 02_chapter.svg / 02_toc.svg — chapter/TOC page
  • 03_content.svg — content page
  • 04_ending.svg — ending page

Reference Documents

Key docs in ppt-master-assets/references/:

  • strategist.md — strategist role
  • executor-consultant-top.md — top-tier consulting executor
  • shared-standards.md — SVG technical constraints

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • PPT Generator Skill
    • When to Use
    • Interaction Flow (must follow)
      • Step 1: Confirm Topic and Duration
      • Step 2: Pick a Style
      • Step 3: Confirm Outline
      • Step 4: Generate
      • Step 5: Deliver and Iterate
    • Technical Flow (executed in Step 4)
      • Phase 1: Read Design Spec
      • Phase 2: Generate SVG Files
      • Phase 3: SVG → PPTX Conversion
      • Phase 4: Cross Review (optional, requires user confirmation)
      • Phase 5: Deliver
    • Style Directory Mapping
      • Design Spec Location
      • Reference Documents
  • 项目或源文件

相关 Skill

更多
Ppt Ocr Ppt Ocr OCR for PowerPoint (.ppt, .pptx) presentations with scanned or image-embedded slides. Uses MinerU to extract text from image-based presentation content. Feat...
ppt-turn-web-generator ppt-turn-web-generator 从操作流程、截图、视频、链接、参考图片和分步文档生成可重用的分页HTML教程指南。适用于...
PPT 智能生成器 PPT 智能生成器 当用户要把文章、提纲、数据、图片或一个主题做成 PPT、演示文稿、汇报、培训课件、知识讲解或产品发布会时使用。首次运行会从 CNB 下载经过 SHA-256 校验的固定引擎,之后全部在本地生成可编辑 HTML,并可导出 PPTX 与 PDF。
ppt-generate ppt-generate The intelligent PPT generation tool is provided by Baidu. It is a tool that intelligently generates PPTS based on the themes or questions given by users. Users can choose PPT themes, templates, or even customize their own templates. It also provides image or resource files (such as pdf,word,txt, etc.). The download address for the final generated PPT file is provided
PPT 中文工具专业版 PPT 中文工具专业版 <h2>PPT 中文工具专业版</h2>