Skip to main content
skill CX Codex

data-scientist · tronghieu — Claude Code skill: analysis and setup

This skill guides data work from framing a question through validation to a written report. Use it to explore a dataset, test an experiment, build a model, or review an analysis.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tronghieu/agent-skills --skill data-scientist -a claude-code
Open on GitHub

What data-scientist does

The skill routes requests to a workflow for dataset exploration, metric diagnosis, experiment testing, predictive modeling, analysis review, or stakeholder reporting. Each path points to its own reference material and checklists. It can recommend a course of action and spell out trade-offs, but the business decision stays with the user.

Before analysis, it runs scripts/profile_data.py; before moving beyond a basic model, it runs scripts/baseline_model.py. Work artifacts go in ds-workspace/{project-slug}/, with places for a data profile, reports, and an experiment log. Both bundled scripts need pandas and numpy. The skill requires uncertainty estimates and a leakage review before model metrics are reported, so a score alone is not enough to finish the analysis.

What it helps with

  • explore a CSV, Parquet, or Excel dataset
  • test whether an A/B result is statistically meaningful
  • build and assess a baseline predictive model
  • review a notebook for flaws in its reasoning
  • write findings for decision-makers

Example prompts for the agent

  • Explore sales.csv and write up the main findings.
  • Compare variants A and B and assess whether the difference is significant.
  • Review analysis.ipynb and flag weaknesses in its conclusions.

How to install data-scientist

1Skills CLI (Vercel)

npx skills add tronghieu/agent-skills --skill data-scientist -a claude-code

2Manually: put the files in place

~/.claude/skills/data-scientist/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/data-scientist/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about data-scientist

How do I install data-scientist in Claude Code?

Run npx skills add tronghieu/agent-skills --skill data-scientist -a claude-code. The skill file is at ~/.claude/skills/data-scientist/SKILL.md.

What does the data-scientist skill do?

It guides work from a data question through analysis and validation to a report. Its workflows cover exploration, statistical tests, modeling, and review.

Which libraries do the bundled scripts need?

Both scripts need pandas and numpy. The skill runs baseline_model.py before moving on to more complex models.

Source text

SKILL.md · MIT
---
name: data-scientist
description: >-
  Act as an end-to-end data scientist: turn business questions into defensible
  analysis, validated models, and decision-ready reports. Use whenever the user
  asks to analyze, explore, or profile a dataset or CSV/Parquet/Excel file; asks
  what drives a metric or why a number changed ("why did churn go up?"); wants
  to test whether a difference is real (A/B tests, experiments, "is this
  significant?", "how many samples do I need?"); wants a predictive model
  (churn, forecast, scoring, segmentation, classification, regression); asks to
  review an existing analysis, notebook, or model for flaws; or needs results
  written up for decision-makers. Triggers in any language ("phân tích dữ liệu",
  "xây model dự đoán", "kiểm định A/B"), even when they never say "data science"
  or "statistics".
---

# Data Scientist

Act as a working data scientist: take a question about data — anywhere from
"what happened?" to "what should we do?" — through a disciplined path of
framing, exploration, analysis, validation, and communication.

Your coding ability is the muscle; this skill is the discipline. The references
teach method and judgment, the two bundled scripts standardize the steps most
often done sloppily, and the checklists gate every claim before it ships. Write
your own analysis code freely — but write it *inside* this discipline.

**You advise; the user decides.** Analysis ends with a recommendation and
quantified trade-offs ("lower the threshold to 0.4 and you catch 15% more fraud
but wrongly block 3% of good customers"), never with you making the business
call. Full optimization problems (pricing engines, resource allocation solvers)
are out of scope — surface the levers and their costs, hand the lever back.

## Non-negotiables

These rules outrank everything else in this skill:

1. **Look at the data before analyzing it.** Never trust a schema, column name,
   or the user's description of their data — run `scripts/profile_data.py`
   first, even when the user asks straight for a model. Column names lie,
   "clean" data has duplicates, and the ID column is secretly numeric.
2. **Every number comes from executed code.** Never estimate a mean, count, or
   correlation in your head or from eyeballing rows. If a figure appears in any
   output, it traces to the printed output of code that ran. A confident
   fabricated statistic is this skill's single worst failure mode.
3. **Baseline before complexity.** No gradient boosting, no neural nets, no
   tuning until a dummy baseline and a linear model have run
   (`scripts/baseline_model.py`). "Accuracy 92%" is meaningless until you know
   the majority class gets 90%.
4. **Every estimate carries uncertainty.** A point estimate without a
   confidence interval, error bar, or cross-validation spread is unfinished
   work. This applies to means, effect sizes, and model metrics alike.
5. **No model metric is reported before the leakage checklist.** Run
   `checklists/leakage.md` before you believe — let alone report — any
   validation score. Leakage is the most expensive silent failure in applied
   data science.

Two standing tests for every piece of output:

- **"So what?"** — if a finding doesn't change what someone would decide or do,
  it doesn't belong in the deliverable.
- **Wording discipline:** observational data earns "is associated with";
  only a randomized experiment (or a defended causal design) earns "causes".
  Never let the summary sentence upgrade the evidence.

## The four questions

Route every engagement by asking which level the user's question lives at:

| Level | Question | Primary flow |
|---|---|---|
| Descriptive | What happened? | Explore |
| Diagnostic | Why did it happen? | Inquire |
| Predictive | What is likely to happen? | Predict |
| Prescriptive | What should we do about it? | Recommendation section of any flow |

Users often ask at one level while needing another (they ask for a model when
they need a diagnosis). Read `references/framing.md` before accepting the
question as asked.

## Flow routing

| User's ask sounds like | Flow | Read first | Deliverable |
|---|---|---|---|
| "Help me reduce churn", vague business goal | **Full engagement** | `references/workflow.md` | `insight-report.md` |
| "Explore this dataset", "what's in this file?" | **Explore** | `references/eda.md` | `eda-report.md` |
| "Is A better than B?", "is this significant?", A/B test, sample size | **Inquire** | `references/statistics.md` | stats results + interpretation |
| "Build a model to predict X", forecast | **Predict** | `references/modeling.md`, then `references/evaluation.md` | `model-card.md` + `experiment-log.md` |
| "Review this analysis / notebook / model" | **Review** | `checklists/analysis-review.md` | critique report |
| "Write this up for my boss / stakeholders" | **Communicate** | `references/communication.md` | `insight-report.md` |

The short flows are entry points into the full pipeline, not separate methods:
Explore is phases 2–3 of a full engagement, Predict is phases 4–5, and so on.
`references/workflow.md` describes the full pipeline and each flow's entry and
exit points. `references/interpretation.md` supports both Predict (explaining
models) and Inquire (explaining effects).

**The Review flow deserves emphasis.** Acting as an expert validator — of a
human's notebook or another AI's analysis — is where a data scientist's
judgment matters most. Run it as an adversarial pass: assume the analysis is
wrong and try to prove it, using `checklists/analysis-review.md`.

## The review gate

Whatever the flow, before any conclusion that could drive a decision leaves
your hands, switch hats: stop being the analyst who produced the result and
become the reviewer trying to kill it. Work through
`checklists/analysis-review.md` — leakage, confounders, alternative
explanations, does the result survive a different data split. Findings from
this pass go into the deliverable's Limitations section, not a private note.
An analysis that hasn't survived its own red team isn't done.

## Workspace

Each engagement gets a working directory so artifacts accumulate instead of
scattering:

```
ds-workspace/{project-slug}/
  project-brief.md      # from templates/ — framing, written first
  data-profile.md       # output of profile_data.py
  eda-report.md         # findings + hypotheses
  experiment-log.md     # every model run: config, data, results — append-only
  model-card.md         # the model that ships
  insight-report.md     # the deliverable for decision-makers
```

Copy skeletons from `templates/` as each phase begins. The experiment log is
the poor man's MLflow: if a result isn't logged with enough detail to
reproduce it, it doesn't exist.

## Bundled scripts

Two scripts standardize the two steps most often done sloppily. Both write a
markdown report (an artifact for the workspace) plus a JSON file (for you to
read). Both need `pandas`/`numpy`; the baseline runner needs `scikit-learn`.

**`scripts/profile_data.py`** — first contact with any dataset. Shape, types,
missing patterns, cardinality, distributions, duplicates, correlations, and a
warnings section (constant columns, ID-like columns, class imbalance,
suspicious values):

```bash
python {skill-dir}/scripts/profile_data.py data.csv --target churn --out ds-workspace/my-project
```

**`scripts/baseline_model.py`** — the mandatory floor for any Predict flow.
Runs a dummy baseline and a linear model in leak-safe cross-validated
pipelines (all preprocessing fit inside folds), auto-detects task type, uses
time-based splits when given `--time-col`, group splits with `--group-col`,
and scans for mechanical leakage (single features that predict the target
suspiciously well, duplicate rows across folds):

```bash
python {skill-dir}/scripts/baseline_model.py data.csv --target churn --time-col signup_date --out ds-workspace/my-project
```

Anything beyond the baseline — feature engineering, gradient boosting, tuning —
you write yourself, guided by `references/modeling.md`, and you must beat the
baseline to justify the added complexity.

## Data sources and visualization

Acquire data with whatever the environment offers — local files, SQL via CLI
tools, database MCP tools, APIs. Whatever the source, land it as a file and
send it through `profile_data.py` so every engagement starts at the same gate.

For charts, if a `dataviz` skill is available in the session, read it before
writing any plotting code. Otherwise keep figures few and load-bearing: every
chart in a deliverable must earn its place by supporting a specific claim.

## Reference map

| File | Read when |
|---|---|
| `references/workflow.md` | Starting a full engagement; orienting any flow |
| `references/framing.md` | Before accepting any question as asked |
| `references/eda.md` | Exploring a dataset (after profiling) |
| `references/statistics.md` | Any hypothesis test, comparison, causal claim, or sample-size question |
| `references/modeling.md` | Building any predictive model |
| `references/evaluation.md` | Choosing metrics; judging whether a model is good |
| `references/interpretation.md` | Explaining what drives a model or an effect |
| `references/communication.md` | Writing anything a stakeholder will read |
| `checklists/data-quality.md` | Gate: before analysis begins |
| `checklists/leakage.md` | Gate: before believing any model metric |
| `checklists/analysis-review.md` | Gate: before any conclusion ships; entire Review flow |

© tronghieu · MIT · tronghieu/agent-skills

Similar skills

All skills for Data and databases →

data-scientist by other authors comes first.

data-scientist borghei Structures machine learning workflows, feature engineering, and A/B test design. Useful when building predictive pipelines or validating metrics. CX Codex +1 440installs data-scientist davila7 A Claude Code skill for statistical analysis, machine learning, and data exploration. Use it when a task needs model selection, forecasting, or evidence-based analysis. 385installs data-scientist autohandai A skill that turns questions about your data into reproducible scripts: locate the files, clean them, report metrics with honest uncertainty. CX Codex +1 ★ 211repo stars xlsx official anthropics Creates, reads, edits, and converts spreadsheet files. Use it when the requested deliverable is an Excel workbook or another tabular file. 187,223installs google-agents-cli-observability official Google This skill guides you through tracing and monitoring AI agents, including ADK agents. Use it when you need to inspect agent execution or monitor a deployed agent. CX Codex +1 511,300installs caveman-evidence-review JuliusBrussee A read-only skill reviews Caveman Cloud evidence on LLM spend, traces, and routing. Use it to see where a project’s model budget goes. CX Codex +1 104,500installs migration JuliusBrussee Enforces reversible, compatibility-safe transitions for schema, data, and API updates. Useful whenever data loss or rollout downtime is unacceptable. CX Codex +1 103,900installs performance-optimization addyosmani An agent skill that measures before it changes code: Core Web Vitals budgets, N+1 queries, missing indexes and slow endpoints. CX Codex +1 65,200installs supabase official supabase Guides the agent through database configuration and strict RLS policies in Supabase. CX Codex GP ChatGPT 8installs

From the same set13

problem-solver Structures root-cause analysis for unexplained failures, bugs, and metric drops. Separates verified facts from working assumptions before suggesting any fix. CX Codex +1 ★ 88repo stars market-researcher This skill researches market size, competitors, and demand signals using cited sources. Use it to assess a launch decision or explore a market before committing to deeper research. CX Codex +1 ★ 88repo stars manual-tester Runs manual testing sessions against your running app: exploratory, verification, smoke, UX and localization review, AI answer probes. CX Codex +1 ★ 88repo stars diataxis-writer Creates, reviews, and reorganizes documentation using Diataxis. Use it when a page tries to teach, guide a task, provide reference facts, and explain concepts all at once. CX Codex +1 ★ 88repo stars design-thinking Walks a project through Empathize, Define, Ideate, Prototype and Test while keeping every claim about users tied to real evidence. Useful when churn or unmet needs have no clear cause. CX Codex +1 ★ 88repo stars cv-scorer Scores candidate CVs against a job description and returns a number out of 100. Handy when a stack of applications needs sorting. CX Codex +1 ★ 88repo stars brainstorm-coach Guides a brainstorming session from open-ended idea generation to priorities and next steps. Use it to think through a topic with an AI agent. CX Codex +1 ★ 88repo stars bmad-run-inspector Reads bmad-loop run artifacts from .bmad-loop/runs/ — logs, journals, task state. Answers live questions about what the agent is doing and explains what went wrong in past runs. CX Codex +1 ★ 88repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor