ml-deployment

Guides production deployment of machine learning models with skew detection, canary rollouts, and rollback patterns.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill ml-deployment-snoodleboot-io
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ml-deployment
Source: https://github.com/snoodleboot-io/discrecontinual_equations/tree/main/.claude/skills/ml-deployment
Command: npx skills add https://github.com/snoodleboot-io/discrecontinual_equations --skill ml-deployment-snoodleboot-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying a trained model to production fails in ways staging never reveals: training/serving skew, silent prediction regressions, and rollbacks that require full rebuilds. This Skill provides the patterns and checklists to ship models safely. ## Core Features & Use Cases - Deployable Unit Design: Bundle model weights, fitted preprocessor, feature spec, and training data hash as one versioned artifact. - Skew Elimination: Share feature transformation code between training and serving, and detect divergence with shadow-mode comparison. - Rollout Strategies: Apply shadow, canary, A/B, blue-green, and bandit deployments with gates on prediction distribution rather than error rates. - Use Case: You are promoting a churn model from v1.4.1 to v1.4.2. Use this Skill to run a shadow deployment, gate the canary on prediction-mean shift in Prometheus, and keep rollback as a one-command alias change. ## Quick Start Ask the assistant to review your model serving setup and produce a deployment plan covering artifact versioning, skew checks, and a canary rollout gate.

Frequently Asked Questions about ml-deployment

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

FAQPage Schema
How do I deploy a machine learning model to production safely?▼

Deploy a machine learning model by first running it in shadow mode where its predictions are logged but discarded, then ramping a canary to 1-10% of traffic. Gate the canary on prediction distribution shift and business proxies, not error rates, since a broken model still returns healthy 200 responses.

What is training/serving skew and how do I prevent it?▼

Training/serving skew occurs when the features a model sees in production differ from those it was trained on, usually from reimplemented feature logic or re-fitted transformers. Prevent it by defining feature transformations once in a shared library and serializing the fitted preprocessor alongside the model.

Should I use shadow, canary, or blue-green deployment for ML models?▼

Use shadow deployment first for every model since it catches schema mismatches and latency issues with zero live traffic. Follow with a canary for models touching revenue or users; blue-green only suits low-stakes or offline batch models because it detects infrastructure faults only.

Why does my model perform well offline but badly in production?▼

Offline-online performance gaps usually come from point-in-time leakage, where training features were computed after the label event, or from serving-time feature divergence. Recompute training-side features for live entities in shadow mode and emit a mismatch metric when values diverge beyond tolerance.

How do I roll back a deployed model quickly?▼

Roll back a model by serving through an alias so promotion and rollback are pointer moves, such as an MLflow set-alias command, rather than image rebuilds. Keep the previous version warm in memory, since re-downloading a large artifact during an incident turns a rollback into an outage.