agentleFS
pbc-ospbc-os/smb-starter-kit/skills/tier-3-business-ops/google-sheets/SKILL.md

google-sheets

Skill10 starsChanged 7 months agoMITView on GitHub

Spreadsheet operations for small businesses. Sales tracking, inventory management, expense reports, simple dashboards, and data import/export. Built on the gws CLI.

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run gws auth login -s sheets,drive if not already done

    line 30
  2. Very specific:

    Use valueInputOption: "USER_ENTERED" to let Sheets parse dates, numbers, and formulas

    line 217
  3. Very specific:

    Use valueInputOption: "RAW" when you want exact text (no parsing)

    line 218
  4. Distinctive:

    Use named ranges in your sheets for more readable API calls

    line 220

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Google Sheets

Spreadsheet operations built for how small businesses actually track data.

Uses the gws CLI for all Sheets operations. See the google-workspace skill for setup.

Triggers

  • "read the spreadsheet"
  • "update the sheet"
  • "add a row to..."
  • "create a spreadsheet"
  • "pull data from sheets"
  • "log this to a spreadsheet"
  • Any request involving spreadsheet read/write operations

Prerequisites

  • gws CLI installed and authenticated with Sheets + Drive scope
  • Run gws auth login -s sheets,drive if not already done

Core Commands

gws sheets +read                   # Read values from a spreadsheet
gws sheets +append                 # Append a row to a spreadsheet
gws sheets spreadsheets create     # Create a new spreadsheet
gws sheets spreadsheets get        # Get spreadsheet metadata

Common Operations

Read data from a sheet

# Read a range
gws sheets +read
# When prompted: spreadsheet ID + range (e.g., "Sheet1!A1:D10")

# Read via API directly
gws sheets spreadsheets values get --params '{
  "spreadsheetId": "SPREADSHEET_ID",
  "range": "Sheet1!A1:D100"
}'

# Read entire sheet
gws sheets spreadsheets values get --params '{
  "spreadsheetId": "SPREADSHEET_ID",
  "range": "Sheet1"
}'

Append a row

# Append a single row
gws sheets +append
# When prompted: spreadsheet ID, range, values

# Append via API directly
gws sheets spreadsheets values append --params '{
  "spreadsheetId": "SPREADSHEET_ID",
  "range": "Sheet1!A:D",
  "valueInputOption": "USER_ENTERED"
}' --json '{
  "values": [["2026-01-15", "Widget A", "50", "$12.50"]]
}'

Write / Update cells

# Update a specific range
gws sheets spreadsheets values update --params '{
  "spreadsheetId": "SPREADSHEET_ID",
  "range": "Sheet1!B2",
  "valueInputOption": "USER_ENTERED"
}' --json '{
  "values": [["updated value"]]
}'

# Batch update multiple ranges
gws sheets spreadsheets values batchUpdate --params '{
  "spreadsheetId": "SPREADSHEET_ID"
}' --json '{
  "valueInputOption": "USER_ENTERED",
  "data": [
    {"range": "Sheet1!A1", "values": [["Revenue"]]},
    {"range": "Sheet1!B1", "values": [["Date"]]},
    {"range": "Sheet1!A2", "values": [["$1,250"]]}
  ]
}'

Create a new spreadsheet

gws sheets spreadsheets create --json '{
  "properties": {"title": "Q1 2026 Sales Tracker"},
  "sheets": [
    {"properties": {"title": "Daily Sales"}},
    {"properties": {"title": "Summary"}},
    {"properties": {"title": "By Product"}}
  ]
}'

SMB Spreadsheet Templates

For ready-to-adapt sheet designs — Daily Sales, Inventory, Expense Tracking, Vendor Log, Order Log, and a simple P&L — see references/smb-sheet-templates.md. Each template includes a recommended column layout, conditional formatting rules, and SUMIFS/INDEX formulas you can drop in.

SMB Spreadsheet Patterns

Daily Sales Log

Track daily revenue with a simple append workflow:

# Append today's sales data
gws sheets spreadsheets values append --params '{
  "spreadsheetId": "SALES_SHEET_ID",
  "range": "Daily Sales!A:E",
  "valueInputOption": "USER_ENTERED"
}' --json '{
  "values": [["2026-01-15", "Store 1", "$2,450", "87 transactions", "Wednesday"]]
}'

Inventory Tracking

# Read current inventory levels
gws sheets spreadsheets values get --params '{
  "spreadsheetId": "INVENTORY_SHEET_ID",
  "range": "Current Stock!A2:D"
}' --format json | jq '.values[] | select(.[2] | try tonumber catch -1) | select(.[2] | tonumber < 10)'
# Find items with less than 10 units.
# Note: `A2:D` skips the header row; the `try/catch` guards against non-numeric cells.

Expense Tracking

# Log an expense
gws sheets spreadsheets values append --params '{
  "spreadsheetId": "EXPENSE_SHEET_ID",
  "range": "Expenses!A:E",
  "valueInputOption": "USER_ENTERED"
}' --json '{
  "values": [["2026-01-15", "Office Supplies", "Staples", "$47.32", "Receipt in Drive"]]
}'

Simple Reporting

# Read summary data for a report
gws sheets spreadsheets values get --params '{
  "spreadsheetId": "REPORT_SHEET_ID",
  "range": "Summary!A1:C12"
}' --format table

Data Export

# Export sheet as CSV (via Drive export)
gws drive files export --params '{
  "fileId": "SPREADSHEET_ID",
  "mimeType": "text/csv"
}' -o ./export.csv

# Export as Excel
gws drive files export --params '{
  "fileId": "SPREADSHEET_ID",
  "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}' -o ./export.xlsx

Finding Spreadsheets

# List all spreadsheets
gws drive files list --params '{
  "q": "mimeType=\"application/vnd.google-apps.spreadsheet\"",
  "pageSize": 20,
  "orderBy": "modifiedTime desc"
}' --format table

# Search by name
gws drive files list --params '{
  "q": "mimeType=\"application/vnd.google-apps.spreadsheet\" and name contains '\''sales'\''",
  "pageSize": 10
}'

Integration with Other Skills

  • autoresearch — Track experiment results in sheets; use sheet data as eval input
  • google-drive — Sheets are Drive files; use Drive for search and permissions
  • gmail — Email sheet data as reports
  • morning-briefing — Pull KPIs from sheets for daily briefing
  • semantic-layer-audit — Document sheet data sources in your semantic layer

Tips

  • Use valueInputOption: "USER_ENTERED" to let Sheets parse dates, numbers, and formulas
  • Use valueInputOption: "RAW" when you want exact text (no parsing)
  • Spreadsheet IDs are in the URL: docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit
  • Use named ranges in your sheets for more readable API calls
  • For large datasets, consider BigQuery instead of Sheets (Sheets has a 10M cell limit)
  • --format csv output from gws can be piped directly into other tools

Related Skills

  • google-workspace — Required setup (install and auth)
  • google-drive — File-level operations on spreadsheets
  • autoresearch — Use sheets as parameter/experiment tracking
  • morning-briefing — Pull sheet KPIs into daily digest

Sheets are the swiss army knife of small business data. Simple, flexible, and accessible.

Download now (ZIP)

  • Other versions18 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 18

    1. openai/plugins★ 7.4ksame name
    2. Lilac-Labs/gini-agent★ 1.9ksame name
    3. Open-Curiosity/gini-agent★ 1.9ksame name
    4. gemini-cli-extensions/workspace★ 646same name
    5. sanjay3290/ai-skills★ 424same name
    6. refly-ai/refly-skills★ 203same name
    7. hyperfx-ai/marketing-skills★ 107same name
    8. alanalvestech/hitank★ 38same name
    9. AceDataCloud/Skills★ 17same name
    10. chnlich/charlie-bot★ 9same name

    8 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use google-gmail, instagram and 5 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • leolionartSkill

      google-gmail

      Operate Gmail via the Google Workspace CLI (gws) — send emails, reply with threading, triage inbox, and stream new messages as NDJSON. Use when users ask to send/forward/reply emails, check inbox summary, or automate email workflows.

      Also in 4 projects that use this

    • refly-aiSkill

      instagram

      Integrate with Instagram for social media. Use when you need to: (1) post content to Instagram, (2) manage media and insights, or (3) automate Instagram publishing workflows.

      Also in 3 projects that use this

    • OpenAISkill

      linear

      Manage issues, projects & team workflows in Linear. Use when the user wants to read, create or updates tickets in Linear.

      Also in 5 projects that use this

    • ReScienceLabSkill

      reddit

      Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API. Use when user mentions Reddit, a subreddit, or r/ links.

      Also in 3 projects that use this

    • refly-aiSkill

      youtube

      Integrate with YouTube for video management. Use when you need to: (1) upload videos to YouTube, (2) manage channel content, or (3) retrieve video analytics and insights.

      Also in 3 projects that use this

    • SentrySkill

      notion

      Search, fetch, create, update, and move Notion pages and data sources. Use when users ask to look up docs, specs, notes, meeting notes, project context, roadmaps, trackers, or internal references stored in Notion, or when they explicitly ask to create or edit Notion content.

      Also in 3 projects that use this

  • In this repository23 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.