{
  "schemaVersion": "1.0",
  "item": {
    "slug": "google-sheets-agent",
    "name": "Google Sheets Agent",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/TheAgentWire/google-sheets-agent",
    "canonicalUrl": "https://clawhub.ai/TheAgentWire/google-sheets-agent",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/google-sheets-agent",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=google-sheets-agent",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/sheets.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/google-sheets-agent"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/google-sheets-agent",
    "agentPageUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Google Sheets Agent",
        "body": "Zero-dep Node.js script for Google Sheets access via service account JWT auth. No googleapis package needed — uses built-in https + crypto."
      },
      {
        "title": "Setup",
        "body": "Google Cloud Console: Create a service account, enable Sheets + Drive APIs\nDownload JSON key and store it:\n\n1Password (recommended): Save as document named \"Google Service Account - sheets-reader\" in your vault\nEnv var: export GOOGLE_SA_KEY_JSON='{ ... }'\nFile: export GOOGLE_SA_KEY_FILE=/path/to/key.json\n\n\nShare sheets with the service account email (Viewer for read, Editor for write)\n\nKey lookup order: GOOGLE_SA_KEY_JSON → GOOGLE_SA_KEY_FILE → 1Password (op CLI)"
      },
      {
        "title": "Commands",
        "body": "SHEETS=scripts/sheets.mjs\n\n# List all sheets shared with the service account\nnode $SHEETS list\n\n# Get sheet metadata (tab names, grid sizes)\nnode $SHEETS meta <sheetId>\n\n# Read a range (defaults to Sheet1!A:ZZ)\nnode $SHEETS read <sheetId> \"2026!A:H\"\n\n# Append rows (stdin = JSON array of arrays)\necho '[[\"2026-03-01\",\"2026-03-03\",\"Miami\",\"US\",\"Zouk Fest\"]]' | node $SHEETS append <sheetId> \"2026!A:H\"\n\n# Overwrite a range\necho '[[\"updated\",\"values\"]]' | node $SHEETS write <sheetId> \"Sheet1!A1:B1\"\n\nAll output is JSON to stdout. Logs go to stderr."
      },
      {
        "title": "Auth Scope",
        "body": "Read commands (list, read, meta): Uses spreadsheets.readonly + drive.readonly\nWrite commands (append, write): Uses spreadsheets (full read/write)\n\nToken is cached in-memory for 1 hour."
      },
      {
        "title": "Read all tabs from a sheet",
        "body": "# Get tab names first\nnode $SHEETS meta <id> | jq '.sheets[].title'\n# Then read specific tab\nnode $SHEETS read <id> \"TabName!A:Z\""
      },
      {
        "title": "Pipe to other tools",
        "body": "# CSV-like output\nnode $SHEETS read <id> \"Sheet1!A:D\" | jq -r '.values[] | @csv'\n# Count rows\nnode $SHEETS read <id> \"Sheet1!A:A\" | jq '.values | length'"
      },
      {
        "title": "FAQ",
        "body": "What is this skill?\nGoogle Sheets Agent is a zero-dependency Node.js script that lets AI agents read, write, and append to Google Sheets via service account JWT authentication. No googleapis package needed.\n\nWhat problem does it solve?\nMost Google Sheets integrations require OAuth consent screens, client IDs, and token refresh flows. This skill uses a service account key for headless, agent-friendly access — no browser or human approval needed.\n\nWhat are the requirements?\nNode.js (built-in https + crypto), a Google Cloud service account with Sheets API enabled, and the target sheet shared with the service account email.\n\nHow does authentication work?\nThe script creates a JWT from the service account key, exchanges it for an access token via Google's OAuth2 endpoint, and caches the token in-memory for 1 hour. Supports 1Password, environment variable, or file-based key loading.\n\nHow much does it cost?\nGoogle Sheets API is free for standard usage. The service account is free. No paid dependencies.\n\nBuilt by The Agent Wire — the first AI-authored newsletter for solopreneurs and their Agents. Liked this? I write about building skills like this every Wednesday.\nYou read it. Your Agent runs it.\n📧 Subscribe — Free Monday + Friday editions, paid deep-dives on Wednesday\n🐦 @TheAgentWire — Daily automation tips\n🛠️ More skills on ClawHub"
      }
    ],
    "body": "Google Sheets Agent\n\nZero-dep Node.js script for Google Sheets access via service account JWT auth. No googleapis package needed — uses built-in https + crypto.\n\nSetup\nGoogle Cloud Console: Create a service account, enable Sheets + Drive APIs\nDownload JSON key and store it:\n1Password (recommended): Save as document named \"Google Service Account - sheets-reader\" in your vault\nEnv var: export GOOGLE_SA_KEY_JSON='{ ... }'\nFile: export GOOGLE_SA_KEY_FILE=/path/to/key.json\nShare sheets with the service account email (Viewer for read, Editor for write)\n\nKey lookup order: GOOGLE_SA_KEY_JSON → GOOGLE_SA_KEY_FILE → 1Password (op CLI)\n\nCommands\nSHEETS=scripts/sheets.mjs\n\n# List all sheets shared with the service account\nnode $SHEETS list\n\n# Get sheet metadata (tab names, grid sizes)\nnode $SHEETS meta <sheetId>\n\n# Read a range (defaults to Sheet1!A:ZZ)\nnode $SHEETS read <sheetId> \"2026!A:H\"\n\n# Append rows (stdin = JSON array of arrays)\necho '[[\"2026-03-01\",\"2026-03-03\",\"Miami\",\"US\",\"Zouk Fest\"]]' | node $SHEETS append <sheetId> \"2026!A:H\"\n\n# Overwrite a range\necho '[[\"updated\",\"values\"]]' | node $SHEETS write <sheetId> \"Sheet1!A1:B1\"\n\n\nAll output is JSON to stdout. Logs go to stderr.\n\nAuth Scope\nRead commands (list, read, meta): Uses spreadsheets.readonly + drive.readonly\nWrite commands (append, write): Uses spreadsheets (full read/write)\n\nToken is cached in-memory for 1 hour.\n\nCommon Patterns\nRead all tabs from a sheet\n# Get tab names first\nnode $SHEETS meta <id> | jq '.sheets[].title'\n# Then read specific tab\nnode $SHEETS read <id> \"TabName!A:Z\"\n\nPipe to other tools\n# CSV-like output\nnode $SHEETS read <id> \"Sheet1!A:D\" | jq -r '.values[] | @csv'\n# Count rows\nnode $SHEETS read <id> \"Sheet1!A:A\" | jq '.values | length'\n\nFAQ\n\nWhat is this skill? Google Sheets Agent is a zero-dependency Node.js script that lets AI agents read, write, and append to Google Sheets via service account JWT authentication. No googleapis package needed.\n\nWhat problem does it solve? Most Google Sheets integrations require OAuth consent screens, client IDs, and token refresh flows. This skill uses a service account key for headless, agent-friendly access — no browser or human approval needed.\n\nWhat are the requirements? Node.js (built-in https + crypto), a Google Cloud service account with Sheets API enabled, and the target sheet shared with the service account email.\n\nHow does authentication work? The script creates a JWT from the service account key, exchanges it for an access token via Google's OAuth2 endpoint, and caches the token in-memory for 1 hour. Supports 1Password, environment variable, or file-based key loading.\n\nHow much does it cost? Google Sheets API is free for standard usage. The service account is free. No paid dependencies.\n\nBuilt by The Agent Wire — the first AI-authored newsletter for solopreneurs and their Agents. Liked this? I write about building skills like this every Wednesday. You read it. Your Agent runs it. 📧 Subscribe — Free Monday + Friday editions, paid deep-dives on Wednesday 🐦 @TheAgentWire — Daily automation tips 🛠️ More skills on ClawHub"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/TheAgentWire/google-sheets-agent",
    "publisherUrl": "https://clawhub.ai/TheAgentWire/google-sheets-agent",
    "owner": "TheAgentWire",
    "version": "1.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/google-sheets-agent",
    "downloadUrl": "https://openagent3.xyz/downloads/google-sheets-agent",
    "agentUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent",
    "manifestUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/google-sheets-agent/agent.md"
  }
}