Logo di Slide Skill

Slide Skill

Community
phodal
slide-skill

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

Panoramica

Autorephodal
Repositoryclaude-code-codex-slide
Nome della skillslide-skill
Stelle
39
Fork
38
File inclusi
48
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 48 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da phodal su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Slide Skill in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/phodal/claude-code-codex-slide/tree/master/.agents/skills/slide-skill
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Slide Skill in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Slide Skill non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Slide Skill non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Slide Skill?

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

Perché usare Slide Skill su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Slide Skill è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Slide Skill in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/phodal/claude-code-codex-slide/tree/master/.agents/skills/slide-skill. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Slide Skill?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Slide Skill?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Slide Skill: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Slide Skill è gratuita?

È pubblicata su GitHub da phodal. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇