VM0VM0
Agent Skills

Google Sheets

Read and write data in Google Sheets

Google Sheets is a spreadsheet application. This skill enables your agent to read data, update cells, and manage spreadsheets.

Required Environment

NameTypeDescription
GOOGLE_SHEETS_CLIENT_IDvarOAuth client ID
GOOGLE_SHEETS_CLIENT_SECRETsecretOAuth client secret
GOOGLE_SHEETS_REFRESH_TOKENsecretRefresh token

See Google Cloud Console for how to obtain these credentials. Select the minimum scope required for your use case:

ScopeDescription
https://www.googleapis.com/auth/spreadsheets.readonlyRead spreadsheets only
https://www.googleapis.com/auth/spreadsheetsFull access (read and write)

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    framework: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/google-sheets

Run

Store your secrets on the platform (recommended, one-time setup):

vm0 secret set GOOGLE_SHEETS_CLIENT_SECRET your-google-sheets-client-secret
vm0 secret set GOOGLE_SHEETS_REFRESH_TOKEN your-google-sheets-refresh-token

Then run your agent - secrets are automatically loaded:

vm0 run my-agent "update the spreadsheet"

For CI/CD or temporary overrides, pass secrets at runtime: --secrets GOOGLE_SHEETS_CLIENT_SECRET=value. See Environment Variables for details.

Example Instructions

AGENTS.md
# Report Generator

You use Google Sheets to create weekly reports.

## Workflow

1. Fetch data from various sources
2. Create new sheet for the week
3. Populate with formatted data
4. Add charts and summaries

## Sheet Structure

- Summary tab with KPIs
- Raw data tabs by category
- Charts for visualization
AGENTS.md
# Data Sync Agent

You use Google Sheets to keep spreadsheets synchronized with databases.

## Workflow

1. Read data from the source spreadsheet
2. Compare with database records
3. Update changed rows
4. Log sync results

## Sync Rules

- Only sync rows with changes
- Preserve formatting
- Add timestamp to synced rows