/install hml-google-slides
Google Slides
Uses the gog CLI for basic operations and scripts/slides.py for advanced edits (adding/editing slide content via the Slides API).
Auth Check
Before any Slides operation, verify auth is working:
gog slides info \x3Cany-presentation-id> --account [email protected]
If it fails, re-auth: gog auth add [email protected] --services gmail,calendar,drive,docs,sheets,contacts,tasks,people
Core Commands (via gog)
# Create a new blank presentation
gog slides create "My Presentation" --account [email protected] --json
# Get info about a presentation (slide count, title, etc.)
gog slides info \x3CpresentationId> --account [email protected] --json
# Export to PDF
gog slides export \x3CpresentationId> --format pdf --out /tmp/deck.pdf --account [email protected]
# Export to PPTX
gog slides export \x3CpresentationId> --format pptx --out /tmp/deck.pptx --account [email protected]
# Copy a presentation (e.g., to use a template)
gog slides copy \x3CpresentationId> "Copy Title" --account [email protected] --json
Adding/Editing Slide Content (via scripts/slides.py)
For adding text slides, batch updates, and reading full content, use scripts/slides.py.
# Add a text slide with title and bullet body
python3 scripts/slides.py add-slide \x3CpresentationId> \
--title "Slide Title" \
--body "• Bullet point one\
• Bullet point two"
# Add a slide at a specific position (0-indexed)
python3 scripts/slides.py add-slide \x3CpresentationId> --title "Intro" --insert-at 0
# Run arbitrary batch update requests from a JSON file
python3 scripts/slides.py batch \x3CpresentationId> requests.json
# Export via script
python3 scripts/slides.py export \x3CpresentationId> --format pdf --out /tmp/deck.pdf
# List comments with their anchors (e.g. which slide they are on)
python3 scripts/slides.py list-comments \x3CpresentationId>
# Resolve a comment and optionally leave a reply message
python3 scripts/slides.py resolve-comment \x3CpresentationId> \x3CcommentId> --reply "Fixed!"
Building a Deck from Scratch
Typical workflow:
- Create presentation:
gog slides create "Title" --json→ getpresentationId - Add slides one by one using
scripts/slides.py add-slide - For rich content (images, shapes, formatting), write batch requests to a JSON file and run
scripts/slides.py batch - Export:
gog slides export \x3Cid> --format pdf --out /tmp/deck.pdf
For complex batch requests (images, shapes, text formatting), see references/batch_requests.md.
Getting Presentation ID
From a Google Slides URL:
https://docs.google.com/presentation/d/**\x3CpresentationId>**/edit
Notes
gog slidesuses the Drive API under the hood (no separate Slides scope needed)scripts/slides.pyuses the Google Slides API directly and requires working gog auth tokens- Set
[email protected]in env to skip--accountflag
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hml-google-slides - 安装完成后,直接呼叫该 Skill 的名称或使用
/hml-google-slides触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
HML Google Slides 是什么?
Create, edit, and export Google Slides presentations. Use when creating new presentations, adding or updating slides, reading slide content, exporting to PDF... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 443 次。
如何安装 HML Google Slides?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hml-google-slides」即可一键安装,无需额外配置。
HML Google Slides 是免费的吗?
是的,HML Google Slides 完全免费(开源免费),可自由下载、安装和使用。
HML Google Slides 支持哪些平台?
HML Google Slides 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 HML Google Slides?
由 nethunter(@nethunter)开发并维护,当前版本 v1.0.0。