跳到正文
Skillpedia
PDF、Word 与幻灯片52k · #3403

nature-image2ppt

它能做什么

它指导你的智能体把幻灯片或图表的图片转换为由独立、可编辑部件组成的 PowerPoint 文件。适合只有图片形式幻灯片、需要进行编辑的人。

适用场景

  • ✓当你有一张幻灯片截图,需要一个可编辑的 PowerPoint 的时候。
  • ✓当你有一份扫描的幻灯片 PDF,并希望其各部分可以编辑的时候。
  • ✓当你有一张图表图片,并希望将其重建为 PowerPoint 对象的时候。

技能链接

https://github.com/Yuan1z0825/nature-skills/blob/main/skills/nature-image2ppt/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yuan1z0825/nature-skills/blob/main/skills/nature-image2ppt/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能把我旧幻灯片的这张截图转换成一个可编辑的 PowerPoint 文件吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体读取每一页,找出文字和形状,并将它们作为独立对象放入新的演示文稿中。交付之前,它会检查结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Nature Image2PPT

Use this directory as the complete runtime. Run deterministic actions only through:

python <image2ppt-root>/cli/image2ppt/cli.py <command> ...

Use Python 3.10 or later with requirements.txt installed. When a dedicated environment exists, substitute <image2ppt-root>/.venv/bin/python on macOS/Linux or <image2ppt-root>/.venv/Scripts/python.exe on Windows for every python command below. Do not continue after a failed doctor; install only the reported missing dependency, then rerun it.

Do not discover or invoke another Skill, CLI, Prompt, Schema, module, or state machine.

Read the local contracts progressively

Always read references/workflow.md. Read references/runtime-dependencies.md only for setup or doctor failures, and read references/ocr-text-hints-contract.md only when choosing or troubleshooting OCR.

Before writing a page manifest, read references/page-decision-tree.md and references/manifest-schema.md. Add only the references needed by that page:

  • structured or compound page: references/region-decomposition.md and references/object-routing.md;
  • arrows: references/manifest-arrow-extension.md;
  • raster assets or image-backend work: references/assets-provenance-contract.md.

Before accepting or delivering output, read references/qa-contract.md.

Preserve the single source of truth

  • Treat page_jobs.json as the only page-state source.
  • Treat each pages/page_NNN/manifest.json as the only page-content source.
  • Treat deck_manifest.json as the final-assembly source.
  • Use only prepare, run next/dispatch/record/reset/hints/finalize, and the page commands in the local CLI for stateful lifecycle operations.
  • Keep semantic-region evidence in manifest.json.image2ppt_region_decomposition.
  • Never create a second job file, reconstruction plan, OCR normalizer, page controller, packager, or finalize path.
  • Let supplemental QA report failures; never let it mutate lifecycle state.

Keep every write inside its owner directory

  • Page build, validation, hints, and QA may read and write only inside that page directory. Manifest paths, recorded assets, formulas, reports, previews, and --out overrides must not use .., symlinks, or absolute paths to escape it. The sole external-input exception is an explicit image-tool result supplied to image import or as process-sheet --asset-sheet-source; it is copied into the page before becoming a build dependency.
  • Run-level manifests and final outputs must remain inside the prepared run directory. Finalization rebuilds into a same-directory temporary file and publishes it atomically only after a successful build.
  • Treat any boundary rejection as a hard failure; do not copy the rejected file back into scope and present it as runtime output.

Preserve pre-migration behavior

  • Treat self-containment as a path/import/entrypoint migration, not a redesign of reconstruction behavior.
  • Generate each worker Prompt from the complete local base layer plus the preserved Image2PPT profile layer. Do not condense, reinterpret, or replace either layer.
  • Prefer the previously validated visual strategy when several routes satisfy the contracts. Keep simple measured objects native and retain bounded complex assets wherever a native redraw would reduce fidelity.
  • Never re-author an accepted baseline page merely to prove runtime independence.

Run the workflow

Image backend selection

Use builtin-imagegen when the agent runtime exposes image_gen.imagegen; it is the preferred backend because the worker can inspect edit inputs and import the explicit local result. Use the CLI image contract only when the built-in tool is unavailable, errors, cannot read an input, or returns no valid local output. A missing optional argument such as model, mask, size, quality, or output path never authorizes fallback. Record the actual producer and permitted fallback reason in imagegen-jobs.json.

The CLI image contract is provider-neutral at the transport boundary. Select codex-oauth only for GPT Image model ids. Select openai-compatible-api for any provider-specific model whose endpoint implements the OpenAI Images-compatible /images/generations and/or /images/edits schema. Do not infer the image backend from the task's language model. Use an explicit backend when provenance matters; auto uses Codex OAuth only for compatible GPT Image ids and otherwise selects the confi

常见问题

它能根据我的笔记写一份新的演示文稿吗?

不能。该技能是重建已有图片,不会根据研究笔记编写新的演示文稿。

它需要额外的软件吗?

需要。该技能要求 Python 3.10 或更高版本以及一些库,并会在开始前进行检查。

它能读取图片中的文字吗?

能。它使用文字识别(OCR),该技能还有一份单独的指南说明如何选择该工具。

详情

作者的原始描述

Reconstruct slide images, screenshots, scanned PDFs, or image-only PPTX files as object-level editable PowerPoint. Use for 图片转可编辑PPT、截图还原PPT and diagram reconstruction; not authoring a new deck from research notes.

repo: Yuan1z0825/nature-skills

热度

GitHub 星标
52k
排名
#3403
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能