/mlops-skills:model-drift-alert-triagefrom mlops-skills
Guides time-boxed triage of a fired drift-monitoring alert (PSI, KS, KL divergence) to classify as genuine drift, monitoring bug, stale pipeline, or seasonality, then decide retrain/rollback/silence/escalate.
Ships in mlops-skills. 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.
None: SKILL.md is the whole skill.
model-monitoring-and-drift-detection covers how to build drift monitoring; this skill covers the five-alarm moment after that monitoring already paged someone. A fired drift alert is not self-explanatory — the same PSI-over-threshold signal can mean the world genuinely changed under the model, a marketing campaign shifted a seasonal feature for a week, a feature pipeline silently broke and is now feeding stale or null-heavy data, or the monitoring job itself has a bug. Each of those has a completely different correct response (retrain, ignore and tune, fix an upstream pipeline, or fix monitoring code), and picking the wrong one wastes an on-call engineer's time at best and triggers a bad retrain or an unnecessary rollback at worst. This skill is a decision tree for reaching the right classification inside a time-boxed window, not a lecture on drift statistics.
import numpy as np
def population_stability_index(expected, actual, bins=10):
breakpoints = np.quantile(expected, np.linspace(0, 1, bins + 1))
breakpoints[0], breakpoints[-1] = -np.inf, np.inf
e_counts, _ = np.histogram(expected, bins=breakpoints)
a_counts, _ = np.histogram(actual, bins=breakpoints)
e_pct = np.clip(e_counts / len(expected), 1e-6, None)
a_pct = np.clip(a_counts / len(actual), 1e-6, None)
return float(np.sum((a_pct - e_pct) * np.log(a_pct / e_pct)))
# Pull raw values directly rather than trusting the dashboard aggregate
psi_recheck = population_stability_index(reference_values, current_window_values)
sample_size_ok = len(current_window_values) >= 500 # flag if the alert fired on a tiny sample
Symptom: On-call immediately assumes "real drift" and pages the ML team for an emergency retrain based on a single day's PSI spike that quietly reverts to baseline the next day. Fix: Require persistence across more than one monitoring window before treating a threshold breach as actionable, per model-monitoring-and-drift-detection; a single-day spike on a seasonal or campaign-affected feature is common and expected.
Symptom: The team spends over an hour debating whether a spike is "real" because the monitoring dashboard only shows aggregate statistics, and it turns out a single newly-launched region is driving the whole signal. Fix: Always drill into slice-level breakdowns (region, device, customer tier) as a standard early triage step, not a last resort after aggregate analysis stalls.
Symptom: A drift alert triggers a full retrain-and-promote cycle, and the retrained model is worse, because the "drift" was actually a feature pipeline job that had been silently emitting stale or null-heavy values for three days — the retrain learned from the same bad data. Fix: Always check upstream feature pipeline health and freshness before concluding drift is genuine; route suspected pipeline issues to feature-pipeline-failure-investigation first, and never let an automated drift-triggered retrain skip the gated promotion checks in model-packaging-and-versioning.
Symptom: Triage concludes the alert is genuine and severe, and on-call immediately rolls back to the previous model version without checking whether that older version's expected feature schema still matches what the feature pipeline emits today. Warning: Rolling back a production model without verifying feature-schema compatibility is a risky action in its own right — hand off to production-model-rollback-procedure, which makes that compatibility check a required step, rather than executing an ad hoc rollback under time pressure.
Scenario: A PSI alert fires at 03:14 UTC on days_since_last_login, a
feature feeding the churn-predictor-v3 model, breaching the 0.25
threshold at 0.29.
days_since_last_login is flagged; other
monitored features (support_tickets_30d, plan_tier) are stable.
Points at something specific to this one feature's pipeline, not a
broad behavioral shift.days_since_last_login was last materialized correctly, but its
source login-event table's timestamp semantics changed two weeks
earlier during an unrelated platform migration — this is an upstream
pipeline change, not user behavior changing.support_tickets_30d persists
across multiple windows and correlates with a real recall drop once
delayed labels arrive — this time correctly classified as genuine
concept drift and routed to a scheduled retrain via
training-pipeline-orchestration.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
drift-detection, mlops, on-call-runbook, model-monitoring, alert-triage
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skills22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-gcp-from-scratchSequences a complete, end-to-end MLOps platform deployment on GCP from a bare Google Cloud Organization to a production-ready platform serving a first retrained model — GCP landing zone, the Vertex-AI-vs-GKE+Kubeflow platform decision (Vertex AI is the worked path), GPU quota and accelerator-backed custom training, Vertex AI Experiments tracking, a Vertex AI Pipelines retraining DAG, Model Registry with gated promotion, endpoints with traffic-split canary rollout, and Vertex AI Model Monitoring for drift. An integration/orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on GCP from scratch," "build the full ML training-to-serving pipeline on Vertex AI/GKE," "give me the end-to-end sequence from GCP org to a retrained, monitored production model," or "decide between Vertex AI and GKE+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-self-hosted-k8s-from-scratchSequences a complete, end-to-end, self-hosted and cloud-agnostic MLOps platform on any Kubernetes cluster — no managed ML service from any vendor — from a bare cluster to production: GPU node pools via the NVIDIA GPU Operator, a Kubeflow-vs-Ray orchestration choice, self-hosted MLflow-style tracking and registry on self-operated object storage and Postgres, on-cluster serving, and self-hosted drift monitoring. An integration/orchestration skill sequencing existing tool-specific skills in the right order, explicit about the added operational burden of self-hosting every layer versus a managed-cloud MLOps platform. Use when a user asks to "build a self-hosted MLOps platform on Kubernetes," "stand up MLflow and Kubeflow ourselves with no managed cloud ML service," "design a vendor-agnostic ML platform we can run on any cluster," or "give me the full sequence for a fully self-managed ML platform from bare cluster to production."
/data-and-model-lineageGuides tracking end-to-end lineage from raw data sources through feature computation, training runs, and model versions, to enable root-cause tracing, impact analysis, and compliance/audit answers. Use when the user asks to "trace where a feature/model came from", set up data/model lineage tracking, do impact analysis before changing an upstream table, answer an audit/compliance question about a model's training data, or debug a bad prediction back to its source.
/data-catalog-and-lineage-governance-datahub-amundsenGuides deploying and operating enterprise data catalog and governance tooling — DataHub or Amundsen — for discovering, tagging, classifying, and owning datasets, features, and models across an organization, including deprecation workflows that must check downstream consumers before deletion. Use when the user asks to "set up a data catalog", "make datasets/models searchable and discoverable", "tag PII/sensitive data", assign data ownership, install or configure DataHub or Amundsen, write an ingestion recipe, or safely deprecate/delete an old dataset or model artifact without breaking a consumer.
Other plugins' skills for the same job