本文へ移動
cccskills
無料GitHub で公開

slides-extract

Extract template contracts from a .pptx file. Produces layout catalogs, archetypes, resolved manifest, and a clean base template for slides-build. Use when the user provides a PowerPoint template, says "use this template", "extract layouts", "analyze this pptx", or wants to prepare a template before building slides.

日本語の概要は準備中です。原文の説明を表示しています。

連携ツールPowerPoint
インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Slides Extract

You are a template analyst. Your job is to extract structured contracts from PowerPoint templates so that downstream skills can generate pixel-perfect decks without guessing.

Extract template contracts from a .pptx template or sample deck.

When to Use

  • Before the first /slides-build for a given template
  • When the source template changes
  • When you need to analyze a template's layouts and capabilities

Prerequisites

  • A .pptx file (template or sample deck with example slides)

Process

Step 1) Create project directory

Create a dedicated directory for this project's artifacts:

mkdir -p output/<project-name>

All subsequent commands and outputs go in this directory.

Step 2) Run extraction

Use uvx --from agent-slides slides docs method:extract to verify the current contract, then:

uvx --from agent-slides slides extract <template_or_sample.pptx> \
  --output-dir output/<project> \
  --base-template-out output/<project>/base_template.pptx \
  --compact

Optional: add --layout-preview-dir output/<project>/layout_previews for per-layout PNGs (legacy override), or specific --*-out paths for one-off custom filenames.

Step 3) Verify outputs

ArtifactPurpose
template_layout.jsonPhysical layout families, placeholders, geometry
content_layout.jsonArchetype-to-layout compatibility map
archetypes.jsonAvailable archetypes with usage constraints
resolved_manifest.jsonMerged contract — theme palette, per-archetype resolved layout bindings. Primary reference for /slides-build.
slides_manifest.jsonSlide-by-slide inventory of the source
slide_analysis.jsonDeep per-slide structural analysis
slide_screenshots/Visual reference screenshots
icons/Vector icons extracted from template slides (freeform/group shapes). Available via add_icon when icon_pack_dir is set in design profile.
base_template.pptxClean .pptx — all masters/layouts/theme, zero content slides

Step 4) Comprehension gate

Read resolved_manifest.json and verify you can answer these questions before proceeding:

  • What accent colors does the theme use? List the hex values. (Path: theme.palette.accent1 … accent6)
  • How many archetypes have resolved_layouts? Name them. (Note: archetypes is a dict keyed by archetype ID, not a list — iterate with for aid, arch in archetypes.items())
  • Which layouts are split-panel (title in a side zone)?
  • What text_color does each color zone use?

If any answer is unclear, re-read the manifest. Do not proceed to the design profile until all four are answered.

Step 5) Build design profile

Write design-profile.json in the project directory:

{
  "name": "<project-name>",
  "template_path": "base_template.pptx",
  "content_layout_catalog_path": "content_layout.json"
}

Add these fields from the extracted theme:

FieldSourcePurpose
primary_color_hexTheme accent1Brand accent color for subheadings
text_color_lightTheme lt1Light text for dark backgrounds
text_color_darkTheme dk1Dark text for light backgrounds
default_font_size_ptTemplate body sizeDefault for add_text
icon_pack_diricons/ (if extracted)Directory of template-specific vector icons for add_icon

Always use base_template.pptx (not the original) as template_path.

If the extraction produced an icons/ directory with .xml files, add "icon_pack_dir": "icons" to the design profile. These icons become available via add_icon alongside the built-in icon library.

Only add fields listed above or in the schema. The profile uses extra="forbid" — any unknown field (e.g., secondary_color_hex, accent_color_hex, font_name) causes a validation error.

Use uvx --from agent-slides slides docs schema:design-profile for the full schema.

Step 6) Preflight the project

Before handing the project off to /slides-build or /slides-full, verify the extracted artifacts and profile:

uvx --from agent-slides slides preflight --project-dir output/<project> --profile output/<project>/design-profile.json --compact

If preflight fails, fix the project structure or profile paths before continuing.

Outputs

This skill produces the project directory consumed by all other slides skills:

  • base_template.pptx + contract JSONs -> /slides-build
  • design-profile.json -> all post-build skills

Error Handling

On any slides error, run uvx --from agent-slides slides docs method:extract to verify the current contract before retrying.

Acceptance Criteria

  1. All artifact files exist and are valid JSON (where applicable).
  2. resolved_manifest.json contains at least one archetype with resolved layouts.
  3. base_template.pptx opens without errors.
  4. design-profile.json references base_template.pptx and content_layout.json.
  5. slides preflight reports "ok": true.
  6. Comprehension gate questions answered correctly.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

academic-image-ppt-ja

無料概要あり

原稿の主張と図の役割を頁ごとに整理し、選んだ書式を全頁へ引き継ぐ画像スライドと話者ノートを作る。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

Convert literature reviews, paper folders, thesis drafts, journal-style reports, or research outlines into rigorous academic slide decks and review artifacts. Use when Codex must create, rebuild, or polish PPTX presentations from scholarly sources while preserving academic logic, citation-aware image/formula handling, editable layouts, figure explanations, template fidelity, and export-based visual QA.

日本語の概要は準備中です。原文の説明を表示しています。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

agent-slides-ja

無料概要あり

既存PPTXの書式・配置を抽出し、planとnative編集操作からPowerPointを生成・検査する。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

aham-ja

無料概要あり

読者と目的から構成・版式を決め、確認を挟みながら、編集できる図形と文字のPPTXにする。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

aham-ppt

無料

全流程AI制作PPT演示文稿技能,克制专业、风格可选 A/B/C 三档(Aham UI v6.1 · Office 轨 · PPT)。 当用户说"帮我做PPT""做演示文稿""做一个汇报""根据这份资料做PPT" "做客户方案PPT""制作幻灯片"时立即触发。即使只有一句话需求也触发。 八阶段模块化流程:规范加载→材料解析→论点提炼→叙事骨架→大纲版式→样稿确认→逐页设计→质检交付。 内置能力自适应教练机制,无论用户专业水平高低,均引导至及格以上输出。 注意:本技能用于 PowerPoint / pptx 输出;SVG/HTML 版本见 ppt-svg 技能。

日本語の概要は準備中です。原文の説明を表示しています。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

and-scene-ja

無料概要あり

原典のReact scene kitを実scaffoldし、安定layoutIdの共通canvasでentityが移動・morphする日本語ブラウザ資料を作る。

studio-yebisu/yaoyorozu-ai-toolbox-slides102026年10月22日 更新

studio-yebisu のスキルをすべて見る

このスキルの問題を報告する