跳到主要内容
知仓学习社ZHICANG

google-drive-upload

>

不碰外部(只输出文字)无严重或高危命中davepoon/buildwithclaude

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Google Drive Upload

Upload files directly from Claude to Google Drive using a simple Google Apps Script.

When to Use This Skill

  • User asks to upload, save, or send a file to Google Drive
  • A workflow produces a file the user might want stored in Drive
  • User mentions Drive in any language (English or Hebrew)

What This Skill Does

  1. Reads the user's config file (~/.cowork-gdrive-config.json)
  2. Base64-encodes the target file
  3. POSTs it to the deployed Google Apps Script
  4. Returns the Google Drive file URL

How to Use

Prerequisites (One-Time Setup)

  1. Deploy the included Google Apps Script as a web app
  2. Create ~/.cowork-gdrive-config.json with your script URL and API key

Basic Usage

Ask Claude naturally:

  • "Upload this report to Google Drive"
  • "Save the presentation in Clients/Acme on Drive"
  • "תעלה את זה לדרייב"

Upload Workflow

\\\`bash

Read config

cat "$HOME/.cowork-gdrive-config.json"

Encode and upload

FILE="/path/to/file"

B64=$(base64 "$FILE" | tr -d '\n')

MIME=$(file --mime-type -b "$FILE")

curl -s -L -H "Content-Type: application/json" \

-d '{"fileName":"name","content":"'$B64'","mimeType":"'$MIME'","apiKey":"KEY"}' \

"SCRIPT_URL"

\\\`

Example

User: "Upload this report to Google Drive"

Output: Claude encodes the file, uploads it via the Apps Script, and returns:

"Uploaded successfully! Here's your file: https://drive.google.com/file/d/abc123/view"

Tips

  • Use folderPath to organize files into folders (e.g., "Clients/Acme")
  • Add "replaceExisting": true to overwrite instead of duplicating
  • Hebrew filenames are fully supported
  • Max file size is ~50MB (Google Apps Script limit)

Source

Full plugin with setup guide and Apps Script code:

https://github.com/msmobileapps/google-drive-upload-plugin

Built by MSApps — AI Automation & Application Development

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 3,470
本站分层T1
该仓技能数381
原文件路径plugins/all-skills/skills/google-drive-upload/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 381 个技能