agentleFS
LouLouLibsLouLouLibs/claude-skills/skills/xldiff/SKILL.md

xldiff

Skill1 starsChanged 3 months agoMITView on GitHub

Use when the user asks to compare, diff, or find differences between two Excel spreadsheets or sheets within a spreadsheet. Also use when the user mentions xlsx diff, spreadsheet comparison, or wants to know what changed between two Excel files.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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. Very specific:

    Positional (default, no --key): Every column defines identity.

    line 56
  2. Very specific:

    Use --key if rows have a natural identity column (ID, date, etc.)

    line 71
  3. Very specific:

    Use --tolerance for financial/scientific data with float rounding

    line 72
  4. Very specific:

    Use --cols to ignore noisy columns (timestamps, audit fields)

    line 73
  5. Very specific:

    Use --format json for structured output, --format markdown for LLM consumption

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

xldiff — Excel Sheet Comparison

Compare two Excel sheets and report added, removed, and modified rows.

Quick Reference

# Compare two files (first sheet, positional mode)
xldiff old.xlsx new.xlsx

# Compare by key column
xldiff old.xlsx new.xlsx --key ID

# Composite key
xldiff old.xlsx new.xlsx --key Date,Ticker

# Compare specific sheets in the same file
xldiff data.xlsx:Sheet1 data.xlsx:Sheet2

# Select sheet by name or 0-based index
xldiff file.xlsx:Sales other.xlsx:Revenue

# Skip metadata rows (3 in file1, 5 in file2)
xldiff file1.xlsx file2.xlsx --skip 3,5

# Float tolerance (differences <= 0.01 treated as equal)
xldiff old.xlsx new.xlsx --key ID --tolerance 0.01

# Only compare specific columns
xldiff old.xlsx new.xlsx --key ID --cols Name,Score

# Output formats
xldiff old.xlsx new.xlsx --format markdown
xldiff old.xlsx new.xlsx --key ID --format json
xldiff old.xlsx new.xlsx --format csv

Flags

FlagDefaultPurpose
--key <cols>(none)Row identity columns (name or column letter), comma-separated
--cols <cols>allColumns to compare (key columns always included)
--skip <n>[,m]0Rows to skip before header row
--tolerance <f>(none)Numeric tolerance for float comparisons
--formattexttext, markdown, json, or csv
--no-colorfalseForce-disable ANSI colors (auto-detected)

Diff Modes

Positional (default, no --key): Every column defines identity. Rows match exactly or differ. Reports added/removed only.

Key-based (--key specified): Match rows by key columns, compare remaining columns cell by cell. Reports added, removed, and modified with per-cell old/new values. Tolerance applies only in this mode.

Exit Codes

CodeMeaning
0No differences
1Differences found
2Error

Workflow

  1. Identify the two files (or file + two sheets) to compare
  2. Use --key if rows have a natural identity column (ID, date, etc.)
  3. Use --tolerance for financial/scientific data with float rounding
  4. Use --cols to ignore noisy columns (timestamps, audit fields)
  5. Use --format json for structured output, --format markdown for LLM consumption

Common Patterns

What changed between these files:

xldiff old.xlsx new.xlsx --key ID

Compare two tabs in the same workbook:

xldiff file.xlsx:Q1 file.xlsx:Q2

Ignore small rounding differences:

xldiff old.xlsx new.xlsx --key ID --tolerance 0.001

Pipe structured results for further processing:

xldiff a.xlsx b.xlsx --key ID --format json | jq '.modified'

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.