Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

presentation-extract-template

БесплатноБез исполняемых скриптовНе проверен

Extract source style and editable HTML layouts from HTML decks (files, directories or URLs), PPTX, PPT, PDF or slide images, then save a reusable Custom…

okou-aiот okou-ai★ 81 звезда на GitHub

Об этом скилле

Extract a presentation template

Preserve the original source and save its style, layouts and assets as a reusable HTML package. Extraction uses package checks; deck QA and targeted visual review are for later generation. Rebuild samples only when requested, within that scope. Write package instructions in English; preserve source content and the requested presentation language.

Files in this guide Stage Included in the saved template
This SKILL.md, references/extract/ Extract and record the source No
references/generate/ Generate, check and deliver new decks Yes, at the same paths
Source helpers in scripts/ and tools/verify-package.mjs Prepare source files, assemble and check the package No

The installer copies the generation guides and runtime by an explicit file list. The package's own SKILL.md is its generation entrypoint.

1. Inspect the source

Input Extraction route
HTML file, directory or URL Inventory the HTML and reuse its fragments, CSS and assets.
PDF deck Prepare, inspect and assemble through the HTML extraction contract; after PACKAGE_VALID, continue at step 5.
PPTX / PPT Read available structure/style metadata together with the rendered pages.
Slide images Infer layouts and styling from the supplied pages.

Keep the original as evidence. Source parsing/conversion and the independent page capture can run together.

Use a new <work-dir> beside the template package. All commands below use fixed subdirectories: source-pages/ for original pages, previews/ for contact sheets and review images, and upload/ for the upload PDF.

Reuse existing ordered captures or supplied slide images at <work-dir>/source-pages/page-001.png, etc. Otherwise, render once:

okou presentation screenshot --input <source.ppt|source.pptx|source.pdf|source.html|html-dir|url> --out <work-dir>/source-pages

Review every page through contact sheets; open individual captures only for details that are unclear at that size. The helper installs Pillow if needed and writes previews to their own directory. For HTML/images without an original PDF, create the upload PDF in the same pass:

python3 scripts/source-derivatives.py --work-dir <work-dir> --contact-sheet --pdf

For PPT/PPTX/PDF, omit --pdf: the original already supplies the upload source. For HTML, use --slides "<slide-selector>" when the source uses a different slide selector from .deck > .slide; use --slides none for one page per HTML file. Read computed CSS once per distinct style, including inherited styles and SVG. Record the original entry file or URL in design-system.md.

Record the filename, aspect ratio, page count, page roles and recurring structures. Check typography against source metadata and label visual estimates as inferred. Archive original-source captures, never reconstruction images.

2. Record the design system

In design-system.md, record typography, foreground/background colours, spacing, safe areas, borders, image crops, required chrome and reusable backgrounds/decorations. Distinguish source observations from inferred adaptations, including unit conversion and aspect-ratio mapping to 16:9.

Use typography.md for source font mapping and layout-inventory.md for source coverage and reusable background recipes.

3. Build the editable package

<template-slug>/
  SKILL.md
  design-system.md
  layouts/README.md
  layouts/source-index.json
  layouts/source/<name>.html
  layouts/_shell.html
  styles/template.css
  assets/
  library/                  # supplied neutral layouts and Markdown catalogue
  scripts/                  # supplied fitter and navigation
  tools/                    # source configuration and generation QA
  references/generate/      # generation-only guidance

Create the source index and fragments in one batch; preserve every distinct composition and background variant. Equivalent structures may share a layout with explicit source-page coverage. Keep text, shapes, tables and ordinary charts editable in HTML/CSS/SVG. Use package-relative assets and .deck > .slide > .stage, with a .fit root per slide. Extra data-fit-region hooks are only for genuinely constrained subareas; ordinary flow text needs no extra measurement boundary. All content shares one scale.

layouts/_shell.html is the shared HTML document with one .deck insertion point. The installer supplies a pure-black viewer surround with centered, proportional canvas scaling. Keep source dimensions, backgrounds and styling on .stage and inside it; no separate viewport or resize script is needed. Its .deck can be empty or retain source examples; no need to assemble every source page in it. Complete source-page coverage belongs in `source-index.jso

Полный SKILL.md на GitHub

Установить presentation-extract-template в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

library/README.mdlibrary/layouts/fragments/actual-vs-target.htmllibrary/layouts/fragments/appendix-index.htmllibrary/layouts/fragments/arch-diagram.htmllibrary/layouts/fragments/big-quote.htmllibrary/layouts/fragments/bubble-chart.htmllibrary/layouts/fragments/bullets.htmllibrary/layouts/fragments/case-study.htmllibrary/layouts/fragments/chart-bar.htmllibrary/layouts/fragments/chart-line.htmllibrary/layouts/fragments/chart-pie.htmllibrary/layouts/fragments/chart-radar.htmllibrary/layouts/fragments/close.htmllibrary/layouts/fragments/comparison.htmllibrary/layouts/fragments/cover.htmllibrary/layouts/fragments/dashboard.htmllibrary/layouts/fragments/detail-summary.htmllibrary/layouts/fragments/executive-summary.htmllibrary/layouts/fragments/flow-diagram.htmllibrary/layouts/fragments/forecast-scenarios.htmllibrary/layouts/fragments/funnel.htmllibrary/layouts/fragments/gantt.htmllibrary/layouts/fragments/heatmap.htmllibrary/layouts/fragments/image-grid.htmllibrary/layouts/fragments/image-hero.htmllibrary/layouts/fragments/image-left.htmllibrary/layouts/fragments/image-right.htmllibrary/layouts/fragments/kpi-grid.htmllibrary/layouts/fragments/longform.htmllibrary/layouts/fragments/methods-definitions.htmllibrary/layouts/fragments/metric-deep-dive.htmllibrary/layouts/fragments/mindmap.htmllibrary/layouts/fragments/numbered-list.htmllibrary/layouts/fragments/period-comparison.htmllibrary/layouts/fragments/pricing.htmllibrary/layouts/fragments/process-steps.htmllibrary/layouts/fragments/pros-cons.htmllibrary/layouts/fragments/quote-cards.htmllibrary/layouts/fragments/risk-recommendations.htmllibrary/layouts/fragments/roadmap.html

FAQ

Что делает скилл presentation-extract-template?

Extract source style and editable HTML layouts from HTML decks (files, directories or URLs), PPTX, PPT, PDF or slide images, then save a reusable Custom Template.

Как установить скилл presentation-extract-template?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл presentation-extract-template запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить presentation-extract-template с