跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Google Drive Upload

技能 活跃

Upload files directly to Google Drive via a deployed Google Apps Script web app. Trigger on: upload to Drive, save to Drive, send to Drive, put this in Drive. Also Hebrew: "תעלה לדרייב", "שמור בדרייב", "העלה לגוגל דרייב". Use proactively when a workflow produces a file the user might want in Drive.

目的

To seamlessly upload files to Google Drive from Claude, triggered by user requests or workflow outputs.

功能

  • Uploads files directly to Google Drive
  • Uses a deployed Google Apps Script web app
  • Supports proactive use when workflows produce files
  • Handles Hebrew language triggers
  • Returns Google Drive file URL upon successful upload

使用场景

  • When a user asks to upload, save, or send a file to Google Drive.
  • When a workflow produces a file that should be stored in Google Drive.
  • When users mention Google Drive in English or Hebrew.

非目标

  • Managing Google Drive files beyond uploading (e.g., deleting, editing, organizing folders extensively).
  • Handling files larger than Google Apps Script limits (~50MB).

Documentation

  • warning:Configuration & parameter referenceThe prerequisites mention a config file (`~/.cowork-gdrive-config.json`) with script URL and API key, but the exact format, default values, or precedence order are not documented.

Security

  • warning:Secret ManagementThe skill reads API keys and script URLs from a local config file (`~/.cowork-gdrive-config.json`), but the configuration file format and security implications are not fully documented.

Execution

  • warning:ValidationWhile the script uses `curl` to send data, there is no explicit validation schema mentioned for inputs like the configuration file or the file to be uploaded, nor for the output from the script.

Code Execution

  • warning:Error HandlingThe provided bash script has basic error handling for `cat` and `base64` (`|| true`), but lacks robust error reporting or retry mechanisms for the `curl` command or potential issues with the Google Apps Script endpoint.
  • info:LoggingThe script uses `echo` for outputting the file URL and basic error messages, but there is no dedicated audit log file for actions performed.

Install

  • warning:Installation instructionInstallation requires manual deployment of a Google Apps Script and creation of a configuration file, but the exact format of the config file and the steps for verifying the script deployment are not fully detailed.

Errors

  • warning:Actionable error messagesError messages from the script are minimal (e.g., success message) and do not provide specific details or remediation steps for potential `curl` or script execution failures.

Protocol

  • warning:Idempotent retry & timeoutsThe `curl` command has a default timeout, but the script does not explicitly handle retries for non-idempotent operations, and there are no documented hard timeouts for the entire process.

Practical Utility

  • warning:Edge casesThe SKILL.md mentions a max file size and Hebrew filename support but does not detail other failure modes or recovery steps for common issues like network errors, invalid API keys, or file access problems.

Safety

  • warning:Halt on unexpected stateThe script uses `|| true` which can mask errors, and there is no explicit instruction to halt on unexpected pre-state like a missing config file or invalid API key.

安装

请先添加 Marketplace

/plugin marketplace add davepoon/buildwithclaude
/plugin install all-skills@buildwithclaude

质量评分

72 /100
1 day ago 分析

信任信号

最近提交5 days ago
星标2.9k
许可证MIT
状态
查看源代码