roohe/agentic-super-skills/monitor-model-drift
Claude Code and agent skill by roohe/agentic-super-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Implement model drift monitoring using Evidently AI, statistical tests (PSI, KS), and custom metrics to detect data drift and concept drift in production ML systems. Set up automated alerting and reporting workflows to catch degradation before it impacts business metrics. Use when production models show unexplained performance degradation, when new data distributions differ from training data, when seasonal shifts affect input features, or when regulatory requirements mandate model monitoring.
Install
npx vskill@latest install roohe/agentic-super-skills/monitor-model-driftSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as roohe/agentic-super-skills/monitor-model-drift.
Monitor Model Drift
See Extended Examples for complete configuration files and templates.
Detect and alert on data drift and concept drift in production ML models using statistical tests and automated monitoring.
When to Use
- Production ML models with unexplained performance degradation
- New data distributions differ from training data
- Seasonal or temporal shifts in input features
- Need proactive alerts before business metrics are impacted
- Regulatory requirements for model monitoring (e.g., SR 11-7, EU AI Act)
- Multiple model versions deployed requiring drift comparison
Inputs
- Required: Production model predictions and features (last 30-90 days)
- Required: Reference dataset (training or validation data)
- Required: Ground truth labels (may be delayed)
- Optional: Feature importance scores or SHAP values
- Optional: Business metric thresholds for alerting
- Optional: Historical drift reports for trend analysis
Procedure
Step 1: Install and Configure Evidently AI
Set up the monitoring framework with appropriate dependencies.
Create configuration file:
Got: Configuration file created with thresholds matching your model's tolerance.
If fail: Start with conservative thresholds (PSI > 0.2, KS p-value < 0.01) and tune based on false positive rate.
Step 2: Implement Data Drift Detection
Create drift detection pipeline with multiple statistical tests.
Got: Drift detection runs successfully, produces JSON report with per-feature statistics, and identifies drifted features.
If fail: Check for missing values (impute or drop), ensure reference and current data have the same columns, verify data types match between datasets.
Step 3: Generate Evidently Reports
Create visual HTML reports for human review and debugging.
Got: HTML reports generated in monitoring/reports/, viewable in browser with interactive charts showing distribution comparisons.
If fail: Verify write permissions to output directory, check that Evidently version is >= 0.4.0, ensure data frames have sufficient rows (>100 recommended).
Step 4: Implement Concept Drift Detection
Monitor prediction performance to detect concept drift (relationship between features and target changes).
Got: Performance monitoring detects when model accuracy/AUC drops below threshold, signaling potential concept drift.
If fail: Ensure ground truth labels are available (may require delayed validation batch job), verify prediction scores are calibrated (0-1 range for classification), check for label leakage in features.
Step 5: Set Up Automated Alerting
Integrate drift detection with alerting systems (Slack, PagerDuty, email).
Got: Alerts sent to Slack/PagerDuty when drift detected, with severity based on drift share and critical feature involvement.
If fail: Test webhook URLs with curl first, verify PagerDuty integration key has correct permissions, check firewall rules for outbound HTTPS, implement retry logic for transient network failures.
Step 6: Schedule Monitoring Jobs
Automate drift detection to run on schedule (daily or weekly).
Alternatively, use cron:
Or use Airflow DAG:
Got: Monitoring runs automatically on schedule, generates reports, sends alerts only when drift exceeds thresholds, logs all activity.
If fail: Check scheduler process is running (ps aux | grep scheduler), verify cron service is active, ensure data sources are accessible, review logs for exceptions, set up dead man's switch alert if job does not run.
Validation
- [ ] PSI and KS test calculations produce expected values for known drift scenarios
- [ ] Evidently HTML reports render correctly and show distribution overlays
- [ ] Critical feature drift triggers alerts immediately
- [ ] Concept drift detector identifies performance degradation within 3 days
- [ ] Alerts delivered to all configured channels (Slack, email, PagerDuty)
- [ ] Scheduled job runs without manual intervention for 7+ days
- [ ] False positive rate < 5% (tune thresholds if higher)
- [ ] Drift detection completes in < 5 minutes for 1M rows
Pitfalls
- Stale reference data: Update reference dataset quarterly or after model retraining to reflect natural data evolution
- Sample size mismatch: Ensure current and reference datasets have similar sizes (>1000 rows each) for reliable statistics
- Missing ground truth: Concept drift requires labels; implement a delayed labeling pipeline if real-time labels are unavailable
- Seasonality confusion: Weekly/monthly patterns may trigger false positives; use time-aligned reference windows or deseasonalize features
- Alert fatigue: Start with high thresholds and gradually lower them based on actual model retraining cadence
- Ignoring data quality drift: Monitor missing values, outliers, and encoding errors separately from distribution drift
- Over-reliance on aggregate metrics: Per-feature analysis is crucial; aggregate drift may mask critical individual feature shifts
- Neglecting prediction distribution: Even without ground truth, sudden prediction distribution shifts signal issues
Related Skills
detect-anomalies-aiops- Time series anomaly detection for operational metricsdeploy-ml-model-serving- Model deployment patterns and versioningsetup-prometheus-monitoring- Infrastructure metrics collectionreview-data-analysis- Statistical analysis validation and peer review
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills_library/monitor-model-drift/SKILL.md
Popularity
- Repository stars
- 10
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roohe/agentic-super-skills/monitor-model-drift)