AgentSkillsCN

sheets-cli

通过CLI读取、写入和更新Google Sheets数据。当用户请求读取表格数据、更新单元格、追加行或处理Google Sheets时使用。在提及电子表格、工作表、Google Sheets、云端表格数据或特定工作表名称(如“项目”或“任务”)时触发。

SKILL.md
--- frontmatter
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

bash
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

bash
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.