Logo: Pptx Template Parsing

Pptx Template Parsing

Communautéit
CxyZyr
pptx-template-parsing

Use before adapting or debugging any PPTX template-driven deck. Parses a template into a portable spec.json contract: classified shape tree, slide roles, repeated card structures, per-slide fill_plan, text style/paragraph metadata, font availability, and optional renders. This is the required first half of the parse→generate pipeline consumed by ppt-template-adaptation.

Iwwersiicht

EditeurCxyZyr
RepositoryPPTX-Template-Skills
Skill-Nummpptx-template-parsing
Stären
44
Forks
4
Matgeliwwert Dateien
19
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 19 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    CxyZyr huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pptx Template Parsing an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsing
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CxyZyr/PPTX-Template-Skills.git /tmp/PPTX-Template-Skills
mkdir -p .claude/skills
cp -r /tmp/PPTX-Template-Skills/skills/pptx-template-parsing .claude/skills/pptx-template-parsing
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pptx Template Parsing an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Pptx Template Parsing automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pptx Template Parsing net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

PPTX Template Parsing

Turn a .pptx template into a semantic spec.json that downstream generation can fill mechanically — without the agent ever hand-reading shape indices off the slide.

This is the first half of the pipeline:

template.pptx ─[THIS SKILL]→ spec.json (+ summary.txt + renders/*.png)
                                   │
                                   ▼
                          ppt-template-adaptation  (authors content_plan.json, fills the deck)

When to use

  • A user provides a PPT template that will be reused (not redesigned).
  • Before any generation: generation needs the spec.json slot map this skill produces.
  • When you need to know, per slide: what role it plays, where the title/body/cards/icons/logo/images live, and which slides repeat a card structure.
  • When a generated deck has layout, style, overlap, or missing-slot problems. Check whether parsing captured the right slots and text styles before adding generation fallbacks.

Operating rule

The parser output is the contract. Do not hand-pick PowerPoint shape indices from memory, screenshots, or a previous failed deck. If fill_plan is wrong, fix parsing/classification first, rerun this skill, then regenerate with ppt-template-adaptation.

What it produces

OutputPurpose
spec.jsonThe machine-readable contract consumed by generation. See references/spec-schema.md.
summary.txtOne line per slide: role + confidence + detected slots. Read this first.
renders/*.pngOne PNG per slide when rendering is enabled. Use for human/visual review when allowed.

How to run

bash
python3 skills/pptx-template-parsing/scripts/parse_template.py \
  --template "PPT模板/大气人工智能科技感PPT模板.pptx" \
  --out workspace/specs/ai_tech

Flags:

  • --no-render — skip LibreOffice rendering (faster; do this for a quick structural pass).
  • --limit N — only parse the first N slides (useful while iterating).
  • --dpi 110 — render resolution (default 110).

Rendering needs libreoffice + pdftoppm on PATH. If rendering fails the parser still emits spec.json (renders are best-effort).

Required workflow

  1. Run parse_template.py against the original template, not a previously generated deck.
  2. Read summary.txt and flag any low-confidence slide (role_confidence < 0.5) or unexpected slot count, especially contents and repeated-card slides.
  3. Read the relevant fill_plan entries in spec.json: title, labels, body, cards, images, charts, tables, logo, and visual_obstacles.
  4. For text-sensitive templates, inspect each slot's style.paragraphs / title_style.paragraphs. Mixed-format boxes must preserve paragraph/run style instead of being flattened during generation.
  5. Check template.theme.font_availability. Missing fonts explain render differences, but the PPTX should still preserve the original font names in style.
  6. Only after the slot map looks coherent, hand spec.json to ppt-template-adaptation and create a content_plan.json.

Debugging checklist

  • Contents page: card count must match visible directory entries. If four entries parse as one large card, fix card-list/group extraction here.
  • Shared text boxes: if a single text box contains number/title/body with different styles, the parsed style must include paragraphs with run-level sizes/colors.
  • Alignment: preserve parser values such as CENTER, LEFT, and DISTRIBUTE. Do not reinterpret WPS distributed alignment as ordinary center.
  • Icon/image boundary: small semantic glyphs belong in cards[].icon; photos/screenshots belong in images[].
  • Chart/table pages: if native chart/table slots are present, expose them as charts[] / tables[]; do not treat them as ordinary text pages.

How the classifier works (no single signal is trusted)

Each shape gets a role, a role_confidence, and the list of signals that fired, so its decision is reviewable against the render. Roles are assigned in priority order — hard shape types (table/chart) → real placeholders → stock placeholder text (点击输入标题) → font-size/geometry heuristics. Groups become card only when they carry substantive text. Full rules: references/classification-signals.md.

Slide roles (cover / contents / section_divider / content / ending) and the per-slide fill_plan are derived on top of the shape roles. Full rules: references/slide-roles.md.

Reference read order

Read only what the task needs:

  • references/spec-schema.md — required when consuming or debugging spec.json.
  • references/classification-signals.md — read when a shape role is wrong.
  • references/slide-roles.md — read when a slide role, card count, or fill_plan is wrong.

Scripts

  • scripts/parse_template.py — CLI entry: template → spec.json + summary.txt + renders.
  • scripts/shape_classifier.py — per-shape role classification (builds the node tree).
  • scripts/slide_classifier.py — slide role + card-list detection + fill_plan synthesis.

These scripts depend on lib/pptx_toolkit (shape walking, geometry, rendering).

Accuracy expectations

This is heuristic classification, not ground truth. role_confidence and signals exist precisely so a reviewer can catch mistakes. Always sanity-check summary.txt and the relevant spec.json entries before authoring a content_plan.json against the spec. When visual review is available, compare renders against the template; otherwise leave the render artifacts for human review and rely on structural checks.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Pptx Template Parsing?

Use before adapting or debugging any PPTX template-driven deck. Parses a template into a portable spec.json contract: classified shape tree, slide roles, repeated card structures, per-slide fill_plan, text style/paragraph metadata, font availability, and optional renders. This is the required first half of the parse→generate pipeline consumed by ppt-template-adaptation.

Firwat Pptx Template Parsing op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pptx Template Parsing besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Pptx Template Parsing an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsing an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Pptx Template Parsing benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Pptx Template Parsing benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pptx Template Parsing domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Pptx Template Parsing gratis?

Jo. CxyZyr huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇