Skip to content
Back to skills

Ppt Editing Skill

ASecurity

Use when editing existing PowerPoint presentations via XML manipulation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentspythonbash

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill ppt-editing-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ppt Editing Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ppt Editing Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-ppt-editing-skill/badge)](https://www.skillsdirectory.com/skills/loopyluci-ppt-editing-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ppt-editing-skill
description: Use when editing existing PowerPoint presentations via XML manipulation.
tags: [pptx, powerpoint, editing, template, xml, python]
related_skills: [ppt-orchestra-skill, slide-making-skill, content-page-generator]
---

# PPTX Editing Skill

Provides workflows for editing existing PowerPoint presentations via XML manipulation and template-based approaches.

## Template-Based Workflow

1. **Copy and analyze**: `cp template.pptx template.pptx && python -m markitdown template.pptx > template.md`
2. **Plan slide mapping**: Match content sections to template slides
3. **Unpack**: Extract PPTX into editable XML using Python's `zipfile`
4. **Build**: Delete/duplicate/reorder slides in `presentation.xml`
5. **Edit content**: Update text in each `slide{N}.xml`
6. **Clean**: Remove orphaned files
7. **Pack**: Repack XML tree into PPTX file

## Code Example: Extract Text from PPTX

```bash
python -m markitdown presentation.pptx
```

## Code Example: Unpack PPTX for Editing

```python
import zipfile
import os

with zipfile.ZipFile("template.pptx", "r") as z:
    z.extractall("unpacked/")
```

## Code Example: Repack PPTX

```python
import zipfile

with zipfile.ZipFile("edited.pptx", "w", zipfile.ZIP_DEFLATED) as z:
    for root, dirs, files in os.walk("unpacked/"):
        for file in files:
            path = os.path.join(root, file)
            arcname = os.path.relpath(path, "unpacked/")
            z.write(path, arcname)
```

## Common Pitfalls

- **Forgetting to clean orphaned files**: Remove slides not in `<p:sldIdLst>`
- **Smart quotes**: Use XML entities (`&#x201C;`) for quotes, not raw characters
- **Temp file path**: Write to `/tmp/` first when repacking (zipfile.seek fails on some mounts)
- **Subagent editing**: Use one subagent per slide XML file for parallel editing

## Verification Checklist

- [ ] `template.md` extracted and content verified
- [ ] Slide structure changes complete before text editing
- [ ] Orphaned files cleaned after structural changes
- [ ] All placeholder text replaced
- [ ] Final `edited.pptx` generated and content verified

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.