Productivity & TasksDocumentedScanned
google-sheet
Read, write, append, and manage Google Sheets via the Google Sheets API (Node.js SDK).
Share:
Installation
npx clawhub@latest install google-sheetView the full skill documentation and source below.
Documentation
Google Sheets Skill
Interact with Google Sheets using a service account.
Setup (One-time)
- 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)cd skills/google-sheets && npm install
Usage
node scripts/sheets.js <command> [args]
Commands
Data Operations
| Command | Args | Description |
read | | Read cells |
write | | Write data |
append | | Append rows |
clear | | Clear range |
Formatting
| Command | Args | Description |
format | | Format cells |
getFormat | | Get cell formats |
borders | [styleJson] | Add borders |
copyFormat | | Copy format between ranges |
merge | | Merge cells |
unmerge | | Unmerge cells |
Layout
| Command | Args | Description |
resize | | Resize columns/rows |
autoResize | | Auto-fit columns |
freeze | [rows] [cols] | Freeze rows/columns |
Sheet Management
| Command | Args | Description |
create | |