sheets-cli

gmickel 的头像作者 gmickel

通过CLI读取、写入和更新Google Sheets数据。当用户请求读取电子表格数据、更新单元格、追加行或与Google Sheets一起工作时使用。触发词包括提及电子表格、工作表、Google Sheets、云中的表格数据或特定的工作表名称,如“项目”或“任务”。

📖 中文导读:通过CLI读取、写入和更新Google Sheets数据。当用户请求读取电子表格数据、更新单元格、追加行或与Google Sheets一起工作时使用。触发词包括提及电子表格、工作表、Google Sheets、云中的表格数据或特定的工作表名称,如“项目”或“任务”。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: sheets-cli description: Read, write, and update Google Sheets data via CLI. Use when the user asks to read spreadsheet data, update cells, append rows, or work with Google Sheets. Triggers on mentions of spreadsheets, sheets, Google Sheets, tabular data in the cloud, or specific sheet names like "Projects" or "Tasks".

sheets-cli

CLI for Google Sheets. Read tables, append rows, update cells by key or index, batch operations.

Installation: Already installed in PATH. Run commands directly.

Quick Start

sheets-cli sheets find --name "Projects"                    # Find spreadsheet
sheets-cli read table --spreadsheet <id> --sheet "Sheet1"   # Read data
sheets-cli update key --spreadsheet <id> --sheet "Tasks" \
  --key-col "ID" --key "TASK-42" --set '{"Status":"Done"}'  # Update by key

Workflow

Always: read → decide → dry-run → apply

sheets-cli read table --sheet "Tasks" --limit 100
sheets-cli update key ... --dry-run   # Preview first
sheets-cli update key ...             # Then apply

For complete command reference, see reference.md.