read-file
Skill14 starsChanged 8 months agoApache-2.0View on GitHub
Read and explore data files (Parquet, CSV, JSON, Arrow IPC, Avro) locally or from S3/GCS. Auto-detects format by extension. Uses datafusion-cli for schema inspection and data preview.
6 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- justmytwospence/strava-mcptheir own version, first seen Nov 8, 2026
- a1ecbr0wn/obsidian-mcp-braintheir own version, first seen Nov 1, 2026
- Kaalia0912/dsh-data-analysis-modetheir own version, first seen Aug 20, 2026
- stephen94125/peon-libtheir own version, first seen Apr 17, 2026
- duckdb/duckdb-skillstheir own version, first seen Mar 19, 2026
- carlopi/duckdb-claude-skillsedited, first seen Mar 9, 2026
Used with
Projects with it also use attach-db.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
duckdbSkillattach-db
Attach a DuckDB database file for use with /duckdb-skills:query. Explores the schema (tables, columns, row counts) and writes a SQL state file so subsequent queries can restore this session automatically via duckdb -init.
Also in 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- carlopi/duckdb-claude-skills★ 223% same
Wrote their own version · 5
- duckdb/duckdb-skills★ 598same name
- Kaalia0912/dsh-data-analysis-mode★ 2same name
- stephen94125/peon-lib★ 2same name
- a1ecbr0wn/obsidian-mcp-brain★ 1same name
- justmytwospence/strava-mcp★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- create-tableSkill
- datafusion-docsSkill
- explain-planSkill
- install-datafusionSkill
- materialized-viewSkill
- querySkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
8
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
- Distinctive: line 16
Follow these steps in order, stopping and reporting clearly if any step fails.
- Very specific: line 39
Use the URI/URL as-is for RESOLVED_PATH.
- Distinctive: line 45
Check if credentials are available:
- Distinctive: line 51
If not available, inform the user they need to configure AWS credentials.
- Very specific: line 59
If not found, delegate to /datafusion-skills:install-datafusion and then continue.
- Distinctive: line 131
If the extension doesn't match any known format:
- Distinctive: line 157
After answering, suggest relevant follow-ups:
- Distinctive: line 161
If the file is useful for repeated access:
- Distinctive: line 165
If the data is large and the user might want to materialize a summary:
- Distinctive: line 169
Keep suggestions brief and show them only once.
- Very specific: line 175
Error troubleshooting: Use /datafusion-skills:datafusion-docs for unclear errors
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
You are helping the user read and analyze a data file using Apache DataFusion.
Filename given: $0
Question: ${1:-describe the data}
Follow these steps in order, stopping and reporting clearly if any step fails.
Step 1 — Classify and resolve the path
Determine whether the input is local or remote:
- S3 URI (
s3://...) → remote - GCS URI (
gs://...) → remote - HTTPS/HTTP URL → remote (DataFusion supports HTTP via object_store)
- Otherwise → local file
Local files
find "$PWD" -name "$0" -not -path '*/.git/*' 2>/dev/null- Zero results → tell the user the file was not found and stop.
- More than one result → list all matches, ask the user to re-run with a fuller path, and stop.
- Exactly one result → use that full path (
RESOLVED_PATH).
Remote files
Use the URI/URL as-is for RESOLVED_PATH.
For S3 access, DataFusion uses environment variables:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION- Or
AWS_PROFILEfor profile-based credentials
Check if credentials are available:
test -n "$AWS_ACCESS_KEY_ID" || test -n "$AWS_PROFILE" || test -f "$HOME/.aws/credentials"If not available, inform the user they need to configure AWS credentials.
Step 2 — Check datafusion-cli is installed
command -v datafusion-cliIf not found, delegate to /datafusion-skills:install-datafusion and then continue.
Step 3 — Detect file format and read
Detect format from extension:
| Extension | Format | DataFusion support |
.parquet, .pq | Parquet | Direct query: SELECT * FROM 'file.parquet' |
.csv, .tsv, .txt | CSV | Direct query: SELECT * FROM 'file.csv' |
.json, .jsonl, .ndjson | JSON | Direct query: SELECT * FROM 'file.json' |
.arrow, .ipc, .feather | Arrow IPC | CREATE EXTERNAL TABLE with STORED AS ARROW |
.avro | Avro | CREATE EXTERNAL TABLE with STORED AS AVRO |
Important: datafusion-cli -c only accepts one SQL statement per flag. Use multiple
-c flags for multiple statements, or write a .sql file and use --file.
For Parquet, CSV, and JSON files (direct query):
DataFusion v44+ supports direct queries on Parquet, CSV, and JSON files by path:
datafusion-cli -c "DESCRIBE 'RESOLVED_PATH';"datafusion-cli -c "SELECT COUNT(*) AS row_count FROM 'RESOLVED_PATH';"datafusion-cli -c "SELECT * FROM 'RESOLVED_PATH' LIMIT 10;"For CSV files with non-standard delimiters or no header, fall back to CREATE EXTERNAL TABLE
using a .sql file:
cat > /tmp/_df_preview.sql << 'SQL'
CREATE EXTERNAL TABLE _preview STORED AS CSV LOCATION 'RESOLVED_PATH' OPTIONS ('has_header' 'false', 'delimiter' '\t');
DESCRIBE _preview;
SELECT COUNT(*) AS row_count FROM _preview;
SELECT * FROM _preview LIMIT 10;
SQL
datafusion-cli --file /tmp/_df_preview.sqlFor Arrow IPC files:
cat > /tmp/_df_preview.sql << 'SQL'
CREATE EXTERNAL TABLE _preview STORED AS ARROW LOCATION 'RESOLVED_PATH';
DESCRIBE _preview;
SELECT COUNT(*) AS row_count FROM _preview;
SELECT * FROM _preview LIMIT 10;
SQL
datafusion-cli --file /tmp/_df_preview.sqlFor Avro files:
cat > /tmp/_df_preview.sql << 'SQL'
CREATE EXTERNAL TABLE _preview STORED AS AVRO LOCATION 'RESOLVED_PATH';
DESCRIBE _preview;
SELECT COUNT(*) AS row_count FROM _preview;
SELECT * FROM _preview LIMIT 10;
SQL
datafusion-cli --file /tmp/_df_preview.sqlUnknown format
If the extension doesn't match any known format:
- Try Parquet first (most common in data engineering)
- Then try CSV with auto-detection
- Report the error and suggest the user specify the format
Step 4 — Handle errors
datafusion-cli: command not found→ invoke/datafusion-skills:install-datafusionand retry- File not found → double-check the path, suggest using absolute path
- Parse error on CSV → try different options:
OPTIONS ('has_header' 'false'), orOPTIONS ('delimiter' '\t')for TSV - S3 access denied → remind user to configure AWS credentials
- Persistent error → use
/datafusion-skills:datafusion-docs <error keywords>for help
Step 5 — Answer the question
Using the schema, row count, and sample rows gathered above, answer:
${1:-describe the data: summarize column types, row count, and any notable patterns.}
Be concise but thorough — mention:
- Number of columns and their types
- Row count
- Any notable patterns in the sample (nulls, date ranges, value distributions)
Step 6 — Suggest next steps
After answering, suggest relevant follow-ups:
To query this data further — filter, aggregate, join — use
/datafusion-skills:query.
If the file is useful for repeated access:
To register this as a persistent table, run
/datafusion-skills:create-table RESOLVED_PATH.
If the data is large and the user might want to materialize a summary:
To persist a summary as a Parquet file, try
/datafusion-skills:materialized-view.
Keep suggestions brief and show them only once.
Cross-skill integration
- Query follow-ups: Suggest
/datafusion-skills:queryfor further exploration - Table registration: Suggest
/datafusion-skills:create-tablefor persistent access - Error troubleshooting: Use
/datafusion-skills:datafusion-docsfor unclear errors
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
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.

