Powerpoint

From spamsch/son-of-simon · View interactive version

Powerpoint is an AI agent skill from the GitHub repository spamsch/son-of-simon. Analyze PowerPoint (.pptx) presentations by converting them to PDF via Keynote and reading the slides visually.

How to use this skill

Skill file

Behavior Notes

How It Works

macOS cannot read .pptx files as text — they are binary archives. To analyze a PowerPoint presentation, convert it to PDF using Keynote (pre-installed on macOS), then read the PDF visually. This preserves full layout, diagrams, charts, and screenshots.

Step 1: Find the File

If the user doesn't provide a path, use spotlight_search to locate it:

spotlight_search(file_name="presentation", content_type="presentation")

Step 2: Convert PPTX to PDF via Keynote

Use run_shell_command with this AppleScript. Replace the input/output paths:

osascript -e '
set inputFile to POSIX file "/path/to/presentation.pptx"
set outputFile to POSIX file "/tmp/presentation.pdf"
tell application "Keynote"
    open inputFile
    delay 5
    set theDoc to front document
    export theDoc to outputFile as PDF with properties {PDF image quality:Best}
    close theDoc saving no
end tell
'

Step 3: Read the PDF

Use read_file to read the converted PDF:

read_file(file_path="/tmp/presentation.pdf")

Important Rules

Export as Individual Slide Images (Alternative)

For very image-heavy decks or when you need per-slide analysis:

osascript -e '
set inputFile to POSIX file "/path/to/presentation.pptx"
set outputFolder to POSIX file "/tmp/slides"
tell application "Keynote"
    open inputFile
    delay 5
    set theDoc to front document
    export theDoc to outputFolder as slide images with properties {image format:PNG, skipped slides:false}
    close theDoc saving no
end tell
'

This creates slide001.png, slide002.png, etc. in /tmp/slides/. Read individual images with read_file.

Common Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.