home / skills / idanbeck / claude-skills / google-slides-skill

google-slides-skill skill

/google-slides-skill

This skill creates, edits, and exports Google Slides presentations, enabling content automation and rapid formatting for decks and reports.

npx playbooks add skill idanbeck/claude-skills --skill google-slides-skill

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
2.1 KB
---
name: google-slides-skill
description: Create and manage Google Slides presentations. Use when the user asks to create slides, add content to presentations, or export to PDF/PPTX.
allowed-tools: Bash, Read
---

# Google Slides Skill

Create, edit, and export Google Slides presentations.

## Setup

Uses same Google OAuth as gmail-skill. If configured, this works automatically.

Otherwise: same setup as google-sheets-skill, but enable Google Slides API.

## Commands

### List & Info

```bash
python3 ~/.claude/skills/google-slides-skill/slides_skill.py list [--limit N]
python3 ~/.claude/skills/google-slides-skill/slides_skill.py get PRESENTATION_ID
```

### Create & Manage

```bash
# Create new presentation
python3 ~/.claude/skills/google-slides-skill/slides_skill.py create --title "My Deck"

# Add slide
python3 ~/.claude/skills/google-slides-skill/slides_skill.py add-slide PRES_ID [--layout blank|title|title_body]

# Delete slide
python3 ~/.claude/skills/google-slides-skill/slides_skill.py delete-slide PRES_ID --slide-id SLIDE_ID
```

### Add Content

```bash
# Add text box (x, y, w, h in inches)
python3 ~/.claude/skills/google-slides-skill/slides_skill.py add-text PRES_ID --slide-id SLIDE_ID --text "Hello" --x 1 --y 1 --w 8 --h 1

# Add image from URL
python3 ~/.claude/skills/google-slides-skill/slides_skill.py add-image PRES_ID --slide-id SLIDE_ID --url "https://..." --x 1 --y 2 --w 4 --h 3
```

### Find & Replace

```bash
python3 ~/.claude/skills/google-slides-skill/slides_skill.py replace-text PRES_ID --find "{{name}}" --replace "John"
```

### Export

```bash
python3 ~/.claude/skills/google-slides-skill/slides_skill.py export PRES_ID --format pdf --output deck.pdf
python3 ~/.claude/skills/google-slides-skill/slides_skill.py export PRES_ID --format pptx --output deck.pptx
```

## Slide Layouts

- `blank` - Empty slide
- `title` - Title slide
- `title_body` - Title + body text
- `title_two_columns` - Title + two columns
- `title_only` - Just title
- `section` - Section header
- `big_number` - Large number display

## Presentation ID

Found in URL: `https://docs.google.com/presentation/d/PRESENTATION_ID/edit`

Overview

This skill creates, edits, and exports Google Slides presentations programmatically. It supports creating presentations, adding and deleting slides, inserting text and images, performing find-and-replace, and exporting to PDF or PPTX. Setup uses Google OAuth and requires the Google Slides API to be enabled. It is designed for fast, repeatable slide production and simple automation tasks.

How this skill works

The skill connects to Google Slides via OAuth credentials and calls the Slides API to list, create, and modify presentations. Commands let you add slides with predefined layouts, insert positioned text boxes and images (coordinates in inches), replace text across a presentation, and export files to PDF or PPTX. Presentation IDs are the document IDs visible in the Slides URL.

When to use it

  • Automate creation of templated decks from data or scripts
  • Batch-update slides across many presentations (e.g., replace names or dates)
  • Programmatically add images or text boxes to specific slides and positions
  • Export finished presentations to PDF or PPTX for sharing or archiving
  • Quickly scaffold a presentation skeleton (title, section headers, content slides)

Best practices

  • Enable and reuse a single OAuth credential for scriptable access to avoid repeated authentication prompts
  • Design slide templates in Slides and use layout names (blank, title, title_body, etc.) for consistent results
  • Use precise x/y/w/h coordinates in inches to control element placement across devices
  • Test find-and-replace on a copy before running across many files to avoid accidental mass edits
  • Export final decks from a stable copy to preserve an editable source presentation

Example use cases

  • Generate weekly status decks by populating a template with metrics and exporting to PDF
  • Create personalized pitch decks by replacing placeholders like {{name}} and adding customer images
  • Batch convert a folder of presentations to PPTX for offline editing or archival
  • Programmatically insert images from URLs into slides for automated report visuals
  • Add or remove slides to update a master deck as project phases change

FAQ

What credential setup is needed?

You must configure Google OAuth and enable the Google Slides API. The skill uses the same OAuth flow as other Google workspace integrations.

How do I find a presentation ID?

The presentation ID is the long identifier in the Slides URL: https://docs.google.com/presentation/d/PRESENTATION_ID/edit.