跳到正文
Skillpedia
PDF、Word 与幻灯片15k · #11018

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/third_party/google-slides/skills/google-slides/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. add_slide layout BLANK (or the deck's first slide with clear: true), then compose_slide with the SAME theme every 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.
  2. Read the reply's issues. text_overflow means shorten, fit: "shrink", or give the node more size; an overlap means two nodes share a box (usually a row that needs gap).
  3. 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 and delete_object the old one).

Tree recipes (column root; the root box is the slide minus a 48 pt margin):

  • Title slide: stack column justify:center with a display text and an h2 subtitle in textSecondary, both align:center.
  • KPI cards: h1, then a stack row size:150 gap:24 of cards, each with a caption label (textSecondary) over a kpi value.
  • Text + image: stack row gap:32 of a body text (bullets:true, size:{flex:1}) and an image (size:{flex:1}); the image aspect-fits.
  • Agenda: one body text with newline-separated items and bullets: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:

  1. insert_grid for any row, column, or grid of cards/text/images (one call, aligned, equal sizes); insert_text_box / insert_shape / insert_image for singletons.
  2. read_slide_layout: every element's box, z-order, text style, estimated wrapped height (textFit.fits), and issues. Fix every error and warn (text_overflow, overlap, off_slide, low_contrast with the fill actually behind the text named) and the info items when cheap (near_miss_alignment, unequal_peers, tight_margin, empty_placeholder).
  3. get_slide_thumbnail once 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能