Data Scientist 标志

Data Scientist

社区
tronghieu
data-scientist

作为端到端的数据科学家,将业务问题转化为有理有据的分析、经过验证的模型,以及可供决策的报告。每当用户要求分析、探索或梳理数据集或 CSV/Parquet/Excel 文件,询问某项指标由什么驱动或数字为何发生变化(“为什么客户流失率上升了?”),想验证差异是否真实(A/B 测试、实验、“结果显著吗?”、“需要多少样本?”),需要预测模型(客户流失、预测、评分、细分、分类、回归),要求检查现有分析、笔记本或模型是否存在问题,或需要撰写供决策者参考的结果报告时,都使用此技能。无论用户使用何种语言,相关请求都会触发(“phân tích dữ liệu”、“xây model dự đoán”、“kiểm định A/B”),即使他们从未提到“数据科学”或“统计学”。

Add to TypingMind

概览

发布者tronghieu
代码仓库agent-skills
技能名称data-scientist
星标数
98
复刻数
32
附带文件
21
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 21 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 tronghieu 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Data Scientist AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/tronghieu/agent-skills/tree/main/skills/data-scientist
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tronghieu/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/data-scientist .claude/skills/data-scientist
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Data Scientist,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Data Scientist。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Data Scientist 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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:

LevelQuestionPrimary flow
DescriptiveWhat happened?Explore
DiagnosticWhy did it happen?Inquire
PredictiveWhat is likely to happen?Predict
PrescriptiveWhat 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 likeFlowRead firstDeliverable
"Help me reduce churn", vague business goalFull engagementreferences/workflow.mdinsight-report.md
"Explore this dataset", "what's in this file?"Explorereferences/eda.mdeda-report.md
"Is A better than B?", "is this significant?", A/B test, sample sizeInquirereferences/statistics.mdstats results + interpretation
"Build a model to predict X", forecastPredictreferences/modeling.md, then references/evaluation.mdmodel-card.md + experiment-log.md
"Review this analysis / notebook / model"Reviewchecklists/analysis-review.mdcritique report
"Write this up for my boss / stakeholders"Communicatereferences/communication.mdinsight-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

FileRead when
references/workflow.mdStarting a full engagement; orienting any flow
references/framing.mdBefore accepting any question as asked
references/eda.mdExploring a dataset (after profiling)
references/statistics.mdAny hypothesis test, comparison, causal claim, or sample-size question
references/modeling.mdBuilding any predictive model
references/evaluation.mdChoosing metrics; judging whether a model is good
references/interpretation.mdExplaining what drives a model or an effect
references/communication.mdWriting anything a stakeholder will read
checklists/data-quality.mdGate: before analysis begins
checklists/leakage.mdGate: before believing any model metric
checklists/analysis-review.mdGate: before any conclusion ships; entire Review flow

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Data Scientist AI 技能有什么作用?

作为端到端的数据科学家,将业务问题转化为有理有据的分析、经过验证的模型,以及可供决策的报告。每当用户要求分析、探索或梳理数据集或 CSV/Parquet/Excel 文件,询问某项指标由什么驱动或数字为何发生变化(“为什么客户流失率上升了?”),想验证差异是否真实(A/B 测试、实验、“结果显著吗?”、“需要多少样本?”),需要预测模型(客户流失、预测、评分、细分、分类、回归),要求检查现有分析、笔记本或模型是否存在问题,或需要撰写供决策者参考的结果报告时,都使用此技能。无论用户使用何种语言,相关请求都会触发(“phân tích dữ liệu”、“xây model dự đoán”、“kiểm định A/B”),即使他们从未提到“数据科学”或“统计学”。

为什么在 TypingMind 中使用 Data Scientist?

因为您只需安装一次,就能搭配任何模型使用。Data Scientist 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Data Scientist?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/tronghieu/agent-skills/tree/main/skills/data-scientist。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Data Scientist?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Data Scientist 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Data Scientist 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Data Scientist AI 技能免费吗?

是的。tronghieu 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇