googlesheets-automation
使用 Claude 自动化 Google Sheets
不再需要手动更新电子表格。此技能帮助您通过 Composio 集成,使用 Claude 以编程方式读取、写入、格式化和管理 Google Sheets。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“googlesheets-automation”。 Read the first 10 rows from the 'Customers' sheet in my 'Sales Database' spreadsheet
预期结果:
I found the spreadsheet 'Sales Database' (ID: 1AbC...xYz). Reading rows 1-10 from the 'Customers' sheet (A1:J10). The data contains: 10 rows including headers with columns: Name, Email, Phone, Company, Status, Last Contact. Total customers: 9 active records.
正在使用“googlesheets-automation”。 Add a new customer to the sheet: Jane Doe, jane@example.com, 555-0123, Acme Corp
预期结果:
Successfully appended the new row to 'Customers' sheet. The record was added to row 11. Updated range: Customers!A11:E11. Confirmation: Jane Doe is now in the spreadsheet.
安全审计
安全All 139 static findings are false positives. The 'external_commands' detections are Markdown code spans (backticks) used for formatting tool names, not shell execution. The 'hardcoded URL' is the official Rube MCP server endpoint in documentation. This is a documentation-only skill with no executable code - it provides instructions for using Google Sheets via the Rube MCP service.
低风险问题 (1)
质量评分
你能构建什么
CRM 数据同步
保持客户记录在数据库和 Google Sheets 之间同步。使用 upsert 操作基于电子邮件地址作为唯一键来更新现有联系人或添加新联系人。
库存跟踪
在共享电子表格中维护实时库存水平。读取当前库存,在销售后更新数量,并为低库存项应用红色背景色以提高可见性。
报告生成自动化
通过从多个表格提取数据、使用粗体样式格式化标题、并将摘要指标写入仪表板表格供团队审查,来生成每周报告。
试试这些提示
Read the data from 'Sheet1' in my Google Sheet named 'Q4 Sales Data'. Show me the first 100 rows from columns A through F.
Update the 'Inventory' spreadsheet. In the 'Stock' sheet, set quantity to 50 for rows where SKU is 'PROD-001' through 'PROD-010'. Use batch update for efficiency.
Upsert these customer records into the 'Clients' sheet in my 'CRM Database' spreadsheet. Use 'Email' as the key column to update existing contacts or add new ones: [your data here]
Create a new sheet called 'Summary' in my 'Analytics' spreadsheet. Copy the total row from 'Data' sheet, make the headers bold with blue background, and set column widths to 200.
最佳实践
- 在操作之前始终先调用 RUBE_SEARCH_TOOLS 以验证连接并获取当前工具架构
- 使用有界范围如 'A1:Z1000' 而非无界范围如 'A:Z',以避免在处理大型表格时超时
- 使用 GOOGLESHEETS_BATCH_GET 将多个读取操作批量组合,以保持在每分钟 60 次读取的速率限制内
- 在写入之前先读取现有表格数据以了解当前布局,避免覆盖重要信息
避免
- 不要在有超过 10,000 行的表格上使用无界范围(例如 'A:Z'),因为这会导致超时
- 不要假设默认表格名称(如 'Sheet1')存在 - 它们依赖于区域设置,在非英语账户中可能不同
- 不要每分钟执行超过 60 次读取或写入操作,否则 Google Sheets API 将返回速率限制错误