技能 google-drive-automation
📦

google-drive-automation

安全

Automate Google Drive Workflows

Manually managing Google Drive files through the web interface is slow and error-prone. This skill provides comprehensive documentation for automating file operations, folder organization, sharing, and searches through the Rube MCP toolkit.

支援: Claude Codex Code(CC)
🥉 74 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「google-drive-automation」。 Find all PDF files in my Drive that were modified this week

預期結果:

Found 12 PDF files modified in the last 7 days. Here are the results: Q4-Financial-Report.pdf (modified 2 days ago), Invoice-1042.pdf (modified 3 days ago), Contract-Draft.pdf (modified 5 days ago), etc.

正在使用「google-drive-automation」。 Upload report.docx to my Projects folder

預期結果:

Successfully uploaded report.docx to the 'Projects' folder. File ID: 1a2B3c4D5e6F7g8H. Upload completed at 2:34 PM.

正在使用「google-drive-automation」。 Create a folder structure for the new marketing campaign

預期結果:

Created folder 'Q2-Marketing-Campaign' in root. Created 3 subfolders inside: 'Assets', 'Copy', and 'Reports'. All folders verified and ready for use.

安全審計

安全
v1 • 2/25/2026

All 163 static analysis findings are false positives from markdown code blocks. This is a documentation-only skill with no executable code. Backtick patterns (152 findings) are markdown code spans for API tool names, not Ruby/shell commands. Crypto algorithm flags (10 findings) are legitimate API parameter names. The single URL is documented configuration for Rube MCP endpoint. No security risks present.

1
已掃描檔案
199
分析行數
0
發現項
1
審計總數
未發現安全問題
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
100
安全
91
規範符合性

你能建構什麼

Automate File Backup Workflows

Upload local files to Google Drive folders automatically, organize by date or project, and verify successful transfers with metadata checks.

Search and Organize Large Drives

Find specific files across multiple folders using Drive query syntax, then reorganize into structured folder hierarchies with proper parent references.

Manage Access Permissions

Share files with users or groups, set appropriate reader/writer roles, and audit permissions using list and update operations.

試試這些提示

Upload a File to Google Drive
Upload the file [filename] to my Google Drive in the folder named [folder name]. The file is located at [local path].
Search for Files by Type and Date
Search my Google Drive for all [file type] files modified after [date]. Show me the results with file names and modification dates.
Create Organized Folder Structure
Create a folder named '[project name]' in my Google Drive root, then create subfolders named '[subfolder1]', '[subfolder2]', and '[subfolder3]' inside it.
Share File with Custom Permissions
Share the file named '[filename]' with [email address] giving them [role] access. Verify the permission was set correctly.

最佳實務

  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas before executing workflows
  • Use GOOGLEDRIVE_FIND_FILE to resolve folder names to IDs before creating child folders or moving files
  • Set MIME type parameter only when exporting Google Workspace formats; omit it for native file downloads
  • Follow nextPageToken in search results until exhausted to ensure complete data retrieval
  • Verify connection status shows ACTIVE before running any Google Drive operations

避免

  • Passing folder names directly to parent_id parameter instead of resolving to folder IDs first
  • Setting mime_type parameter when downloading native files (PDF, images, Office docs), which causes errors
  • Creating complex queries with more than 5-10 OR clauses, which exceed Drive query complexity limits
  • Using wildcards with asterisks in name searches instead of the contains operator

常見問題

Why does my file upload fail with 's3key required'?
The upload tool requires files to be in internal S3 storage first. Use the Rube MCP storage tools to upload your local file and obtain an s3key, then pass that key to GOOGLEDRIVE_UPLOAD_FILE.
How do I find the folder ID for my target folder?
Use GOOGLEDRIVE_FIND_FILE with a query like 'name contains "Projects"' and set the folder scope. The response will include the folder ID you can use as parent_id.
When should I set the mime_type parameter?
Only set mime_type when downloading Google Workspace files (Docs, Sheets, Slides) to export them to other formats. Omit this parameter for native files like PDFs, images, or Office documents.
Why do I get 403 PERMISSION_DENIED errors?
This usually means your OAuth connection lacks sufficient scopes for shared drives. Re-authenticate with the RUBE_MANAGE_CONNECTIONS tool and ensure you grant the requested permissions.
What is the difference between GOOGLEDRIVE_FIND_FILE and GOOGLEDRIVE_LIST_FILES?
GOOGLEDRIVE_FIND_FILE uses Drive query syntax for flexible searching across your entire Drive. GOOGLEDRIVE_LIST_FILES browses contents within a specific folder when you already know the folder ID.
How do I move a file to a different folder?
Use GOOGLEDRIVE_MOVE_FILE with the file_id, add_parents (destination folder ID), and remove_parents (source folder ID) parameters. Both must be folder IDs, not names.

開發者詳情

檔案結構

📄 SKILL.md