read-file
Skill by ipea
Reads data files and remote URLs with DuckDB and reports their schema, row count and sample rows. Built for users who ask what is in a file or want to preview or profile a dataset. Not for source code.
Install read-file
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ipea/geocodebr /tmp/geocodebr && mkdir -p ~/.claude/skills && cp -r /tmp/geocodebr/.claude/skills/read-file ~/.claude/skills/read-fileRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ipea/geocodebr /tmp/geocodebr && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/geocodebr/.claude/skills/read-file ~/.gemini/antigravity-cli/skills/read-fileAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
read-file is an agent skill that reads a data file or remote URL with DuckDB. It accepts CSV, TSV, TXT, JSON, JSONL, NDJSON, GeoJSON, HAR, Parquet, Avro, Excel (xlsx and xls), spatial files (shp, gpkg, fgb, kml), SQLite databases and Jupyter notebooks. A bare filename is resolved with find first. Remote sources include HTTP, HTTPS, S3, GCS and Azure paths, which use a DuckDB credential chain secret.
The skill runs one DuckDB command that defines a read_any macro, then returns the schema, row count and first 20 rows. It then answers the user's question, or by default summarizes column types, row count and notable patterns. The source says it is for previewing and profiling datasets and is not for source code.
Written from the project's SKILL.md and checked against it.
What it can do
- Read local data filesReads CSV, JSON, Parquet, Avro, Excel, spatial, SQLite and notebook files via DuckDB.
- Read remote filesReads files from HTTP, HTTPS, S3, GCS and Azure paths.
- Describe schemaReturns column names and types with a DESCRIBE query.
- Count rowsReports the total row count of the file.
- Preview sample rowsShows the first 20 rows of the file.
- Resolve bare filenamesFinds a file by bare name with find before reading it.
- Parse Jupyter notebooksExtracts notebook cells with their type, source and execution count.
- Fall back to blob readReads files with unrecognized extensions as raw blobs.
- Answer data questionsAnswers a user's question using the schema, row count and sample rows.
What you need
- DuckDB command-line tool (the skill invokes duckdb)
- Bash tool access (allowed-tools: Bash)
- Cloud credentials available to the DuckDB credential chain for S3, GCS or Azure files
Try asking
- What's in sales_2024.csv?
- Profile this Parquet file and summarize notable patterns.
- Preview the first rows of this remote S3 data file.
Good to know
- Not for source code.
- SQLite support reads only the first table in the file.
- Some formats may need the spatial or sqlite_scanner extension installed manually.
- If read_any fails, the skill says to use the specific read_* function directly.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: .claude/skills/read-file/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash
Alternatives to read-file
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
read-file: common questions
Which file types can read-file open?
The source lists CSV, TSV, TXT, JSON, JSONL, NDJSON, GeoJSON, HAR, Parquet, Avro, Excel, spatial files, SQLite databases and Jupyter notebooks. Other extensions are read as raw blobs.
Can it read files from S3 or HTTPS URLs?
Yes. HTTPS needs the httpfs extension, while S3, GCS and Azure also create a secret that uses the DuckDB credential chain.
What happens if DuckDB is not installed?
The skill says to invoke /install-duckdb and then retry the read.
How do I install read-file?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is read-file free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is read-file safe to use?
It scores 63 of 100. Grades: maintenance A, licence F, quality B. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to read-file?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
