google-drive

Manage Google Drive files and folders through OAuth-authenticated API operations.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/FahadImdad/Nexus-Fahad --skill google-drive-fahadimdad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-drive
Source: https://github.com/FahadImdad/Nexus-Fahad/tree/main/00-system/skills/google/google-drive
Command: npx skills add https://github.com/FahadImdad/Nexus-Fahad --skill google-drive-fahadimdad

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-auth, google-auth-oauthlib, google-api-python-client, and includes scripts (resource) components.

What problem does it solve? Manually uploading, downloading, organizing, and sharing files in Google Drive through the web interface is slow and repetitive, especially when handling many files or integrating Drive operations into automated workflows. ## Core Features & Use Cases - File Operations: List, search, upload, download, move, copy, rename, and delete files and folders via the Google Drive API. - Google Docs Export: Download Google Docs, Sheets, and Slides in formats like PDF, DOCX, XLSX, CSV, and PPTX. - Sharing Management: Share files with specific users using reader, commenter, or writer roles and inspect existing permissions. - Use Case: Download a quarterly report from Drive as a PDF, rename it, move it to an archive folder, and share it with a stakeholder — all from a single conversation. ## Quick Start Ask the assistant to list the files in your Google Drive root folder or search Drive for a specific document by name.

Frequently Asked Questions about google-drive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload and download files to Google Drive with Python?

Use the google-api-python-client library with MediaFileUpload for uploads and MediaIoBaseDownload for downloads. This Skill wraps those calls in a CLI script supporting commands like upload, download, list, and search with a folder ID parameter.

How do I export a Google Doc as PDF using the Drive API?

Call the files().export_media method with the target MIME type such as application/pdf. Google Docs support pdf, docx, txt, and html exports, while Sheets support pdf, xlsx, and csv, and Slides support pdf and pptx.

What credentials does the Google Drive API require?

You need OAuth 2.0 credentials created in Google Cloud Console with the Drive API enabled, configured as a Desktop app. Store the client ID, client secret, and project ID in a .env file, then run the login flow to authorize access.

How do I share a Google Drive file with specific permissions?

Create a permission resource on the file with type user and a role of reader, commenter, or writer, specifying the recipient's email address. You can also disable the notification email and list existing permissions on any file.

Why does Google Drive authentication fail with missing credentials?

Authentication fails when the .env file lacks GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, or GOOGLE_PROJECT_ID, or when required packages are not installed. Run the auth check script first; exit code 2 indicates missing credentials or dependencies.

Does deleting a Google Drive file remove it permanently?

By default, delete moves the file to trash by setting the trashed flag, so it can be recovered. Permanent deletion requires explicitly passing the permanent flag, which calls files().delete and cannot be undone.