📄 Excel Automation
Microsoft ExcelやGoogleスプレッドシートの操作を自動
📺 まず動画で見る(YouTube)
▶ Claude最新!PowerPoint, Excel, Wordを生成できる機能を解説 ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Excel Automation: create workbooks, manage worksheets, read/write cell data, and format spreadsheets via Microsoft Excel and Google Sheets integration
🇯🇵 日本人クリエイター向け解説
Microsoft ExcelやGoogleスプレッドシートの操作を自動
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o excel-automation.zip https://jpskill.com/download/1617.zip && unzip -o excel-automation.zip && rm excel-automation.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/1617.zip -OutFile "$d\excel-automation.zip"; Expand-Archive "$d\excel-automation.zip" -DestinationPath $d -Force; ri "$d\excel-automation.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
excel-automation.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
excel-automationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Excel Automation を使って、来週の会議資料の下書きを作って
- › Excel Automation で、既存ファイルから必要な部分だけ抽出して
- › Excel Automation で、提供されたテンプレートに沿って自動整形して
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
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:
- Call
EXCEL_CREATE_WORKBOOKwith worksheet names and data - The tool creates a
.xlsxfile and uploads it to OneDrive - 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 rowsvalueInputOption--"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 IDsheetName(required) -- Tab namerows(required) -- 2D array of data rows (min 1 row). Ifheadersis omitted, the first row is treated as headersheaders-- 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;falsetruncates 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 IDrange-- Cell range in A1 notation, e.g.,"A1:D1","B2:B10"(recommended over index-based)sheet_name-- Worksheet name, e.g.,"Sheet1"bold--true/falseitalic--true/falsefontSize-- Font size in points, e.g.,12red,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 IDtitle-- 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:
- Call
GOOGLESHEETS_BATCH_GETwith the spreadsheet ID and target ranges - Validate headers and data alignment
- Use results to inform subsequent write or update operations
Supporting Tools:
GOOGLESHEETS_GET_SHEET_NAMES-- List all tab names in a spreadsheetGOOGLESHEETS_GET_SPREADSHEET_INFO-- Get metadata (sheet IDs, properties)GOOGLESHEETS_FIND_WORKSHEET_BY_TITLE-- Check if a specific tab exists
Recommended Execution Plan
- Create or locate the spreadsheet using
GOOGLESHEETS_CREATE_GOOGLE_SHEET1or reuse an existingspreadsheetId - Confirm the destination tab using
GOOGLESHEETS_GET_SHEET_NAMESorGOOGLESHEETS_FIND_WORKSHEET_BY_TITLE; create it withGOOGLESHEETS_ADD_SHEETif missing - Read existing headers (optional) using
GOOGLESHEETS_BATCH_GETto align columns - Write or upsert data using
GOOGLESHEETS_BATCH_UPDATEorGOOGLESHEETS_UPSERT_ROWS - Apply formatting (optional) using
GOOGLESHEETS_FORMAT_CELL - Verify results (optional) using
GOOGLESHEETS_BATCH_GET - Fallback: If Google Sheets creation is blocked (HTTP 403), use
EXCEL_CREATE_WORKBOOKfor local.xlsxoutput
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