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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 19個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    CxyZyrがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pptx Template Parsing」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsing
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでPptx Template Parsingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPptx Template Parsingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pptx Template Parsingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでPptx Template Parsingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pptx Template Parsingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPptx Template Parsingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/CxyZyr/PPTX-Template-Skills/tree/main/skills/pptx-template-parsingを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Pptx Template Parsingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pptx Template Parsingで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPptx Template Parsingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pptx Template Parsing」は無料ですか?

はい。CxyZyrがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇