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.
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-driveRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst /tmp/ai-analyst && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ai-analyst/.claude/skills/chart-to-drive ~/.gemini/antigravity-cli/skills/chart-to-driveAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
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.
