ml-monitoring

Detect data drift, prediction drift, and performance degradation in production ML models.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill ml-monitoring-kalilurrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-monitoring
Source: https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts/tree/main/04-ai-ml/ml-monitoring
Command: npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill ml-monitoring-kalilurrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? ML models degrade silently in production as input data distributions shift and relationships change, and teams often discover the damage only after business metrics drop. This Skill builds drift detection pipelines, alerting, and retraining triggers so degradation is caught before users notice. ## Core Features & Use Cases - Statistical Drift Detection: Implements KS tests, PSI, chi-squared tests, and Wasserstein distance to detect data, concept, and prediction drift per feature. - Scheduled Monitoring & Alerting: Runs hourly/daily monitoring jobs that log drift metrics to MLflow and send SNS alerts with warning/critical severity levels. - Automated Retraining Triggers: Fires CI/CD webhooks when critical drift is detected, plus performance tracking against baseline AUC/F1 when labels arrive. - Use Case: A data science team deploys an order-propensity model and uses this Skill to monitor feature distributions hourly, receive SNS alerts when PSI exceeds 0.2, and automatically trigger retraining pipelines. ## Quick Start Set up drift monitoring for my production model using PSI and KS tests with hourly checks, MLflow logging, and SNS alerts when drift exceeds warning thresholds.

Frequently Asked Questions about ml-monitoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect data drift in production ML models?

Use statistical tests comparing current production data against a reference training baseline. PSI works well for continuous features with thresholds at 0.1 and 0.2, KS tests measure distribution distance, and chi-squared tests handle categorical features.

What is the difference between data drift and concept drift?

Data drift means the input feature distribution changed while the underlying relationship stays the same. Concept drift means the relationship between inputs and outputs changed, so the same inputs now produce wrong predictions even with stable input distributions.

What PSI threshold indicates significant feature drift?

PSI below 0.1 indicates a stable distribution, 0.1 to 0.2 indicates slight drift warranting a warning, and above 0.2 indicates significant drift requiring critical alerts. Bins are built from the reference data histogram with smoothing to avoid zero proportions.

How do I monitor model accuracy when labels arrive late?

Track prediction distribution drift using Wasserstein distance as an early signal, then evaluate AUC, F1, precision, and recall in windows once ground truth arrives. Compare metrics against baseline and alert when relative degradation exceeds a threshold like 5 percent.

Can drift detection trigger automated model retraining?

Yes, when a monitoring check returns critical status, the pipeline sends a POST request to a CI/CD retraining webhook with the drift report. Scheduled retraining is also recommended even without detected drift to keep models fresh.

Why does drift detection fail with small sample sizes?

Statistical tests like KS and chi-squared need sufficient samples to produce reliable p-values. The monitoring job skips checks when fewer than 100 samples are available in the window, since results would be noisy and trigger false alerts.