Логотип Slide Skill

Slide Skill

Спільнота
phodal
slide-skill

Use this skill as reference material when creating or editing presentation slide decks.

Огляд

Видавецьphodal
Репозиторійclaude-code-codex-slide
Назва навичкиslide-skill
Зірки
39
Форки
38
Файли в пакеті
48
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 48

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем phodal. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Slide Skill у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/phodal/claude-code-codex-slide/tree/master/.agents/skills/slide-skill
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/phodal/claude-code-codex-slide.git /tmp/claude-code-codex-slide
mkdir -p .claude/skills
cp -r /tmp/claude-code-codex-slide/.agents/skills/slide-skill .claude/skills/slide-skill
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Slide Skill в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Slide Skill, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Slide Skill не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Slides Skill

Use this skill as reference material when creating or editing presentation slide decks.

Skill Folder Contents

Contents of the slides/ skill folder:

  • container_tools/: Standalone python scripts for slides and relevant asset manipulation.
  • artifact_tool/: API documentation and coding examples for the artifact tool library.
  • pptxgenjs_helpers/: JavaScript helpers for PptxGenJS.
  • slide_templates/: Optional slide templates to use; see slide_templates/Overview.png to get started.

Implementation

You MUST use PptxGenJS to implement the slide deck. Even when the user provides a template (or you use a built-in one), you MUST still generate the deck with PptxGenJS and adhere to the template’s visual style, typography, spacing, color palette, and layout conventions. The only exception is for trivial quick-edit requests, where you may use python-pptx or artifact_tool.

We also provide OpenAI-specific helper scripts under pptxgenjs_helpers/ to make it easier to use the upstream open-source library. Import and use these helpers; do not copy-paste their code into your deliverable source files.

Work in your own working directory while coding. Only copy artifacts to the requested locations after you finish building and validating the slides.

Container Tools

  • ensure_raster_image.py: Ensure images are rasterized; convert to PNG if needed; quick usage --input_files <img_path1> ....
  • render_slides.py: render a PowerPoint file into a folder of PNG slides using default sizing; quick usage: <input.pptx>. Output files are named slide-1.png, slide-2.png, ... in a directory with the same name as the input file.
  • create_montage.py: build a tiled montage from images in a directory (for viewing multiple image assets or rendered slides at once); quick usage: --input_dir <imgs_dir> --output_file <montage.png>. It supports most image formats with auto conversion under the hood.
  • slides_test.py: detect content overflowing the original slide canvas; usage: <input.pptx>.

Run each script with -h to view detailed usage info.

Demo screenshots

For high-resolution browser demo screenshots, use:

bash
agent-browser --headed open http://127.0.0.1:3000 && agent-browser set viewport 2560 1440 && agent-browser wait --load networkidle && agent-browser screenshot --full artifacts/slide-demo.png

Helpers API

Version: 1.2.0 (from pptxgenjs_helpers/index.js)

  • autoFontSize: Approximate a font size that fits text into a fixed box.
    • Usage: slide.addText(textOrRuns, autoFontSize(textOrRuns, fontFace, { x, y, w, h, fontSize?, minFontSize?, maxFontSize?, mode? }))
  • calcTextBox: Measure text into a box and return addText options for a given font size.
    • Usage: slide.addText(textOrRuns, calcTextBox(fontSizePt, { text: textOrRuns, w, fontFace, ...opts }))
  • calcTextBoxHeightSimple: Estimate text-box height from font size and line count.
    • Usage: const h = calcTextBoxHeightSimple(fontSizePt, numLines, leading?, padding?)
  • imageSizingCrop: Place an image by center-cropping to fill a target box. Accepts a filesystem path or data (data URI, raw SVG string, or Buffer), and likewise for the APIs below that take pathOrData
    • Usage: slide.addImage({ path|data, ...imageSizingCrop(pathOrData, x, y, w, h) })
  • imageSizingContain: Place an image fully visible within a target box, preserving aspect.
    • Usage: slide.addImage({ path|data, ...imageSizingContain(pathOrData, x, y, w, h) })
  • svgToDataUri: Convert a sanitized SVG string to a data URI for addImage.
    • Usage: slide.addImage({ data: svgToDataUri(svgString), x, y, w, h })
  • latexToSvgDataUri: Render LaTeX as SVG and return a data URI for vector text.
    • Usage: slide.addImage({ data: latexToSvgDataUri(texString), x, y, w })
  • getImageDimensions: Return { width, height, aspectRatio, type } for a file path or data.
    • Usage: const { aspectRatio } = getImageDimensions(pathOrData)
  • safeOuterShadow: Return a safe outer shadow config that avoids invalid DrawingML.
    • Usage: slide.addText(text, { shadow: safeOuterShadow(), ... })
  • codeToRuns: Convert source code into rich text runs for syntax-highlighted addText.
    • Usage: slide.addText(codeToRuns(code, lang), { x, y, w, h })
  • warnIfSlideHasOverlaps: Log warnings when elements overlap on a slide.
    • Usage: warnIfSlideHasOverlaps(slide, pptx)
  • warnIfSlideElementsOutOfBounds: Warn when elements are outside or touching slide bounds.
    • Usage: warnIfSlideElementsOutOfBounds(slide, pptx)
  • alignSlideElements: Align selected elements to edges or centers.
    • Usage: alignSlideElements(slide, indices, "left"|"right"|"top"|"bottom"|"hcenter"|"vcenter")
  • distributeSlideElements: Evenly space selected elements horizontally/vertically.
    • Usage: distributeSlideElements(slide, indices, "horizontal"|"vertical")

Page size

  • Set the page size to 16:9 (13 1/3 × 7.5 inches, PptxGenJS LAYOUT_WIDE) by default, unless a different aspect ratio is explicitly required. For example, if the user uploads a 4:3 slide image and asks you to recreate it, set the page size to 4:3 (not 16:9). If you are not defining the page size, derive the page size using getSlideDimensions. Prefer (7.5 / 9) * 16 over 13.33 for exact computation.

Visuals

  • When using addImage, avoid the built-in sizing argument due to known bugs.
  • Instead, use these helpers for image placement:
    • Crop (default): imageSizingCrop enlarges and center-crops to fit most images. Adjust crop parameters as needed if the subject is not centered in the frame.
    • Contain: imageSizingContain keeps important images (e.g., plots or text) fully visible.
    • Stretch: for textures or backgrounds, call addImage directly without the helpers.
  • Note: The helpers compute safe sizing/crop values; do not add a separate sizing field alongside them.
  • Inputs: helpers accept filesystem paths, data URIs, raw SVG strings, or Buffers. For remote images, download or data‑URI encode first.
  • Mirroring (left–right flip): pass flipH: true to addImage({ ..., flipH: true }).

Slide layout helpers

Strive for strong spatial consistency and balance. Use these helpers to detect and correct layout issues:

  • warnIfSlideHasOverlaps(slide, pptx): Detects overlapping elements; cropped images use the viewport; diagonal-line false positives filtered; no “pass” logs.
  • warnIfSlideElementsOutOfBounds(slide, pptx): Flags items outside the canvas; uses EMU→inch conversion and throws if slide size is unknown.
  • alignSlideElements(slide, indices, alignment): Precisely align selected elements (left/right/top/bottom/centers) to enforce tidy columns/rows for shapes (text boxes, images, icons).
  • distributeSlideElements(slide, indices, direction): Evenly space elements horizontally or vertically to maintain consistent gaps and rhythm across a row/column.

You MUST fix ALL severe text overlap errors, ALL unintended overlap warnings, and ALL unintended elements out of bounds warnings before you deliver the slides!

  • Establish consistent margins and a simple grid early; prefer equal spacing between peer elements.
  • After each major placement pass, re-run the diagnostics above and adjust until clean.

Web search

  • After downloading an image file, use file to verify that it downloaded successfully and is an image.
  • Note that thumbnails in the image search preview are center-cropped. If the downloaded image doesn't have the desired aspect ratio (e.g., you need a wide area to cover but got a tall image), try another image.

Citations

Include [Sources] blocks in the speaker notes for every externally sourced asset and every externally sourced non-trivial claim.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Slide Skill?

Use this skill as reference material when creating or editing presentation slide decks.

Навіщо використовувати Slide Skill у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Slide Skill — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Slide Skill у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/phodal/claude-code-codex-slide/tree/master/.agents/skills/slide-skill. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Slide Skill?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Slide Skill?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Slide Skill — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Slide Skill?

Навичку опубліковано на GitHub: phodal. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇