agentleFS
hyperfx-aihyperfx-ai/marketing-skills/skills/google-sheets/SKILL.md

google-sheets

Skill94 starsChanged 6 months agoMITView on GitHub

Safe workflow for reading, mapping, and writing Google Sheets without shifting columns or overwriting the wrong ranges. Use when the user wants to read, update, or append spreadsheet data, fix sheet structure, or sync data into Google Sheets.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use google-calendar and notion.

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.
  • younghaiSkill

    google-calendar

    Google Calendar 일정 조회, 검색, 등록. "일정", "스케줄", "캘린더" 등을 언급하면 자동 실행. Daily Note 작성, Weekly Review에 사용.

    Also in 4 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

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. 0 are common, 18 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill whenever you need to write structured data into an existing spreadsheet.

    line 30
  2. Distinctive:

    Every tool in this skill is named by its canonical tool name.

    line 39
  3. Distinctive:

    If a tool is not found, its integration is not connected or not enabled for the workspace: stop and tell the user which integration to …

    line 46
  4. Distinctive:

    Never write to Google Sheets from guessed column letters alone.

    line 50
  5. Distinctive:

    verify the destination range

    line 56
  6. Distinctive:

    read back sample rows to confirm alignment

    line 58
  7. Distinctive:

    Do not assume row 1 is the real header row.

    line 62
  8. Very specific:

    Do not assume column A is the first business/data column.

    line 63
  9. Very specific:

    Do not treat helper cells like Total, notes, formulas, merged labels, or spacer columns as real headers.

    line 64
  10. Distinctive:

    Do not overwrite a broad range before checking existing data and layout.

    line 65
  11. Distinctive:

    Do not claim success until you read back the written cells.

    line 66
  12. Distinctive:

    Read more than one row when structure is unknown.

    line 83
  13. Very specific:

    If the first row contains labels like Total, Notes, or other non-record metadata, do not anchor your write range to that row alone.

    line 93
  14. Distinctive:

    If a required header is missing or ambiguous, stop and ask the user instead of guessing.

    line 103
  15. Distinctive:

    Prefer narrow writes over large blanket writes.

    line 111
  16. Distinctive:

    If appending records into a table that already has fixed columns, compute the exact destination columns from the header map first.

    line 113
  17. Distinctive:

    Only write columns you have positively mapped.

    line 117
  18. Distinctive:

    Leave unrelated columns untouched.

    line 118
  19. Very specific:

    When a sheet contains helper columns before the table, start writing at the true mapped column, not column A.

    line 119
  20. Distinctive:

    If a field is intentionally blank, write a blank value only to that verified column.

    line 120
  21. Very specific:

    Use RAW unless the user explicitly wants formulas or Sheets parsing behavior.

    line 121
  22. Distinctive:

    read back the exact written range

    line 126
  23. Distinctive:

    If the read-back is misaligned, acknowledge it and correct it before reporting success.

    line 130

“Common” is measured: kept by at least 6 in 10 of the 10 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 Writing

Use this skill whenever you need to write structured data into an existing spreadsheet.

Requirements

How to run the tools in this skill

Every tool in this skill is named by its canonical tool name. Run it with the call your surface gives you:

SurfaceFind a toolRun it
MCP client (Claude, Cursor, Codex, ChatGPT)search("<what you want to do>"), then describe("<name>")call("<name>", {...})
Hyper CLIhyperai search "<what you want to do>", then hyperai describe <name>hyperai call <name> --json '{...}'

If a tool is not found, its integration is not connected or not enabled for the workspace: stop and tell the user which integration to connect.

Core Rule

Never write to Google Sheets from guessed column letters alone.

Always:

  1. inspect the workbook and target worksheet
  2. find the real header row
  3. map fields by header name
  4. verify the destination range
  5. write
  6. read back sample rows to confirm alignment

Critical Failure Modes To Avoid

  • Do not assume row 1 is the real header row.
  • Do not assume column A is the first business/data column.
  • Do not treat helper cells like Total, notes, formulas, merged labels, or spacer columns as real headers.
  • Do not overwrite a broad range before checking existing data and layout.
  • Do not claim success until you read back the written cells.

Required Workflow

Step 1: Inspect workbook structure

Start with:

  • google_sheets_get
  • google_sheets_worksheets_list if needed

Confirm:

  • worksheet title
  • row/column counts
  • whether there are multiple candidate tabs

Step 2: Read enough context to find the real headers

Read more than one row when structure is unknown.

Typical pattern:

  • google_sheets_values_get(..., range="Sheet1!A1:Z5")

Look for:

  • true column labels
  • helper columns before the real table
  • title rows, totals, formulas, blank separators

If the first row contains labels like Total, Notes, or other non-record metadata, do not anchor your write range to that row alone.

Step 3: Build a header map

Map your source fields to actual sheet headers by name, not memory.

Example:

  • source field business_name -> sheet header Business Name
  • source field contact_email -> sheet header Owner (s) Email

If a required header is missing or ambiguous, stop and ask the user instead of guessing.

Step 4: Choose the safest write strategy

Use:

  • google_sheets_values_update for one verified contiguous range
  • google_sheets_values_batch_update for multiple verified ranges

Prefer narrow writes over large blanket writes.

If appending records into a table that already has fixed columns, compute the exact destination columns from the header map first.

Write Rules

  • Only write columns you have positively mapped.
  • Leave unrelated columns untouched.
  • When a sheet contains helper columns before the table, start writing at the true mapped column, not column A.
  • If a field is intentionally blank, write a blank value only to that verified column.
  • Use RAW unless the user explicitly wants formulas or Sheets parsing behavior.

Verification Is Mandatory

Immediately after writing:

  1. read back the exact written range
  2. inspect at least 2-3 sample rows
  3. confirm each field landed under the intended header

If the read-back is misaligned, acknowledge it and correct it before reporting success.

Recommended Tool Pattern

  1. google_sheets_get
  2. google_sheets_values_get on a header-discovery range such as A1:Z5
  3. optional google_sheets_values_batch_get for existing data + destination area
  4. google_sheets_values_update or google_sheets_values_batch_update
  5. google_sheets_values_get on the written range for verification

Example Mindset

Bad:

  • “I saw Business Name near the start, so I will write A2:F51.”

Good:

  • “The first visible row includes Total: 7 in column A, while Business Name is actually in column B, so I will map the write range from B onward and verify it after writing.”

Download now (ZIP)

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.