google-drive

Automate Google Drive file management via a Ruby CLI.

4|Updated Sep 16, 2023
One-click install
npx skills add https://github.com/craiggwilson/nix-config --skill google-drive-craiggwilson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-drive
Source: https://github.com/craiggwilson/nix-config/tree/main/hdwlinux/modules/ai/agent/skills/google-drive-skill/skill
Command: npx skills add https://github.com/craiggwilson/nix-config --skill google-drive-craiggwilson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-apis-drive_v3, googleauth, and includes scripts (resource) components.

What problem does it solve?

This skill enables developers and admins to automate Google Drive file management, eliminating repetitive manual tasks such as uploading, sharing, and organizing files.

Core Features & Use Cases

  • Upload files to Drive (with optional conversion to Google formats)
  • Download files and export Google Docs/Sheets/Slides
  • Share files with users or publicly, and organize files within folders

Quick Start

Use the Drive Manager CLI to perform common operations such as upload, download, or share. Example: ~/.ai/agent/skills/google-drive-skill/scripts/drive_manager.rb upload --file ./document.txt

Frequently Asked Questions about google-drive

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

FAQPage Schema
How do I automate Google Drive file uploads and downloads from the command line?

You can automate Google Drive file uploads and downloads by running the Ruby CLI to batch process files, optionally converting formats during transfer. It returns structured JSON for integration into wider workflows.

Can I convert markdown files to Google Docs automatically?

Yes, you can convert markdown to Google Docs automatically by using the upload command with convert-to options. The CLI handles the format transformation and uploads the resulting document to Drive.

How do I share Google Drive files and manage permissions in bulk?

You share Google Drive files and manage permissions in bulk by executing the Ruby CLI share command. It supports sharing files with specific users or publicly, and organizes files within designated folders.

Do I need the google-apis-drive_v3 and googleauth gems to use this Drive automation CLI?

Yes, you need the google-apis-drive_v3 and googleauth gems installed because the CLI implements the Drive API using these dependencies for authentication and file management operations.

How do I export Google Docs, Sheets, and Slides via the command line?

You export Google Docs, Sheets, and Slides via the command line by executing the download command. The CLI manages the API requests to download and export your Drive files into local formats.

What is the best way to organize folders and batch process files in Google Drive?

The best way to organize folders and batch process files in Google Drive is using a Ruby CLI that automates folder organization and batch file operations, returning structured JSON for verification.