codedao12

Google Sheets API

オフィス効率化v1.0.3
作者:codedao12更新日 2026-05-17google-sheets-api@clawhub_codedao12/google-sheets-api
表計算#Google Sheets#Batch

AlphaMoatによると、2026-09時点でGoogle Sheets APIのダウンロード数は4,259、スター数は4で、AIスキル全体5,078件中2,324位、オフィス効率化では435件中196位です。

インストール数
126
ダウンロード数
4259
スター数
4
総合順位
#2,324
全体の上位 46% · オフィス効率化の上位 46%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗12639484-
SkillHub ↗12642594—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

読み取り、書き込み、追記、バッチ処理、書式設定、シート管理に対応し、JSON データをコマンドラインの処理に利用できます。書き込み、クリア、シート削除、raw batch コマンドはデータを変更または削除する可能性があります。まず本番以外のシートでテストし、対象シートだけに権限を付与してください。サービスアカウントキーをログに出したり、コードリポジトリに含めたりしないでください。

資料公開日 2026-10-29

できること

  • シート範囲を読み取り、JSON 出力を整理する
  • バッチ更新や書式変更を計画する

使う場面

  • サービスアカウントに必要最小限のシート権限を与え、読み書きの範囲を明確にしている場合

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

指定範囲を読み取るコマンドを作成して。実行はしないで。
対象範囲、バックアップ、資格情報の扱いを含む一括更新の安全確認リストを作って。

月次の推移

ダウンロード数4259
3126373543432026-05 · ダウンロード数 32102026-06 · ダウンロード数 33652026-07 · ダウンロード数 36282026-08 · ダウンロード数 38212026-09 · ダウンロード数 425926-0526-09
スター数4
3452026-05 · スター数 42026-06 · スター数 42026-07 · スター数 42026-08 · スター数 42026-09 · スター数 426-0526-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094259—4
2026-083821+5.3%4
2026-073628+7.8%4
2026-063365+4.8%4
2026-053210—4

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

2.6 KB・ClawHub v1.0.3
---
name: google-sheet-api
description: OpenClaw skill that installs a Google Sheets CLI with setup steps and commands for read/write, batch, formatting, and sheet management.
---

# Google Sheets API Skill (Advanced)

## Purpose
Provide a production-ready Google Sheets CLI for OpenClaw. This skill supports data reads/writes, batch operations, formatting, and sheet management with service account authentication.
すべて表示(全 89 行)
## Best fit
- You need a repeatable CLI for automation tasks.
- You want JSON-in/JSON-out for pipelines.
- You need more than basic read/write (formatting, sheet ops, batch updates).

## Not a fit
- You must use end-user OAuth consent flows (this skill is service-account focused).
- You only need lightweight, one-off edits.

## One-time setup
1. Create or select a Google Cloud project.
2. Enable the Google Sheets API.
3. Create a service account and download its JSON key.
4. Share target spreadsheets with the service account email.

## Install
```bash
cd google-sheet-api
npm install
```

## Run
```bash
node scripts/sheets-cli.js help
node scripts/sheets-cli.js read <spreadsheetId> "Sheet1!A1:C10"
node scripts/sheets-cli.js append <spreadsheetId> "Sheet1!A:B" '@data.json'
```

You can also use npm:
```bash
npm run sheets -- read <spreadsheetId> "Sheet1!A1:C10"
```

## Credentials
Supported sources (first match wins):
- `GOOGLE_SHEETS_CREDENTIALS_JSON` (inline JSON string)
- `GOOGLE_SERVICE_ACCOUNT_KEY` (file path)
- `GOOGLE_SHEETS_KEY_FILE` (file path)
- `GOOGLE_APPLICATION_CREDENTIALS` (file path)
- `./service-account.json`, `./credentials.json`, `./google-service-account.json`
- `~/.config/google-sheets/credentials.json`

## Input conventions
- JSON values can be inline or loaded from file using `@path`.
- Write/append expect a 2D array of values.

Example `data.json`:
```json
[["Name","Score"],["Alice",95]]
```

## Command map (high level)
Data:
- `read`, `write`, `append`, `clear`, `batchGet`, `batchWrite`

Formatting:
- `format`, `getFormat`, `borders`, `merge`, `unmerge`, `copyFormat`

Layout:
- `resize`, `autoResize`, `freeze`

Sheets:
- `create`, `info`, `addSheet`, `deleteSheet`, `renameSheet`

Advanced:
- `batch` (raw `spreadsheets.batchUpdate` requests)

## Operational guidance
- Prefer read-only scope for read workflows when possible.
- Add retry with exponential backoff for `429` and transient `5xx` errors.
- Keep request payloads small to avoid limit issues.

## Expected output
- JSON to stdout; non-zero exit code on errors.

## Security notes
- Never log or commit service account keys.
- Share spreadsheets only with the service account email required by this skill.

オフィス効率化の人気スキル

codedao12のその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。