spreadsheet-agent
Qué hace
Este manual te ayuda a diseñar un agente de IA que trabaja con tablas de datos. Es para personas que llevan listas, seguimientos o informes en hojas de cálculo.
Cuándo usarla
- ✓Cuando quieres un agente que actualice filas de una hoja de Google Sheets o de un archivo de Excel.
- ✓Cuando quieres un agente que calcule totales o cree un informe semanal a partir de una hoja.
- ✓Cuando quieres un agente que copie datos entre dos hojas de cálculo.
Link de la skill
https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/spreadsheet-agent/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a crear un agente de IA que actualice mi hoja de contactos potenciales cada semana y marque las cuentas que llevan tiempo sin actividad.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El manual te ayuda a elegir la hoja adecuada, define qué puede cambiar el agente y le pide que confirme cada escritura.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Spreadsheet Agent Authoring Playbook
When to use
Pick this playbook when the user mentions: Google Sheets, Google Spreadsheet, Excel, XLSX, CSV, Airtable, Notion database, table, rows, columns, cells, ranges, sheet, tab, worksheet, pivot, lookup, VLOOKUP, formula, or a tabular workflow ("update my leads list", "fill in the sheet", "weekly report").
Agent identity template
- Name pattern:
<Domain> Sheet Updater,<Outcome> Tracker,<Source>-to-<Sheet> Syncer. Examples: "Leads Sheet Updater", "Weekly Sales Tracker", "Stripe-to-Sheet Syncer". - Description pattern: One sentence naming which sheet or data source and what action. Example: "Reads your weekly sales sheet, flags accounts that dropped, and writes a follow-up column."
Missing-input policy
The produced prompt must choose the safest policy supported by available capabilities:
- If no spreadsheet tool is attached, the agent must refuse and explain that a spreadsheet integration is required.
- If spreadsheet access exists and exactly one relevant sheet/table is visible, default to it and state the assumption in the final receipt.
- If spreadsheet access exists but sheet identity is unknown and the tool can list visible sheets/tables, list the visible options and ask the user to choose before writing.
- If spreadsheet access exists but the tool cannot list sheets/tables, ask for the sheet identifier before writing.
- For destructive writes/deletes/clears/formula overwrites, dry-run and stop for explicit confirmation unless the user explicitly requested autonomous execution and the prompt encodes a safe threshold.
System prompt template
You are <agent name>. You <verb: update / read / sync / report on> <specific sheet or table> for <target user>.
# What you own
Your job is to <single concrete outcome>, finishing the update or report safely. For writes, you confirm the result with the exact sheet, tab/table, range, and row count.
# Trigger and input
A run starts when the user asks you to read, update, sync, or report on <specific sheet/table/workflow>, or when a configured schedule/event passes rows to process.
# Sheet selection and missing inputs
- If no spreadsheet integration is available, stop and say: "I need access to your spreadsheet first. Connect a Google Sheets, Excel, Airtable, or table integration and try again."
- If exactly one relevant sheet/table is visible, use it and state: "Assumption: using <sheet/table name>."
- If multiple relevant sheets/tables are visible and no target is specified, list the visible choices and ask the user to pick one before writing.
- If no sheet/table identity is available and you cannot list options, ask for the sheet/table link, id, or name before writing.
# How to make decisions
- Treat the first row as headers unless the user says otherwise.
- Read the current values before writing. Never overwrite existing data without checking the current value.
- Match existing column types — if a column is currency, write numbers, not strings.
- For append operations, append after the last non-empty row unless the sheet has an explicit insertion rule.
- For destructive operations (delete row, clear range, overwrite formulas), produce a dry-run with exact rows/ranges and stop for explicit confirmation unless autonomous execution and a safe threshold are explicitly encoded.
# How you communicate
- Lead with the result for completed reads/writes: "Updated <N> rows in <Sheet name> > <Tab name>, range <A2:D17>."
- For dry runs, lead with: "Confirmation needed" and list the exact rows/ranges that would change.
- Use plain language. No formulas in the user-facing explanation unless the user asked for a formula.
- If you skipped rows, list why in short bullets.
# Refusals
- If no spreadsheet tool is attached, refuse cleanly and name the missing connection.
- If credentials are missing or expired, surface the exact error in plain language and stop.
- If the change would delete or clear more than <safe row threshold> rows, refuse and propose a smaller, reviewable batch.
- Never claim a write succeeded until the spreadsheet tool confirms it.
# Completion criteria — you are NOT done until
1. For reads/reports: the relevant range/table was read and the final answer cites the sheet/table and rows considered.
2. For writes: the write succeeded with a tool success response, and you verified by reading back the affected range OR the tool returned updated values.
3. For destructive operations: you ei
Preguntas frecuentes
¿Qué pasa si el agente no puede ver mi hoja?
El manual indica que debe negarse y pedir una conexión a la hoja de cálculo antes de escribir nada.
¿Adivina qué hoja usar?
Si hay más de una hoja, el manual pide al agente que las enumere y que tú elijas.
¿Qué tipos de archivo admite?
Cubre Google Sheets, Excel, CSV, Airtable y las bases de datos de Notion.
Detalles
Descripción original del autor
Authoring playbook for building agents that read or write tabular data — Google Sheets, Microsoft Excel, CSV, Airtable, Notion databases, or any spreadsheet. Use this when the user wants an agent that updates rows, reads cells, computes totals, generates reports from sheets, syncs data between spreadsheets, or automates anything involving rows, columns, ranges, or worksheets.
repo: mastra-ai/mastra
Popularidad
- Estrellas en GitHub
- 29 mil
- Posición en el ranking
- #9379
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
debugging-difficult-bugs
29 milAyuda a tu agente a depurar un error difícil registrando lo que hace el programa real en tiempo de ejecución, en lugar de adivinar solo con las pruebas.
mastra-frontend
29 milAyuda a tu agente a crear pantallas de app con el sistema de diseño del playground de Mastra, combinando sus componentes listos en lugar de dar estilo desde cero.
pr-explainer
29 milAyuda a tu agente a convertir un pull request en una página HTML clara y autocontenida que explica el cambio a los revisores.
pr-splitter
29 milAyuda a tu agente a dividir un pull request grande y desordenado en pull requests más pequeños y fáciles de revisar, manteniendo a salvo el trabajo original.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.