360 Secure SkillHub
360 安全技能中心

Image to Editable PPT Slide

依据参考图片用 python-pptx 重建可编辑的 PPT/PPTX 幻灯片或整套演示,采用原生形状、文本框、填充与布局,而非整图贴图;附带生成 JSON spec 模板与按 spec 构建文稿的脚本,并建议至少做一轮保真度微调。lint 提示 SKILL.md 引用的 script/spec 路径不存在。

benjaminlee
benjaminlee
热度 52.10
最近更新 2026-05-11 17:36:54
分类:创作依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:演示设计 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add image-to-editable-ppt-slide
Metadata
name
image-to-editable-ppt-slide
description
Rebuild one or more reference images as visually matching editable PowerPoint slides using native shapes, text, fills, and layout instead of a flat screenshot. Use when the user wants an image, flowchart, infographic, dashboard, process diagram, or designed slide converted into an editable PPT/PPTX deck that stays editable and closely matches the source.
homepage
https://github.com/benjaminlee/image-to-editable-ppt-slide
metadata
{"clawdbot":{"emoji":"🖼️","requires":{"env":[],"files":["scripts/*"]}}}

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:

  • make_<name>.py
  • <Name>_editable.pptx
  • optional: <name>_spec.json

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