skills/tier-3-business-ops/google-drive/SKILL.md
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.
npx skillsauth add pbc-os/agent-skills-public google-driveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
gws CLI installed and authenticated with Drive scopegws auth login -s drive if not already donegws 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.
# 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 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.pdf
# 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.csv
gws drive files create --json '{
"name": "2026 Invoices",
"mimeType": "application/vnd.google-apps.folder",
"parents": ["PARENT_FOLDER_ID"]
}'
# Share with a specific person (editor access)
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "writer",
"type": "user",
"emailAddress": "[email protected]"
}'
# Share with view-only access
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "user",
"emailAddress": "[email protected]"
}'
# Share via link (anyone with the link can view)
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{
"role": "reader",
"type": "anyone"
}'
# 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)"}'
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 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\"}"
done
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--format json and pipe to jq for extracting specific fields--dry-run before delete operations--page-all for complete file listings (auto-paginates)q parameter for precise queriesgoogle-workspace — Required setup (install and auth)google-sheets — Spreadsheet operationsgoogle-docs — Document operationsgmail — Email attachment managementYour Drive is your filing cabinet. Keep it organized and your agent can find anything.
tools
Generate and iteratively refine USPTO-style patent figure drawings from provisional patent application markdown files, using nano-banana for v1 generation and targeted single-fix edits for v2+ iteration.
data-ai
Weekly revenue / sales forecasting for small businesses with multiple locations or product lines. Blends recent trend + seasonal baseline + YoY growth with per-entity holiday multipliers and week-of-month adjustments. Ships autoresearch-compatible eval and parameters so you can tune it on your own historical data.
data-ai
Analyze email, calendar, and file patterns to discover repeatable workflows that AI agents can automate.
testing
Automated daily digest for small business owners. Combines email triage, calendar agenda, open tasks, and business KPIs into a single morning briefing. Composable — works with whatever data sources are available. Urgent emails require body inspection and explicit escalation signals — never classified from sender/timing metadata alone.