Image to Editable PPT Slide
Convert a reference image into a visually matching editable PowerPoint slide or deck.
Use this skill when
- - the user wants an image turned into an editable PPT/PPTX slide
- the source is a flowchart, infographic, dashboard, process diagram, or designed slide
- fidelity matters and the result should closely match the source
- the user wants multiple source images recreated as a multi-slide deck
Core rules
- - Rebuild the slide with editable text boxes, shapes, lines, fills, and layout
- Do not default to placing the whole image as a flat background unless the user explicitly asks for that
- Save both the generated
.pptx and the script/spec used to create it - Do at least one refinement pass when visual fidelity matters
- Commit updates in the workspace after edits
Workflow
- 1. Inspect the image(s)
- Identify aspect ratio, title, sections, cards, arrows, connectors, icons, labels, and palette
- Note alignment, spacing, font weight, repeated motifs, and line thickness
- 2. Choose structure
- Single image → one editable slide
- Multiple images/pages → multi-slide deck, usually one source image per slide unless the user asks otherwise
- 3. Build with editable primitives
- Use
python-pptx
- Prefer rectangles, rounded rectangles, chevrons, circles, arrows, lines, and text boxes
- Approximate unknown fonts with standard installed fonts
- 4. Use helpers
-
scripts/pptx_rebuilder.py builds a deck from a JSON spec
-
scripts/generate_spec_template.py generates a starter JSON template for one or more slides
- 5. Refine
- Tighten spacing, font sizes, colors, line widths, corner radii, and proportions
- If needed, do a second pass before presenting the result
- 6. Deliver
- Tell the user where the
.pptx, generator script, and/or JSON spec were saved
- Mention any approximations if the match is not exact
File pattern
For one-off jobs, create:
- - INLINECODE5
- INLINECODE6
- optional: INLINECODE7
For repeated use, adapt the reusable scripts in scripts/.
Multi-slide deck guidance
- - Keep slide size consistent across the deck
- Usually map one reference image to one slide
- Reuse colors, text styles, and spacing where slides belong to the same presentation
- If slides differ a lot, treat each slide as its own reconstruction while keeping the deck coherent
External Endpoints
This skill itself does not call any external APIs or web services.
| Endpoint | Purpose | Data sent |
|---|
| None | N/A | Nothing leaves the machine by default |
Security & Privacy
- - By default, this skill works locally with
python-pptx and local files only - It reads local image/reference material and writes local
.pptx, .json, and helper script files - It does not require credentials or network access for its built-in helpers
- If a future adaptation adds external APIs, document every endpoint and every environment variable before publishing
Model Invocation Note
OpenClaw may invoke this skill autonomously when the request matches its description. That is normal skill behavior. If the user wants to avoid autonomous invocation, they can ask for a manual or one-off approach instead.
Trust Statement
By using this skill, you are trusting the local helper scripts in this package to read local spec/input files and write local PowerPoint output files. This packaged version does not send data to third-party services. Only install it if you trust the skill contents and your execution environment.
ClawHub-ready note
This skill folder is structured so it can be published with clawhub publish once authenticated. If publishing is requested, verify clawhub whoami first.
Quality bar
Good:
- - text and shapes are individually editable
- visual hierarchy matches the source at normal viewing size
- spacing, colors, and proportions are close enough to feel effectively identical
Bad:
- - whole image pasted as one picture
- major layout drift or incorrect proportions
- unnecessary conversion of text into non-editable elements
图像转可编辑PPT幻灯片
将参考图像转换为视觉匹配的可编辑PowerPoint幻灯片或演示文稿。
使用此技能的场景
- - 用户希望将图像转换为可编辑的PPT/PPTX幻灯片
- 源文件为流程图、信息图、仪表盘、流程示意图或设计好的幻灯片
- 注重保真度,结果应与源文件高度匹配
- 用户希望将多个源图像重新制作为多页幻灯片
核心规则
- - 使用可编辑文本框、形状、线条、填充和布局重建幻灯片
- 不要默认将整个图像作为平面背景放置,除非用户明确要求
- 同时保存生成的.pptx文件和用于创建它的脚本/规范
- 当视觉保真度重要时,至少进行一次优化调整
- 编辑后在工作区提交更新
工作流程
- 1. 检查图像
- 识别宽高比、标题、分区、卡片、箭头、连接线、图标、标签和配色方案
- 注意对齐方式、间距、字体粗细、重复图案和线条粗细
- 2. 选择结构
- 单张图像 → 一张可编辑幻灯片
- 多张图像/页面 → 多页幻灯片,通常每张源图像对应一页,除非用户另有要求
- 3. 使用可编辑基本元素构建
- 使用python-pptx
- 优先使用矩形、圆角矩形、V形、圆形、箭头、线条和文本框
- 使用标准已安装字体近似替代未知字体
- 4. 使用辅助工具
- scripts/pptx_rebuilder.py 根据JSON规范构建演示文稿
- scripts/generate
spectemplate.py 生成一个或多个幻灯片的起始JSON模板
- 5. 优化
- 调整间距、字体大小、颜色、线条宽度、圆角半径和比例
- 如有需要,在呈现结果前进行第二轮调整
- 6. 交付
- 告知用户.pptx文件、生成脚本和/或JSON规范的保存位置
- 如果匹配不完全准确,说明任何近似处理
文件命名模式
对于单次任务,创建:
- - make<名称>.py
- <名称>editable.pptx
- 可选:<名称>_spec.json
对于重复使用,调整scripts/中的可复用脚本。
多页幻灯片指南
- - 保持整个演示文稿的幻灯片尺寸一致
- 通常一张参考图像对应一页幻灯片
- 当幻灯片属于同一演示文稿时,复用颜色、文本样式和间距
- 如果幻灯片差异较大,在保持演示文稿连贯性的前提下,将每页幻灯片作为独立重建处理
外部端点
此技能本身不调用任何外部API或网络服务。
| 端点 | 用途 | 发送的数据 |
|---|
| 无 | 不适用 | 默认情况下无数据离开本机 |
安全与隐私
- - 默认情况下,此技能仅使用python-pptx和本地文件在本地运行
- 它读取本地图像/参考材料,并写入本地.pptx、.json和辅助脚本文件
- 其内置辅助工具不需要凭据或网络访问
- 如果未来版本添加外部API,在发布前需记录每个端点和每个环境变量
模型调用说明
当请求匹配其描述时,OpenClaw可自主调用此技能。这是正常的技能行为。如果用户希望避免自主调用,可以要求采用手动或一次性方法。
信任声明
使用此技能即表示您信任本包中的本地辅助脚本,允许其读取本地规范/输入文件并写入本地PowerPoint输出文件。此打包版本不会将数据发送给第三方服务。仅当您信任技能内容及执行环境时才安装使用。
ClawHub就绪说明
此技能文件夹的结构设计使其在认证后可通过clawhub publish发布。如需发布,请先验证clawhub whoami。
质量标准
合格:
- - 文本和形状可单独编辑
- 在正常查看尺寸下,视觉层次与源文件匹配
- 间距、颜色和比例足够接近,感觉上基本一致
不合格:
- - 整张图像作为一张图片粘贴
- 主要布局偏移或比例不正确
- 不必要地将文本转换为不可编辑元素