gdrive

gdrive is a skill for Claude Code, Codex from naoterumaker/openclaw-gog-skills. It costs 80 tokens per session (1,865 once invoked), scanned A, original, MIT.

A command-line skill for managing files and folders in Google Drive, Google's online file-storage service. It can search, list, upload, download, create, move, and share Drive items.

In plain words
What is it for?
Use it to find reports or other files, inspect folders, upload or download files, create folders, move items, and share files from Google Drive.
Why use it?
It lets a coding agent handle Drive files from commands instead of requiring manual work in the web interface. Searches can be narrowed by names, file types, owners, or folders.

Skill for Claude CodeCodex

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

Good fit Use it to find reports or other files, inspect folders, upload or download files, create folders, move items, and share files from Google Drive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/naoterumaker/openclaw-gog-skills/gdrive
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 naoterumaker/openclaw-gog-skills --skill gdrive
Clone the repo
git clone --depth 1 https://github.com/naoterumaker/openclaw-gog-skills

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 gdrive

README.md
[![agentmods](https://agentmods.dev/badge/skills/naoterumaker/openclaw-gog-skills/gdrive/github.svg)](https://agentmods.dev/skills/naoterumaker/openclaw-gog-skills/gdrive)
Your own site
<a href="https://agentmods.dev/skills/naoterumaker/openclaw-gog-skills/gdrive"><img src="https://agentmods.dev/badge/skills/naoterumaker/openclaw-gog-skills/gdrive/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 gdrive

Your own site · 80×15
<a href="https://agentmods.dev/skills/naoterumaker/openclaw-gog-skills/gdrive"><img src="https://agentmods.dev/badge/skills/naoterumaker/openclaw-gog-skills/gdrive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,865 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.00080 $0.01865
Opus 5 $0.00040 $0.00932
Sonnet 5 $0.00016 $0.00373
Haiku 4.5 $0.00008 $0.00186

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

Security

Grade A, and why

gdrive 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.

gdrive/SKILL.md · 326 lines

How it starts

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

Google Drive 操作スキル (gog v0.10.0)

gog CLI でGoogleドライブを操作する。

実行パス: gog

認証アカウント: (gogで認証したアカウント)

Execution Notes

  • exec ツールで実行時、timeout: 60 を指定
  • 大きなファイルのアップロード/ダウンロードは timeout: 300 推奨

ファイル一覧

ルートフォルダ

gog drive ls
gog drive ls --max 20

特定フォルダ

gog drive ls --parent <folderId>

詳細出力

gog drive ls --json

ファイル検索

テキスト検索

gog drive search "レポート"
gog drive search "プロジェクト計画"

高度な検索(Driveクエリ構文)

# ファイルタイプで絞り込み
gog drive search "mimeType='application/pdf'"
gog drive search "mimeType='application/vnd.google-apps.spreadsheet'"
gog drive search "mimeType='application/vnd.google-apps.document'"

# 特定フォルダ内
gog drive search "name contains '請求書' and '<folderId>' in parents"

# 所有者
gog drive search "name contains 'report' and '[email protected]' in owners"

MIMEタイプ一覧

タイプ MIMEタイプ
PDF application/pdf
Googleスプレッドシート application/vnd.google-apps.spreadsheet
Googleドキュメント application/vnd.google-apps.document
Googleスライド application/vnd.google-apps.presentation
フォルダ application/vnd.google-apps.folder
画像 image/jpeg, image/png
Word application/vnd.openxmlformats-officedocument.wordprocessingml.document
Excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

ファイル操作

メタデータ取得

gog drive get <fileId>

ダウンロード

gog drive download <fileId>
gog drive download <fileId> --output "./local-file.pdf"

Googleドキュメントのエクスポート

# スプレッドシート → CSV
gog drive download <spreadsheetId> --export-format csv

# ドキュメント → PDF
gog drive download <docId> --export-format pdf

# スライド → PPTX
gog drive download <slideId> --export-format pptx

アップロード

gog drive upload "./local-file.pdf"
gog drive upload "./file.xlsx" --parent <folderId>

コピー

gog drive copy <fileId> "コピー名"
gog drive copy <fileId> "コピー名" --parent <folderId>

Read the full file on GitHub · 326 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 · 326 lines · 80 tokens per session scan A 58f4c825a7a1

Subscribe to this mod's changes

gdrive is a skill published in the GitHub repository naoterumaker/openclaw-gog-skills (4 stars, last pushed 6mo ago), licensed MIT. It adds 80 tokens to every session and 1,865 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.