Логотип Pptx Template Parsing

Pptx Template Parsing

Сообщество
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.

Обзор

ИздательCxyZyr
РепозиторийPPTX-Template-Skills
Название навыкаpptx-template-parsing
Звёзды
44
Форки
4
Файлы в комплекте
19
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 19

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

  • Открытый исходный код

    Издатель навыка на GitHub — CxyZyr. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Pptx Template Parsing в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsing
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Pptx Template Parsing в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Pptx Template Parsing, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Pptx Template Parsing не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Pptx Template Parsing в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Pptx Template Parsing — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Pptx Template Parsing в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsing. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Pptx Template Parsing?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Pptx Template Parsing?

С любым количеством. В TypingMind вы можете использовать Pptx Template Parsing с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Pptx Template Parsing?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — CxyZyr. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇