ppt-master

AI-driven multi-format SVG content generation system for presentations, social media graphics, and marketing materials. Use when creating PPTs, posters, or visual content from documents.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ppt-master" with this command: npx skills add lzfxxx/ppt-master

PPT Master - AI 视觉内容生成系统

基于 AI 多角色协作的 SVG 内容生成系统,支持演示文稿、社交媒体、营销海报等多种格式。

何时使用此 Skill

  • 从 Markdown/PDF/URL 生成 PPT 演示文稿
  • 创建小红书、朋友圈等社交媒体图文
  • 设计营销海报、信息图
  • 批量生成可视化内容

核心工作流

源文档 → 创建项目 → 模板选择 → Strategist 规划 → [Image Generator 配图] → Executor 生成 SVG → 后处理 → 导出 PPTX

快速开始

1. 前置检查

阅读角色定义前必须加载对应文件:

阅读技术约束:

2. 创建项目

mkdir -p projects/<name>/{src,output/images,output/final}
# 源文档放入 src/ 目录

3. 源文档处理

格式工具命令
PDFtools/pdf_to_md.pypython3 tools/pdf_to_md.py <pdf> <out.md>
URLtools/web_to_md.pypython3 tools/web_to_md.py <url> <out.md>
微信公众号tools/web_to_md.cjsnode tools/web_to_md.cjs <url> <out.md>

4. 执行工作流

Step 1: Strategist 分析

  • 读取源文档
  • 确定画布格式(PPT 16:9 / 小红书 / 海报等)
  • 规划页数、内容结构
  • 输出:projects/<name>/plan.md

Step 2: Image Generator 配图(可选)

  • 根据内容需求搜索或生成图片
  • 图片放入 projects/<name>/output/images/
  • 使用 tools/embed_images.py 嵌入 SVG

Step 3: Executor 生成 SVG

  • 按规划逐页生成 SVG
  • 输出到 projects/<name>/output/
  • 使用 tools/finalize_svg.py 后处理

Step 4: 导出 PPTX

python3 tools/svg_to_pptx.py projects/<name> -o output.pptx
# 或使用 --use-final 使用 final/ 目录的 SVG

支持的画布格式

参考 docs/canvas_formats.md

格式尺寸用途
ppt1691920×1080标准 PPT 16:9
ppt431440×1080传统 PPT 4:3
xiaohongshu900×1200小红书图文
moments1080×1080朋友圈方形
phone9_161080×1920手机全屏海报
a4595×842A4 文档

工具速查

# SVG → PPTX
python3 tools/svg_to_pptx.py <project> -o <out.pptx>

# PDF/网页 → Markdown
python3 tools/pdf_to_md.py <in.pdf> <out.md>
python3 tools/web_to_md.py <url> <out.md>

# 图片处理
python3 tools/embed_images.py <svg> <image_dir>
python3 tools/crop_images.py <image> [options]
python3 tools/fix_image_aspect.py <image>

# SVG 后处理
python3 tools/finalize_svg.py <project>
python3 tools/svg_quality_checker.py <project>

# 项目管理
python3 tools/project_manager.py create <name>
python3 tools/project_manager.py list

示例项目

依赖安装

# Python 依赖
pip install python-pptx Pillow beautifulsoup4 requests lxml

# Node.js 工具(可选,用于微信公众号抓取)
npm install

关键约束

  1. SVG 技术限制: 禁用 filtermaskclipPath 等 PPT 不兼容特性
  2. 图片格式: 嵌入前必须使用 embed_images.py 处理
  3. 字体: 使用系统标准字体(微软雅黑、思源黑体等)
  4. 颜色: 遵循设计规范中的配色方案

完整文档

在线预览

查看生成效果:GitHub Pages 预览

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Fitbit Tracker

Personal Fitbit integration for daily health tracking with adaptive sleep and activity reporting

Registry SourceRecently Updated
General

Ollama Load Balancer

Ollama load balancer for Llama, Qwen, DeepSeek, and Mistral inference across multiple machines. Load balancing with auto-discovery via mDNS, health checks, q...

Registry SourceRecently Updated
General

Google Merchant Center

Google Merchant Center integration. Manage Accounts. Use when the user wants to interact with Google Merchant Center data.

Registry SourceRecently Updated
General

Twitter/X All-in-One — Search, Monitor & Publish Text & Media Posts

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts, likes/unlike...

Registry SourceRecently Updated