Read, write, append, and manage Google Sheets via the Google Sheets API (Node.js SDK). Use when you need to interact with spreadsheets — reading data, writing/updating cells, appending rows, clearing ranges, formatting cells, managing sheets. Requires a Google Cloud service account with Sheets API enabled.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install google-sheet或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install google-sheet⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/google-sheet/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: google-sheets description: Read, write, append, and manage Google Sheets via the Google Sheets API (Node.js SDK). Use when you need to interact with spreadsheets — reading data, writing/updating cells, appending rows, clearing ranges, formatting cells, managing sheets. Requires a Google Cloud service account with Sheets API enabled. ---
Interact with Google Sheets using a service account.
- Create/select a project - Enable "Google Sheets API" - Create a Service Account (IAM → Service Accounts → Create) - Download JSON key
- Set env: GOOGLE_SERVICE_ACCOUNT_KEY=/path/to/key.json - Place service-account.json or credentials.json in the skill directory - Place in ~/.config/google-sheets/credentials.json
client_email)```bash cd skills/google-sheets && npm install ```
node scripts/sheets.js <command> [args]
| Command | Args | Description | |---------|------|-------------| | read | | Read cells | | write | | Write data | | append | | Append rows | | clear | | Clear range |
| Command | Args | Description | |---------|------|-------------| | format | | Format cells | | getFormat | | Get cell formats | | borders | | Add borders | | copyFormat | | Copy format between ranges | | merge | | Merge cells | | unmerge | | Unmerge cells |
| Command | Args | Description | |---------|------|-------------| | resize | | Resize columns/rows | | autoResize | | Auto-fit columns | | freeze | | Freeze rows/columns |
| Command | Args | Description | |---------|------|-------------| | create | | Create spreadsheet | | info | | Get metadata | | addSheet | | Add sheet tab | | deleteSheet | | Delete sheet tab | | renameSheet | | Rename sheet tab |
# Read data
node scripts/sheets.js read "SPREADSHEET_ID" "Sheet1!A1:C10"
# Write data
node scripts/sheets.js write "SPREADSHEET_ID" "Sheet1!A1:B2" '[["Name","Score"],["Alice",95]]'
# Format cells (yellow bg, bold)
node scripts/sheets.js format "SPREADSHEET_ID" "Sheet1!A1:B2" '{"backgroundColor":{"red":255,"green":255,"blue":0},"textFormat":{"bold":true}}'
# Copy format from one range to another
node scripts/sheets.js copyFormat "SPREADSHEET_ID" "Sheet1!A1:C3" "Sheet1!D1:F3"
# Add borders
node scripts/sheets.js borders "SPREADSHEET_ID" "Sheet1!A1:C3"
# Resize columns to 150px
node scripts/sheets.js resize "SPREADSHEET_ID" "Sheet1" cols A C 150
# Auto-fit column widths
node scripts/sheets.js autoResize "SPREADSHEET_ID" "Sheet1" A Z
# Freeze first row and column
node scripts/sheets.js freeze "SPREADSHEET_ID" "Sheet1" 1 1
# Add new sheet tab
node scripts/sheets.js addSheet "SPREADSHEET_ID" "NewSheet"
{
"backgroundColor": {"red": 255, "green": 255, "blue": 0},
"textFormat": {
"bold": true,
"italic": false,
"fontSize": 12,
"foregroundColor": {"red": 0, "green": 0, "blue": 0}
},
"horizontalAlignment": "CENTER",
"verticalAlignment": "MIDDLE",
"wrapStrategy": "WRAP"
}
{
"style": "SOLID",
"color": {"red": 0, "green": 0, "blue": 0}
}
Border styles: DOTTED, DASHED, SOLID, SOLID_MEDIUM, SOLID_THICK, DOUBLE
From URL: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit
安装 Skill to manage and update google sheet 后,可以对 AI 说这些话来触发它
Help me get started with Skill to manage and update google sheet
Explains what Skill to manage and update google sheet does, walks through the setup, and runs a quick demo based on your current project
Use Skill to manage and update google sheet to read, write, append, and manage Google Sheets via the Google Sheets...
Invokes Skill to manage and update google sheet with the right parameters and returns the result directly in the conversation
What can I do with Skill to manage and update google sheet in my documents & notes workflow?
将技能文件夹放到 ~/.claude/skills/google-sheet/ 目录(个人级,所有项目可用),或 .claude/skills/google-sheet/(项目级)。重启 AI 客户端后,用 /google-sheet 主动调用,或让 AI 根据上下文自动发现并使用。
Skill to manage and update google sheet 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Skill to manage and update google sheet 可免费安装使用。请查阅仓库了解许可证信息。
Read, write, append, and manage Google Sheets via the Google Sheets API (Node.js SDK). Use when you need to interact with spreadsheets — reading data, writing/updating cells, appending rows, clearing ranges, formatting cells, managing sheets. Requires a Google Cloud service account with Sheets API enabled.
Lists the top use cases for Skill to manage and update google sheet, with example commands for each scenario
Automate my documents & notes tasks using Skill to manage and update google sheet
Identifies repetitive steps in your workflow and sets up Skill to manage and update google sheet to handle them automatically
Skill to manage and update google sheet 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。