investigate-dataset
Skill by UKGovernmentBEIS
Investigate-dataset helps an assistant explore datasets from HuggingFace, CSV, or JSON/JSONL files. It checks structure, fields, and data quality without pre-written scripts.
Install investigate-dataset
Built from the published package, never by AI.
git clone --depth 1 https://github.com/UKGovernmentBEIS/inspect_evals /tmp/inspect_evals && mkdir -p ~/.claude/skills && cp -r /tmp/inspect_evals/.claude/skills/investigate-dataset ~/.claude/skills/investigate-datasetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/UKGovernmentBEIS/inspect_evals /tmp/inspect_evals && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/inspect_evals/.claude/skills/investigate-dataset ~/.gemini/antigravity-cli/skills/investigate-datasetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install investigate-dataset in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant explore datasets used in evaluations. It covers HuggingFace datasets, CSV files, and JSON or JSONL files. The workflow starts by finding the dataset source in the evaluation code, then loads the raw data directly with datasets, pandas, or read_json, bypassing Inspect's sample_fields transformation.
The assistant then reviews the schema, shape, sample rows, missing values, duplicate IDs, and value distributions. It also reads the record_to_sample function to see how raw fields map to Inspect samples, and tests loading through Inspect's hf_dataset pipeline. It is aimed at people building or maintaining evals with Inspect who need to inspect a dataset themselves. Separate reference files cover caching and test utilities.
Written from the project's SKILL.md and checked against it.
What it can do
- Identify dataset sourceFinds HuggingFace, CSV, or JSON dataset loading patterns in evaluation code.
- Load raw dataLoads the raw dataset directly with datasets, pandas, or read_json.
- Explore structureInspects schema, column names, shape, and sample rows.
- Check data qualityLooks for missing values, duplicate IDs, and value distributions.
- Review sample conversionReads record_to_sample to see how fields map to input, target, and choices.
- Test Inspect loadingVerifies that loading through Inspect's hf_dataset pipeline converts samples correctly.
What you need
- Python environment with datasets, pandas, and inspect_ai installed
- Access to the evaluation code
- HF_TOKEN or huggingface-cli login for gated datasets
Try asking
- Investigate the structure and fields of this HuggingFace dataset for my eval
- Check this CSV file for missing values and duplicate IDs
- Review how record_to_sample maps the raw records in this eval
Good to know
- Gated datasets need a HuggingFace login or HF_TOKEN
- Large datasets call for streaming or sampling a split
- Caching and test utilities are described in a separate reference file
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/investigate-dataset/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
references/inspect-dataset-patterns.md4 KB
Alternatives to investigate-dataset
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
investigate-dataset: common questions
How does the skill check data quality?
It looks for missing values such as None, empty strings, or empty lists, checks ID uniqueness when an ID field exists, and reviews value distributions for categorical columns and length stats for text.
What should I do with a gated HuggingFace dataset?
Run huggingface-cli login or set the HF_TOKEN environment variable before loading the dataset.
How can I investigate a large dataset?
The skill suggests streaming=True or a split such as train[:1000] to load a sample instead of the full dataset.
How do I install investigate-dataset?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is investigate-dataset free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is investigate-dataset safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to investigate-dataset?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
