技能圖譜SKILLSGROVE
技能圖譜/辦公文件/tristan-mcinnis/pptx-from-layouts-skill/pptx-profile

pptx-profile

安裝

$npx skills add https://github.com/tristan-mcinnis/pptx-from-layouts-skill --skill pptx-profile
$git clone --depth 1 https://github.com/tristan-mcinnis/pptx-from-layouts-skill.git /tmp/pptx-from-layouts-skill && mkdir -p ~/.claude/skills && cp -r /tmp/pptx-from-layouts-skill/.claude/skills/pptx-profile ~/.claude/skills/pptx-profile
請幫我安裝這個 Agent Skill:https://github.com/tristan-mcinnis/pptx-from-layouts-skill/tree/46e7c6638305bcb424f257b5c49dcd2603dc71ea/.claude/skills/pptx-profile ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MITSTEP 1 of the PPTX-from-layouts pipeline. Profile a PowerPoint template to discover its real slide-master layouts and emit a layout catalog + render config. Use when the user wants to "use my own PowerPoint template", "see what layouts my deck has", "onboard a template", "profile this pptx", or before authoring slides against a custom (non-Inner-Chapter) template. Pairs with pptx-author (Step 2) and pptx-from-layouts (Step 3).
以下 SKILL.md 內容轉載自 tristan-mcinnis/pptx-from-layouts-skill(提交 46e7c66),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 Tristan 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

Step 1 — Profile (pptx-profile)

Turn any .pptx into a map of its real layouts so the next steps can target them precisely. This is the answer to "what layouts does my template actually have, and what is each one for?"

  STEP 1 — PROFILE          STEP 2 — AUTHOR           STEP 3 — RENDER
  pptx-profile              pptx-author               pptx-from-layouts
  ───────────────           ───────────────           ─────────────────
  your-template.pptx        slides.md (+ [HINT:])     slides.md + config
        │                         │                         │
        ▼                         ▼                         ▼
   catalog.py  ──catalog.md──▶  write & lint  ──slides──▶  generate.py ─▶ deck.pptx
        └────────────────── config.json ───────────────────▲   (validated)
  "what layouts do I        "write slides that        "fill the template's
   have?"                    name real layouts"        actual placeholders"

You are here: Step 1. Output feeds Steps 2 and 3.

Dependencies

Python 3.10+ and python-pptx (pip install python-pptx). The config step shells out to the sibling pptx-from-layouts skill, which ships in this repo.

Run it

python scripts/catalog.py /path/to/your-template.pptx \
    --name your-template --output-dir ./build

This writes two files into ./build:

File For whom Purpose
your-template-layout-catalog.md you / Step 2 author Human-readable menu of every hintable layout: its [HINT:] name, placeholders, and when to use it.
your-template-config.json Step 3 render engine Machine map of capability → real layout index/name. Passed to generate.py --config.

Options: --catalog-only skips the config (catalog only); --name sets the output basename (defaults to the filename).

What the catalog gives you

The catalog's Hintable layouts table lists only layouts the engine knows how to populate — every name there is a safe [HINT:] value. A collapsed section lists all raw layouts in the file for reference. Each row shows the layout index, the exact hint name to copy, its placeholders (e.g. picture, body, center-title), and a one-line "when to use".

Then what

  1. Step 2 — author: open the catalog, write slides.md using [HINT: layout_name] per slide, and lint with pptx-author/scripts/lint_hints.py slides.md --config your-template-config.json.
  2. Step 3 — render: pptx-from-layouts/scripts/generate.py slides.md -o deck.pptx --template your-template.pptx --config your-template-config.json --validate.

Notes

  • You only profile a template once. Reuse the catalog + config for every future deck on that template.
  • The bundled Inner Chapter template is already profiled (see templates/inner-chapter-config.json) and is the default if you skip Step 1.
  • For a fully automated, on-brand onboarding (brand colors, fonts, smoke-test), the pptx-template-onboarder subagent wraps this step.
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 Tristan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.