Drift monitoring
Skill Amey-Thakur/AI-SKILLS/skills/machine-learning/drift-monitoring
Detect input, prediction, and performance drift with reference windows and act through retrain or rollback triggers. Use when operating models in production or diagnosing gradual quality decay.From its SKILL.md
npx -y skills add Amey-Thakur/AI-SKILLS --skill drift-monitoringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.4 KB, 694 tokens by cl100k_base, as published. Nobody here has run it
Drift monitoring
Models decay silently: the world changes, inputs shift, and accuracy erodes long before anyone complains. Monitoring layers three signals by label latency, because ground truth is usually late or missing.
Method
- Monitor performance directly where labels arrive. Rolling metric on recent labeled outcomes (the same metric and slices as the offline eval; see model-evaluation), against the shipped baseline. This is the truth; the other layers exist because truth is often days-to-never late (label latency mapped in ml-problem-framing).
- Watch prediction drift as the early warning. Score/prediction distribution vs a reference window (launch period or trailing stable month): population stability index, mean score, positive rate. A fraud model whose flag rate doubles overnight is telling you something broke upstream or the world moved; it fires days before labeled metrics can.
- Watch input drift per feature, ranked by importance. Null rates, out-of-range values, category share shifts, distribution distances (PSI/KS) on the top features (see feature-engineering). Sudden input drift is usually a pipeline bug (schema change, broken join, unit change: see schema-evolution) wearing a statistics costume; check data quality before blaming the world (see data-quality-checks).
- Choose references and thresholds deliberately. Fixed reference (training distribution) detects total drift; trailing reference detects sudden change while tolerating slow drift: run both. Calibrate alert thresholds on historical variance (seasonality is not drift; weekends are not incidents), start warn-only for two weeks, and slice drift by segment: aggregate stability can hide one region on fire (see data-quality-checks alert discipline).
- Bind alerts to actions in advance. Input anomaly: page the data owner, check pipelines. Prediction drift past X: investigate, consider threshold re-tuning (base-rate moves; see imbalanced-data). Performance below the floor: trigger the retrain runway or roll back to a previous model (see model-deployment). A drift dashboard without an action table is weather reporting.
- Close the loop with scheduled evaluation. Even absent alerts, re-evaluate on fresh labeled data monthly/quarterly and retrain on a cadence justified by measured decay speed, not by habit; each retrain travels the full gated deployment path, and its win is verified against the incumbent (see ml-baselines, ab-test-design).
Boundaries
- Drift detection flags change, not cause; concept drift (the input-output relationship moved) needs retraining, while covariate shift sometimes only needs threshold recalibration: diagnose via ml-error-analysis before spending the retrain.
- Feedback loops (the model's own actions shape future data: lending, ranking) bias every monitored signal; where stakes justify it, hold out a small randomized slice as an unbiased measurement channel.
- Retraining on drifted-and-unlabeled data via pseudo-labels compounds errors; do not automate retrain-on-drift without a labeled gate.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most monitoring observability skills give in 694 tokens
Counted across 530 of the 532 authors here whose files we hold, read 2026-09-06
- Use structured JSON loggingin 40 of 530, across 36 files
- Link every alert to a runbookin 29 of 530, across 27 files
- Attach correlation IDs to every log linein 19 of 530, across 16 files
- Alert on symptoms rather than causesin 19 of 530, across 17 files
- Use OpenTelemetry for distributed tracingin 15 of 530, across 14 files
- Alert on symptoms users feelin 15 of 530, across 13 files
- Implement health check endpointsin 14 of 530, across 10 files
- Inspect existing dashboards firstin 12 of 530, across 4 files
- Build the minimum useful boardin 12 of 530, across 4 files
- Start from operator questionsin 12 of 530, across 4 files
- Propagate trace context across boundariesin 11 of 530, across 10 files
- Include trace id in all log entriesin 10 of 530, across 9 files
Said here and by no other author read
- Monitor performance directly where labels arrive
- Watch prediction drift as the early warning
- Watch input drift per feature, ranked by importance
- Choose references and thresholds deliberately
- Bind alerts to actions in advance
- Close the loop with scheduled evaluation
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.