google-drive

google-drive is a skill for Claude Code, Codex from pbc-os/smb-starter-kit. It costs 42 tokens per session (1,560 once invoked), scanned A, original, MIT.

A Google Drive file-management assistant for small businesses. Google Drive is Google's online storage service for files and folders.

In plain words
What is it for?
Use it to search and list files, upload files, create files or folders, retrieve file details, share items, manage permissions, and export Google documents or spreadsheets to formats such as PDF.
Why use it?
It reduces the effort of finding, organising, sharing, and exporting business files. It provides one command-based way to handle documents such as invoices, contracts, photos, and team materials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search and list files, upload files, create files or folders, retrieve file details, share items, manage permissions, and export Google documents or spreadsheets to formats such as PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pbc-os/smb-starter-kit/google-drive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pbc-os/smb-starter-kit --skill google-drive
Clone the repo
git clone --depth 1 https://github.com/pbc-os/smb-starter-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-drive

README.md
[![agentmods](https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/google-drive/github.svg)](https://agentmods.dev/skills/pbc-os/smb-starter-kit/google-drive)
Your own site
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/google-drive"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/google-drive/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-drive

Your own site · 80×15
<a href="https://agentmods.dev/skills/pbc-os/smb-starter-kit/google-drive"><img src="https://agentmods.dev/badge/skills/pbc-os/smb-starter-kit/google-drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,560 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01560
Opus 5 $0.00021 $0.00780
Sonnet 5 $0.00008 $0.00312
Haiku 4.5 $0.00004 $0.00156

Measured 9d ago against content hash c9447a70def8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

google-drive scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tier-3-business-ops/google-drive/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  • gws CLI installed and authenticated with Drive scope
  • Run gws auth login -s drive if 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.pdf

Download / 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.csv

Create a folder

gws drive files create --json '{
  "name": "2026 Invoices",
  "mimeType": "application/vnd.google-apps.folder",
  "parents": ["PARENT_FOLDER_ID"]
}'

Read the full file on GitHub · 204 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 204 lines · 42 tokens per session scan A c9447a70def8

Subscribe to this mod's changes

google-drive is a skill published in the GitHub repository pbc-os/smb-starter-kit (10 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 1,560 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.