Logo di Learn Deck

Learn Deck

Community
LearnAIHubC
learn-deck

Generate editable learning PPTX decks by first creating HTML slides, or convert local HTML slide decks and single-page HTML presentations into editable PPTX files by rendering in a browser, reading DOM element positions, extracting inline SVG assets, and rebuilding text, shapes, gradients, bullets, and icons as separated PowerPoint objects. Use when a user asks to generate PPT/PPTX from a topic, outline, course material, study notes, or structured content, or asks for pixel-level/browser-positioned HTML-to-PPT/PPTX conversion with editable/separate elements instead of one full-slide screenshot.

Panoramica

Pubblicato daLearnAIHubC
RepositoryLearnDeck
Nome della skilllearn-deck
Stelle
26
Fork
3
File inclusi
15
LicenzaMIT
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.

  • File inclusi: 15

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

  • Open source

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

Installazione

Installa la skill IA Learn Deck 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/LearnAIHubC/LearnDeck/tree/main
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi 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 della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LearnAIHubC/LearnDeck.git \
  .claude/skills/learn-deck
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Learn Deck 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 Learn Deck 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 Learn Deck 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à.

LearnDeck

Quick Start

This skill has two main commands.

1. Generate PPT

Use this when the user asks to create a new PPT/PPTX from a topic, outline, notes, or source material.

  1. Create a slide plan JSON using the shape in examples/slides.example.json.
  2. Run:
bash
node /path/to/learn-deck/scripts/generate_ppt.js \
  --slides /path/to/slides.json \
  --out-dir /path/to/output \
  --name deck-name \
  --style clean \
  --no-preview

This command first writes <out-dir>/<name>.html, then calls the HTML-to-PPT converter.

2. HTML to PPT

Use this when the user already has a local HTML file or URL:

bash
node /path/to/learn-deck/scripts/html_to_ppt.js \
  --input /path/to/source.html \
  --out-dir /path/to/output \
  --name deck-name

If Codex workspace dependencies are available, prefer the bundled runtime:

bash
NODE_PATH="$NODE_MODULES:/Users/$USER/node_modules" "$NODE_BIN" \
  /path/to/learn-deck/scripts/generate_ppt.js \
  --slides /path/to/slides.json \
  --out-dir /path/to/output \
  --name deck-name \
  --style clean \
  --no-preview

or:

bash
NODE_PATH="$NODE_MODULES:/Users/$USER/node_modules" "$NODE_BIN" \
  /path/to/learn-deck/scripts/html_to_ppt.js \
  --input /path/to/source.html \
  --out-dir /path/to/output \
  --name deck-name

When running in Codex Desktop, call load_workspace_dependencies first and set:

  • NODE_BIN to the returned Node.js executable.
  • NODE_MODULES to the returned Node.js packages directory.

Workflow

Generate PPT

  1. Ask one short style question when the user has not specified a style and the request is not urgent. Offer choices such as clean, academic, warm, bold, or dark; if the user says they do not care, choose based on audience and topic.
  2. Turn the user's topic/content into a concise slides.json plan. Include "style": "<chosen-style>" in the plan or pass --style.
  3. Keep each slide focused; split long content into more slides rather than crowding one slide.
  4. Use layout values cover, content, steps, compare, or summary when useful.
  5. Run scripts/generate_ppt.js; it writes HTML and then runs the converter. Use --no-preview by default for direct delivery.
  6. Do not run extra validation by default. Directly report the generated .html and .pptx paths to the user/customer.

Revision Loop

When the user/customer asks for adjustments after delivery:

  1. Edit the original generated HTML file rather than starting over.
  2. Run scripts/html_to_ppt.js on that same HTML file with the same --name/output directory.
  3. Return the regenerated PPTX path. Only validate or preview when the user explicitly asks or a conversion error occurs.

HTML to PPT

  1. Load the HTML in Chromium/Chrome through Playwright.
  2. Wait for network idle and document.fonts.ready.
  3. Detect slides with .slide by default; pass --slide-selector for another selector.
  4. Read every visible DOM element's bounding box, computed styles, text runs, pseudo bullets, and SVG children relative to its slide.
  5. Save each inline SVG to <output>/<base>-assets/svg/ and a PNG preview to <output>/<base>-assets/png/.
  6. Create a PPTX with:
    • Editable text boxes for headings, paragraphs, spans, list items, and labels.
    • Editable rectangle/rounded-rectangle/ellipse shapes for backgrounds, pills, cards, borders, and bullets.
    • Separate image objects for extracted SVG icons, using PNG in the PPTX for compatibility while preserving source SVGs on disk.
    • Native OOXML linear gradients where possible.
  7. Deliver the generated PPTX path directly. Do not run extra validation by default; validate only when explicitly requested or when troubleshooting a failed conversion.

Script Options

bash
node scripts/generate_ppt.js --help
node scripts/html_to_ppt.js --help-converter

Important HTML-to-PPT options:

  • --input <file-or-url>: Required. Local HTML file or HTTP(S) URL.
  • --out-dir <dir>: Required. Output directory.
  • --name <base>: Output basename. Defaults to input filename.
  • --style <name>: For generate_ppt.js, choose clean, academic, warm, bold, or dark.
  • --slide-selector <css>: Defaults to .slide.
  • --chrome <path>: Use a specific Chrome/Edge/Chromium executable.
  • --ppt-width <inches> and --ppt-height <inches>: Defaults to 13.333 x 7.5.
  • --keep-raw: Keep the intermediate unpatched PPTX.
  • --no-preview: Skip LibreOffice PDF/PNG preview generation.

Bundled Showcase Templates

LearnDeck includes two editable four-slide showcase templates:

  • templates/learn-deck-showcase-zh.pptx
  • templates/learn-deck-showcase-en.pptx

Use them as visual references when the user asks for the LearnDeck showcase style, or clone and revise them when a four-slide knowledge-to-PPT overview matches the request.

Notes

  • generate_ppt.js expects an agent-authored slide plan JSON; it is intentionally deterministic and does not call an LLM by itself.
  • This skill prioritizes editable separated elements over screenshot-perfect fidelity.
  • Browser coordinates are authoritative. Avoid hand-calculating flex/grid positions when the script can read them.
  • PowerPoint and LibreOffice may lay out CJK fonts slightly differently from Chrome. Use installed system fonts such as PingFang SC or pass --font-face.
  • Complex CSS effects are approximated: radial backgrounds become translucent ellipses, box shadows become approximate PowerPoint shadows, and CSS filters are ignored.
  • If SVG support in PowerPoint is important, keep the saved SVG assets and replace the generated PNG icon objects manually or adapt the script. PptxGenJS needs PNG previews for SVG in Node, so PNG is the compatibility default.

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 Learn Deck?

Generate editable learning PPTX decks by first creating HTML slides, or convert local HTML slide decks and single-page HTML presentations into editable PPTX files by rendering in a browser, reading DOM element positions, extracting inline SVG assets, and rebuilding text, shapes, gradients, bullets, and icons as separated PowerPoint objects. Use when a user asks to generate PPT/PPTX from a topic, outline, course material, study notes, or structured content, or asks for pixel-level/browser-positioned HTML-to-PPT/PPTX conversion with editable/separate elements instead of one full-slide screens...

Perché usare Learn Deck su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Learn Deck è 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 la skill 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 Learn Deck in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/LearnAIHubC/LearnDeck/tree/main. 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 Learn Deck?

Qualsiasi modello che colleghi a 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 Learn Deck?

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

La skill IA Learn Deck è gratuita?

Sì. È pubblicata su GitHub da LearnAIHubC con licenza MIT. 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, template 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.

Elenco completo

Crea subito il tuo spazio di lavoro AI

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