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

xlfilter

Skill1 starsChanged 3 months agoMITView on GitHub

Use when the user asks to filter, query, search, or extract specific rows or columns from an Excel spreadsheet. Also use when the user wants to sort spreadsheet data, find rows matching conditions, or select specific columns from an xlsx file.

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:

    Use xlcat file.xlsx first to see schema and sample data

    line 82
  2. Very specific:

    Use --where to filter rows by conditions

    line 83
  3. Very specific:

    Use --cols to narrow to relevant columns

    line 84
  4. Very specific:

    Use --sort to order results

    line 85
  5. Very specific:

    Use --csv when piping to other tools

    line 86

≈ “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

xlfilter — Excel Row/Column Filter

Filter, sort, and select data from Excel files. Outputs markdown tables or CSV.

Quick Reference

# Filter rows where State equals CA
xlfilter file.xlsx --where State=CA

# Multiple filters (AND logic)
xlfilter file.xlsx --where State=CA --where Amount>1000

# Select specific columns
xlfilter file.xlsx --cols State,City,Amount

# Sort by column (ascending by default)
xlfilter file.xlsx --sort Amount
xlfilter file.xlsx --sort Amount:desc

# Limit output rows
xlfilter file.xlsx --where Status=Active --limit 10

# First/last N rows (before filtering)
xlfilter file.xlsx --head 20
xlfilter file.xlsx --tail 10

# Target a specific sheet
xlfilter file.xlsx --sheet Revenue --where Region=East

# Skip metadata rows above the real header
xlfilter file.xlsx --skip 2 --where Name~alice

# CSV output for piping
xlfilter file.xlsx --where Amount>500 --csv

Filter Operators

OperatorMeaningExample
=EqualsState=CA
!=Not equalsStatus!=Draft
>Greater thanAmount>1000
<Less thanYear<2024
>=Greater or equalScore>=90
<=Less or equalPrice<=50
~Contains (case-insensitive)Name~john
!~Not containsName!~test

Numeric columns compare numerically. String columns compare lexicographically.

Flags

FlagPurpose
--where <expr>Filter rows (repeatable, AND logic)
--cols <cols>Select columns by name or letter (A,B,D)
--sort <spec>Sort by column (col or col:desc)
--limit <n>Max rows in output (after filtering)
--head <n>First N rows (before filtering)
--tail <n>Last N rows (before filtering)
--sheet <name|idx>Select sheet by name or 0-based index
--skip <n>Skip metadata rows above header
--csvOutput as CSV instead of markdown

Exit Codes

CodeMeaning
0Success
1Runtime error
2Invalid arguments

Workflow

  1. Use xlcat file.xlsx first to see schema and sample data
  2. Use --where to filter rows by conditions
  3. Use --cols to narrow to relevant columns
  4. Use --sort to order results
  5. Use --csv when piping to other tools

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.