Google DriveおよびGoogle Sheetsを操作するスキル。ファイルの閲覧・検索・ダウンロード、スプレッドシートの読み書き(更新・追記・クリア・シート管理)を行います。
Google DriveおよびGoogle Sheets APIを利用して、ファイルの検索・閲覧・ダウンロード、スプレッドシートの読み書きを行うスキルです。
GCPプロジェクト設定
Secret Managerにクレデンシャルを登録
GOOGLE_WORKSPACE_CREDENTIALS として登録:gcloud secrets create GOOGLE_WORKSPACE_CREDENTIALS --project=YOUR_PROJECT_ID
cat downloaded-credentials.json | gcloud secrets versions add GOOGLE_WORKSPACE_CREDENTIALS --data-file=- --project=YOUR_PROJECT_ID
gcloud secrets create GOOGLE_WORKSPACE_TOKEN --project=YOUR_PROJECT_ID
ライブラリのインストール
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib google-cloud-secret-manager
認証(初回のみ)
gcloud auth application-default login でGCP認証を行ってください。python scripts/auth.py を実行してGoogle OAuth認証を行ってください。全てのスクリプトは scripts/ ディレクトリに配置されています。
python scripts/auth.pyファイル一覧取得
python scripts/list_files.py --query "name contains '予定表'"--limit <件数> (デフォルト10), --query <クエリ 文字列>ファイルダウンロード
python scripts/download_file.py --file_id <FILE_ID> --output <PATH>シート読み込み
python scripts/read_sheet.py --spreadsheet_id <ID> --range "Sheet1!A1:E10"--info でシート名・ID一覧を表示。--format json|csv|table で出力形式を指定。セル値の更新
python scripts/write_sheet.py --spreadsheet_id <ID> update --range "Sheet1!A1:C2" --values '[["a","b","c"],["d","e","f"]]'--raw で数式解釈を無効化。行の追記(末尾追加)
python scripts/write_sheet.py --spreadsheet_id <ID> append --range "Sheet1!A:E" --values '[["新規","データ"]]'セル値のクリア
python scripts/write_sheet.py --spreadsheet_id <ID> clear --range "Sheet1!A1:C10"シートの追加
python scripts/write_sheet.py --spreadsheet_id <ID> add-sheet --title "新シート"シートの削除
python scripts/write_sheet.py --spreadsheet_id <ID> delete-sheet --sheet_id <SHEET_ID>read_sheet.py --info で確認できます。credentials.json や token.json を配置する必要はありません。GCP_PROJECT_ID 環境変数でプロジェクトIDを指定できます(未設定の場合はADCから自動取得)。python scripts/auth.py で再認証が必要です。Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer