/ai-analyst-plus:google-slides-exportfrom ai-analyst-plus
Creates properly formatted Google Slides via the Google Drive connector, preventing common API errors (zero-weight outlines, short object IDs, text overflow). Includes design system and pre-validated slide recipes.
Ships in ai-analyst-plus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Requires the Google Drive connector (with Google Slides access) enabled in Cowork.
Create properly formatted Google Slides presentations through the connector. Prevents API errors and ensures every deck looks professional -- no text overflow, no overlapping elements, consistent brand design.
Exact tool names differ by environment, so never hardcode them: discover the connector's actual tools in-session (list the available tools and read each candidate's own schema before calling). You need four capabilities:
createSlide, createShape, insertText, updateShapeProperties, createImage,
deleteObject, ...) to a presentation ID. This is the workhorse call this skill's recipes feed.deleteObject) and supports the post-build self-check.If no available tool provides a capability, stop and tell the user to enable the Google Drive connector (with Slides access); never fake the export or route the content elsewhere.
The connector boundary, honestly: the request bodies in this skill follow the public Google
Slides API batchUpdate format, which connectors pass through. Whether a given environment's
tools add wrapper parameters (or name things differently) cannot be verified from this file
without a live connector -- that is exactly why you discover the tools and read their schemas
in-session rather than trusting any tool name written here.
Automatically whenever:
Run this checklist BEFORE building any batch_update requests. Fix all violations first.
slide_2, hdr_bg, title_box, body_txt
BAD: s2, t1, bg, p_t1
(Only applies to IDs you define; existing IDs from the API can be any length)outline.weight.magnitude = 0
BAD: "weight": {"magnitude": 0, "unit": "PT"} -> API error
OK: Omit the updateShapeProperties outline block entirely (no border = default)createSlide -- not addSlide (not a valid request type)deleteObject only for confirmed IDs -- only delete element IDs returned by
the connector's presentation/page read-back capability; never delete IDs you inventedautoFit: AUTO_FITWidth: 9144000 EMU (10 inches)
Height: 5143500 EMU (5.625 inches)
1 inch = 914400 EMU
Dark navy: {red: 0.118, green: 0.161, blue: 0.231} -- header bars, full-bg dividers
Orange: {red: 0.851, green: 0.467, blue: 0.024} -- highlights, accent callouts
Accent green: {red: 0.02, green: 0.588, blue: 0.412} -- secondary metrics
Off-white: {red: 0.969, green: 0.965, blue: 0.949} -- slide background
White: {red: 1.0, green: 1.0, blue: 1.0} -- card backgrounds, text on dark
Dark text: {red: 0.133, green: 0.133, blue: 0.133} -- body text on light backgrounds
Header bar: x=0, y=0, w=9144000, h=686000
Title in header: x=457200, y=100000, w=8229600, h=486000
Content start: y=800000
Left margin: x=457200 (0.5 inch)
Right edge: x=8686800
Content width: 8229600 (9 inches usable)
Bottom safe zone: y <= 4800000 (leaves 0.37in gutter above slide bottom)
autoFit on all content text boxes -- use "contentAlignment": "TOP" +
"autoFit": {"autoFitType": "AUTO_FIT"} in updateShapeProperties. Never set a
fixed height on a text box that holds variable text content.
Minimum text box width: 3000000 EMU (3.3 inches) for any box holding sentences. Narrow boxes (metric labels, short tags) may be smaller.
Font size hierarchy:
| Role | Size | Weight |
|---|---|---|
| Full-slide section title (dark bg) | 28-32pt | Bold |
| Slide title (in header bar) | 20-24pt | Bold |
| Insight headline (below header) | 14-16pt | Bold |
| Body / bullet text | 11-13pt | Regular |
| Metric value (KPI card) | 24-30pt | Bold |
| Card label / footnote | 9-11pt | Regular |
Maximum 5 content elements per slide (not counting the header RECTANGLE and title TEXT_BOX). If you need more, split into two slides.
Maximum 3 bullet points per text box. Max 70 characters per bullet. If content is longer, split into two slides or use a two-column layout.
Card pattern for KPI metrics:
"paragraphStyle": {
"spaceAbove": {"magnitude": 4, "unit": "PT"},
"spaceBelow": {"magnitude": 4, "unit": "PT"},
"lineSpacing": 115
}
Five pre-validated slide type recipes. Each specifies exact createShape / createSlide
requests. Always pick the closest matching type; fill in text content only.
Object ID naming convention: {type}_{slidenum}_{role}
Examples: slide_2, hdr_2, ttl_2, hdl_2, bdy_2, cd1_2, cv1_2, cl1_2
Use for: deck opening slide Elements: 3
1. RECTANGLE (full-background, dark navy)
objectId: "bg_{n}"
size: w=9144000, h=5143500
position: x=0, y=0
fill: dark navy
2. TEXT_BOX (main title)
objectId: "ttl_{n}"
size: w=8229600, h=900000
position: x=457200, y=1700000
text: [DECK TITLE -- headline, not label]
font: 28pt, white, bold
autoFit: AUTO_FIT
3. TEXT_BOX (subtitle / context)
objectId: "sub_{n}"
size: w=8229600, h=500000
position: x=457200, y=2700000
text: [Scope | Date range | Author]
font: 16pt, off-white, regular
autoFit: AUTO_FIT
Use for: transitions between major sections Elements: 2
1. RECTANGLE (full-background, dark navy)
objectId: "bg_{n}"
size: w=9144000, h=5143500
position: x=0, y=0
fill: dark navy
2. TEXT_BOX (section name)
objectId: "sec_{n}"
size: w=8229600, h=700000
position: x=457200, y=1900000
text: [SECTION NAME]
font: 28pt, white, bold, centered
autoFit: AUTO_FIT
Use for: insight findings, recommendation lists, methodology, any text-heavy slide Elements: 4
1. RECTANGLE (header bar, dark navy)
objectId: "hdr_{n}"
size: w=9144000, h=686000
position: x=0, y=0
fill: dark navy
2. TEXT_BOX (slide title, inside header)
objectId: "ttl_{n}"
size: w=8229600, h=486000
position: x=457200, y=100000
text: [SLIDE TITLE -- max 60 chars]
font: 20pt, white, bold
3. TEXT_BOX (insight headline)
objectId: "hdl_{n}"
size: w=8229600, h=450000
position: x=457200, y=800000
text: [INSIGHT HEADLINE -- the "so what", max 100 chars]
font: 14pt, dark navy, bold
autoFit: AUTO_FIT
4. TEXT_BOX (body bullets)
objectId: "bdy_{n}"
size: w=8229600, h=3300000
position: x=457200, y=1350000
text: [bullet 1\nbullet 2\nbullet 3] (max 3 bullets, 70 chars each)
font: 12pt, dark text, regular
autoFit: AUTO_FIT
Use for: metric dashboards with 2-4 key numbers side by side Max 4 cards. Elements: header (2) + per card (3 each) = 5-14 total.
Card x-positions by count:
2 cards: card_w=3800000 x1=457200, x2=4686800
3 cards: card_w=2500000 x1=457200, x2=3214200, x3=5971200
4 cards: card_w=1800000 x1=457200, x2=2514200, x3=4571200, x4=6628200
Card height: 2000000 EMU. Card y-position: 900000.
1. RECTANGLE (header bar, dark navy) -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header) -- objectId: "ttl_{n}"
[same as Type 3 header elements]
Per card i (repeat for each metric):
3i. RECTANGLE (card background, white)
objectId: "cd{i}_{n}"
size: w={card_w}, h=2000000
position: x={xi}, y=900000
fill: white, rounded corners (optional)
4i. TEXT_BOX (metric value)
objectId: "cv{i}_{n}"
size: w={card_w - 200000}, h=900000
position: x={xi + 100000}, y=1050000
text: [METRIC VALUE -- e.g., "40.2M" or "39.4%"]
font: 28pt, dark navy, bold, centered
5i. TEXT_BOX (metric label)
objectId: "cl{i}_{n}"
size: w={card_w - 200000}, h=400000
position: x={xi + 100000}, y=2050000
text: [METRIC LABEL -- e.g., "Monthly Active Users"]
font: 10pt, dark text, regular, centered
autoFit: AUTO_FIT
Use for: side-by-side comparisons, before/after, two segments Elements: 4
1. RECTANGLE (header bar, dark navy) -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header) -- objectId: "ttl_{n}"
[same as Type 3 header elements]
3. TEXT_BOX (left column)
objectId: "lcl_{n}"
size: w=3900000, h=3700000
position: x=457200, y=900000
font: 12pt, dark text, regular
autoFit: AUTO_FIT
4. TEXT_BOX (right column)
objectId: "rcl_{n}"
size: w=3900000, h=3700000
position: x=4786800, y=900000
font: 12pt, dark text, regular
autoFit: AUTO_FIT
Use for: findings with an embedded chart image Elements: 5
1. RECTANGLE (header bar, dark navy) -- objectId: "hdr_{n}"
2. TEXT_BOX (slide title in header) -- objectId: "ttl_{n}"
[same as Type 3 header elements]
3. TEXT_BOX (insight headline)
objectId: "hdl_{n}"
size: w=4000000, h=450000
position: x=457200, y=800000
text: [INSIGHT HEADLINE -- the "so what", max 100 chars]
font: 14pt, dark navy, bold
autoFit: AUTO_FIT
4. TEXT_BOX (body text, left side)
objectId: "bdy_{n}"
size: w=4000000, h=3300000
position: x=457200, y=1350000
text: [3 bullets max, 70 chars each]
font: 12pt, dark text, regular
autoFit: AUTO_FIT
5. IMAGE (chart, right side)
objectId: "img_{n}"
size: w=4300000, h=3500000
position: x=4572000, y=1300000
url: [HTTPS URL -- see Image Insertion workflow below]
Image Insertion Workflow (for Type 6 slides):
Charts are local PNG files that must be reachable at an HTTPS URL before
insertion. The Google Slides API does NOT accept data:image/... data URIs.
Data handling: charts go only to the user's own Google Drive through the connector. Never upload charts or data to public file hosts. The files stay in the user's Drive under their control, private by default; the upload tool sets just enough link access for the Slides API to fetch the image.
<drive upload tool>(
file_path="<path to chart.png>",
file_name="chart_name.png"
)
# Returns: {"file_id": "...", "url": "..."}
Upload all charts in one pass and print the filename -> file_id map so later steps can reference charts by name. Before uploading, check Drive for an existing file with the same name uploaded in the last 24 hours and reuse its ID instead of creating a duplicate. Optionally create a "{dataset_name} - Charts" folder first for organization.
createImage, using the Drive direct-download URL
(https://drive.google.com/uc?id={file_id}&export=download):{"createImage": {
"objectId": "img_{n}",
"url": "https://drive.google.com/uc?id={file_id}&export=download",
"elementProperties": {
"pageObjectId": "slide_{n}",
"size": {"width": {"magnitude": 4300000, "unit": "EMU"},
"height": {"magnitude": 3500000, "unit": "EMU"}},
"transform": {"scaleX": 1, "scaleY": 1,
"translateX": 4572000, "translateY": 1300000, "unit": "EMU"}
}
}}
{"deleteObject": {"objectId": "cpf_{n}"}}
The chart already lives permanently in the user's Drive; no extra save step is needed, and the deck keeps working because the image URL points at the Drive file.
Important API constraints:
data:image/png;base64,... -> returns 403 Forbiddenhttp://localhost:... -> the connector cannot access local URLshttps://drive.google.com/uc?id={ID}&export=downloadcreateImage + deleteObject requests can go in a single batchFor finding slides (Type 3 and Type 6), add a data stamp text box at the bottom-right corner. This provides at-a-glance provenance for every claim.
TEXT_BOX (data stamp)
objectId: "dst_{n}"
size: w=4000000, h=250000
position: x=4686800, y=4800000
text: [abbreviated stamp: "50K | Jan-Mar 2026 | EVENTS | B (82)"]
font: 8pt, {red: 0.6, green: 0.6, blue: 0.6}, regular
alignment: RIGHT
autoFit: AUTO_FIT
When to include: Any slide presenting a specific data finding (insight headline + evidence). When to skip: Title slides, section dividers, KPI dashboards, recommendation lists, appendix.
Build the abbreviated data stamp text yourself in this exact format:
{row_count} | {date_range} | {primary_table} | {grade} ({score})
50K; 1,200,000 → 1.2M)50K | Jan-Mar 2026 | EVENTSFor finding slides, speaker notes should contain full provenance so the presenter can answer "where does this number come from?" questions:
Data: [145K rows | Jan-Mar 2026 | ORDERS | Confidence: B (82/100)]
Methodology: segmented comparison, SUM by segment
SQL: SELECT segment, SUM(revenue) FROM orders GROUP BY segment
Verification: Type B: Parts-to-whole — Verified (PASS, diff 0.2%)
Insert via insertText on the slide's notes page object.
To verify design decisions, use decks previously created by this pipeline as visual references. Add your own reference deck IDs here after creating decks you're happy with.
Visual patterns to follow:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ai-analyst-lab/ai-analyst-plugin --plugin ai-analyst-plus47 skills in this plugin
/always-compareNever present a metric or number in isolation; anchor every number to a comparison (prior period, benchmark, or another segment) or state that none is available. Use every time you show a number: rates, counts, revenue, averages, query results, chart labels, summary stats. Trigger on output containing "the rate is", "we saw", "total", "average", "conversion", "revenue", "users", "sessions", "churn", "AOV", "NPS", or any figure pulled from data./analysis-designTurn a vague hunch or stakeholder request into a rigorous analysis plan via a staged pipeline (hypothesis sharpening, confound scan, V1, feedback, V2 redesign). Trigger on "I think X caused Y", "design an analysis for", "what's driving", "V2 after feedback", "stakeholder comments", "redesign the analysis". Vs question-framing (the lightweight framing gate before every analysis): use THIS only for a real hunch, confound scan, or V1 to V2 redesign./analyst-coreOperating rules for every data analysis. Apply for ANY data-analysis intent: "analyze", "investigate", "why did X change", "compare", "report on", "dashboard", "metrics", "funnel", "retention", "revenue", "conversion", "trend", "segment", "forecast", "how are we doing", "dig into", "break down", or any question about data, a metric, a CSV, or a table. Sets the method and routes to the other skills; load before any analytical question.Other plugins' skills for the same job