google-sheets

A tool for reading, editing, formatting, and analysing Google Sheets spreadsheets through Google’s programming interface.

In plain words
What is it for?
Use it to read or append data, update ranges, format cells, manage sheets, create charts, and apply spreadsheet rules.
Why use it?
It lets an agent work with spreadsheet data and layout directly, including formulas, charts, validation, and protected sheets.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tankpkg/tank/google-sheets
Any agent
npx skills add tankpkg/tank --skill google-sheets
Clone the repo
git clone --depth 1 https://github.com/tankpkg/tank

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00465
Opus 5 $0.00000 $0.00233
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

Measured 2d ago against content hash fcaebae022da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

google-sheets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

e2e/fixtures/test-skill/test/.tank/skills/@tank/google-sheets/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Sheets

Read, write, format, and analyze spreadsheet data through the Google Sheets API.

Overview

This skill teaches AI agents to work with Google Sheets — reading and writing cell data, formatting, creating charts, managing named ranges, and using formulas. Supports both simple value operations and complex batch updates.

Capabilities

Reading Data

  • Read single cells, ranges, and multiple ranges in one call
  • Get values with formatting metadata
  • Read entire sheets or named ranges
  • Choose value render options: FORMATTED_VALUE, UNFORMATTED_VALUE, FORMULA

Writing Data

  • Write to single cells or ranges
  • Append rows to the end of a table
  • Batch update multiple ranges in a single request
  • Choose input options: RAW or USER_ENTERED

Formatting

  • Set cell background colors, font styles, sizes, and colors
  • Apply number formats (currency, percentage, dates, custom)
  • Set borders, merge cells, alignment
  • Apply conditional formatting rules and data validation

Sheet Management

  • Create, rename, delete, and reorder sheets
  • Copy sheets between spreadsheets
  • Freeze rows and columns, hide/show elements
  • Set sheet-level protection

Charts & Visualization

  • Create embedded charts (bar, line, pie, scatter, area, combo)
  • Configure chart titles, legends, axes, and data ranges

Authentication

Requires Google OAuth 2.0 with spreadsheets or spreadsheets.readonly scope.

Permissions

Permission Scope Reason
Network *.googleapis.com Sheets API calls
Network accounts.google.com OAuth authentication
Filesystem Read ./** Read local CSV/data files
Subprocess None Not required

Best Practices

  1. Use A1 notation for ranges — quote sheet names with spaces
  2. Batch operations to minimize API calls
  3. USER_ENTERED for formulas and dates
  4. Append, don't overwrite — use values.append for adding rows
  5. Named ranges instead of hardcoded A1 references

Read the full file on GitHub · 64 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 64 lines · 0 tokens per session scan A fcaebae022da

Subscribe to this mod's changes

google-sheets is a skill published in the GitHub repository tankpkg/tank (38 stars, last pushed 27d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 465 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.