Bodega

Skills › Marketing

Excel Automation

Excel Automation: create workbooks, manage worksheets, read/write cell data, and format spreadsheets via Microsoft Excel and Google Sheets integration

Su licencia no permite redistribuirla aquí.Ver en GitHub
Departamento
Marketing
Fuente
Comunidad · ComposioHQ/awesome-claude-skills
Autor
Composio
Licencia
Sin licencia declarada
Idioma
Inglés
Nivel
Intermedio. Requiere conectar Rube (Composio) y autorizar la aplicación que automatiza.

Cómo usarla

Pídale a Claude, por ejemplo:

Seguridad

Riesgo Bajo.

Cómo instalarla en Claude

  1. Descargue el .zip de la skill y no lo descomprima.
  2. En Claude: Configuración › Capacidades › active «Crear y editar archivos» (solo la primera vez).
  3. Personalizar › Skills › + › Crear skill › Subir una skill › elija el .zip.
  4. Verifique que el interruptor de la skill quede encendido y pruébela en un chat nuevo.

Instrucciones completas (SKILL.md)

Excel Automation

Automate spreadsheet operations including creating workbooks, writing data, formatting cells, upserting rows, and managing worksheets. Works with Microsoft Excel (OneDrive) and Google Sheets.

Toolkit docs: [composio.dev/toolkits/excel](https://composio.dev/toolkits/excel)

---

Setup

This skill requires the Rube MCP server connected at https://rube.app/mcp.

Before executing any tools, ensure an active connection exists for the excel (and optionally googlesheets) toolkit. If no connection is active, initiate one via RUBE_MANAGE_CONNECTIONS.

---

Core Workflows

1. Create a New Excel Workbook

Use EXCEL_CREATE_WORKBOOK to generate a new .xlsx file and upload it to OneDrive.

Tool: EXCEL_CREATE_WORKBOOK

Steps:

---

2. Write Data to a Spreadsheet

Use GOOGLESHEETS_BATCH_UPDATE to write values to a specific range or append rows.

Tool: GOOGLESHEETS_BATCH_UPDATE

Key Parameters:

Example:

Tool: GOOGLESHEETS_BATCH_UPDATE
Arguments:
  spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  sheet_name: "Sheet1"
  values: [["Item","Cost","Stocked"],["Wheel",20.50,true],["Screw",0.50,true]]
  first_cell_location: "A1"

---

3. Upsert Rows by Key Column

Use GOOGLESHEETS_UPSERT_ROWS to update existing rows by matching a key column, or append new rows if no match is found. Ideal for CRM syncs, inventory updates, and deduplication.

Tool: GOOGLESHEETS_UPSERT_ROWS

Key Parameters:

Example:

Tool: GOOGLESHEETS_UPSERT_ROWS
Arguments:
  spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  sheetName: "Contacts"
  keyColumn: "Email"
  headers: ["Email","Phone","Status"]
  rows: [["john@example.com","555-0101","Active"],["jane@example.com","555-0102","Pending"]]

---

4. Format Cells

Use GOOGLESHEETS_FORMAT_CELL to apply bold, italic, font size, and background colors to ranges.

Tool: GOOGLESHEETS_FORMAT_CELL

Key Parameters:

Example (bold header row with blue background):

Tool: GOOGLESHEETS_FORMAT_CELL
Arguments:
  spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  range: "A1:D1"
  sheet_name: "Sheet1"
  bold: true
  fontSize: 12
  red: 0.2
  green: 0.4
  blue: 0.9

---

5. Add New Worksheet Tabs

Use GOOGLESHEETS_ADD_SHEET to create new tabs within an existing spreadsheet.

Tool: GOOGLESHEETS_ADD_SHEET

Key Parameters:

Example:

Tool: GOOGLESHEETS_ADD_SHEET
Arguments:
  spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
  title: "Q4 Report"
  forceUnique: true

---

6. Read Data and Verify Content

Use GOOGLESHEETS_BATCH_GET to retrieve data from specified cell ranges for validation or further processing.

Tool: GOOGLESHEETS_BATCH_GET

Steps:

Supporting Tools:

---

Recommended Execution Plan

---

Known Pitfalls

| Pitfall | Detail | |---------|--------| | HTTP 403 on sheet creation | GOOGLESHEETS_CREATE_GOOGLE_SHEET1 fails when Drive create scope is missing. Reuse an existing spreadsheetId or fall back to EXCEL_CREATE_WORKBOOK. | | Cell limit and rate throttling | Google Sheets has a ~5,000,000 cell limit per spreadsheet. Excessive write frequency triggers HTTP 429. Batch changes and chunk large writes (~500 rows/call). | | Format range off-by-one | GOOGLESHEETS_FORMAT_CELL uses 0-based, endIndex-exclusive ranges when using index mode. Background color uses 0--1 float RGB, NOT 0--255 integer RGB. | | Sheet title uniqueness | Sheet titles are not guaranteed unique across API responses. Prefer operating by numeric sheetId and verify the resolved tab before writing. | | Upsert payload shape | GOOGLESHEETS_UPSERT_ROWS requires headers + 2D rows array. Sending list-of-dicts or empty rows causes validation errors. Ensure at least 1 data row. |

---

Quick Reference

| Tool Slug | Description | |-----------|-------------| | EXCEL_CREATE_WORKBOOK | Create a new .xlsx workbook and upload to OneDrive | | GOOGLESHEETS_BATCH_UPDATE | Write values to a range or append new rows | | GOOGLESHEETS_UPSERT_ROWS | Update existing rows by key or append new ones | | GOOGLESHEETS_FORMAT_CELL | Apply text/background formatting to cell ranges | | GOOGLESHEETS_ADD_SHEET | Add a new worksheet tab to a spreadsheet | | GOOGLESHEETS_CREATE_GOOGLE_SHEET1 | Create a new Google Spreadsheet in Drive | | GOOGLESHEETS_GET_SHEET_NAMES | List all worksheet names in a spreadsheet | | GOOGLESHEETS_GET_SPREADSHEET_INFO | Retrieve spreadsheet metadata | | GOOGLESHEETS_FIND_WORKSHEET_BY_TITLE | Check if a worksheet exists by title | | GOOGLESHEETS_BATCH_GET | Read data from specified cell ranges |

---

*Powered by [Composio](https://composio.dev)*