/ml:ml-monitoringfrom ml
Sets up monitoring for a production ML pipeline, namely freshness tests on models a day, a week and a quarter old, sanity checks that block a bad model export, data statistics that catch silent failures such as a stale joined table or a coverage drop, owners and documentation for each feature column, and alerts someone can act on, then writes monitoring.md. Use when the user says "model freshness", "how often to retrain the model", "block a bad model export", "silent failure in my pipeline", "stale joined table", "who owns this feature column" or "monitor my ML pipeline". Also use it for questions about which ML alerts to page on and what to put on the pipeline dashboard. Not for differences between training and serving (use ml-skew), and not for time series forecasting.
Ships in ml. 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.
You are the engineer on call for this pipeline. Make sure a bad model or a broken input is caught before users see it, and that every alert tells someone what to do.
../../references/lessons.md and, if it exists, docs/ml-plans/lessons.md.../../references/rules.md (rules 8 to 11).../../references/workflow.md for the folder layout, phases and verdict format.plan.md and pipeline.md in docs/ml-plans/*/ if they exist. Do not ask
again what they answer.workflow.md). Monitoring starts in Phase I, once a model is
exported to serving. With no model yet, hand to /ml:ml-planner.../../templates/ml_checks.py into analysis/. Change only the data loading.feature_coverage(examples, baseline) on the current
window against an earlier one. Each finding it returns is SERIOUS. Why: in the
guide, a feature fell from 90% to 60% coverage and nobody noticed. Then look at
a sample of examples by hand, because statistics miss what they do not measure.feature_coverage on every training run with the last
good run as the baseline, and check the last update time of every joined table
(rule 10).feature_coverage with one feature set to None on part of the examples and
confirm it reports a coverage drop.Apply the gate in workflow.md. In addition, before writing monitoring.md:
feature_coverage output is quoted for the current window.Write docs/ml-plans/<project>/monitoring.md:
# Monitoring: <project>
**Date**: <date> **Phase**: <I | II | III>
## Freshness (rule 8)
| Model age | Metric on next-day data | Change against production |
Retrain schedule: <cadence> because <reason>.
## Export gate (rule 9)
Check: <metric> on holdout, block if <condition>. Tested with: <bad model, result>.
## Data statistics (rule 10)
| Joined table | Last update | Alert if older than |
| Feature column | Coverage now | Baseline | Finding |
## Feature columns (rule 11)
| Feature column | Made by | Kept by | What it is | Source | Why it should help |
## Alerts
| Condition | Owner | First action |
## Verdicts
<FATAL | SERIOUS | MINOR findings, in the workflow.md format>
Then hand off. Suspected differences between training and serving go to
/ml:ml-skew. A working pipeline with rising metrics goes to /ml:ml-features.
Before a launch, run /ml:ml-auditor.
| Mistake | Why it is wrong | Instead |
|---|---|---|
| Retraining on a fixed calendar picked by habit | The model may decay faster or slower | Measure models a day, a week and a quarter old (rule 8) |
| Checking a model after it is live | A bad live model is a page | Block the export on a failed holdout check (rule 9) |
| Watching only model metrics | A stale joined table decays the model quietly | Track update times and coverage (rule 10) |
| Trusting dashboards without looking at examples | Statistics miss what they do not measure | Read a sample of examples by hand (rule 10) |
| Feature columns nobody owns | Nobody fixes them when they break | Name an owner and document each column (rule 11) |
| Alerts with no first action | People learn to ignore them | Every alert has an owner and an action |
Rules 8 to 11, Monitoring, inside Phase I:
https://developers.google.com/machine-learning/guides/rules-of-ml#ml_phase_i_your_first_pipeline.
URLs checked 2026-10-22.
When the user corrects you, append a lesson to docs/ml-plans/lessons.md
(format in ../../references/lessons.md).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub robinicole/skills --plugin ml8 skills in this plugin
/ml-auditorStress-tests an existing production ML system or an ML design doc against all 43 rules in six categories (objective and metrics, pipeline and infrastructure, monitoring, features, evaluation and skew, launch decisions), rates each finding fatal, serious or minor with evidence and the rule number, and hands each fix to the owning skill without making it. Use when the user says "audit my ML system", "audit our ML pipeline", "review my ML design doc", "stress-test our ML design", "check against the rules of ML" or "Zinkevich rules review". Also use it when the user doubts whether a production ML system or its offline numbers can be trusted before a launch. Not for building or fixing a system, and not for time series forecasting./ml-error-analysisRuns human analysis of a live ML system before and after a launch, namely rater and persona checks instead of insider judgment, the model delta between old and new models with a self-delta stability check, judging by the decision rather than log loss, turning error patterns into candidate features, rated metrics for undesirable behaviour, and short-term versus long-term behaviour. Use when the user says "error analysis", "model delta", "look at the model's mistakes", "false positives and false negatives", "human raters", "dogfood", "log loss improved but the product got worse" or "measure the bad results". Also use it when the user asks why the new model gets certain instances wrong or whether a candidate model really differs from production. Not for reviewing a whole ML system (use ml-auditor), and not for launch trade-offs between metrics (use ml-plateau)./ml-featuresPlans Phase II feature engineering for a live, tested ML pipeline, namely cheap launch-and-iterate cycles, directly observed features before learned ones, content features that generalise across contexts, very specific features, discretization and crosses, the number of weights the data can support, and removing unused features by coverage, then keeps a feature log. Use when the user says "feature engineering", "feature cross", "discretize a feature", "bucketize", "embedding features", "delete unused features", "too many features for my data" or "feature log". Also use it for questions about which kind of feature to add next while metrics still rise. Not for finding features from model errors (use ml-error-analysis), and not for a plateau where new features stopped helping (use ml-plateau)./ml-first-pipelineBuilds the first model and its pipeline in Phase I, namely a simple interpretable model (logistic, linear or Poisson regression), infrastructure tests kept apart from the ML, checks for data dropped by a copied pipeline, heuristics turned into features or applied outside the model, a policy layer that keeps spam filtering apart from quality ranking, and calibration checks by slice. Use when the user says "first ML pipeline", "first model in production", "test the pipeline infrastructure", "copied the pipeline", "heuristic as a feature", "policy layer", "spam versus quality ranking" or "check calibration by slice". Also use it for questions about how examples reach the learner and how the first model plugs into the product. Not for deciding whether to use ML at all (use ml-planner), and not for monitoring a live model (use ml-monitoring)./ml-plannerInterview that decides whether a product problem needs ML at all, which heuristic ships first, which metrics to log before any model exists, and the first objective (simple, observable, attributable), then writes an ML plan. Use when the user says "do I need machine learning", "should we use ML or a heuristic", "plan an ML project", "start an ML project", "what should we log before building a model" or "what should the model optimize". Also use it when the user asks what to decide before training a first model. Not for building the first pipeline (use ml-first-pipeline), not for a system whose gains have stalled (use ml-plateau), and not for time series forecasting./ml-plateauGuides a Phase III ML system whose launches gain under about 1% and whose metrics trade off, namely checking whether the objective rather than the features is the problem, reading a live experiment across several metrics as a proxy for long-term goals, keeping ensembles simple and monotone over calibrated base models, adding qualitatively new information instead of refinements, valuing diversity and personalization apart from popularity, and choosing which cross-product data transfers, then writes plateau.md. Use when the user says "gains have plateaued", "metrics trade off", "A/B test with mixed results", "objective is misaligned", "ensemble of models", "new sources of signal", "diversity versus popularity" or "cross-product features". Also use it when a candidate model raises one product metric and lowers another and the team cannot agree whether to launch. Not for a system still in Phase I or II (use ml-first-pipeline or ml-features), and not for time series forecasting.