codedao12

Google Sheet API

オフィス効率化v1.0.1
作者:codedao12更新日 2026-05-11全 2 バージョン · 最新版の公開日 2026-02-02google-sheet-api@clawhub_codedao12/google-sheet-api
表計算#Google Sheets#Batch

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

インストール数
158
ダウンロード数
3296
スター数
3
総合順位
#3,439
全体の上位 68% · オフィス効率化の上位 58%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗9429483-
SkillHub ↗15832963—

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

このスキルでできること

サービスアカウント認証で読み書き、追加、バッチ処理、書式設定、シート管理を行え、反復的な自動化に向いています。エンドユーザー OAuth フローには対応しません。clear、deleteSheet、batch 操作はデータを変更するため、権限を絞り、実行前に書き込みを確認してください。 Node、確認済み依存関係と lockfile、Google Sheets API の有効化、対象のサービスアカウントメールへの共有が必要です。認証ファイルの自動探索より明示設定を優先し、秘密鍵をログに残さないでください。

資料公開日 2026-10-27

できること

  • Google Sheets のデータを読み取る、更新する
  • 一括書き込みや書式を調整する

使う場面

  • 対象シートを最小権限のサービスアカウントに共有し、書き込みを確認できるとき

プロンプト例

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

指定範囲を読み取り、まず内容を表示して。
一括更新案を作成し、書き込む前に確認を待って。

月次の推移

ダウンロード数3296
1910265533992026-03 · ダウンロード数 20132026-05 · ダウンロード数 24132026-06 · ダウンロード数 25472026-07 · ダウンロード数 27912026-08 · ダウンロード数 29572026-09 · ダウンロード数 329626-0326-09
スター数3
2342026-03 · スター数 32026-05 · スター数 32026-06 · スター数 32026-07 · スター数 32026-08 · スター数 32026-09 · スター数 326-0326-09

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

月ダウンロード数前月比スター数
2026-093296—3
2026-082957+5.9%3
2026-072791+9.6%3
2026-062547+5.6%3
2026-052413—3
2026-032013—3

SKILL.md 原文

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

2.6 KB・ClawHub v1.0.1
---
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)から月単位で集計しています。詳しくはデータの方法論をご覧ください。