spreadsheet-agent
Skill by mastra-ai
Spreadsheet Agent is an authoring playbook for building agents that read or write tabular data. It provides templates and rules for tasks in Google Sheets, Excel, CSV, Airtable and Notion databases.
Install spreadsheet-agent
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mastra-ai/mastra /tmp/mastra && mkdir -p ~/.claude/skills && cp -r /tmp/mastra/packages/editor/src/ee/workspace/skills/spreadsheet-agent ~/.claude/skills/spreadsheet-agentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mastra-ai/mastra /tmp/mastra && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mastra/packages/editor/src/ee/workspace/skills/spreadsheet-agent ~/.gemini/antigravity-cli/skills/spreadsheet-agentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Spreadsheet Agent is an authoring playbook for building AI agents that read or write tabular data in Google Sheets, Microsoft Excel, CSV, Airtable, Notion databases, or any spreadsheet. It covers tasks such as updating rows, reading cells, computing totals, generating reports, and syncing data between spreadsheets.
The playbook gives templates for agent names, descriptions, and system prompts. It requires the produced agent to ask which sheet to use when several are visible, dry-run destructive changes, and read back writes before reporting success. Produced agents should refuse to run without a spreadsheet integration and cite the sheet, tab, range, and row count in their receipts. It is aimed at people who want to build such an agent.
Written from the project's SKILL.md and checked against it.
What it can do
- Agent identity templateGives naming and description patterns for spreadsheet agents.
- System prompt templateProvides a full prompt with completion criteria, refusals and a worked example.
- Missing-input policySets rules for when an agent should use a sheet by default or ask the user first.
- Write verificationRequires a read-back or returned updated values before a write is reported as done.
- Dry-run for destructive changesLists exact rows or ranges to change and waits for explicit confirmation.
- Capability guidanceAdvises which spreadsheet tool to attach and when to avoid a code execution tool.
- Anti-pattern listLists common mistakes, such as writes without verification or silent sheet selection.
What you need
- A spreadsheet integration such as Google Sheets, Excel, or Airtable, connected to the built agent
Try asking
- Write a system prompt for a leads sheet updater agent using this playbook
- Create an agent name and description for my weekly sales sheet
- Draft confirmation rules for an agent that clears rows in Excel
Good to know
- The produced agent refuses to run if no spreadsheet tool is attached.
- Destructive writes, deletes and clears need explicit confirmation by default.
- Attach exactly one spreadsheet tool unless the outcome is syncing between two systems.
- Do not attach a code execution tool unless the user asks for custom formulas in code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/editor/src/ee/workspace/skills/spreadsheet-agent/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to spreadsheet-agent
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
spreadsheet-agent: common questions
Which spreadsheet platforms does this playbook cover?
It covers Google Sheets, Microsoft Excel, CSV, Airtable, Notion databases, and any spreadsheet. These are the platforms the agents it describes may read or write.
Can agents built with this playbook delete rows without confirmation?
No. Destructive writes need a dry run that lists exact rows or ranges and explicit confirmation, unless autonomous execution and a safe threshold are explicitly encoded.
How does the playbook prevent false success claims?
It requires verification, such as reading back the affected range or using returned updated values, before a write is reported as complete.
How do I install spreadsheet-agent?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is spreadsheet-agent free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is spreadsheet-agent safe to use?
It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to spreadsheet-agent?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
