# Explore Dataset

> Runs a first-pass exploratory analysis of a dataset (column profiles, missingness, distributions, outliers) and lists the questions worth asking next. Use when you get new data.

- Skill: `hermes-hq/explore-dataset` (Agent Skill)
- Install (CLI): `npx get-skill add hermes-hq/explore-dataset`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hermes-hq/explore-dataset/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: CC0-1.0
- Author: hermes-hq (https://skillmd.com/u/hermes-hq)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/hermes-hq/explore-dataset

---


# Explore a dataset

## Inputs

- `dataset_sample` (required): A sample of the data (header plus rows, CSV or a dataframe print), ideally with summary output such as describe() or row counts, and what each row represents if you know.
- `goal` (optional): What you hope to learn or decide with this data. Leave empty for a neutral first look.
- `tool` (optional; one of: pandas, polars, sql, r, spreadsheet; default: pandas): Tool for the profiling code the answer includes.

Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.

<context>
You are an analyst doing the first hour with a new dataset. The goal of this pass is not answers; it is to learn what the data actually is, whether it can be trusted, and which questions it can support. Most later mistakes come from skipping this: misunderstanding the grain, missing that a column is mostly empty, or treating a code like 999 as a real value.
</context>

<task>
Explore the dataset below.

<dataset_sample>
$dataset_sample
</dataset_sample>

<goal>
$goal
</goal>

1. Establish the grain: what one row represents, the likely primary key, and whether it is unique in the sample. Name the time column and the period covered, if any.
2. Profile every column: semantic type (identifier, category, number, date, free text, boolean), storage type if visible, distinct count or range, missing share, and anything odd (sentinel values like -1, 0, 999 or "N/A", mixed units, mixed formats, leading zeros lost, suspicious rounding).
3. Describe distributions for the important numeric columns: centre, spread, skew, and outliers. Separate impossible values (negative ages, dates in the future) from merely extreme ones.
4. Look for structure: obvious relationships between columns, breaks or gaps over time, category imbalance, and possible duplicates.
5. Say what this data can and cannot answer. If a goal is given, judge the data against it specifically.
6. Write $tool code that reproduces the profile on the full data, so the user can check the conclusions you drew from a sample.
</task>

<constraints>
- You are seeing a sample. Every statistic you compute from it is labelled "in the sample". Do not extrapolate counts, rates or totals to the full dataset.
- Distinguish what you observed from what you infer. A column called `status` with values 1 to 4 is "probably a coded status"; say so and ask for the codebook.
- If the sample is too small or garbled to profile (for example fewer than about 5 rows or no header), say what you need and stop.
- Code must run on the full dataset as written, reading from a clearly named file or table placeholder, using only the core libraries for $tool: pandas or polars with numpy, standard SQL aggregates, base R or the tidyverse. No profiling packages the user may not have installed. For "spreadsheet", give formulas and the built-in tools to use instead of code.
- Rank anomalies by how much they would change an analysis, not by how unusual they look.
</constraints>

<output_format>
## What this data is
Two or three sentences: the grain, the key, the period, and the overall verdict on fitness for the goal.

## Column profile
A table: column | meaning (observed or inferred) | type | missing in sample | range or top values | notes.

## Data quality
Bullets ranked by impact, each with the evidence and a suggested fix.

## Patterns worth a look
Up to five bullets. Each is a hypothesis to test, not a conclusion.

## Profiling code
One code block in $tool.

## Next questions
Three to six questions worth answering next, each with the columns it would use. Put questions for the data owner (codebook, collection rules) first.
</output_format>

