google-sheet

google-sheet is a skill for Claude Code, Codex from CraftOS-dev/CraftBot. It costs 64 tokens per session (1,209 once invoked), scanned A, original, MIT.

A Google Sheets integration for reading and changing spreadsheet cells, sheets, ranges, and formatting through code.

In plain words
What is it for?
Use it to read, write, append, and clear data, create sheets, format cells, and run batch updates.
Why use it?
It removes repetitive manual spreadsheet edits and makes spreadsheet data available to automated workflows.

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/craftos-dev/craftbot/google-sheet
Any agent
npx skills add CraftOS-dev/CraftBot --skill google-sheet
Clone the repo
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-sheet

README.md
[![agentmods](https://agentmods.dev/badge/skills/craftos-dev/craftbot/google-sheet.svg)](https://agentmods.dev/skills/craftos-dev/craftbot/google-sheet)
Your own site
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/google-sheet"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/google-sheet.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 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.00064 $0.01209
Opus 5 $0.00032 $0.00605
Sonnet 5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured yesterday against content hash 238950f517af, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

google-sheet 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sheets.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/google-sheet/SKILL.md · 143 lines

How it starts

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

Google Sheets Skill

Interact with Google Sheets using a service account.

Setup (One-time)

  1. Google Cloud Console:

    • Create/select a project
    • Enable "Google Sheets API"
    • Create a Service Account (IAM → Service Accounts → Create)
    • Download JSON key
  2. Configure credentials (one of these):

    • Set env: GOOGLE_SERVICE_ACCOUNT_KEY=/path/to/key.json
    • Place service-account.json or credentials.json in the skill directory
    • Place in ~/.config/google-sheets/credentials.json
  3. Share sheets with the service account email (found in JSON key as client_email)

  4. Install dependencies:

    cd skills/google-sheets && npm install
    

Usage

node scripts/sheets.js <command> [args]

Commands

Data Operations

Command Args Description
read <id> <range> Read cells
write <id> <range> <json> Write data
append <id> <range> <json> Append rows
clear <id> <range> Clear range

Formatting

Command Args Description
format <id> <range> <formatJson> Format cells
getFormat <id> <range> Get cell formats
borders <id> <range> [styleJson] Add borders
copyFormat <id> <source> <dest> Copy format between ranges
merge <id> <range> Merge cells
unmerge <id> <range> Unmerge cells

Layout

Command Args Description
resize <id> <sheet> <cols|rows> <start> <end> <px> Resize columns/rows
autoResize <id> <sheet> <startCol> <endCol> Auto-fit columns
freeze <id> <sheet> [rows] [cols] Freeze rows/columns

Sheet Management

Command Args Description
create <title> Create spreadsheet
info <id> Get metadata
addSheet <id> <title> Add sheet tab
deleteSheet <id> <sheetName> Delete sheet tab
renameSheet <id> <oldName> <newName> Rename sheet tab

Read the full file on GitHub · 143 lines

Files

What ships with it

5 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. yesterday First seen · 143 lines · 64 tokens per session scan A 238950f517af

Subscribe to this mod's changes

google-sheet is a skill published in the GitHub repository CraftOS-dev/CraftBot (378 stars, last pushed 2d ago), licensed MIT. It adds 64 tokens to every session and 1,209 once invoked, about $0.0003 per session on Opus 5. 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-09-03.