google-drive
Skill10 starsChanged 7 months agoMITView on GitHub
File management for small businesses. Organize invoices, contracts, SOPs, product photos, and team documents. Search, upload, share, and manage permissions. Built on the gws CLI.
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Run gws auth login -s drive if not already done
- Very specific: line 188
Use --format json and pipe to jq for extracting specific fields
- Very specific: line 189
Always use --dry-run before delete operations
- Very specific: line 190
Use --page-all for complete file listings (auto-paginates)
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Drive
File management built for how small businesses actually organize documents.
Uses the gws CLI for all Drive operations. See the google-workspace skill for setup.
Triggers
- "find a file"
- "upload to drive"
- "share this document"
- "organize files"
- "list my drive files"
- Any request involving file storage, sharing, or organization
Prerequisites
gwsCLI installed and authenticated with Drive scope- Run
gws auth login -s driveif not already done
Core Commands
gws drive +upload # Upload a file with metadata
gws drive files list # List files
gws drive files get # Get file metadata
gws drive files create # Create a file/folder
gws drive files export # Export Google Docs/Sheets to PDF, etc.Common Operations
List recent files
# Last 10 files, newest first
gws drive files list --params '{"pageSize": 10, "orderBy": "modifiedTime desc"}' --format table
# Search by name
gws drive files list --params '{"q": "name contains '\''invoice'\''", "pageSize": 20}'Upload a file
# Upload with automatic MIME type detection
gws drive +upload
# Upload to a specific folder
gws drive files create \
--params '{"uploadType": "multipart"}' \
--json '{"name": "Q1-Report.pdf", "parents": ["FOLDER_ID"]}' \
--upload ./Q1-Report.pdfDownload / Export
# Download a file
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o ./downloaded-file.pdf
# Export a Google Doc as PDF
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o ./document.pdf
# Export a Google Sheet as CSV
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "text/csv"}' -o ./data.csvCreate a folder
gws drive files create --json '{
"name": "2026 Invoices",
"mimeType": "application/vnd.google-apps.folder",
"parents": ["PARENT_FOLDER_ID"]
}'Share a file
# Share with a specific person (editor access)
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "writer",
"type": "user",
"emailAddress": "person@example.com"
}'
# Share with view-only access
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "user",
"emailAddress": "person@example.com"
}'
# Share via link (anyone with the link can view)
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "anyone"
}'Search with Drive query syntax
# Find PDFs
gws drive files list --params '{"q": "mimeType=\"application/pdf\""}'
# Find files in a specific folder
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}'
# Find files modified in last 7 days
gws drive files list --params '{"q": "modifiedTime > '\''2026-01-08T00:00:00'\''", "orderBy": "modifiedTime desc"}'
# Find shared files
gws drive files list --params '{"q": "sharedWithMe = true", "pageSize": 10}'
# Find large files (for storage cleanup)
gws drive files list --params '{"q": "quotaBytesUsed > 10000000", "orderBy": "quotaBytesUsed desc", "pageSize": 20, "fields": "files(name,size,quotaBytesUsed,modifiedTime)"}'SMB File Organization
Recommended folder structure
My Drive/
├── Business Operations/
│ ├── SOPs/ # Standard operating procedures
│ ├── Checklists/ # Opening/closing, inventory, etc.
│ └── Policies/ # Employee handbook, safety, etc.
├── Finance/
│ ├── Invoices/
│ │ ├── 2026/
│ │ │ ├── January/
│ │ │ └── February/
│ │ └── 2024/
│ ├── Receipts/
│ ├── Tax Documents/
│ └── Reports/
├── Customers/
│ ├── Contracts/
│ ├── Correspondence/
│ └── Orders/
├── Vendors/
│ ├── Agreements/
│ ├── Price Lists/
│ └── Invoices Received/
├── Marketing/
│ ├── Photos/
│ ├── Ad Creatives/
│ └── Campaigns/
└── Team/
├── Meeting Notes/
├── Schedules/
└── Training Materials/Create this structure automatically
# Create top-level folders
for folder in "Business Operations" "Finance" "Customers" "Vendors" "Marketing" "Team"; do
gws drive files create --json "{\"name\": \"$folder\", \"mimeType\": \"application/vnd.google-apps.folder\"}"
doneIntegration with Other Skills
gmail— Save email attachments to Drivegoogle-sheets— Drive is where sheets livegoogle-docs— Drive is where docs livegoogle-chat— Share Drive files in Chat spacesmorning-briefing— Reference important docs in daily briefing
Tips
- Use
--format jsonand pipe tojqfor extracting specific fields - Always use
--dry-runbefore delete operations - Use
--page-allfor complete file listings (auto-paginates) - Google Drive search syntax is powerful — use
qparameter for precise queries - Export Google-native files (Docs, Sheets) before downloading — they have no binary content
Related Skills
google-workspace— Required setup (install and auth)google-sheets— Spreadsheet operationsgoogle-docs— Document operationsgmail— Email attachment management
Your Drive is your filing cabinet. Keep it organized and your agent can find anything.
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- openai/plugins★ 7.4ksame name
- Lilac-Labs/gini-agent★ 1.9ksame name
- Open-Curiosity/gini-agent★ 1.9ksame name
- sanjay3290/ai-skills★ 424same name
- refly-ai/refly-skills★ 203same name
- AceDataCloud/Skills★ 17same name
- apideck-libraries/api-skills★ 4same name
- razbakov/skills★ 4same name
- ZoolCoder/scoutjobs★ 4same name
- flopperj/dotfiles-core★ 3same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use google-gmail, linear and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
leolionartSkillgoogle-gmail
Operate Gmail via the Google Workspace CLI (gws) — send emails, reply with threading, triage inbox, and stream new messages as NDJSON. Use when users ask to send/forward/reply emails, check inbox summary, or automate email workflows.
Also in 3 projects that use this
OpenAISkilllinear
Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.
Also in 4 projects that use this
ElasticSkillcreate-skill
Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.
Also in 3 projects that use this
In this repository23 other files it gives its agents.
- data-lake-starterSkill
- google-workspaceSkill
- mcp-guideSkill
- secrets-managerSkill
- semantic-layer-auditSkill
- gmailSkill
- google-calendarSkill
- google-chatSkill
- slack-directorySkill
- slackSkill
- google-docsSkill
- google-sheetsSkill
- google-tasksSkill
- brand-identitySkill
- creative-matrixSkill
- google-adsSkill
- nano-bananaSkill
- autoresearchSkill
- long-running-agentSkill
- morning-briefingSkill
- playbook-discoverySkill
- revenue-forecasterSkill
- patent-figureSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

