
gdrive
Google ドライブ操作(ファイル検索・アップロード・ダウンロード・共有)を gog CLI (v0.10.0) で行う。 「ドライブで検索」「ファイルアップロード」「フォルダ作成」「ファイル共有して」 「ドライブから取得」「ファイル移動」「ドライブの一覧」などで発火。
- Installs
- 95
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/naoterumaker/openclaw-gog-skills --skill gdrive- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads gdrive automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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 'user@example.com' in owners"
MIMEタイプ一覧
| タイプ | MIMEタイプ |
|---|---|
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>
移動
gog drive move <fileId> --parent <newFolderId>
リネーム
gog drive rename <fileId> "新しい名前"
削除
gog drive delete <fileId>
gog drive delete <fileId> --force # 確認スキップ
フォルダ操作
フォルダ作成
gog drive mkdir "新しいフォルダ"
gog drive mkdir "サブフォルダ" --parent <parentFolderId>
フォルダ内一覧
gog drive ls --parent <folderId>
共有
共有設定
# 閲覧者として共有
gog drive share <fileId> --email "user@example.com" --role reader
# 編集者として共有
gog drive share <fileId> --email "user@example.com" --role writer
# コメント権限
gog drive share <fileId> --email "user@example.com" --role commenter
権限一覧
gog drive permissions <fileId>
共有解除
gog drive unshare <fileId> <permissionId>
共有ロール
| ロール | 説明 |
|---|---|
reader | 閲覧のみ |
commenter | コメント可 |
writer | 編集可 |
owner | オーナー |
URL取得
gog drive url <fileId>
gog drive url <fileId1> <fileId2> <fileId3>
コメント
# コメント一覧
gog drive comments list <fileId>
# コメント追加
gog drive comments add <fileId> --content "コメント内容"
共有ドライブ
# 共有ドライブ一覧
gog drive drives
出力オプション
| オプション | 説明 |
|---|---|
--json | JSON出力 |
--plain | TSV出力 |
--max N | 最大N件 |
典型ワークフロー
ファイル検索→ダウンロード
# 1. 検索
gog drive search "月次レポート" --json
# 2. ダウンロード
gog drive download <fileId> --output "./月次レポート.pdf"
フォルダ作成→アップロード→共有
# 1. フォルダ作成
RESULT=$(gog drive mkdir "プロジェクトX資料" --json)
FOLDER_ID=$(echo "$RESULT" | jq -r '.id')
# 2. アップロード
gog drive upload "./proposal.pdf" --parent "$FOLDER_ID"
# 3. 共有
gog drive share "$FOLDER_ID" --email "client@example.com" --role reader
# 4. URL取得
gog drive url "$FOLDER_ID"
スプレッドシートをCSVでダウンロード
gog drive download <spreadsheetId> --export-format csv --output "./data.csv"
FileId の取得方法
URLから抽出:
https://docs.google.com/spreadsheets/d/<ID>/edit→<ID>部分https://drive.google.com/file/d/<ID>/view→<ID>部分https://docs.google.com/document/d/<ID>/edit→<ID>部分
ゴミ箱に移動
gog drive trash <fileId>
ブラウザで開く
gog open <fileId> # ブラウザでファイルを開く
gog open <url> # URLを開く
トップレベル download / upload
gog download <fileId> # Drive からダウンロード
gog download <fileId> --output "./file.pdf"
gog upload "./local-file.pdf" # Drive にアップロード
gog upload "./file.xlsx" --parent <folderId>
gog drive download / gog drive upload と同等のショートカット。
注意事項
- ゴミ箱:
deleteはゴミ箱に移動(完全削除ではない) - Google形式: スプシ/ドキュメントはダウンロード時にエクスポート形式を指定
- 共有ドライブ:
--shared-driveオプションが必要な場合あり - 大きなファイル: タイムアウトを長めに設定
FAQ
What does the gdrive skill do?
Google ドライブ操作(ファイル検索・アップロード・ダウンロード・共有)を gog CLI (v0.10.0) で行う。 「ドライブで検索」「ファイルアップロード」「フォルダ作成」「ファイル共有して」 「ドライブから取得」「ファイル移動」「ドライブの一覧」などで発火。
How do I install gdrive?
Run npx skills add https://github.com/naoterumaker/openclaw-gog-skills --skill gdrive in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/gdrive/ (personal) or .claude/skills/gdrive/ (project).
Which AI agents can use gdrive?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is gdrive safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains gdrive?
It is published by naoterumaker in naoterumaker/openclaw-gog-skills. It has 95 recorded installs.
More from naoterumaker/openclaw-gog-skills
gcontacts
naoterumaker/openclaw-gog-skills
Google 連絡先操作(検索・作成・更新・削除)を gog CLI (v0.10.0) で行う。 「連絡先検索」「〇〇さんの電話番号」「連絡先追加」「連絡先一覧」 「アドレス帳から探して」「連絡先を更新」などで発火。
gog
naoterumaker/openclaw-gog-skills
Google Workspace CLI (gog v0.10.0) for Gmail, Calendar, Drive, Sheets, Docs, Contacts, Tasks. 「メール送って」「カレンダー見せて」「ドライブにアップロード」「スプシ作成」「連絡先検索」「タスク追加」などで発火。 認証済みアカウント: (gogで認証したアカウント)
gcal
naoterumaker/openclaw-gog-skills
Google カレンダー操作(予定確認・作成・更新・削除)を gog CLI (v0.10.0) で行う。 「今日の予定は?」「明日のスケジュール」「ミーティング入れて」「予定を登録」 「カレンダー確認」「予定をキャンセル」「Google Meet作成」などで発火。
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.