К основному содержанию
скилл CX Codex

data-scientist · tronghieu — скилл для Claude Code: анализ данных и установка

Скилл ведёт анализ от постановки вопроса до проверенных выводов и отчёта. Пригодится для исследования данных, проверки A/B-теста, построения модели или ревью ноутбука.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add tronghieu/agent-skills --skill data-scientist -a claude-code
Открыть на GitHub

Что делает data-scientist

Скилл выбирает ход работы под задачу: исследовать файл, выяснить причины изменения метрики, проверить эксперимент, построить модель, оценить чужой анализ или подготовить выводы для стейкхолдеров. Для каждого сценария в описании названы отдельные справочные материалы и чек-листы. Решение за человеком: скилл формулирует рекомендацию и её компромиссы, но не принимает бизнес-решение.

Перед анализом он запускает scripts/profile_data.py, а перед сложной моделью — scripts/baseline_model.py; результаты сохраняются в рабочей папке ds-workspace/{project-slug}/. Там предусмотрены профиль данных, отчёты и журнал экспериментов. Для двух скриптов нужны pandas и numpy. Метрики без оценки неопределённости и проверки на утечку данных не проходят заданные правила, поэтому их придётся включать в проверку результата.

Какие задачи решает

  • исследовать CSV, Parquet или Excel и описать его содержимое
  • проверить, значимо ли различие в A/B-тесте
  • построить базовую модель прогноза и оценить её
  • найти слабые места в ноутбуке или готовом анализе
  • подготовить отчёт с выводами для стейкхолдеров

Примеры запросов агенту

  • Исследуй файл sales.csv и подготовь отчёт с основными выводами.
  • Проверь, значимо ли различие между вариантами A и B, и объясни результат.
  • Проведи ревью ноутбука analysis.ipynb и найди возможные ошибки в выводах.

Как установить data-scientist

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/data-scientist/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о data-scientist

Как установить data-scientist в Claude Code?

Выполните npx skills add tronghieu/agent-skills --skill data-scientist -a claude-code. Файл скилла находится по пути ~/.claude/skills/data-scientist/SKILL.md.

Что делает скилл data-scientist?

Он помогает пройти путь от вопроса о данных до анализа, проверки выводов и отчёта. Сценарии включают исследование набора данных, статистические проверки, моделирование и ревью.

Какие библиотеки нужны скриптам скилла?

Для двух встроенных скриптов нужны pandas и numpy. Скрипт baseline_model.py запускают перед переходом к более сложным моделям.

Исходный текст

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

Похожие скиллы

Все скиллы по теме «Данные и базы» →

Сначала — data-scientist от других авторов.

data-scientist borghei Задаёт структуру для машинного обучения, проверки гипотез и отбора признаков. Пригодится при оценке моделей и подготовке пайплайнов. CX Codex +1 440установок data-scientist davila7 Скилл помогает проводить статистический анализ, строить ML-модели и объяснять результаты. Подходит для задач от EDA до подготовки моделей к развёртыванию. 385установок data-scientist autohandai Скилл для разбора данных прямо в рабочей папке: находит файлы, чистит их и считает метрики воспроизводимым кодом. CX Codex +1 ★ 211звёзд репо xlsx официальный anthropics Работает с табличными файлами: создаёт, читает, правит и преобразует книги. Подходит, когда итогом должен стать файл Excel или другой табличный формат. 187 223установок google-agents-cli-observability официальный Google Помогает настроить трассировку и сбор данных о работе ИИ-агентов, включая агентов на ADK. Пригодится, когда нужно разбирать выполнение запросов или наблюдать за агентом после развёртывания. CX Codex +1 511 300установок caveman-evidence-review JuliusBrussee Скилл читает данные Caveman Cloud о расходах LLM, трассах и маршрутизации. Подходит для проверки того, куда уходит бюджет проекта. CX Codex +1 104 500установок migration JuliusBrussee Скилл задаёт правила безопасных миграций схем, данных и API с обязательным откатом. Пригодится при изменениях, где нельзя терять данные или ломать совместимость. CX Codex +1 103 900установок performance-optimization addyosmani Скилл для агентов ИИ-кодинга: сначала замеряет, потом чинит узкое место — от Core Web Vitals до N+1 запросов и индексов в базе. CX Codex +1 65 200установок supabase официальный supabase Скилл помогает настраивать базу данных, аутентификацию и RLS в Supabase без скрытых дыр в безопасности. CX Codex GP ChatGPT 8установок

Из того же набора13

problem-solver Скилл ведёт поиск корневых причин сбоев и дефектов, отделяя факты от гипотез. Помогает, когда ломается процесс или падают метрики, но источник поломки неизвестен. CX Codex +1 ★ 88звёзд репо market-researcher Скилл собирает рыночные факты с источниками: оценивает объём рынка, конкурентов и сигналы спроса. Пригодится перед решением о запуске продукта или выходе на новый рынок. CX Codex +1 ★ 88звёзд репо manual-tester Скилл гоняет ручные тест-сессии на запущенном приложении: исследует, проверяет багфиксы, оценивает UX и ответы ИИ-агента. CX Codex +1 ★ 88звёзд репо diataxis-writer Помогает писать, проверять и перестраивать документацию по Diataxis. Пригодится, когда инструкции смешивают обучение, выполнение задач, справку и объяснения. CX Codex +1 ★ 88звёзд репо design-thinking Ведёт проект через этапы Empathize, Define, Ideate, Prototype и Test, опираясь только на реальные данные о пользователях. Пригодится, когда нужно разобраться, почему люди уходят или чего им не хватает. CX Codex +1 ★ 88звёзд репо cv-scorer Скилл сравнивает резюме кандидатов с описанием вакансии и выставляет балл из 100. Пригодится, когда нужно быстро отсеять поток откликов. CX Codex +1 ★ 88звёзд репо brainstorm-coach Проводит структурированный брейншторм: сначала помогает развернуть идеи, затем отобрать приоритеты и записать следующие шаги. Пригодится, когда нужно обдумать тему вместе с агентом. CX Codex +1 ★ 88звёзд репо bmad-run-inspector Читает артефакты bmad-loop из .bmad-loop/runs/ — логи, журналы, состояние задач. Помогает понять, что происходит в живом цикле агента и почему прошлый запуск сломался. CX Codex +1 ★ 88звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой