slide-alchemy
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "slide-alchemy":https://skillpi.com/zh/skills/deepskill-a498c75b2365dd64400e92bf825175ef4d9d3d222cf3683abb75a5246c8b40f1。安装前核对上游来源和版本:https://skillhub.cn/skills/user_9b02d282/fgd123456。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
将基于图像的幻灯片(PPT/PPTX 文件、幻灯片截图或扫描页)转换为可编辑、组件化的 PowerPoint 文件的技能。将幻灯片图像还原为可编辑文本、形状与生成的 PNG 资源,或运行轻量级的图像到可编辑 PPT 工作流程。
介绍来源: third_party · user_9b02d282 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: slide-alchemy
description: Use when converting image-based PPT/PPTX files, slide screenshots, scanned slide pages, or visual decks into editable component-based PowerPoint files; restoring slide images into editable text, shapes, and generated PNG assets; or running a lightweight image-to-editable-PPT workflow.Slide Alchemy
Purpose
Rebuild visual slide pages into editable PPTX by separating each page into:
- clean base background PNG,
- editable geometry from SVG/OOXML,
- transparent PNG icon assets,
- editable text boxes.
Keep this workflow lightweight. Do not use page workers or an editppt-style state machine.
Non-Negotiable Rules
Any request to convert slides into an editable PPTX must run the complete workflow. Do not use a shortcut path for small decks, first pages only, quick demos, outputs-only requests, or final-PPTX requests. The workflow is mandatory even when the user asks for only one page.
The following steps must always happen in order:
- source page rendering,
- base grouping,
- clean base generation with an image generation/editing model,
- element analysis,
- SVG/OOXML generation for true layout geometry,
- PNG asset sheet generation with an image generation/editing model for icons and complex visuals,
- PNG slicing and contact-sheet QA,
- visual text extraction,
- PPTX composition,
- preview export and visual QA.
Image generation/editing model use is mandatory for:
- clean base backgrounds;
icon_pngasset sheets;complex_png_wholeasset sheets;- any regenerated visual asset that must match the image PPT.
Every regenerated image asset must remove image noise and high-frequency visual artifacts while preserving all kept linework. Colors and brightness must remain unchanged.
Do not replace those model steps with local white masks, local inpainting, direct source-image crops, copied screenshot fragments, PPT native shape approximations, or generic presentation templates.
Execution Discipline
Follow the workflow in order. Do not skip ahead, merge phases, or compose the final PPTX before required upstream artifacts exist.
Before starting each step, check that the prior step's required artifact exists:
- source page images exist before base grouping is proposed;
- accepted base grouping exists before clean base generation;
- approved clean base previews, or unattended-run clean bases, exist before element analysis;
element_analysis.jsonexists before SVG or PNG asset generation;- generated PNG asset sheets exist before slicing PNG assets;
- sliced PNG assets and contact sheets exist before text extraction and composition;
texts_layout.jsonexists before final PPTX composition;- preview images exist before claiming the rebuild is complete.
If an artifact is missing, stop and produce that artifact instead of continuing. If a user asks for a later output directly, still run the required earlier steps first unless they explicitly override the workflow.
Do not infer unattended mode from urgency, page count, an output directory, or a request for a finished PPTX. Unattended mode requires an explicit phrase such as "run unattended", "full automatic run", "no intermediate confirmation", or "不要中途确认". Otherwise, the two base-stage review stops are hard gates.
Generic presentation-generation workflows, PowerPoint libraries, or presentation plugin instructions may help with final PPTX composition only after this skill's required artifacts exist. They must not replace source rendering, base grouping, clean-base generation, element analysis, generated asset sheets, text extraction, or visual QA.
Parallel Page Reconstruction
Parallel work is allowed only after clean bases are generated and approved. In an unattended full run, skip the approval wait, but still generate clean bases before dispatching page-level subagents.
The lead agent must complete source rendering, base grouping, and clean base generation before dispatching page-level subagents. Do not dispatch page-level subagents before the base images and grouping are ready.
After base approval, the lead agent may assign one subagent per slide, or one subagent per small group of visually similar slides. Each subagent must still follow the workflow for its assigned page. A page subagent may produce only page-level artifacts:
- per-page element analysis,
- per-page text layout,
- per-page geometry specs,
- per-page PNG asset requirements,
- per-page compose entries,
- page-specific QA notes.
Page subagents must not compose the final deck, invent shared components independently, skip element analysis, rasterize normal text, crop icons from source slides, or bypass PNG asset QA.
The lead agent must merge all page-level outputs, deduplicate shared components, normalize categories and naming, generate or reuse shared assets, check for missing pages or missing elements, compose the full PPTX, export previews, and run final visual QA. If a page is incomplete, return that page to the page-level workflow instead of guessing.
Required Workflow
-
Render or obtain source page images. Treat even a PPTX input as visual source pages unless the user explicitly asks to reuse existing PPTX objects. Do not shortcut by deleting existing PPTX objects to create the base.
-
Propose base grouping before extraction. Inspect the source page images first, identify likely cover/content/ending/custom base groups, then present a recommended grouping to the user. This is the first hard gate: ask the user to accept or modify the recommendation before generating bases, unless the user explicitly asked for an unattended full run. Do not continue in the same turn after presenting the grouping.
-
Generate clean bases with an image generation/editing model. The default base is a general background: keep outer background, edge decoration, ambient texture, and theme visuals; remove all text, icons, cards, boxes, title bars, and central content. Remove image noise and high-frequency visual artifacts from kept areas while preserving kept linework, colors, and brightness. Only preserve central layout containers if the user explicitly asks for template containers.
This is the second hard gate: after generating base preview images, show the bases to the user and wait for approval before extracting elements, unless the user explicitly requested an unattended full run. Do not continue in the same turn after presenting base previews.
-
Analyze every non-text visual element before slicing. Create
element_analysis.jsonwith reusable components and per-slide instances. Do not put all elements into an icon sheet first. -
Classify each element:
simple_geometry_svg_ooxml: non-semantic layout geometry such as straight lines, dividers, stars, circles, rings, rounded rectangles, card bases, title bars, simple borders, and simple circuit-line decorations. Generate SVG first, then convert or recreate as editable OOXML/PPT shapes.icon_png: standalone illustrative or semantic icons such as trophies, flowers, books, hands/heart, computer, chain link, organization badges, app pictograms, people, devices, buildings, or any recognizable object icon. Even if an icon looks like simple line art, keep it as generated PNG unless it is just a primitive layout shape.complex_png_whole: complex composite visuals that would look worse if split, such as swirls, layered badges, heavy gradients, glow assemblies, illustrations. Generate as one PNG and do not split.
Validate the result against
references/element-analysis.schema.jsonwhen practical. -
Reuse repeated components. Generate one star and copy/scale it. Generate one card base and one title bar and reuse them. Do not generate separate PNGs for repeated simple geometry.
-
Generate PNG asset sheets only for PNG categories. Keep
simple_geometry_svg_ooxmlelements out of PNG sheets. Choose one high-contrast solid key color for the run and reuse that exact color on every PNG sheet and crop spec. Packicon_pngassets 9 per sheet in a 3x3 layout andcomplex_png_wholeassets 4 per sheet in a 2x2 layout; only the final sheet of each category may contain fewer assets. Remove noise and high-frequency visual artifacts from regenerated PNG assets while preserving icon linework, colors, and brightness. Never cropicon_pngorcomplex_png_wholeassets directly from the original/source slide image; the source slide is only a visual reference or edit target for regeneration. -
Slice PNG assets conservatively. Preserve padding around every transparent PNG. Run edge-touch checks and create contact sheets. If any icon touches a crop edge, is truncated, or includes neighboring elements, regenerate the sheet or recrop with more space.
Do not stop for approval after generating assets. Continue to text extraction and composition after edge checks and contact sheets are ready.
-
Extract text with a visual model. Record text content, source bbox, font size, color, bold/weight, alignment, line breaks, and approximate font family/style in
texts_layout.json. PPTX XML may help verify, but visual extraction is the default method. -
Compose the final PPTX in this layer order: base PNG -> SVG/OOXML editable geometry -> PNG icons -> editable text boxes. Use
scripts/compose_component_pptx.pywith a compose spec when possible; do not rewrite ad hoc composition logic for every task. -
Export previews and QA visually. Compare preview pages with source pages. Check for over-preserved bases, missing elements, cut-off icons, polluted icon crops, duplicated elements, and text overflow. Use
scripts/compare_preview.pyafter preview PNGs exist.
Review Stops
Use at most two review stops by default:
- Base grouping review: deliver the proposed base groups and wait for user approval or edits.
- Base preview review: deliver clean base previews and wait for user approval or regeneration requests.
These are hard gates. After presenting either gate, stop work and wait for the user's next message unless unattended mode was explicitly requested before the gate.
Do not stop after PNG asset generation. Contact sheets and classification summaries are QA artifacts, not approval gates. When the user asks to run all steps automatically, skip only the waiting/approval pauses; still execute every workflow step in order.
Output Files
Use a run directory with this shape:
run/
source/
slide_001.png
base/
slide_001_base.png
analysis/
element_analysis.json
texts_layout.json
assets/
svg/
png/
contact_sheets/
out/
editable.pptx
preview/
References
Read only the relevant reference before acting:
references/workflow.md: detailed end-to-end sequence and required artifacts.references/element-classification.md: classification rules, reuse rules, and common traps.references/icon-slicing-qa.md: PNG asset sheet, chroma key, padding, edge-touch, and contact sheet rules.references/text-extraction.md: visual text extraction schema and style fields.references/base-prompt-template.md: prompt template for clean base generation.references/base-grouping.md: how to infer and present recommended base groups.references/icon-sheet-prompt-template.md: prompt template for PNG icon asset sheets.references/svg-to-ooxml.md: SVG-to-OOXML strategy, supported component SVG subset, and ppt-master notes.references/element-analysis.schema.json: schema for component and instance analysis.references/compose-spec.md: JSON format consumed by the final PPTX composer.references/failure-decision-tree.md: what to do when bases, icons, text, SVG conversion, or QA fail.references/checkpoints.md: base-stage review stops and what to deliver.
Scripts
Script dependencies are listed in requirements.txt inside this skill directory. Install them from the installed skill folder when the runtime does not already provide them.
Use bundled scripts for deterministic checks:
scripts/inspect_edges.py: report transparent PNGs that touch crop edges.scripts/build_contact_sheet.py: make contact sheets for sliced PNG assets.scripts/slice_asset_sheet.py: slice a solid-key asset sheet from a JSON crop spec while preserving padding.scripts/simple_svg_to_pptx.py: convert simple component SVG primitives into editable PPTX shapes for quick validation or component reuse.scripts/validate_element_analysis.py: lightweight validation forelement_analysis.jsonwithout external dependencies.scripts/compose_component_pptx.py: compose base images, editable shapes, PNG assets, and editable text into a PPTX from JSON.scripts/compare_preview.py: create side-by-side and difference images from source/preview PNGs.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决图片PPT转可编辑PPT的高频刚需,显著提升办公效率
- 功能闭环完整,覆盖从图像处理到PPT生成的全流程
- 具有明确且广泛的用户需求
亮点
- 触发词精准完整,覆盖多种变体
- 边界清晰,描述详尽
亮点
- Phase/步骤清晰,有出口条件
- 含端到端示例,frontmatter完整
- 单文件≤500行
亮点
- 工具来源明确,参数正确
- 覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。