Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

senior-data-scientist高级数据科学家

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

1,341

周安装

57

GitHub Stars

103

下载量

470
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:senior-data-scientist(高级数据科学家)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/senior-data-scientist
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill senior-data-scientist
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/borghei/claude-skills --skill senior-data-scientist

简介

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。

  • 它适合让 Agent 清洗字段、汇总数据、
  • 发现异常、生成统计口径或把分析结果转成可读说明。
  • 使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;
  • 涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

SKILL.md

Senior Data Scientist

Expert data science for statistical modeling, experimentation, ML deployment, and data-driven decision making.

Keywords

data-science, machine-learning, statistics, a-b-testing, causal-inference, feature-engineering, mlops, experiment-design, model-deployment, python, scikit-learn, pytorch, tensorflow, spark, airflow


Quick Start

# Design an experiment with power analysis
python scripts/experiment_designer.py --input data/ --output results/

# Run feature engineering pipeline
python scripts/feature_engineering_pipeline.py --target project/ --analyze

# Evaluate model performance
python scripts/model_evaluation_suite.py --config config.yaml --deploy

# Statistical analysis
python scripts/statistical_analyzer.py --data input.csv --test ttest --output report.json

Tools

ScriptPurpose
scripts/experiment_designer.pyA/B test design, power analysis, sample size calculation
scripts/feature_engineering_pipeline.pyAutomated feature generation, correlation analysis, feature selection
scripts/statistical_analyzer.pyHypothesis testing, causal inference, regression analysis
scripts/model_evaluation_suite.pyModel comparison, cross-validation, deployment readiness checks

Tech Stack

CategoryTools
LanguagesPython, SQL, R, Scala
ML FrameworksPyTorch, TensorFlow, Scikit-learn, XGBoost
Data ProcessingSpark, Airflow, dbt, Kafka, Databricks
DeploymentDocker, Kubernetes, AWS SageMaker, GCP Vertex AI
Experiment TrackingMLflow, Weights & Biases
DatabasesPostgreSQL, BigQuery, Snowflake, Pinecone

Workflow 1: Design and Analyze an A/B Test

  1. Define hypothesis -- State the null and alternative hypotheses. Identify the primary metric (e.g., conversion rate, revenue per user).
  2. Calculate sample size -- python scripts/experiment_designer.py --input data/ --output results/

- Specify minimum detectable effect (MDE), significance level (alpha=0.05), and power (0.80). - Example: For baseline conversion 5%, MDE 10% relative lift, need ~31,000 users per variant.

  1. Randomize assignment -- Use hash-based assignment on user ID for deterministic, reproducible splits.
  2. Run experiment -- Monitor for sample ratio mismatch (SRM) daily. Flag if observed ratio deviates >1% from expected.
  3. Analyze results: from scipy import stats # Two-proportion z-test for conversion rates control_conv = control_successes / control_total treatment_conv = treatment_successes / treatment_total z_stat, p_value = stats.proportions_ztest([treatment_successes, control_successes], [treatment_total, control_total], alternative='two-sided') # Reject H0 if p_value < 0.05
  4. Validate -- Check for novelty effects, Simpson's paradox across segments, and pre-experiment balance on covariates.

Workflow 2: Build a Feature Engineering Pipeline

  1. Profile raw data -- python scripts/feature_engineering_pipeline.py --target project/ --analyze

- Identify null rates, cardinality, distributions, and data types.

  1. Generate candidate features:

- Temporal: day-of-week, hour, recency, frequency, monetary (RFM) - Aggregation: rolling means/sums over 7d/30d/90d windows - Interaction: ratio features, polynomial combinations - Text: TF-IDF, embedding vectors

  1. Select features -- Remove features with >95% null rate, near-zero variance, or >0.95 pairwise correlation. Use recursive feature elimination or SHAP importance.
  2. Validate -- Confirm no target leakage (no features derived from post-outcome data). Check train/test distribution alignment.
  3. Register -- Store features in feature store with versioning and lineage metadata.

Workflow 3: Train and Evaluate a Model

  1. Split data -- Stratified train/validation/test split (70/15/15). For time series, use temporal split (no future leakage).
  2. Train baseline -- Start with a simple model (logistic regression, gradient boosted trees) to establish a benchmark.
  3. Tune hyperparameters -- Use Optuna or cross-validated grid search. Log all runs to MLflow.
  4. Evaluate on held-out test set: from sklearn.metrics import classification_report, roc_auc_score y_pred = model.predict(X_test) y_prob = model.predict_proba(X_test)[:, 1] print(classification_report(y_test, y_pred)) print(f"AUC-ROC: {roc_auc_score(y_test, y_prob):.4f}")
  5. Validate -- Check calibration (predicted probabilities match observed rates). Evaluate fairness metrics across protected groups. Confirm no overfitting (train vs test gap <5%).

Workflow 4: Deploy a Model to Production

  1. Containerize -- Package model with inference dependencies in Docker: docker build -t model-service:v1.
  2. Set up serving -- Deploy behind a REST API with health check, input validation, and structured error responses.
  3. Configure monitoring:

- Input drift: compare incoming feature distributions to training baseline (KS test, PSI) - Output drift: monitor prediction distribution shifts - Performance: track latency P50/P95/P99 targets (<50ms / <100ms / <200ms)

  1. Enable canary deployment -- Route 5% traffic to new model, compare metrics against baseline for 24-48 hours.
  2. Validate -- python scripts/model_evaluation_suite.py --config config.yaml --deploy confirms serving latency, error rate <0.1%, and model outputs match offline evaluation.

Workflow 5: Perform Causal Inference

  1. Assess assignment mechanism -- Determine if treatment was randomized (use experiment analysis) or observational (use causal methods below).
  2. Select method based on data structure:

- Propensity Score Matching: when treatment is binary, many covariates available - Difference-in-Differences: when pre/post data available for treatment and control groups - Regression Discontinuity: when treatment assigned by threshold on running variable - Instrumental Variables: when unobserved confounding present but valid instrument exists

  1. Check assumptions -- Parallel trends (DiD), overlap/positivity (PSM), continuity (RDD).
  2. Estimate treatment effect and compute confidence intervals.
  3. Validate -- Run placebo tests (apply method to pre-treatment period, expect null effect). Sensitivity analysis for unobserved confounding.

Performance Targets

MetricTarget
P50 latency< 50ms
P95 latency< 100ms
P99 latency< 200ms
Throughput> 1,000 req/s
Availability99.9%
Error rate< 0.1%

Common Commands

# Development
python -m pytest tests/ -v --cov
python -m black src/
python -m pylint src/

# Training
python scripts/train.py --config prod.yaml
python scripts/evaluate.py --model best.pth

# Deployment
docker build -t service:v1 .
kubectl apply -f k8s/
helm upgrade service ./charts/

# Monitoring
kubectl logs -f deployment/service
python scripts/health_check.py

Reference Documentation

DocumentPath
Statistical Methodsreferences/statistical_methods_advanced.md
Experiment Design Frameworksreferences/experiment_design_frameworks.md
Feature Engineering Patternsreferences/feature_engineering_patterns.md
Automation Scriptsscripts/ directory

Troubleshooting

ProblemCauseSolution
Sample size calculation returns unreasonably large numbersMinimum detectable effect (MDE) is set too small relative to baseline varianceIncrease MDE to a practically meaningful threshold or accept longer experiment duration
Feature pipeline reports high null rates across all generated featuresSource data contains upstream ingestion gaps or schema driftValidate raw data completeness before running the pipeline; check ETL logs for failed loads
Model AUC drops significantly on validation vs. training setOverfitting due to high-cardinality features or insufficient regularizationApply stronger regularization, reduce feature set, or increase training data volume
Experiment shows significant results but large confidence intervalsInsufficient sample size or high metric varianceExtend experiment runtime, increase traffic allocation, or switch to a variance-reduction technique (CUPED)
Deployed model latency exceeds P95 targetsModel complexity too high for serving infrastructure or missing batchingQuantize the model, reduce input feature count, or enable request batching on the serving layer
Feature importance scores are unstable across cross-validation foldsCorrelated features cause importance to shift between redundant predictorsRemove highly correlated features (>0.95) before training or use permutation importance with repeated runs
Causal inference estimates show implausible treatment effectsViolation of parallel trends assumption (DiD) or poor covariate overlap (PSM)Run diagnostic tests (placebo checks, overlap histograms) and consider alternative identification strategies

Success Criteria

  • Model discrimination: AUC-ROC above 0.85 on held-out test set for classification tasks
  • Calibration quality: Brier score below 0.15; predicted probabilities within 5% of observed rates across decile bins
  • Feature coverage: Feature importance analysis accounts for at least 90% of cumulative model importance
  • Experiment power: All A/B tests designed with statistical power of 0.80 or higher at the specified MDE
  • Deployment readiness: Model serving latency under 100ms at P95; error rate below 0.1%
  • Reproducibility: All experiments and training runs logged with full parameter tracking; results reproducible from logged artifacts
  • Data quality: Input feature pipelines maintain less than 2% null rate on critical features after imputation

Scope & Limitations

This skill covers:

  • End-to-end experiment design including power analysis, randomization, and post-hoc analysis
  • Feature engineering pipelines with profiling, generation, selection, and validation
  • Model training evaluation including cross-validation, calibration, and fairness checks
  • Production model deployment with monitoring, drift detection, and canary rollouts

This skill does NOT cover:

  • Data engineering infrastructure (ETL orchestration, pipeline scheduling, data lake management) -- see senior-data-engineer
  • Deep learning model architecture design and training at scale (distributed GPU training, custom layers) -- see senior-ml-engineer
  • Prompt engineering, RAG systems, and LLM fine-tuning workflows -- see senior-prompt-engineer
  • Computer vision pipelines (object detection, segmentation, video processing) -- see senior-computer-vision

Integration Points

SkillIntegrationData Flow
senior-data-engineerFeature pipeline ingests data from ETL outputs; shares data quality validation patternsRaw data stores --> feature engineering pipeline --> feature store
senior-ml-engineerTrained models handed off for MLOps deployment; shares model registry and serving configsEvaluated model artifacts --> deployment pipeline --> production serving
senior-prompt-engineerEmbedding features from LLMs feed into ML pipelines; experiment frameworks apply to prompt A/B testsLLM embeddings --> feature vectors; experiment designs --> prompt evaluation
senior-architectModel serving architecture reviewed for scalability; data platform design aligned with training infrastructureArchitecture specs --> deployment topology --> monitoring dashboards
senior-backendModel inference endpoints integrated into backend services; API contracts defined for prediction requestsREST/gRPC model API --> backend service layer --> client applications
senior-devopsCI/CD pipelines extended for model retraining triggers; containerized model images deployed via infrastructure-as-codeDocker images --> Kubernetes manifests --> production clusters

Tool Reference

experiment_designer.py

Purpose: A/B test design, statistical power analysis, and sample size calculation. Validates experiment configuration and produces structured results with timestamps.

Usage:

python scripts/experiment_designer.py --input data/ --output results/

Flags/Parameters:

FlagShortRequiredDescription
--input-iYesInput path (directory or file containing experiment data)
--output-oYesOutput path (directory for results)
--config-cNoPath to configuration file (YAML or JSON)
--verbose-vNoEnable verbose (DEBUG-level) logging output

Example:

python scripts/experiment_designer.py -i data/experiment_config/ -o results/power_analysis/ -c config.yaml -v

Output Format: JSON to stdout with the following structure:

{
  "status": "completed",
  "start_time": "2026-03-21T10:00:00.000000",
  "processed_items": 0,
  "end_time": "2026-03-21T10:00:01.000000"
}

feature_engineering_pipeline.py

Purpose: Automated feature generation, correlation analysis, and feature selection. Profiles raw data, generates candidate features, and validates for target leakage.

Usage:

python scripts/feature_engineering_pipeline.py --input data/ --output features/

Flags/Parameters:

FlagShortRequiredDescription
--input-iYesInput path (directory or file containing raw data)
--output-oYesOutput path (directory for generated features)
--config-cNoPath to configuration file (YAML or JSON)
--verbose-vNoEnable verbose (DEBUG-level) logging output

Example:

python scripts/feature_engineering_pipeline.py -i data/raw/ -o features/v2/ -v

Output Format: JSON to stdout with the following structure:

{
  "status": "completed",
  "start_time": "2026-03-21T10:00:00.000000",
  "processed_items": 0,
  "end_time": "2026-03-21T10:00:01.000000"
}

model_evaluation_suite.py

Purpose: Model comparison, cross-validation, and deployment readiness checks. Validates serving latency, error rates, and confirms model outputs match offline evaluation.

Usage:

python scripts/model_evaluation_suite.py --input models/ --output evaluation/

Flags/Parameters:

FlagShortRequiredDescription
--input-iYesInput path (directory or file containing model artifacts)
--output-oYesOutput path (directory for evaluation results)
--config-cNoPath to configuration file (YAML or JSON)
--verbose-vNoEnable verbose (DEBUG-level) logging output

Example:

python scripts/model_evaluation_suite.py -i models/xgb_v3/ -o evaluation/report/ -c prod_config.yaml

Output Format: JSON to stdout with the following structure:

{
  "status": "completed",
  "start_time": "2026-03-21T10:00:00.000000",
  "processed_items": 0,
  "end_time": "2026-03-21T10:00:01.000000"
}
Note: The Tools table references scripts/statistical_analyzer.py but this script does not yet exist in the repository. Statistical analysis workflows described in the SKILL.md can be performed using inline Python (scipy, statsmodels) as shown in Workflow 1 and Workflow 5.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.23%
按下载量换算180

Claude

29.14%
按下载量换算137

Cursor

18.9%
按下载量换算89

Gemini CLI

9.2%
按下载量换算43

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills