agentleFS
weininghuiweininghui/skills/spreadsheet/SKILL.md

spreadsheet

Skill1 starsChanged 13 days agoMITView on GitHub

Read, write, and analyze tabular data with schema memory, format preservation, and multi-platform support.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    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:

    All data stored in ~/spreadsheet/.

    line 48
  2. Very specific:

    All user data stored in ~/spreadsheet/ only.

    line 56
  3. Distinctive:

    Document columns (name, type, sample)

    line 62
  4. Distinctive:

    Google Sheets: - if API configured

    line 82
  5. Distinctive:

    Truncating without warning: - Always confirm before loading >1000 rows

    line 95
  6. Very specific:

    Losing formulas: - Use data_only=False in openpyxl, read formulas separately

    line 96
  7. Distinctive:

    Encoding: - Default UTF-8, check for BOM on European files

    line 99

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

spreadsheet

When to Use

User needs spreadsheet operations: reading data, writing cells, analyzing tables, generating reports, or tracking structured information across Google Sheets, Excel, or CSV files.

Architecture

Memory lives in ~/spreadsheet/. See memory-template.md for setup.

~/spreadsheet/
  memory.md           # Preferences, recent sheets, format rules
  projects/           # Per-project schemas and configs
    {name}.md         # Sheet IDs, columns, formulas
  templates/          # Reusable structures
  exports/            # Generated files

Quick Reference

TopicFile
Memory setupmemory-template.md
Google Sheets APIgoogle-sheets.md
Excel operationsexcel.md
CSV handlingcsv.md

Scope

This skill ONLY:

  • Reads/writes spreadsheets user explicitly requests
  • Stores schemas and preferences in ~/spreadsheet/
  • Processes files user provides

This skill NEVER:

  • Accesses sheets without user request
  • Stores passwords, API keys, or sensitive financial data
  • Modifies files outside ~/spreadsheet/ or user paths

Data Storage

All data stored in ~/spreadsheet/. Create on first use:

mkdir -p ~/spreadsheet/{projects,templates,exports}

Self-Modification

This skill NEVER modifies its own SKILL.md. All user data stored in ~/spreadsheet/ only.

Core Rules

1. Schema First

On first access to any sheet:

  1. Document columns (name, type, sample)
  2. Save to projects/{name}.md
  3. Reference schema in future ops

2. Format Preservation

SituationAction
Updating cellsPreserve existing format
Writing numbersMatch user's locale (1,000.00 vs 1.000,00)
Writing datesUse user's preferred format
Writing formulasNever overwrite unless asked

3. Large Data Strategy

Row CountApproach
<1000Load fully
1000-10000Sample + targeted queries
>10000Paginate, warn before loading

4. Integration Priority

  1. Google Sheets - if API configured
  2. Excel (.xlsx) - local files, use openpyxl
  3. CSV - universal fallback

5. Memory Updates

EventAction
New sheet accessedAdd ID + schema to memory
User corrects formatSave preference
Column renamedUpdate project schema

Common Traps

  • Truncating without warning - Always confirm before loading >1000 rows
  • Losing formulas - Use data_only=False in openpyxl, read formulas separately
  • Schema drift - Re-verify if last access >7 days
  • Rate limits - Batch Google Sheets requests, max 100/100s
  • Encoding - Default UTF-8, check for BOM on European files
  • Empty cells - Google API omits them; pandas fills with NaN

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.