agentleFS
gp201gp201/agent-skills/skills/dataset-insights/SKILL.md

dataset-insights

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Use when the user wants to explore, profile, or "find something interesting" in a dataset — phrases like "what's in this data", "give me insights on X", "profile this dataset", "anything weird here?". Produces a ranked list of insights under `analysis/<slug>/` plus a reviewer pass that scores each insight for novelty, actionability, and evidence. Do not invoke for pre-specified hypothesis tests or one-off SQL queries.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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
  1. Distinctive:

    Path(s) to the data: Read the schema first; don't load the whole thing unless it fits comfortably in memory.

    line 30
  2. Very specific:

    Output slug: Default = kebab-case of the dataset name.

    line 35
  3. Very specific:

    Use polars or duckdb for the profile.

    line 56
  4. Distinctive:

    Don't produce insights that are just summary stats without a "so what".

    line 140
  5. Distinctive:

    Don't report correlations as causation.

    line 143
  6. Distinctive:

    Don't chase > 7 insights. Past that, you're adding noise.

    line 145
  7. Very specific:

    Don't run expensive full-dataset models here — this skill is for profiling and insight extraction, not training.

    line 146

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

dataset-insights

Profile a dataset and produce a small, ranked list of insights — each one a claim the data actually supports, with a figure or table behind it. The insight-reviewer agent scores the insights and suggests which to keep, cut, or strengthen.

When to use

  • The user points you at a dataset (parquet/csv/duckdb/sql) and asks an open-ended question: "what's here?", "anything weird?", "what should we look at?".
  • A fresh data drop has arrived and needs triage before anyone commits to an experiment on it.
  • The user wants a second opinion on insights they already drafted.

Skip this skill when:

  • the user has a specific hypothesis and wants one test (just run it),
  • they need a dashboard (not insights),
  • the dataset is < ~100 rows or lacks numeric/categorical structure (insights will be anecdotes).

Inputs you need

  1. Path(s) to the data. Read the schema first; don't load the whole thing unless it fits comfortably in memory.
  2. Audience and decision. An insight is only useful relative to who reads it and what they might do. If the user hasn't said, ask once: "who's the reader, and what decision might these inform?"
  3. Output slug. Default = kebab-case of the dataset name. Outputs go under analysis/<slug>/.

Profile pass

Land a first draft in analysis/<slug>/profile.md with these sections — in this order:

  1. Schema — columns, dtypes, null rate, cardinality. Flag any column where null rate > 20% or cardinality = 1 (constant columns).
  2. Univariate sanity — for numeric columns: min / median / max, anything suspicious (negative counts, future timestamps, values pinned at 0 or a sentinel like -1, 999). For categorical: top-5 levels by frequency and a long-tail indicator.
  3. Pairwise red flags — obvious leakage, target-like columns, correlations > 0.95 between features, identifier columns that perfectly predict the target.
  4. Time shape — if a date/timestamp column exists: rows per day/week, gaps, recency. If not, state "no temporal column".

Use polars or duckdb for the profile; they handle big files without loading into memory. Save any intermediate plots to analysis/<slug>/profile/.

Insight pass

Then produce analysis/<slug>/insights.md — a ranked list of at most 7 insights. Quality beats quantity; stop when the next candidate is weaker than the ones already written.

Each insight follows this template:

### <N>. <Claim, stated as a sentence>

**Evidence.** One figure or table, referenced by path
(`analysis/<slug>/figures/<file>.png` or an inline markdown table).
State the sample size and the effect size.

**Why it matters.** One sentence on what a reader would do
differently if they believed this. If nothing changes, cut the
insight.

**Caveats.** Known confounders, selection effects, or "this is
correlational" disclaimers.

**Confidence.** low / medium / high, with a one-line justification
(bootstrapped CI width, replication across subgroups, sample size).

Ranking rules:

  • High-confidence actionable findings first. The first insight is the one the reader most needs to know.
  • Demote anything with n < 30 or confidence = low to the bottom, or cut it.
  • Never stack redundant insights (same underlying variable described three ways).
  • Prefer structural findings over point estimates. "Column X is 60% null and always null when Y=true" is usually more useful than "the mean of X is 7.3".

Reviewer pass (required)

Spawn the insight-reviewer agent. It owns the rubric (Novelty / Actionability / Evidence, 1–5 each per insight; survival ≥ 11 with no dimension below 3) and returns per-insight verdicts plus up to 2 missed insights.

Agent(
  subagent_type="insight-reviewer",
  description="Insight review of <slug>",
  prompt="""
  Insights: analysis/<slug>/insights.md
  Data: <data_path>
  Audience: <audience>
  Decision: <decision>
  """
)

Apply the reviewer's recommendations:

  • CUT → remove the insight.
  • STRENGTHEN → the reviewer stated what's missing (usually a CI, a subgroup check, or a sample-size callout) — add it.
  • KEEP → leave as-is.
  • Missed insights → investigate; add if they survive the same rubric when you write them up.

Re-run the reviewer once after applying changes to confirm the STRENGTHEN items landed.

Output

Report to the user:

  • Path to analysis/<slug>/profile.md and analysis/<slug>/insights.md.
  • Count of insights KEPT / STRENGTHENED / CUT.
  • The single insight the reviewer ranked most actionable (one line).
  • Any schema-level flag that's a blocker for downstream work (e.g. "target column has 30% nulls — fix before modeling").

What not to do

  • Don't produce insights that are just summary stats without a "so what". Mean-of-X is only an insight if the value is surprising or actionable.
  • Don't report correlations as causation. Every non-experimental claim gets a "correlational" caveat.
  • Don't chase > 7 insights. Past that, you're adding noise.
  • Don't run expensive full-dataset models here — this skill is for profiling and insight extraction, not training. If an insight requires a model to establish, note it as a follow-up experiment (use experiment-structure + podman-runner).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.