data-scientist

data-scientist is a skill for Claude Code, Codex from realnghon/data-scientist. It costs 95 tokens per session (1,687 once invoked), scanned A, original, MIT.

A structured workflow for analysing CSV, Excel, or Parquet data, from checking the data through statistical tests, charts, and a report.

In plain words
What is it for?
Use it for data quality checks, manufacturing analysis such as yield and process variation, A/B tests, comparisons between groups, statistical tests, visualisations, and reports.
Why use it?
It reduces mistakes caused by unknown columns, missing values, unsuitable methods, or unsupported conclusions. It keeps track of data quality and how much confidence each finding deserves.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the data-scientist plugin — 1 skill, 4 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/realnghon/data-scientist/analysis-workflow
Any agent
npx skills add realnghon/data-scientist --skill analysis-workflow
Clone the repo
git clone --depth 1 https://github.com/realnghon/data-scientist

Made for: Claude Code, Codex.

Or install data-scientist, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-scientist

README.md
[![agentmods](https://agentmods.dev/badge/skills/realnghon/data-scientist/analysis-workflow.svg)](https://agentmods.dev/skills/realnghon/data-scientist/analysis-workflow)
Your own site
<a href="https://agentmods.dev/skills/realnghon/data-scientist/analysis-workflow"><img src="https://agentmods.dev/badge/skills/realnghon/data-scientist/analysis-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00095 $0.01687
Opus 5 $0.00048 $0.00843
Sonnet 5 $0.00019 $0.00337
Haiku 4.5 $0.00010 $0.00169

Measured 3d ago against content hash c0c495a3ba32, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-scientist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 17 executable files (scripts/ds_bootstrap.py, scripts/ds_skill/__init__.py, scripts/ds_skill/ab_validator.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/data-scientist/skills/analysis-workflow/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

数据科学家

3 阶段快速分析流程。

流程

1. 数据摄入

  • 读取数据:用 pandas 读 CSV/Excel/Parquet,不用 shell
  • 环境:python --version + 测试 import pandas/numpy/scipy,能用就不重装
  • 探查:每列先确认存在 + dtype;分类列再看 df[col].unique()从 df 读,不靠记忆
  • 大表:os.path.getsize >100MB 时先 nrows=5 看 schema,再用 usecols= 只读所需列
  • 多表 join:单表跳过。需要时记录 grain + join keys,用 ds_skill.shaping.audit_join 预估匹配率,详见 data-shaping.md
  • 缺失预警:缺失率 >30% → data_manifest 标记 high_missing=true,相关结论自动降一档置信度。永不 impute Y;impute X 须记录策略。详见 data-readiness.md
  • 产出:data_manifest

data_manifest 最小格式(后续阶段只能引用这里记录过的列):

{"source": "path/to/data.csv", "n_rows": 10000, "target": "heart_attack",
 "quality_score": "partial", "columns": [
   {"name": "age", "dtype": "int64", "missing_rate": 0.0, "role": "feature"},
   {"name": "smoker", "dtype": "object", "missing_rate": 0.0, "role": "group", "categories": ["smoker","non_smoker"]},
   {"name": "alcohol", "dtype": "float64", "missing_rate": 0.393, "role": "feature", "high_missing": true}]}

字段规则:分类列必列 categoriesmissing_rate 0–1;缺失 >0.30 必带 high_missingquality_scoreok|partial|blocked

2. 分析执行

  • 选方法:查 method-registry.md
  • 数据整形:按需 pivot/melt/aggregate,不单独成阶段
  • 跑统计检验:任何"组间有无差异"的结论都要落到正式检验,不能只凭均值大小。
    • 数值 Y by 组 → ds_skill.analysis_methods.compare_numeric_by_group(自动选 Welch t / Mann-Whitney / ANOVA / Kruskal)
    • 分类 Y × 分类组 → ds_skill.analysis_methods.compare_categorical(卡方,期望<5 自动转 Fisher,效应量 Cramér's V)
    • 连续关系 → ds_skill.correlation.pairwise_correlation
  • 建模(按需):连续 Y → ds_skill.regression,二分类 → ds_skill.classification,生存 → ds_skill.survival。详见 method-registry.md 第 5/6/8 章
  • 混杂检查:报告前先问"有没有第三变量同时驱动两边"(如气温与病例数都随季节变化)。见 anti-patterns.md
  • 画图:用下面的画图规则
  • 产出:evidence_matrix + 图表

evidence_matrix 最小格式(每个发现一行):

[{"claim": "吸烟者高血压比例显著高于非吸烟者", "method": "chi_square_test",
  "statistic": 64.2, "p_value": 0.0001, "effect": {"name": "cramers_v", "value": 0.40},
  "n": 400, "tier": "reliable", "chart": "charts/smoker_hypertension.png", "caveats": []}]

字段规则:method 用 registry 名字;效应量必填;tierreliable|directional|unsupported,用到 high_missing 列或单一方法时不得为 reliable

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 91 lines · 95 tokens per session scan A c0c495a3ba32

Subscribe to this mod's changes

data-scientist is a skill published in the GitHub repository realnghon/data-scientist (2 stars, last pushed 2mo ago), licensed MIT. It adds 95 tokens to every session and 1,687 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories