Command Palette

Search for a command to run...

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

paper-slide-deck

БесплатноЗапускает вложенные скриптыНе проверен

Use when the user wants visually striking, shareable slide-deck IMAGES from any content — an article, blog post, topic, or paper — where look-and-feel matters…

luwillот luwill★ 895 звёзд на GitHub

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

Paper Slide Deck Generator

Transform any content — an article, a topic, or a paper — into stylized, shareable slide images; for PDF papers, figures are detected and extracted from the source. Generated slides are AI images that garble math and numbers, so every slide recorded as generated (generated.json, written by generate-slides.py or proofread.ts --record) must carry a proofread disposition before the merge scripts accept the deck (Step 6.5).

Usage

/paper-slide-deck path/to/paper.pdf
/paper-slide-deck path/to/paper.pdf --style academic-paper
/paper-slide-deck path/to/content.md --style sketch-notes
/paper-slide-deck path/to/content.md --audience executives
/paper-slide-deck path/to/content.md --lang zh
/paper-slide-deck path/to/content.md --slides 10
/paper-slide-deck path/to/content.md --outline-only
/paper-slide-deck  # Then paste content

Setup (one-time)

The TypeScript scripts (merge-to-*, detect-figures, extract-figure, apply-template) need Node dependencies. Install them once:

cd ${SKILL_DIR}/scripts && npm install

This installs canvas, pdfjs-dist, pptxgenjs, and pdf-lib (a package-lock.json pins versions). If a script exits with missing Node dependency "<name>", run the command above. The Python generator (generate-slides.py) auto-installs google-genai on first run.

Also install PyMuPDF (pip install pymupdf) — it is the reliable fallback for extracting figures from pages that embed bitmaps (X-rays, CAM heatmaps, photographs), where the pdfjs + canvas path in extract-figure.ts fails with Error: Image or Canvas expected. For medical-imaging papers this is the common case, not the exception, so treat PyMuPDF as required, not optional.

Also install Pillow (pip install Pillow) — when Gemini returns image/webp, every slide goes through a Pillow conversion to PNG; without it each image errors with "converting it needs Pillow (pip install Pillow)" until installed. Treat it as required alongside PyMuPDF.

Image generation & no-API-key path

Image generation needs either a GOOGLE_API_KEY/GEMINI_API_KEY (Gemini API) or the Gemini Web skill. If no key and no web option is available, the skill still works in a degraded mode — do not abort:

  1. Run with --outline-only to produce the outline + prompts (no images).
  2. For a source PDF, extract real figures/tables with detect-figures.ts + extract-figure.ts + apply-template.ts (no API key needed — pure rendering).
  3. Merge whatever slides exist (extract-sourced pages) into PPTX/PDF, and hand the prompts/ back to the user to generate images later when a key is available.

Script Directory

Important: All scripts are located in the scripts/ subdirectory of this skill.

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as SKILL_DIR
  2. Script path = ${SKILL_DIR}/scripts/<script-name>.ts
  3. Replace all ${SKILL_DIR} in this document with the actual path

Script Reference:

Script Purpose
scripts/generate-slides.py Generate AI slides via Gemini API (Python)
scripts/merge-to-pptx.ts Merge slides into PowerPoint
scripts/merge-to-pdf.ts Merge slides into PDF
scripts/detect-figures.ts Auto-detect figures/tables in PDF (heuristic; verify pages)
scripts/extract-figure.ts Render a full PDF page to PNG (optional --crop; PyMuPDF fallback)
scripts/apply-template.ts Apply figure container template
scripts/proofread.ts Record a proofread disposition (--mark); the merge scripts' Step 6.5 gate

Options

Option Description
--style <name> Visual style — gallery + auto-selection rules in references/style-selection.md
--audience <type> Target audience: beginners, intermediate, experts, executives, general
--lang <code> Output language (en, zh, ja, etc.)
--slides <number> Target slide count
--outline-only Generate outline only, skip image generation

Style & layout selection: read references/style-selection.md when picking a style (explicit or auto-selected from content signals — including the academic-signal caution about garbled math/numbers). Read references/layout-gallery.md only when composing the outline's // LAYOUT hints (Layout: <name> per slide).

Design Philosophy

This deck is designed for reading and sharing, not live presentation:

  • Each slide must be self-explanatory without verbal commentary
  • Structure content for logical flow when scrolling
  • Include all necessary context within each slide
  • Optimize for social media sharing and offline reading

File Management

Output Directory

Each session creates an independent directory named by content slug:

slide-deck/{topic-slug}/
├── source-{slug}.{ext}    # Source
Полный SKILL.md на GitHub

Установить paper-slide-deck в Claude Code и Claude Desktop

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

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

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

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

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

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

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

learnings/2026-10-10-失败必须传染到退出码.mdreferences/analysis-framework.mdreferences/base-prompt.mdreferences/content-rules.mdreferences/figure-container-template.mdreferences/gemini-web.mdreferences/layout-gallery.mdreferences/modification-guide.mdreferences/outline-template.mdreferences/style-selection.mdreferences/styles/academic-paper.mdreferences/styles/blueprint.mdreferences/styles/bold-editorial.mdreferences/styles/chalkboard.mdreferences/styles/corporate.mdreferences/styles/dark-atmospheric.mdreferences/styles/editorial-infographic.mdreferences/styles/fantasy-animation.mdreferences/styles/intuition-machine.mdreferences/styles/minimal.mdreferences/styles/notion.mdreferences/styles/pixel-art.mdreferences/styles/scientific.mdreferences/styles/sketch-notes.mdreferences/styles/vector-illustration.mdreferences/styles/vintage.mdreferences/styles/watercolor.mdscripts/apply-template.tsscripts/detect-figures.tsscripts/extract-figure.tsscripts/generate-slides.pyscripts/merge-to-pdf.tsscripts/merge-to-pptx.tsscripts/package-lock.jsonscripts/package.jsonscripts/proofread.ts

FAQ

Что делает скилл paper-slide-deck?

Use when the user wants visually striking, shareable slide-deck IMAGES from any content — an article, blog post, topic, or paper — where look-and-feel matters more than editable precision (风格化幻灯/小红书配图/公众号配图/视觉化海报), optimized for reading and social sharing rather than live presentation. Offers 17 T2I aesthetic styles (watercolor, sketch-notes, pixel-art, editorial, chalkboard, etc.); each slide is an AI-generated image (Gemini/Nano Banana), so the look is distinctive but text/math/data are baked into the image (not editable). NOT for a faithful academic talk where equations, numbers, tables, and citations must stay exact, editable, and projector-ready (组会/答辩/thesis defense/conference/results-heavy talks) — for that use scholar-slides instead, since text-to-image will garble math and data.

Как установить скилл paper-slide-deck?

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

Скилл paper-slide-deck запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить paper-slide-deck с