read-file
Skill by duckdb
Read a local or remote data file with DuckDB and report its schema, row count and sample rows. It is for users who ask what a data file contains or want to preview or profile a dataset.
Install read-file
Built from the published package, never by AI.
git clone --depth 1 https://github.com/duckdb/duckdb-skills /tmp/duckdb-skills && mkdir -p ~/.claude/skills && cp -r /tmp/duckdb-skills/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/duckdb/duckdb-skills /tmp/duckdb-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/duckdb-skills/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 a DuckDB skill that reads a data file or remote URL and answers questions about it. It defines a read_any macro that picks a DuckDB reader based on the file extension. The source lists CSV, JSON, Parquet, Avro, Excel, spatial formats, SQLite and Jupyter notebooks, with other files read as blobs.
The skill runs one DuckDB command through Bash. It then describes the table, counts rows, shows the first 20 rows and answers the user's question about the data. Remote files on HTTPS, S3, Google Cloud Storage and Azure need the httpfs extension and a credential chain secret. The skill is meant for reading data files and is not for source code.
Written from the project's SKILL.md and checked against it.
What it can do
- Read data filesReads CSV, JSON, Parquet, Avro, Excel, spatial, SQLite and Jupyter notebook files through one macro.
- Read remote filesReads files over HTTP, HTTPS, S3, Google Cloud Storage and Azure URLs.
- Describe schema and rowsShows column types and the total row count of the file.
- Preview sample rowsReturns the first 20 rows of the file.
- Answer data questionsAnswers the user's question using the schema, row count and sample rows.
What you need
- DuckDB command line tool
- Bash tool access
- Credentials for remote S3, GCS or Azure files
Try asking
- What's in sales_2024.csv?
- Preview the first rows of s3://my-bucket/events.parquet
- Summarize column types and row count for data/customers.xlsx
Good to know
- Not for source code files.
- Missing extensions such as spatial, xlsx or sqlite must be installed first.
- If read_any fails to parse a file, the user must call the matching read function directly.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: 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 formats can it read?
The source lists CSV, TSV, JSON, JSONL, GeoJSON, HAR, Parquet, Avro, Excel, spatial files such as SHP, GPKG, FGB and KML, SQLite databases and Jupyter notebooks. Other files are read as blobs.
Can it read files from cloud storage?
Yes. The source covers S3, GCS and Azure URLs, using a credential_chain secret for each provider.
What if DuckDB is not installed?
The source says to invoke the duckdb-skills install-duckdb skill 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 MIT licence. The service it connects to may have its own pricing.
Is read-file safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality A. 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.
