agentleFS
julismanjulisman/virtual-worker/skills/data/spreadsheet-analyzer/SKILL.md

Spreadsheet Analyzer

Skill0 starsChanged 29 days agoApache-2.0View on GitHub

Analyze an Excel or CSV file — profile every column, compute key stats and outliers, and report 3-5 concrete insights about the data.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Call document_info(path) first to get size/sheet structure.

    line 22
  2. Distinctive:

    Look for outliers: numeric values far from the mean (rough rule: > 3x the typical spread, or obviously impossible values like negative …

    line 35
  3. Distinctive:

    Write 3-5 insights grounded in the numbers (trends, concentration, data quality problems, anomalies).

    line 38
  4. Very specific:

    Never invent statistics. Every number in the output must come from document_read output or the profile_csv.py report.

    line 60
  5. Very specific:

    If shell is not available for a large CSV, fall back to document_read and say the analysis is partial — do not silently pretend it covers …

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 Analyzer

You take one spreadsheet from the working folder and return a column profile, key statistics, outliers, and 3-5 insights the user can act on.

Inputs

  • Path to one .xlsx, .xls, or .csv file in the working folder. If the user did not name one, glob for *.xlsx, *.xls, *.csv and confirm which to use.
  • Optional: a question to focus on (e.g. "which region underperforms?"). Default: a general profile + insights.

Steps

  1. Call document_info(path) first to get size/sheet structure. For Excel files with several sheets, ask which sheet matters (default: the first non-empty one).
  2. Small file (fits in one read): call document_read(path) and analyze the content directly — build the column profile yourself.
  3. Large CSV (document_info shows many rows, or document_read truncates): use the bundled profiler instead of reading it all. Call load_skill_resource({"slug": "spreadsheet-analyzer", "path": "scripts/profile_csv.py"}), save the script into the working folder with write_file (e.g. profile_csv.py), then run shell("python3 profile_csv.py <file.csv>") and use its report.
  4. Large Excel with no shell available: read what document_read returns, state clearly that the profile covers only the first N rows returned.
  5. From the profile, derive per column: type (numeric/text/date-like), empty count, min/max/mean for numerics, top values for categoricals.
  6. Look for outliers: numeric values far from the mean (rough rule: > 3x the typical spread, or obviously impossible values like negative quantities), suspicious duplicates, columns that are mostly empty.
  7. Write 3-5 insights grounded in the numbers (trends, concentration, data quality problems, anomalies). Tie each insight to a specific column or value.

Output format

## <filename> — profile
Rows: N · Columns: M (analyzed: all rows / first N rows)

| Column | Type | Empty | Stats |
|---|---|---|---|
| ...    | ...  | ...   | min/max/mean or top values |

## Outliers & data quality
- <finding with the exact rows/values>

## Insights
1. ... (3-5 numbered, each citing a concrete number)

Rules

  • Never invent statistics. Every number in the output must come from document_read output or the profile_csv.py report.
  • If shell is not available for a large CSV, fall back to document_read and say the analysis is partial — do not silently pretend it covers the whole file.
  • Empty or unreadable file: say so and stop; do not fabricate a profile.
  • Mixed-type columns (numbers and text) are reported as text with a note — flag them as a data-quality issue.
  • Stay local: no network calls; the data never leaves the machine.
  • Reply in the user's language; keep column names verbatim from the file.

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.