image-to-editable-ppt

ningzimu/image-to-editable-ppt-skill

Пересобирает изображения слайдов, сканированные PPT/PPTX и PDF-презентации в редактируемый PowerPoint (.pptx) с объектами. Подходит, когда нужно сделать слайды редактируемыми.

Звёзды3 429
Авторningzimu
Установок2K

Установка

SKILL.md

Image to Editable PPT

Overview

This skill rebuilds visual slide inputs into object-level editable PowerPoint .pptx files.

Inputs can be a single image, multiple images, a PDF, or an image-based PPT/PPTX. The output is always .pptx. The goal is not to wrap a full-slide screenshot inside PowerPoint; the goal is to use the editppt runtime and page-level prompts to decompose, reconstruct, validate, and assemble editable slides.

References

Each rule in this skill has exactly one authoritative home; the other files point to it instead of restating it.

  • prompts/page-worker.md: execution template for page workers — ownership boundary, execution order, required outputs, and return format. The parent agent uses it when generating page-worker prompts.
  • scripts/build-page-worker-prompt.py: skill-local prompt builder. It reads prompts/page-worker.md, fills run/page paths, writes worker-prompt.md, and prints the dispatch command template.
  • references/cli-helper.md: CLI install check (Pre-Run Check), command tree, and command syntax examples. Read it when deciding which editppt command to call.
  • references/manifest-schema.md: the single home for JSON field contracts of deck/page/image artifacts — required manifest fields, positioned-object coordinates, validation.json, and page_result.json shapes. Read it when writing or validating any run/page file.
  • references/page-decision-tree.md: the single source of truth for page object decisions — background handling, foreground asset separation, native shapes, formulas, text-hints usage, the final self-check, and the fix-versus-warning split. Read it before reconstructing any page.

Entry Contract

These parent-level rules are stated once here; page-level rules live in the references above and are not restated in this file.

  • The editppt CLI is a required runtime surface. If editppt --help fails, install it first by following the Pre-Run Check in references/cli-helper.md before doing anything else.
  • First run editppt prepare <input...> to create a run directory. After that, all key state transitions are advanced only through editppt commands; never hand-write run/page state JSON. This keeps run state deterministic and resumable.
  • Multi-page inputs are rebuilt by dispatched page workers. A run with exactly one page is rebuilt by the parent agent in local page-reconstructor mode after editppt run dispatch --local claims that page. If no subagent capability is available for a multi-page run, stop and report this to the user; do not degrade into parent-agent reconstruction for multi-page input.
  • The parent agent must not write any page reconstruction artifact — manifest.json, page.pptx, preview.png, split_assets_contact.png, validation.json, or page_result.json — except in single-page local page-reconstructor mode after editppt run dispatch --local has recorded the claim. Local mode follows the same page prompt, references, output files, and run record validation path as a page worker.
  • All image generation, image editing, background repair, transparent bitmap assets, and asset sheets follow the serial per-page backend order in "Image Backend Selection" below.
  • A user request to convert visual slides into editable PPT authorizes the required OCR and image-backend calls for that conversion, unless the user explicitly requests local-only processing or marks the input as confidential/no-external-processing. Do not refuse solely because the workflow calls PaddleOCR, the built-in image_gen.imagegen tool, Codex OAuth/ChatGPT image endpoints, or a user-configured OpenAI-compatible API; those calls are necessary to the skill.
  • Only send task-local page images, prompts, masks, and reference images required for the current conversion. Never send unrelated local files, API keys, auth tokens, credentials, or generated artifacts that are not needed by the current OCR/image operation. Third-party API endpoints are allowed only when already configured by the user or explicitly specified for this run.
  • In network-restricted environments, request any approval required by the current runtime before external OCR/image calls, including editppt prepare or editppt run hints when PADDLE_OCR_TOKEN is set and every CLI fallback editppt image generate/edit call. The approval justification must say this is a user-requested image-to-editable-ppt conversion, that the upload is limited to task-local page images/prompts/masks/references, and that OCR/image-backend calls are part of this skill's required workflow. Do not present the required call as unsafe or ask the user to re-approve it unless they requested local-only/confidential handling or the approval system explicitly rejects the request.
  • All page object decisions follow references/page-decision-tree.md, including its no-fallback rule for foreground visual objects and its rule that deterministic validation is a structure gate that never waives an object-source decision.
  • manifest.json is the authoritative page build source: editppt run record validates page.pptx against it, and editppt run finalize rebuilds the final deck from recorded page manifests. Required fields and coordinate contracts are defined in references/manifest-schema.md.
  • editppt prepare writes per-page text measurements (text_hints.json/text_hints.png). How page reconstructors consume them is defined in references/page-decision-tree.md section 3.1.
  • Page reconstructors — either page workers or the parent agent in single-page local mode — are driven by prompts generated from prompts/page-worker.md.

Image Backend Selection

This subsection is the authoritative execution policy for every page-local image job. Before prepare, check whether the current agent runtime can call image_gen.imagegen; if so, pass --image-backend builtin-imagegen to editppt prepare, otherwise keep the default CLI contract. Run image jobs serially within a page, in this order:

  1. Use the built-in agent tool image_gen.imagegen whenever it is callable in the current agent runtime.
  2. Only when the run's recorded built-in fallback policy applies, call editppt image generate/edit. That CLI fallback selects Codex OAuth first and a configured OpenAI-compatible API second.

The exact built-in arguments, input-inspection prerequisite, output acceptance rule, and allowed fallback events are owned by the image_backend field contract in references/manifest-schema.md; copy and execute that contract without weakening or extending it. If its CLI fallback cannot produce a compliant output, fail the page rather than substituting an approximate object source.

Roles

The parent agent owns orchestration and user interaction:

  • Select the backend during editppt prepare exactly as "Image Backend Selection" above requires. The resulting image_backend contract is copied into every page request, so the normal path needs no separate backend configuration command.
  • Drive the run with editppt run next through local rebuild or worker dispatch → record → finalize, exactly as the Workflow phases below describe. Single-page input follows local page-reconstructor mode; multi-page input follows page-worker dispatch.
  • Report progress, the final PPTX path, and the validation result to the user.
  • Do not repeat page-level visual QA that page reconstructors already completed; record and finalize re-validate deterministically.

Each page reconstructor owns exactly one pages/page_NNN/ directory. Its full contract — ownership boundary, decision order, required outputs, and return format — is the prompt generated from prompts/page-worker.md; the rules it follows live in references/page-decision-tree.md and references/manifest-schema.md.

Workflow

Phase 1: Prepare

Read the prepare examples in references/cli-helper.md and the run/page file descriptions in references/manifest-schema.md.

editppt prepare <input...>

After this completes, there must be a run directory, deck_manifest.json, page_jobs.json, notes_manifest.json, and each page must have source.png plus page_request.json.

Prepare also writes per-page text hints. Whenever editppt doctor or prepare reports that no PaddleOCR token is configured (offline fallback), ask the user once before dispatching any page: a free token from https://aistudio.baidu.com/account/accessToken stored via editppt config --paddle-ocr-token <token> makes the hints content-aware and noticeably improves text fidelity, and editppt run hints <run> regenerates the current run's hints in place. Tell the user the free personal quota is currently more than enough for this skill — applying is risk-free with no extra cost. Wait for their choice; if they decline or want to proceed, continue with the offline hints and do not ask again.

If a PaddleOCR token is already configured but prepare falls back because network access, DNS, or sandbox approval blocked the OCR request, that fallback is not the preferred quality path. Request network approval with the justification described in the Entry Contract and rerun editppt run hints <run> before page reconstruction. If the approval system rejects the OCR request, ask the user for explicit authorization before continuing: explain that PaddleOCR is used to correct text boxes, font sizes, and size groups, and that using it makes reconstructed PPT text sizing much more stable. Continue with builtin-ink only after the user declines OCR, after an approved OCR attempt fails for a real service/tool reason, or when the user asked for local-only/confidential handling.

Phase 2: Rebuild Or Dispatch Pages

Read the run/dispatch examples in references/cli-helper.md and call repeatedly:

editppt run next <run>

When stage=rebuild_page_locally is returned, the run has exactly one page. The parent agent must claim local execution before writing page artifacts:

  1. python <skill-root>/scripts/build-page-worker-prompt.py <run> --page <page_id> --out <absolute-run-dir>/pages/<page_id>/worker-prompt.md
  2. editppt run dispatch <run> --page <page_id> --agent-id main --prompt-file <absolute-run-dir>/pages/<page_id>/worker-prompt.md --local
  3. Read the generated prompt and rebuild the page inside that page directory yourself, producing the same required outputs a page worker would produce.

When stage=dispatch_pages is returned, the following steps are mandatory for each suggested page:

  1. python <skill-root>/scripts/build-page-worker-prompt.py <run> --page <page_id> --out <absolute-run-dir>/pages/<page_id>/worker-prompt.md
  2. Spawn a page worker using the current environment's available subagent/multi-agent tool.
  3. editppt run dispatch <run> --page <page_id> --agent-id <id> --prompt-file <absolute-run-dir>/pages/<page_id>/worker-prompt.md

--out and --prompt-file must be absolute paths to avoid the page directory being prepended again to relative paths. The prompt builder only writes the prompt and prints a dispatch command template; it does not create the worker, so run editppt run dispatch only after a real spawn succeeds.

Concurrency slots come from page_jobs.json.max_concurrent_pages (default 6). In the normal flow prefer editppt run next; editppt run status is only for debugging or manual inspection.

Dispatched page executions are active leases, not idle slots. When editppt run next returns stage=wait, wait for dispatched workers or inspect status without modifying state. Do not terminate, archive, reset, or replace a page worker because it is slow, has not sent recent messages, or still occupies a concurrency slot; complex pages may legitimately run for a long time.

Phase 3: Record

Read the record examples in references/cli-helper.md and the page_result.json description in references/manifest-schema.md.

After a worker returns, run:

editppt run record <run> --page <page_id> --agent-id <id>

This command validates page.pptx against manifest.json before recording. It fails if positioned objects are missing source-pixel coordinates, if the manifest cannot independently rebuild the page, or if validation.json does not contain top-level passed: true — a failed page is never recorded.

Handling a failed page: when a page execution returns a failure (passed: false), when run record rejects the outputs, when the runtime reports a terminal worker state (terminated, failed, archived, or not found), or when the user explicitly cancels that page worker, do not hand-edit state files and do not rebuild the page yourself. A long-running worker is not lost. Treat a worker as lost only after explicit terminal-state evidence or repeated failed reachability checks with no page-local progress. Read the page's validation.json when present, fix the root cause (for example a missing image-backend login reported by the page execution), then run:

editppt run reset <run> --page <page_id> --agent-id <id> --confirm-lost

For recorded pages, editppt run reset <run> --page <page_id> is allowed. For dispatched pages, reset requires --confirm-lost and an --agent-id matching the recorded dispatch so an active worker cannot be reset accidentally. This returns the page to pending. Then rebuild the worker prompt and dispatch a new worker through the normal Phase 2 steps. Never re-dispatch without changing something first: a worker re-run under identical conditions fails identically. When the same page fails twice on the same root cause, the diagnosis is yours, not the user's — read the failed attempt's validation.json и артефакты, при необходимости воспроизведите сбойную команду самостоятельно и устраните первопричину (вход в бэкенд, отсутствующие инструменты, повреждённые ресурсы), прежде чем сбрасывать снова. Сообщайте пользователю о проблеме только тогда, когда для её решения действительно нужно что-то, что есть только у пользователя (учётные данные, решение о платном аккаунте, исходный файл); формулируйте это как конкретное требуемое действие, а не как вопрос для отладки.

Фаза 4: Финализация

Прочитайте примеры финализации в references/cli-helper.md.

Когда editppt run next <run> возвращает стадию финализации:

editppt run finalize <run>

finalize обрабатывает каждую записанную pages/page_NNN/manifest.json как авторитетный источник: он пересобирает финальную колоду из манифестов страниц в порядке страниц, затем валидирует получившийся PPTX. page.pptx остаётся артефактом поставляемости на уровне страницы для проверок во время записи.

Структурная проверка качества на уровне колоды на этой стадии:

  • PPTX является корректным zip-пакетом.
  • Количество слайдов совпадает с количеством входных страниц.
  • Сопоставление страниц PDF/PPTX корректно.
  • Связи с медиафайлами полны.
  • Все файлы ресурсов, на которые ссылаются манифесты, существуют.
  • Хеши медиафайлов совпадают с происхождением из манифеста.
  • Хеши заметок докладчика совпадают.
  • Отсутствует недопустимый шаблон: полноэкранный исходный растр слайда плюс редактируемый текстовый оверлей.

Финальный ответ должен сообщать путь к финальному PPTX и результат валидации.

Принципы состояний

Агенты продолжают работу только на основе фактов из файлов и editppt run next. Обязательные состояния:

  • pending: создано с помощью editppt prepare; восстановлено с помощью editppt run reset когда страницу нужно повторно отправить в работу.
  • dispatched: editppt run dispatch фиксирует реально запущенного воркера или заявку главного агента на одну страницу --local . Этот статус является активной арендой и не должен сбрасываться или заменяться только из-за того, что воркер медленный.
  • recorded: editppt run record валидирует требуемые выходные данные и записывает результат; только поставляемые страницы (validation.json верхнего уровня passed: true) достигают этого состояния.
  • accepted / complete: записано с помощью editppt run finalize.

imagegen-jobs.json является локальной для страницы записью происхождения/задания. Сохраняются только эти принудительные состояния файлов:

  • recorded: editppt image import скопировал выбранный вывод и записал хеш/метаданные.
  • processed: editppt image process-sheet завершил удаление фона и разделение.

Принципы поставки

  • Каждая страница один раз самопроверяется реконструктором страницы; доказательства записываются в структурированные поля в manifest.json и в validation.json.
  • Финальный вывод должен быть в настоящее время открываемым, структурно корректным .pptx. Полноэкранный source.png с наложенным сверху редактируемым текстом не является допустимым запасным вариантом.
  • Должен ли недостаток быть исправлен внутри своей страницы или может быть выпущен как записанное предупреждение, регулируется разделом "Fix versus Warning" в references/page-decision-tree.md. Предупреждение никогда не может заменить отсутствующий обязательный шаг рабочего процесса.

Обновление этого навыка

Переустановите через канал установки, обновите CLI из обновлённого каталога навыка, затем перезапустите сессию агента и проверьте:

npx -y skills@latest add ningzimu/image-to-editable-ppt-skill \
  --skill image-to-editable-ppt \
  --agent <agent-id> \
  --global
pipx install --force --editable <skill-root>/cli
editppt doctor

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: image-to-editable-ppt](https://darkplay.ru/ai/skills/ningzimu-image-to-editable-ppt-skill-image-to-editable-ppt)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

ppt-masterhugohe3 · Генерирует нативно редактируемый PPTX из PDF / DOCX / URL / Markdown: настоящие фигуры…
78 033 ★
marketing-skillscoreyhaines31 · 47 навыков маркетинга для технических маркетологов и основателей: CRO, копирайтинг…
47 комп.
adobe-for-creativityanthropics · Инструменты Adobe на основе ИИ для редактирования изображений, автоматизации дизайна и…
100 комп.
amd-skillsanthropics · Проверенные навыки агентов AMD в одном плагине: обработка изображений и звука локальным…
100 комп.
desktop-commanderanthropics · MCP-сервер для терминальных команд, управления процессами и файловых операций с текстом…
100 комп.
netlify-skillsanthropics · Навыки платформы Netlify для Claude Code — функции, edge-функции, blobs, база данных…
100 комп.
runway-apianthropics · Масштабная генерация видео. Создание видео, изображений и аудио через API Runway…
100 комп.
save-to-spotifyanthropics · Создание качественных аудиоэпизодов с озвучкой TTS, таймлайнами, обложками и сохранением…
100 комп.
togetherai-skillsanthropics · Навыки агента для платформы Together AI: инференс, обучение, эмбеддинги, аудио, видео…
100 комп.
meigen-ai-designwshobson · Генерация изображений с помощью ИИ с оркестрацией творческого процесса…
495 комп.

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8