跳到正文
Skillpedia
PDF、Word 与幻灯片77k · #2034

Excel Automation

它能做什么

这个工具可以帮你整理和管理 Excel、Google Sheets 等电子表格中的数据。你可以新建表格、添加信息、更新已有数据,还可以修改单元格的外观。

适用场景

  • ✓当你需要新建一个费用记录文件时。
  • ✓当你需要用新信息更新联系人列表时。
  • ✓当你想把报表的标题加粗、加上颜色,让排版更醒目时。

技能链接

https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/excel-automation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ComposioHQ/awesome-claude-skills/blob/master/composio-skills/excel-automation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“新建一个名为“销售报表”的 Excel 表格,包含“产品”“数量”“价格”三列,并填入以下数据:T恤,10,$50;裤子,5,$120。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会连接到 Excel(通过 OneDrive)或 Google Sheets。它使用特定的命令来创建文件、在单元格中写入或更新数据,并应用加粗文字或颜色等格式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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


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:

  1. Call EXCEL_CREATE_WORKBOOK with worksheet names and data
  2. The tool creates a .xlsx file and uploads it to OneDrive
  3. Use the returned file path/URL for subsequent operations

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:

  • spreadsheet_id (required) -- The spreadsheet ID from the URL (44-char alphanumeric string)
  • sheet_name (required) -- Tab name, e.g., "Sheet1", "Sales Data"
  • values (required) -- 2D array of cell values, e.g., [["Name","Amount"],["Alice",100]]
  • first_cell_location -- Starting cell in A1 notation (e.g., "A1", "D3"). Omit to append rows
  • valueInputOption -- "USER_ENTERED" (default, parses formulas) or "RAW" (stores as-is)

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:

  • spreadsheetId (required) -- The spreadsheet ID
  • sheetName (required) -- Tab name
  • rows (required) -- 2D array of data rows (min 1 row). If headers is omitted, the first row is treated as headers
  • headers -- Column names for the data, e.g., ["Email","Phone","Status"]
  • keyColumn -- Column header to match on, e.g., "Email", "SKU", "Lead ID"
  • strictMode -- true (default) errors on mismatched columns; false truncates silently

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:

  • spreadsheet_id (required) -- The spreadsheet ID
  • range -- Cell range in A1 notation, e.g., "A1:D1", "B2:B10" (recommended over index-based)
  • sheet_name -- Worksheet name, e.g., "Sheet1"
  • bold -- true/false
  • italic -- true/false
  • fontSize -- Font size in points, e.g., 12
  • red, green, blue -- Background color components (0.0--1.0 float scale, NOT 0--255)

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:

  • spreadsheetId (required) -- The spreadsheet ID
  • title -- Name for the new tab, e.g., "Q4 Report"
  • forceUnique -- true (default) auto-appends suffix if name exists

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:

…

常见问题

如果在 Google Sheets 中无法创建表格怎么办?

如果在 Google Sheets 中创建出现问题,工具可以在你的 OneDrive 中创建一个 Excel 文件(.xlsx)。

工具怎么知道把数据放在哪里?

你可以指定工作表(sheet)、单元格范围(比如“A1”或“B2:C5”),以及是新增数据,还是根据关键列来更新已有数据。

可以修改单元格的背景颜色吗?

可以。你可以通过指定红、绿、蓝的数值(范围从 0.0 到 1.0)来设置单元格的背景颜色。

详情

作者的原始描述

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

repo: ComposioHQ/awesome-claude-skills

热度

GitHub 星标
77k
排名
#2034
许可证
—
更新时间
2026/9/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能