google-slides
它能做什么
该技能以有组织的版式和一致的样式构建和编辑 Google 幻灯片。适合需要整洁演示文稿、又不想手动放置每个元素的人。
适用场景
- ✓当你要求智能体在 Google 幻灯片中创建新演示文稿的时候。
- ✓当你希望幻灯片元素按网格或其他版式排列的时候。
- ✓当你想在分享之前检查某张幻灯片效果的时候。
技能链接
https://github.com/cursor/plugins/blob/main/third_party/google-slides/skills/google-slides/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为我们的产品发布会制作一份 6 张幻灯片的 Google 幻灯片演示文稿,采用卡片版式,每张幻灯片都有标题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把每张幻灯片描述为一种版式,工具会均匀放置元素,并检查是否溢出和重叠。它还可以为每张幻灯片渲染一张图片供审阅。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google Slides authoring
Coordinates are POINTS from the slide's top-left; a standard slide is 720x405
(read_slide_layout reports the real size). Everything is addressed by
objectId from read_presentation. Pass requiredRevisionId from the latest
read or write so a concurrent edit fails the write instead of corrupting it.
Building a new deck: compose, then look
Write each slide as a layout, not as coordinates. compose_slide takes a
tree (stacks, grids, cards, text, images) or an HTML/CSS subset and lays
the whole slide out in one call: equal peer sizes, even gutters, vertical
centering, and contrast pairs hold by construction, text can fit: "shrink", and the reply carries every element's box plus lints on the
plan. Per slide:
add_slidelayout BLANK (or the deck's first slide withclear: true), thencompose_slidewith the SAMEthemeevery time (palette roles background/surface/primary/textSecondary and the font family). Colors in the tree are roles, not hexes, so one theme change restyles a deck.- Read the reply's
issues.text_overflowmeans shorten,fit: "shrink", or give the node moresize; anoverlapmeans two nodes share a box (usually a row that needsgap). get_slide_thumbnail(LARGE) once per slide and LOOK at it: crowding, dead corners, a title that reads as body text, an image fighting the palette. Fix by re-composing the slide (delete the old elements first, or compose onto a fresh BLANK slide anddelete_objectthe old one).
Tree recipes (column root; the root box is the slide minus a 48 pt margin):
- Title slide:
stack column justify:centerwith adisplaytext and anh2subtitle intextSecondary, bothalign:center. - KPI cards:
h1, then astack row size:150 gap:24ofcards, each with acaptionlabel (textSecondary) over akpivalue. - Text + image:
stack row gap:32of abodytext (bullets:true,size:{flex:1}) and animage(size:{flex:1}); the image aspect-fits. - Agenda: one
bodytext with newline-separated items andbullets:true.
HTML form, same result: <section style="background:#0B2A4A; padding:48pt; gap:24pt"> with <h1>, <div style="display:flex; gap:24pt; height:150pt">
of <article class="card"><span class="caption">…</span><span class="kpi">…</span></article>, <ul><li> bullets, <img style="flex:1">.
Only the documented tags and properties compile; anything else is refused
by name, never dropped.
Editing an existing deck: place, inspect, fix, look
For decks that already have content, or elements the tree does not model:
insert_gridfor any row, column, or grid of cards/text/images (one call, aligned, equal sizes);insert_text_box/insert_shape/insert_imagefor singletons.read_slide_layout: every element's box, z-order, text style, estimated wrapped height (textFit.fits), andissues. Fix everyerrorandwarn(text_overflow,overlap,off_slide,low_contrastwith the fill actually behind the text named) and theinfoitems when cheap (near_miss_alignment,unequal_peers,tight_margin,empty_placeholder).get_slide_thumbnailonce the lints are clean, and look.
Grid conventions (when placing by hand)
Title at x 40, y 32, 640 wide, height 60-70 for one line of 28-34 pt (two
lines need ~110); subtitle under it at 16-18 pt. Content region x 40, y 130,
640 x 235 (insert_grid's default). Footer at y 370, 12 pt. Keep 40 pt side
margins unless an element is deliberately full-bleed. Process flows:
insert_grid the step shapes (columns = steps), then connect_shapes
between neighbors; connectors follow shapes when moved.
A 34 pt bold title wraps past ~32 characters in a 600 pt box and spills over
whatever sits below (the API does not grow boxes). textFit in the layout
read and issues in the compose reply predict this; long titles go to
24-28 pt, fit: "shrink", or two lines with the subtitle pushed down.
Palette and contrast
Pick a palette FIRST and reuse it on every slide (as compose_slide's
theme.palette): background, one card/surface color, one accent, and a
secondary text color; on-colors derive automatically. When the user names a
template or brand, take its colors; otherwise these pairs pass WCAG AA as-is:
- Dark: background #0B2A4A, cards #1E4976, accent #4FC3F7, titles/text #FFFFFF, secondary #B8CCE0.
- Light: background #FFFFFF, cards #F1F3F4, accent #0B57D0 (white text on it), t
常见问题
它能匹配模板吗?
能。该技能涵盖匹配模板并检查版式。
它如何避免文字拥挤?
它可以缩小文字以适应版面,并报告溢出或重叠的文本框,方便你修正。
我能看到幻灯片的效果吗?
能。该技能可以生成每张幻灯片的 PNG 渲染图,供你审阅。
详情
作者的原始描述
Build and edit Google Slides through the google-slides MCP tools - slides, grids of cards and columns, text boxes, shapes, images, tables, styling, layout inspection, and per-slide PNG rendering. Use when creating a deck, laying out slide elements, matching a template, or verifying how a slide looks.
repo: cursor/plugins
热度
- GitHub 星标
- 15k
- 排名
- #11018
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。