$npx -y skills add axoviq-ai/synthadoc --skill pptxExtract text from Microsoft PowerPoint presentations
| 1 | # PPTX Skill |
| 2 | |
| 3 | Extracts text from `.pptx` files using `python-pptx`. Each slide is rendered |
| 4 | as a titled section; speaker notes are appended when present. |
| 5 | |
| 6 | ## Setup |
| 7 | |
| 8 | ```bash |
| 9 | pip install python-pptx |
| 10 | ``` |
| 11 | |
| 12 | ## Standalone usage |
| 13 | |
| 14 | ```python |
| 15 | import asyncio |
| 16 | from synthadoc.skills.pptx.scripts.main import PptxSkill |
| 17 | |
| 18 | skill = PptxSkill() |
| 19 | |
| 20 | async def main(): |
| 21 | result = await skill.extract("/path/to/slides.pptx") |
| 22 | print(result.text) # slide titles + body text + speaker notes |
| 23 | print(result.metadata) # {"slides": N} |
| 24 | |
| 25 | asyncio.run(main()) |
| 26 | ``` |
| 27 | |
| 28 | ## When this skill is used |
| 29 | |
| 30 | - Source path ends with `.pptx` |
| 31 | - User intent contains: `powerpoint`, `presentation`, `pptx` |