PPT Screenshot to Document - Simple Version: Restore PPT Screenshots to Editable PPTX

Introduction

When you only have PPT screenshots sent by others, single-frame captures from meeting recordings, or images exported from PDFs, the common practice is to paste the entire page into a new slide as a background image. However, this makes the text uneditable and the layout immutable, resulting in high costs for subsequent fine-tuning. If you want the Agent to write editable .pptx code based on the visual structure instead of just stacking images, you can install a Skill designed for “Screenshot/Image → PPTX”. Below is an introduction to the positioning and usage of the SkillHub community skill ppt截图转文档-简陋版 (Coordinate: @user_057c4a74/pptpic-to-ppt).

What is this

ppt截图转文档-简陋版 (PPT Screenshot to Document - Simple Version) is a community Skill on SkillHub (Source: community, Publisher: user_057c4a74), currently at version 1.0.2, categorized under office-efficiency. The official description is: “Restore PPT screenshots/images to editable PPTX with high fidelity.”

The logic name exposed in the skill package’s SKILL.md is ppt-painter, and the documentation title is “PPT Painter”. The implementation approach is: After the Agent reads the screenshot, it uses PptxGenJS and helper scripts within the package to generate and execute Node.js code, outputting a .pptx file. It emphasizes automatic dependency detection, shortened visual analysis output, and executing a “fast path”. The platform tags indicate requires_api_key=false, meaning no separate API Key configuration is needed during installation or when following the workflow.

SkillHub Page Statistics (based on platform display): Rating 100000, Downloads 1107.

Core Features

The following capabilities are derived from the installed SKILL.md and skill package scripts, without exceeding the official description.

  1. Input: PPT slide screenshots or other images provided by the user.
  2. Output: Editable .pptx file (16:9, 10 inches wide, 5.625 inches high).
  3. Environment: Before execution, checks for node_modules/pptxgenjs in the workspace; if missing, runs npm install pptxgenjs. Dependencies like sharp can be installed as needed.
  4. Layout Templates:
    • Default: Warm business style, referencing scripts/warm-business-template.js, with primary colors including #E84536, #F2943A, #FFC000.
    • Only when the user explicitly requests a cool/blue color: Refers to scripts/quick-start-template-light.js.
  5. Coding Constraints: Grid and safe margins (x + w <= 9.8, y + h <= 5.4), row/column alignment, font size ranges, hexadecimal colors, text wrapped in backticks; components can be reused via require('./pptx-helpers.js').
  6. Trigger Words (Skill Metadata): Image to PPT, Screenshot to PPT, ppt-painter, screenshot to ppt, Image restoration to PPT, etc.

The skill name includes “Simple Version” (简陋版), indicating this is a lightweight implementation by a community author. Complex layouts or pixel-level restoration require self-evaluation of the results.

Installation and Activation

Method 1: SkillHub CLI

First, confirm if skillhub is already on your machine (if not installed, refer to the SkillHub Installation Guide). When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, the default installation to ./skills/ may not be recognized.

skillhub install pptpic-to-ppt --namespace user_057c4a74 --dir <Your Agent skills directory>

Common directory examples (from official installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Method 2: Let the Agent install via documentation

The prompt provided by the SkillHub skill page is:

Please install `@user_057c4a74/pptpic-to-ppt` according to https://skillhub.cn/install/skillhub.md.

After installation, enable the skill in clients that support Skills. In your conversation, use the trigger words mentioned above or describe naturally (e.g., “Make this PPT screenshot into an editable PPTX”) to route to this Skill.

Typical Usage

The skill defines an Agent execution flow rather than a separate CLI subcommand. The reproducible steps for the user are as follows:

  1. Prepare one or more PPT page screenshots (provide paths or attachments to the Agent).
  2. In a conversation where @user_057c4a74/pptpic-to-ppt is enabled, state your requirements; if you need the blue/cool color template, you must explicitly state it, otherwise the default warm business template will be used.
  3. The Agent executes according to SKILL.md:
    • Stage 0: Bash checks and installs pptxgenjs.
    • Stage 1: Silently completes layout and structure understanding without outputting lengthy visual analysis reports.
    • Stage 2: Writes the Node.js generation script (can reference package examples like scripts/generate-example.js).
    • Stage 3: Runs node script_name.js, generates the .pptx, and delivers the file.

Environment detection example (consistent with skill documentation):

if [ ! -d "node_modules/pptxgenjs" ]; then
  npm install pptxgenjs
fi

Generation stage example:

node your-slide-script.js

The specific script name is created by the Agent in the workspace; refer to the file that actually runs successfully.

Scenarios and Caveats

Suitable for: Users who only have images and need to change text or tables in PowerPoint; those willing to accept the “code-generated slides” approach; environments where the local machine or Agent sandbox allows npm install and node execution.

Limitations and Notes:

  • Restoration quality depends on screenshot clarity and layout complexity; the skill description emphasizes speed and limits long analysis by the Agent, so fine fonts/effects may deviate from the original.
  • Depends on Node.js and pptxgenjs; network restrictions must allow npm package installation.
  • The skill requires layouts to stay within bounds, same-column x and same-row y alignment; complex overlapping layers require manual adjustment in PPT.
  • The “Simple Version” (简陋版) in the name should be understood as a functional boundary description, not an official SkillHub product name.

Conclusion

ppt截图转文档-简陋版 bridges the “only have screenshots” scenario to editable PPTX: through PptxGenJS and package template scripts, the Agent writes code, runs scripts, and outputs files without needing an API Key. For installation or version checks, please refer to SkillHub.

  • Skill Page: https://www.skillhub.cn/skills/user_057c4a74/pptpic-to-ppt
  • API Coordinate: https://api.skillhub.cn/user_057c4a74/pptpic-to-ppt
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye