# Dtfilter

> Use when the user asks to filter, query, search, or extract specific rows or columns from a tabular data file (CSV, TSV, Parquet, Arrow, JSON, NDJSON, Excel). Also use when the user wants to sort data, find rows matching conditions, or select specific columns from any supported format.

- **Type:** Skill
- **Install:** `agentstack add skill-louloulibs-claude-skills-dtfilter`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [LouLouLibs](https://agentstack.voostack.com/s/louloulibs)
- **Installs:** 0
- **Category:** [Data & Analytics](https://agentstack.voostack.com/c/data-and-analytics)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [LouLouLibs](https://github.com/LouLouLibs)
- **Source:** https://github.com/LouLouLibs/claude-skills/tree/main/skills/dtfilter

## Install

```sh
agentstack add skill-louloulibs-claude-skills-dtfilter
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# dtfilter — Tabular Data Filter

Filter, sort, and select data from any supported tabular file format. Outputs markdown tables or CSV.

## Quick Reference

```bash
# Filter rows where State equals CA
dtfilter data.csv --filter State=CA

# Multiple filters (AND logic)
dtfilter data.parquet --filter State=CA --filter Amount>1000

# Select specific columns
dtfilter data.csv --columns State,City,Amount

# Sort by column (ascending by default)
dtfilter data.csv --sort Amount
dtfilter data.csv --sort Amount:desc

# Limit output rows
dtfilter data.csv --filter Status=Active --limit 10

# First/last N rows (before filtering)
dtfilter data.csv --head 20
dtfilter data.csv --tail 10

# Target a specific sheet (Excel)
dtfilter report.xlsx --sheet Revenue --filter Region=East

# Skip metadata rows above header
dtfilter data.csv --skip 2 --filter Name~alice

# CSV output for piping
dtfilter data.parquet --filter Amount>500 --csv

# Override format detection
dtfilter data.txt --format csv --filter value>100
```

## Filter Operators

| Operator | Meaning | Example |
|----------|---------|---------|
| `=` | Equals | `State=CA` |
| `!=` | Not equals | `Status!=Draft` |
| `>` | Greater than | `Amount>1000` |
| `=` | Greater or equal | `Score>=90` |
| `` | Override format detection |
| `--sheet ` | Select sheet (Excel only) |
| `--skip ` | Skip metadata rows above header |
| `--filter ` | Filter rows (repeatable, AND logic) |
| `--sort ` | Sort by column (`col` or `col:desc`) |
| `--columns ` | Select columns by name (comma-separated) |
| `--head ` | First N rows (before filtering) |
| `--tail ` | Last N rows (before filtering) |
| `--limit ` | Max rows in output (after filtering) |
| `--csv` | Output as CSV instead of markdown |

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | Success |
| 1 | Runtime error |
| 2 | Invalid arguments |

## Workflow

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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [LouLouLibs](https://github.com/LouLouLibs)
- **Source:** [LouLouLibs/claude-skills](https://github.com/LouLouLibs/claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-louloulibs-claude-skills-dtfilter
- Seller: https://agentstack.voostack.com/s/louloulibs
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
