---
name: "python-pptx-slide-master-layouts"
description: "Map and inject content into PowerPoint Slide Master placeholders with python-pptx."
metadata:
  author: "scanny"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "inspect slide placeholders python-pptx"
  - "insert image in placeholder pptx"
  - "use slide master layouts"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# python-pptx Slide Master & Placeholder Mapping

Identifies and leverages slide layout placeholders (Title, Body, Picture, Table) to guarantee exact visual consistency with enterprise templates.

## When to Invoke
Invoke this skill whenever you need to:
- inspect slide placeholders python-pptx
- insert image in placeholder pptx
- use slide master layouts

## Execution SOP & Rules
1. Enumerate placeholders with for shape in slide.placeholders: print(shape.placeholder_format.idx).
2. Insert images into picture placeholders using placeholder.insert_picture("image.png").
3. Add bulleted items using placeholder.text_frame.add_paragraph() with level=0 and level=1.
4. Save presentation outputs without corrupting master theme definitions.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
