Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

chart-to-drive

Skill by ai-analyst-lab

Chart-to-Drive uploads local chart PNG files to Google Drive and returns URLs for inserting them into Google Docs and Slides. It is for agents building reports or presentations with embedded charts.

  • Score 62
  • 330 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install chart-to-drive

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst /tmp/ai-analyst && mkdir -p ~/.claude/skills && cp -r /tmp/ai-analyst/.claude/skills/chart-to-drive ~/.claude/skills/chart-to-drive

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install chart-to-drive in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

chart-to-drive is an agent skill that uploads local chart PNG files to Google Drive so they can be inserted into Google Docs and Slides. It collects PNG files from outputs/charts/, uploads each one with the Google Docs MCP upload_image_to_drive tool, and returns a map of filenames to Drive IDs and direct download URLs. The skill says the upload sets link access so the Docs and Slides APIs can fetch the image.

The skill is written for agents such as google-doc-creator and google-slides-creator, and for users who ask to add charts to documents or presentations. It reuses Drive files with matching names uploaded in the last 24 hours and includes recovery steps for upload and authentication errors. The source says charts should never be sent to public file hosts.

Written from the project's SKILL.md and checked against it.

What it can do

  • mcp__google-docs__upload_image_to_driveUploads a local chart PNG straight to the user's Drive and returns the Drive file ID.
  • mcp__google-docs__authorize_google_docsRe-authenticates the Google Docs connection when an upload fails with a permission error.
  • Chart collectionLists all PNG files in outputs/charts/ to prepare them for upload.
  • URL mapBuilds a mapping of each chart filename to its Drive ID and direct download URL.
  • Upload reuseReuses Drive files with matching names uploaded in the last 24 hours instead of duplicating them.
  • Error recoveryDescribes fallback steps using the Drive API when the MCP upload tool fails or is missing.

What you need

  • Google Workspace MCP with Google Docs access, or Drive API credentials
  • Python for the batch upload script
  • Local chart PNG files

Try asking

  • Upload all charts in outputs/charts to Drive and give me the URL map.
  • Put the uploaded charts into my Google Slides deck.
  • Add the chart images to my Google Doc report.

Good to know

  • Drive URLs produced by the skill must be public for the Docs and Slides APIs to fetch them.
  • Not meant for the python-docx workflow, which embeds images in the .docx file instead.
  • Default chart location is outputs/charts/ and only PNG files are collected.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/chart-to-drive/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to chart-to-drive

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

chart-to-drive: common questions

Why do charts need to be uploaded to Drive before inserting them into Google Docs?

The source says the insert_doc_image and createImage APIs require public Drive URLs, and the skill produces them. Errors such as image URL not accessible usually mean the charts were not uploaded first.

Does chart-to-drive use public image hosts?

No. The source says charts are uploaded only to the user's Drive and must never be routed through public file hosts such as imgur or tmpfiles.

Can I use chart-to-drive for a single image?

The source says a single image upload should use mcp__google-docs__upload_image_to_drive directly instead of this skill.

How do I install chart-to-drive?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is chart-to-drive free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is chart-to-drive safe to use?

It scores 62 of 100. Grades: maintenance B, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to chart-to-drive?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

chart-to-drive Install

Add to stack

Loading.