# Send Google Sheets API to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "google-sheets-api",
    "name": "Google Sheets API",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/codedao12/google-sheets-api",
    "canonicalUrl": "https://clawhub.ai/codedao12/google-sheets-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/google-sheets-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-sheets-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "package.json",
      "SKILL.md",
      "env_example.md",
      "assets/sheets-api-guide.md",
      "scripts/sheets-cli.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "google-sheets-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T01:52:11.220Z",
      "expiresAt": "2026-05-07T01:52:11.220Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-sheets-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-sheets-api",
        "contentDisposition": "attachment; filename=\"google-sheets-api-1.0.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "google-sheets-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/google-sheets-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/google-sheets-api",
    "downloadUrl": "https://openagent3.xyz/downloads/google-sheets-api",
    "agentUrl": "https://openagent3.xyz/skills/google-sheets-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-sheets-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-sheets-api/agent.md"
  }
}
```
## Documentation

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

### 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

Create or select a Google Cloud project.
Enable the Google Sheets API.
Create a service account and download its JSON key.
Share target spreadsheets with the service account email.

### Install

cd google-sheet-api
npm install

### Run

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:

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:

[["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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: codedao12
- Version: 1.0.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T01:52:11.220Z
- Expires at: 2026-05-07T01:52:11.220Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/google-sheets-api)
- [Send to Agent page](https://openagent3.xyz/skills/google-sheets-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/google-sheets-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/google-sheets-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/google-sheets-api)