gw-drive

gw-drive is a skill for Claude Code from Elnora-AI/elnora-google-workspace. It costs 71 tokens per session (1,465 once invoked), scanned A, original, Apache-2.0.

A command-line tool for Google Drive, Google's online file storage service. It can find, read, upload, download, organize, and share Drive files.

In plain words
What is it for?
Use it to search folders, move or rename files, convert documents, create folders, manage sharing, and send files to or from a computer.
Why use it?
It lets an agent manage Drive files through commands instead of requiring manual work in a browser.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the google-workspace plugin — 13 skills, 4 commands, 1 agent shipped together

Good fit Use it to search folders, move or rename files, convert documents, create folders, manage sharing, and send files to or from a computer.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Elnora-AI/elnora-google-workspace
Claude Code
/plugin install google-workspace

Made for: Claude Code.

Or install google-workspace, the plugin that ships this one along with the rest of its 13 skills, 4 commands, 1 agent.

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 gw-drive

README.md
[![agentmods](https://agentmods.dev/badge/skills/elnora-ai/elnora-google-workspace/gw-drive/github.svg)](https://agentmods.dev/skills/elnora-ai/elnora-google-workspace/gw-drive)
Your own site
<a href="https://agentmods.dev/skills/elnora-ai/elnora-google-workspace/gw-drive"><img src="https://agentmods.dev/badge/skills/elnora-ai/elnora-google-workspace/gw-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 gw-drive

Your own site · 80×15
<a href="https://agentmods.dev/skills/elnora-ai/elnora-google-workspace/gw-drive"><img src="https://agentmods.dev/badge/skills/elnora-ai/elnora-google-workspace/gw-drive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 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.00071 $0.01465
Opus 5 $0.00036 $0.00732
Sonnet 5 $0.00014 $0.00293
Haiku 4.5 $0.00007 $0.00146

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

Security

Grade A, and why

gw-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 12d 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/gw-drive/SKILL.md · 129 lines

How it starts

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

Drive

Invocation

CLI="python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py"

Commands

$CLI drive list [--query "RAW_Q"] [--name-contains S] [--folder ID_OR_URL] [--type folder|doc|sheet|slide|pdf|image|any] [--trashed] [--limit 20] --compact
$CLI drive get FILE_ID_OR_URL --compact
$CLI drive upload PATH [--folder ID_OR_URL] [--name N] [--mime M] [--convert] --compact
$CLI drive download FILE_ID_OR_URL --dest DIR_OR_PATH [--format pdf|docx|xlsx|pptx|csv|txt|md|html] [--force] --compact
$CLI drive export FILE_ID_OR_URL --format F [--dest DIR_OR_PATH] [--force] --compact
$CLI drive mkdir NAME [--parent ID_OR_URL] --compact
$CLI drive move FILE_ID --to FOLDER_ID_OR_URL --compact
$CLI drive rename FILE_ID --name NEW_NAME --compact
$CLI drive copy FILE_ID [--name N] [--folder ID_OR_URL] --compact
$CLI drive trash FILE_ID --compact
$CLI drive untrash FILE_ID --compact
$CLI drive share FILE_ID --with EMAIL --role reader|commenter|writer [--no-notify] [--message TEXT] --compact
$CLI drive shares FILE_ID --compact
$CLI drive unshare FILE_ID --permission-id ID --compact

IDs and URLs

Every FILE/FOLDER argument accepts a bare ID or a full URL — Drive file links (/file/d/ID), Docs/Sheets/Slides links (/document/d/ID etc.), folder links (/folders/ID), and open?id=ID links.

Safety stances (deliberate)

  • No permanent delete. trash only marks files trashed (recoverable); emptying the trash must be done by a human in the Drive UI.
  • No anyone-with-link creation. share grants access to specific email addresses only. Public links must be created by a human in the Drive UI. shares still lists existing anyone-with-link permissions so you can audit them.

Downloads and exports

  • Binary files (pdf, images, zip, ...) download as-is; --format is rejected.
  • Google-native files (Docs/Sheets/Slides) cannot be downloaded raw — pass --format, validated per source type:
    • Doc: pdf docx txt md html
    • Sheet: pdf xlsx csv
    • Slides: pdf pptx txt
  • Existing local files are never overwritten unless --force is passed.
  • --dest may be a directory (keeps the Drive name) or an exact file path.

Read the full file on GitHub · 129 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. 12d ago First seen · 129 lines · 71 tokens per session scan A 192618d2f363

Subscribe to this mod's changes

gw-drive is a skill published in the GitHub repository Elnora-AI/elnora-google-workspace (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 71 tokens to every session and 1,465 once invoked, about $0.0004 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.