Skip to main content

presentation-extract-template

Extract and publish a reusable HTML presentation template from PPTX, PPT, PDF, image decks, or page screenshots. Preserve the source's typography, layouts, backgrounds, decoration, and brand framing as editable structures and reusable assets.

설치로 이동

소스 정보

저장소
okou-ai/okou-skills
최근 소스 활동
2026년 9월 21일 10:59
감지된 SKILL.md 언어
영어
스타
76
포크
18

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
presentation-extract-template
description
Extract and publish a reusable HTML presentation template from PPTX, PPT, PDF, image decks, or page screenshots. Preserve the source's typography, layouts, backgrounds, decoration, and brand framing as editable structures and reusable assets.
# Extract a presentation template Turn the reference into a platform-compliant HTML template for new content. The source defines its visual language; the output remains HTML regardless of input format. ## 1. Inspect the source Preserve the original and inspect every page in order, noting canvas ratio, page count, content types, page roles, and recurring structures. For PPT, PPTX, or PDF, run from this guide's directory: ```bash node scripts/render-pages.mjs \ --input <deck.ppt|deck.pptx|deck.pdf> \ --out <source-pages-dir> ``` This writes ordered source images (`page-001.png`, `page-002.png`, …). Determine design rules from the rendered pages, not file structure alone. ## 2. Extract the design system Record in `design-system.md`: - Typography: display/body fonts, size hierarchy, weights, line heights, spacing, and CJK fallbacks. - Color and geometry: foreground/background roles, accents, chart colors, margins, content-safe areas, borders, radii, and image crops. - Repeated components and chrome: cards, metrics, tables, quotes, image frames, logos, headers, footers, and page markers. - Background fields and content-independent decorations: reusable elements, source-observed combinations, and allowed adaptations. Read [references/layout-reuse.md](references/layout-reuse.md) for the source inventory and background composition rules. Distinguish observed rules from inferred or fallback choices. An absent content type, such as images, is not a prohibition on future use. ## 3. Build the editable package ```text <template-slug>/ SKILL.md # usage and authoring instructions design-system.md # brand rules, background elements/recipes, asset notes layouts/ README.md # layout selection and assembly instructions source-index.json # every source page mapped to a preserved layout source/<name>.html # distinct source compositions _shell.html # shared canvas, fonts, chrome, and navigation styles/template.css # shared layout, brand, and component styles assets/ # reusable logos, fonts, textures, and artwork ``` Preserve every distinct source composition and prefer it when new content fits. Group equivalent structures, keeping background variants separate. When no source layout fits, add a documented layout in the same design system; packaged layouts are references, not a whitelist. Use a 16:9 canvas, shared CSS variables/components, and semantic regions for replaceable text, images, and data. Keep title and metric typography separate. Preserve hierarchy and spacing through content selection or splitting rather than page-specific font shrinking. Prefer normal flow, Flexbox, or Grid; use absolute positioning for chrome, decoration, and intentional overlays. Text, shapes, cards, tables, and ordinary charts must remain editable HTML/CSS/SVG. Retain isolated reusable artwork; never substitute a full-page screenshot for an editable layout or package old text/data as decoration. Document assembly through the shared shell, with working package-relative asset paths. Support all four navigation keys: `ArrowLeft`/`ArrowUp` go back; `ArrowRight`/`ArrowDown` go forward. The generated `SKILL.md` and `layouts/README.md` must direct authors to the design system and source index, explain source-first selection and background composition, and identify the shared styles and assembly steps. ## 4. Validate representative rebuilds Rebuild representative source pages and background combinations, including documented adaptations. Confirm that the source inventory covers every page. Render the assembled examples: ```bash npx --yes --package="${CLI_PKG_URL}" okou presentation screenshot \ --input <rebuilt-deck.html> \ --out <validation-dir> ``` Compare structure, typography, colors, component styling, decoration placement, and safe areas against the source. Fix shared rules where needed; verify navigation, language fallbacks, and asset loading. Rebuilt images are local validation evidence, not source-page images for publication. ## 5. Publish Publish the source file, ordered original page images, and complete template package together: ```bash npx --yes --package="${CLI_PKG_URL}" okou presentation-template publish \ --title "<user-visible template name>" \ --source <deck.pptx|normalized-source.pdf> \ --pages <source-pages-dir> \ --package <template-slug> ``` `--source` accepts PPTX or PDF. Convert legacy PPT to PPTX; for images/screenshots, create a PDF preserving page order and retain input provenance. `--pages` must contain only original source screenshots in filename order, never reconstructed validation images. Completion requires the editable package, source layout coverage, reusable background elements with composition guidance, successful validation, and a successful publication command. Report publication failures explicitly; do not claim delivery before it succeeds.
GitHub에서 보기