build-google-slides
Create or edit a native Google Slides deck through the Slides MCP tools: plan the storyline, build slides from layouts and placeholders, add text, tables…
от CognitionAI★ 42 звезды на GitHub
Установить build-google-slides в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Building Google Slides decks
Decks are judged by the eye, so the loop is: build a slide -> look at it (get_slide_thumbnail
or a PDF export) -> fix it -> next slide. Tool signatures: google-workspace-mcp. For
Cognition-branded decks the cognition-slides plugin's google-slides skill owns the design
system (fonts, colours, layouts) and calls these same tools; follow it when it is installed and
the deck is for Cognition.
1. Plan before touching the deck
- One sentence per slide ("what this slide proves") in a short outline the user can approve; 5-12 slides is the default for a readout, 15-25 for a workshop. Title, agenda/summary, body, close/next steps.
- Audience and source material: ask for the Doc/Sheet to draw from, or search Drive for it.
- Template: if the user has a template deck,
copy_fileit under the deck's name and build on its layouts (read_presentationlists them with ids); otherwisecreate_file(name, type: "presentation")gives a blank 16:9 deck with one empty slide whose id isp(delete it at the end withdeleteObject).
2. Build slides with layouts and placeholders
update_presentation(presentationId, requests), one call per slide or per small group.
createSlide: {objectId: "s2", slideLayoutReference: {predefinedLayout: "TITLE_AND_BODY"}, placeholderIdMappings: [{layoutPlaceholder: {type: "TITLE"}, objectId: "s2-title"}, {layoutPlaceholder: {type: "BODY"}, objectId: "s2-body"}]}theninsertText: {objectId: "s2-title", text}. Predefined layouts and their placeholder types:TITLE(CENTERED_TITLE, SUBTITLE),TITLE_AND_BODY(TITLE, BODY),TITLE_ONLY,SECTION_HEADER(TITLE, BODY),TITLE_AND_TWO_COLUMNS(TITLE, BODY, BODY withindex0/1),BLANK. In a template deck uselayoutIdfromread_presentationinstead.- Bullets: insert lines joined by
\n, thencreateParagraphBullets: {objectId, textRange: {type: "ALL"}, bulletPreset: "BULLET_DISC_CIRCLE_SQUARE"}. - Text style:
updateTextStyle(fontSize: {magnitude, unit: "PT"},bold,foregroundColor) with afieldsmask; paragraph:updateParagraphStyle. - Free-form elements:
createShape/createImage/createTable/createLinewithelementProperties: {pageObjectId, size: {width, height}, transform: {scaleX: 1, scaleY: 1, translateX, translateY, unit: "PT"}}. A 16:9 slide is 720 x 405 PT; keep 30-40 PT margins and align left edges across slides. - Images need a fetchable URL (public, or a Drive file the user can read). Local renders cannot be uploaded through the MCP; use a table, native shapes or a linked chart instead.
- Charts from a Sheet:
createSheetsChart: {spreadsheetId, chartId, linkingMode: "LINKED", elementProperties}; thechartIdcomes from theaddChartreply orread_sheetdetails, andLINKEDkeeps it refreshable from the deck. Tables:createTable {rows, columns}theninsertTextwithcellLocation. - Speaker notes:
read_presentationgives each slide's notes shape id;insertTextinto it. - Order:
updateSlidesPosition; duplicate a good slide withduplicateObjectand edit the copy.
3. Look at every slide
After each slide or batch: get_slide_thumbnail(presentationId, slideId, size: "medium") and
check for text overflowing its box, overlapping elements, empty placeholders (they render as
"Click to add text"), inconsistent title positions, unreadable sizes (< 12 PT body text). For
the finished deck, download_file(fileId: <presentation id>, exportMimeType: "application/pdf") from
scripted_tools and page through it. Fix in place: deleteText + insertText, resize with
updatePageElementTransform, shorten copy. A text box that overflows means less text, not a
smaller font below 12 PT.
4. Editing an existing deck
read_presentationfirst: slide ids, element ids, current text and positions. Re-read after structural changes (new slides, deletions).- Replace text while keeping styling:
deleteText {textRange: {type: "ALL"}}theninsertTextat index 0 in the same request list; orreplaceAllTextacross the deck for a renamed term. - Swap an image:
replaceImage {imageObjectId, url}; refresh linked charts:refreshSheetsChart. - Match the deck's existing layouts (
slideLayoutReference: {layoutId}of a sibling slide) so new slides look like the old ones; thumbnail the new slide next to an existing one. - Reviewer mode (comments instead of edits):
review-google-files.
5. Deliver
Link, slide count, where it lives, and anything that still needs a human asset (a logo, a photo, a number to confirm). The MCP cannot share the deck; the user shares it in Drive.
Gotchas
objectIds are yours to choose (5-50 chars, letters/digits/_/-), unique per deck; a reused id fails the whole call.- Inserting into a placeholder that has no text yet uses
insertionIndex: 0(default);insertTextinto a non-text element (image, line) fails. - Slides' default slide
pin a new blank deck
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл build-google-slides?
Create or edit a native Google Slides deck through the Slides MCP tools: plan the storyline, build slides from layouts and placeholders, add text, tables, images and linked Sheets charts, write speaker notes, then check every slide visually and fix it in place. Use whenever the deliverable is a Google Slides presentation or the user asks to change one, unless a brand-specific deck skill (for example cognition-slides' google-slides for Cognition-branded decks) applies, in which case that skill owns the design and this one is the tool reference. Requires google-workspace-mcp.
Как установить скилл build-google-slides?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build-google-slides запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…