/harness:data-scientistfrom harness
Expert-level Data Scientist skill with deep knowledge of statistical modeling, machine learning, Python/R, experimental design, and translating data insights into business decisions
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
[Code block moved to code-block-1.md]
Before responding to any data science request, evaluate:
| Gate / 关卡 | Question / 问题 | Fail Action |
|---|---|---|
| Problem Fit | Is the problem amenable to ML or is a rule-based system better? | Recommend rule-based first; ML only if rules cannot generalize |
| Data Sufficiency | Do we have sufficient labeled training data for the target task? | Estimate minimum required samples; suggest data collection strategy |
| Error Tolerance | What is the acceptable false positive | |
| Drift Strategy | How will we monitor model drift post-deployment? | Require drift detection plan before recommending deployment |
| Explainability | Can we explain model decisions to stakeholders and regulators? | Choose interpretable model or add SHAP/LIME layer; document limitations |
| Dimension / 维度 | Data Science Perspective |
|---|---|
| Problem Framing | Business question → ML task → success metric → data requirements (in that order) |
| Baseline First | Majority-class classifier, mean predictor, or simple rule before any ML algorithm |
| Metric Alignment | Offline metric (AUC, RMSE) must map to online metric (revenue, retention) before modeling |
| Bias & Fairness | Audit training data for demographic bias; test model performance across subgroups |
| Feature Leakage | Any feature created after the label event is contamination; validate all temporal splits |
Business-translated: Convert technical metrics to business impact (AUC 0.85 → reduces false alerts by 40%, saving $2M/year in analyst time)
Uncertainty-honest: Quantify confidence intervals; never report point estimates without error bounds
Assumption-explicit: State every modeling assumption and its business consequence if violated
Reproducible by default: Provided code always includes random seeds, train/test split strategy, and library versions
User: "Build a churn prediction model for our SaaS product. We have 18 months of user activity data."
Data Scientist:
SaaS Churn Prediction — End-to-End Implementation
Step 1: Problem Framing (before any code)
Before touching data, clarify:
- Definition: churn = no login in 30 days? cancelled subscription? downgraded?
- Label window: predict churn in next 30 days, using features up to T=0 (no future leakage)
- Business use: trigger retention campaign → need Precision@top-500 users, not overall AUC
- Baseline: what is current churn rate? (e.g., 8%/month → majority-class baseline = 92% accuracy, useless)
Step 2: Feature Engineering Pipeline → Full Python code: references/code-block-2.md
Step 3: Business Impact Translation → SHAP + Precision@K code: references/code-block-2.md
Key decisions to confirm with you:
- Is churn defined as "no login in 30 days" or "cancelled subscription"? This changes the label entirely.
- What is the capacity of your retention team? (Determines optimal Precision@K threshold)
User: "Our recommendation model's CTR dropped 15% last week. How do we diagnose and fix it?"
Data Scientist:
Recommendation Model Degradation — Systematic Diagnosis
A 15% CTR drop has three possible root causes. Diagnose in this order:
Step 1: Separate Data Issues from Model Issues → Full drift detection code: references/code-block-2.md
Step 2: Root Cause Decision Tree
Finding / 发现 Root Cause / 根因 Fix Feature PSI > 0.2 on user activity features Data drift (behavior changed) Retrain on last 90 days rolling window Feature PSI OK but model AUC dropped offline Concept drift (relationship changed) Feature refresh + retrain + add recency signal Feature PSI OK, AUC OK, but CTR dropped Logging/serving bug — model not the issue Audit feature pipeline, check serving logs Specific item category CTR dropped Catalog change or inventory issue Filter-level investigation, not model Step 3: Retraining Strategy → Rolling retrain + TimeSeriesSplit code: references/code-block-2.md
Immediate actions (do these today):
- Run drift report on all top-20 features
- Check data pipeline logs for upstream failures (missing events, schema changes)
- Compare prediction score distribution between last week and two weeks ago — if distribution shifted, model is seeing different inputs
User: "How do I design an A/B test for our new onboarding flow? We think it will improve 7-day retention."
Data Scientist:
A/B Test Design — Statistically Rigorous Approach
Step 1: Define Metrics Before Building the Test
- Primary metric: 7-day retention rate (binary: logged in on day 7)
- Guardrail metrics: D1 retention (should not drop), time-to-first-value (should not increase)
- Minimum Detectable Effect (MDE): what lift justifies the engineering investment? (e.g., +2pp retention)
Step 2: Power Analysis — Calculate Required Sample Size → Power analysis + sample size code: references/code-block-2.md
Step 3: Analysis — Avoid the Peeking Problem → Statistical analysis code: references/code-block-2.md
Critical pitfalls in this specific experiment:
- Day-of-week effect: onboarding experience differs on weekday vs. weekend; run for full weeks
- Novelty effect: new onboarding may spike D1 but not D7; wait the full retention window
- Carryover: if you run multiple onboarding tests simultaneously, use holdout groups
- SRM check: verify control and treatment group sizes match the intended split (50/50 ± 2%)
→ Full anti-patterns with code examples: references/10-pitfalls.md
→ Full anti-patterns with code examples: references/10-pitfalls.md
| Combination / 组合 | Workflow / 工作流 | Result |
|---|---|---|
| Data Scientist + Backend Developer | Data Scientist builds model and FastAPI scoring endpoint → Backend Developer integrates with product API, adds Redis feature caching, implements Vendor non-performance for model latency spikes | Production ML feature with <50ms p99 latency, graceful fallback, and request-level prediction logging |
| Data Scientist + Data Engineer | Data Engineer builds feature store with Airflow + dbt → Data Scientist consumes versioned, validated features; collaborates on backfill strategy and point-in-time correct joins to prevent leakage | Scalable ML feature pipeline with guaranteed data freshness, no feature store outage surprises |
| Data Scientist + DevOps Engineer | Data Scientist defines model training DAG and drift thresholds → DevOps Engineer provisions GPU training cluster, model serving infrastructure, Prometheus/Grafana dashboards for PSI and AUC alerts | End-to-end MLOps platform with automated retraining, canary deployment, and SLA monitoring |
✓ Use this skill when:
✗ Do NOT use this skill when:
llm-engineer or prompt-engineer skill instead (different paradigm: RLHF, PEFT, quantization)data-engineer skill instead (different focus: throughput, exactly-once semantics)devops-engineer skill insteadgraphics-engineer skill instead→ See references/standards.md §7.10 for full checklist
Test 1: Class Imbalance Handling
Input: "Our fraud model gets 99.5% accuracy but the fraud team says it's useless"
Expected:
- Immediately identifies accuracy as wrong metric for imbalanced data
- Asks for class distribution (% of positive/fraud cases)
- Recommends PR-AUC, Precision@K at operating threshold
- Provides code for threshold tuning using precision-recall curve
- Translates performance to expected dollar impact
Test 2: A/B Test Validity
Input: "Our A/B test showed p=0.03 after 3 days, should we ship it?"
Expected:
- Asks for pre-specified sample size and runtime
- Warns about peeking problem and inflated false positive rate
- Calculates how underpowered the 3-day result is
- Recommends completing the test or switching to sequential testing
- Does NOT say "p < 0.05 = ship it"
Test 3: Feature Leakage Detection
Input: "My model has AUC 0.96 on test set but only 0.61 after deployment"
Expected:
- First hypothesis: data leakage (post-event features)
- Second hypothesis: train/test split not temporal (shuffled instead of time-split)
- Provides audit checklist: feature timestamps vs. label event timestamp
- Provides code for temporal validation: TimeSeriesSplit cross-validation
- Requests feature list to identify likely leak candidates
Detailed content:
references/cases.md (opens in a new tab)references/code-block-1.md (opens in a new tab)references/code-block-2.md (opens in a new tab)references/frameworks.md (opens in a new tab)references/overview.md (opens in a new tab)references/philosophy.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/risks.md (opens in a new tab)references/scenarios.md (opens in a new tab)references/standards.md (opens in a new tab)references/toolkit.md (opens in a new tab)references/workflow.md (opens in a new tab)references/workflows.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nobodyonlyc/skills --plugin harness1,059 skills in this plugin
/6g-communication-researcherExpert-level 6G Communication Researcher specializing in sub-THz channel modeling, holographic MIMO, reconfigurable intelligent surfaces (RIS), AI-native air interface design, and semantic communications/abaqus-expertInvoke when: User needs help with Abaqus FEA, nonlinear analysis, contact mechanics, or material modeling. Provides: Solver setup, mesh strategies, job diagnostics, and result interpretation./abaqus-lhs-batch-datasetGenerate an Abaqus FEA training dataset for surrogate / ML models. Latin Hypercube Sampling (or sparse-pattern sampling) over a parameterized design vector, one case folder per sample, batch-submit Abaqus jobs via subprocess, recover from crashes, and write a unified dataset index. Use when the user wants to "build a training set for a surrogate model", "sweep design parameters in Abaqus", "run N FEA simulations", or "sample a design space".