askill
sheets-skill

sheets-skillSafety 92Repository

Read, write, and append data to Google Sheets spreadsheets. Supports cell ranges, formulas, and batch operations.

18 stars
1.2k downloads
Updated 3/12/2026

Package Files

Loading files...
SKILL.md

Google Sheets Skill

Read and write data to Google Sheets spreadsheets.

Tool: google_sheets

Consolidated Google Sheets tool with operation parameter.

Operations

OperationDescriptionRequired Fields
readRead data from a rangespreadsheet_id, range
writeWrite data to a rangespreadsheet_id, range, values
appendAppend rows to a tablespreadsheet_id, range, values

read - Read spreadsheet data

FieldTypeRequiredDescription
operationstringYesMust be "read"
spreadsheet_idstringYesSpreadsheet ID from URL
rangestringYesA1 notation range (e.g., "Sheet1!A1:D10")

How to find Spreadsheet ID: From URL: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit

Range Notation (A1):

  • Sheet1!A1:D10 - Specific range on Sheet1
  • Sheet1!A:D - Entire columns A through D
  • Sheet1!1:10 - Rows 1 through 10
  • A1:D10 - Default sheet, specific range
  • Sheet1 - Entire sheet

Example:

{
  "operation": "read",
  "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
  "range": "Sheet1!A1:E10"
}

write - Write data to a range

FieldTypeRequiredDescription
operationstringYesMust be "write"
spreadsheet_idstringYesSpreadsheet ID
rangestringYesA1 notation range
valuesarrayYes2D array of values
value_input_optionstringNo"USER_ENTERED" or "RAW" (default: USER_ENTERED)

Example - Write data:

{
  "operation": "write",
  "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
  "range": "Sheet1!A1:C3",
  "values": [
    ["Name", "Score", "Grade"],
    ["Alice", 95, "A"],
    ["Bob", 87, "B"]
  ]
}

Example - Write formula:

{
  "operation": "write",
  "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
  "range": "Sheet1!D2",
  "values": [["=SUM(B2:C2)"]],
  "value_input_option": "USER_ENTERED"
}

append - Append rows to a table

FieldTypeRequiredDescription
operationstringYesMust be "append"
spreadsheet_idstringYesSpreadsheet ID
rangestringYesTable range (e.g., "Sheet1!A:E")
valuesarrayYes2D array of rows to append
value_input_optionstringNo"USER_ENTERED" or "RAW" (default: USER_ENTERED)
insert_data_optionstringNo"INSERT_ROWS" or "OVERWRITE" (default: INSERT_ROWS)

Example:

{
  "operation": "append",
  "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
  "range": "Sheet1!A:E",
  "values": [
    ["Charlie", "charlie@example.com", "Sales", "2024-02-01", "Active"],
    ["Diana", "diana@example.com", "HR", "2024-02-15", "Active"]
  ]
}

Common Formulas

FormulaDescription
=SUM(A1:A10)Sum of range
=AVERAGE(B1:B10)Average of range
=COUNT(A:A)Count numbers in column
=COUNTA(A:A)Count non-empty cells
=VLOOKUP(E1,A:C,2,FALSE)Vertical lookup
=IF(A1>90,"A","B")Conditional logic
=TODAY()Current date
=NOW()Current date and time

Common Workflows

  1. Import data: Write headers, then append data rows
  2. Update records: Read to find row, write to specific cells
  3. Generate reports: Read data, process, write summary
  4. Log entries: Append new rows with timestamps

Tips

  • Always check spreadsheet exists before writing
  • Use USER_ENTERED for formulas to work
  • Range must match data dimensions
  • Append is safer than write for adding data

Setup Requirements

  1. Connect Sheets node to AI Agent's input-tools handle
  2. Authenticate with Google Workspace in Credentials Modal
  3. Ensure Sheets API scopes are authorized
  4. Spreadsheet must be accessible to authenticated account

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

92/100Analyzed 3/15/2026

High-quality technical reference skill for Google Sheets API operations. Provides comprehensive documentation for read, write, and append operations with detailed JSON examples, parameter tables, common formulas, and setup instructions. Well-structured and reusable across projects with good clarity and actionability. Minor gap in error handling guidance.

92
95
90
88
95

Metadata

Licenseunknown
Version-
Updated3/12/2026
Publishertrohitg

Tags

api