google-slides

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Google Slides Skill

Google Slides 技能

Overview

概述

Claude can create and edit Google Slides presentations, including adding slides, inserting content, applying themes, adding animations, and managing presentation flow. Perfect for building decks, reports, and visual content.
Claude可以创建和编辑Google Slides演示文稿,包括添加幻灯片、插入内容、应用主题、添加动画以及管理演示流程。非常适合制作演示文稿、报告和可视化内容。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/google-slides/install.sh | bash
Or manually:
bash
cp -r skills/google-slides ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/google-slides/install.sh | bash
或者手动安装:
bash
cp -r skills/google-slides ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set GOOGLE_EMAIL "your-email@gmail.com"
undefined
canifi-env set GOOGLE_EMAIL "your-email@gmail.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭证,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,且永远不会看到你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在你的本地设备访问,绝不会被传输。

Capabilities

功能特性

  • Create new presentations from scratch or templates
  • Add and arrange slides
  • Insert text, images, shapes, and charts
  • Apply themes and customize designs
  • Add speaker notes
  • Create transitions and animations
  • Insert videos and audio
  • Link slides and create navigation
  • Export as PDF, PPTX, or images
  • Present in slideshow mode
  • Collaborate with comments and suggestions
  • 从 scratch 或模板创建新演示文稿
  • 添加和排列幻灯片
  • 插入文本、图片、形状和图表
  • 应用主题并自定义设计
  • 添加演讲者备注
  • 创建转场和动画
  • 插入视频和音频
  • 链接幻灯片并创建导航
  • 导出为PDF、PPTX或图片格式
  • 以幻灯片放映模式展示
  • 通过评论和建议协作

Usage Examples

使用示例

Example 1: Create Presentation

示例1:创建演示文稿

User: "Create a presentation about our Q4 results"
Claude: Creates new presentation with title slide "Q4 Results",
        adds slides for Key Metrics, Revenue, Growth, Next Steps.
        Returns: "Created presentation with 5 slides: [link]"
用户:"创建一个关于我们Q4业绩的演示文稿"
Claude:创建标题为“Q4业绩”的新演示文稿,
        添加关键指标、收入、增长、下一步计划等幻灯片。
        返回:"已创建包含5张幻灯片的演示文稿:[链接]"

Example 2: Add Content to Slide

示例2:向幻灯片添加内容

User: "Add a bar chart showing monthly sales to slide 3"
Claude: Navigates to slide 3, inserts chart, configures as bar chart,
        enters sales data. Confirms: "Bar chart added to slide 3"
用户:"向第3张幻灯片添加显示月度销售额的条形图"
Claude:导航到第3张幻灯片,插入图表,配置为条形图,
        输入销售数据。确认:"已向第3张幻灯片添加条形图"

Example 3: Apply Theme

示例3:应用主题

User: "Make the presentation look more professional with a dark theme"
Claude: Opens Themes panel, selects dark professional theme,
        applies to all slides. Reports: "Dark theme applied to all slides"
用户:"用深色主题让演示文稿看起来更专业"
Claude:打开主题面板,选择深色专业主题,
        应用到所有幻灯片。反馈:"已为所有幻灯片应用深色主题"

Example 4: Add Speaker Notes

示例4:添加演讲者备注

User: "Add speaker notes to the introduction slide"
Claude: Opens slide 1, clicks speaker notes area, adds talking points
        based on slide content. Confirms: "Speaker notes added"
用户:"为引言幻灯片添加演讲者备注"
Claude:打开第1张幻灯片,点击演讲者备注区域,根据幻灯片内容添加演讲要点。
        确认:"已添加演讲者备注"

Authentication Flow

认证流程

  1. Claude navigates to slides.google.com via Playwright MCP
  2. Authenticates with GOOGLE_EMAIL if needed
  3. Handles 2FA if prompted (notifies user via iMessage)
  4. Maintains session for subsequent operations
  1. Claude通过Playwright MCP导航到slides.google.com
  2. 如有需要,使用GOOGLE_EMAIL进行认证
  3. 若提示双重认证,处理该步骤(通过iMessage通知用户)
  4. 维持会话以进行后续操作

Selectors Reference

选择器参考

javascript
// New presentation button
'#punch-start-presentation-chrome'

// Presentation title
'.docs-title-input'

// Slide filmstrip
'.punch-filmstrip'

// Current slide canvas
'.punch-viewer-content'

// Add slide button
'[aria-label="New slide"]'

// Insert menu
'#docs-insert-menu'

// Slide menu
'#docs-slide-menu'

// Theme button
'.punch-theme-button'

// Speaker notes
'.punch-viewer-speakernotes-text'

// Present button
'#punch-start-presentation-button'

// Shape insertion
'[aria-label="Shape"]'

// Text box
'[aria-label="Text box"]'
javascript
// 新建演示文稿按钮
'#punch-start-presentation-chrome'

// 演示文稿标题
'.docs-title-input'

// 幻灯片胶片栏
'.punch-filmstrip'

// 当前幻灯片画布
'.punch-viewer-content'

// 添加幻灯片按钮
'[aria-label="New slide"]'

// 插入菜单
'#docs-insert-menu'

// 幻灯片菜单
'#docs-slide-menu'

// 主题按钮
'.punch-theme-button'

// 演讲者备注
'.punch-viewer-speakernotes-text'

// 演示按钮
'#punch-start-presentation-button'

// 插入形状
'[aria-label="Shape"]'

// 文本框
'[aria-label="Text box"]'

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Presentation Not Found: Search Drive, ask user to clarify
  • Image Insert Failed: Check URL validity, try alternative upload method
  • Theme Apply Failed: Retry, suggest manual theme selection
  • Export Failed: Try alternative format, notify user
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 未找到演示文稿:搜索云端硬盘,请求用户澄清
  • 图片插入失败:检查URL有效性,尝试替代上传方式
  • 主题应用失败:重试,建议手动选择主题
  • 导出失败:尝试替代格式,通知用户

Self-Improvement Instructions

自我改进说明

When you learn a better way to accomplish a task with Google Slides:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific menu paths or shortcuts that work better
  4. Note any layout tips for better presentations
当你学会使用Google Slides完成任务的更好方法时:
  1. 在回复中记录改进点
  2. 建议使用新方法更新此技能文件
  3. 包含更有效的具体菜单路径或快捷键
  4. 记录有助于提升演示文稿质量的布局技巧

Notes

注意事项

  • Google Slides auto-saves changes
  • Maximum image size: 25MB per image
  • Supported image formats: JPG, PNG, GIF, BMP, WebP
  • Keyboard shortcuts: Ctrl+M for new slide, Ctrl+D to duplicate
  • Present mode: F5 or Ctrl+F5 for presenter view
  • Collaboration shows other users' cursors in real-time
  • Templates available in the template gallery
  • Google Slides会自动保存更改
  • 单张图片最大尺寸:25MB
  • 支持的图片格式:JPG、PNG、GIF、BMP、WebP
  • 键盘快捷键:Ctrl+M新建幻灯片,Ctrl+D复制幻灯片
  • 演示模式:按F5或Ctrl+F5进入演示者视图
  • 协作时会实时显示其他用户的光标
  • 模板库中提供各类模板