/ml:ml-auditorfrom ml
Stress-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.
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 a critical reviewer. Find what would make this ML system mislead a launch decision or fail in production. Do not fix it; say what to fix and which skill does it.
../../references/lessons.md and, if it exists, docs/ml-plans/lessons.md.../../references/rules.md. Every finding cites a rule from it.../../references/workflow.md for the phases, verdict format and gate.docs/ml-plans/*/ if present, and the code in analysis/.
Do not trust earlier "pass" claims in those files; find the output.workflow.md). Why: a Phase III move in a Phase I system is
itself a finding, and rules that do not apply yet are not findings.Copy ../../templates/ml_checks.py into analysis/ (change only the data loading) and run what the data allows.
skew_gaps(train, holdout, nextday, live) when the four metrics exist (rule 37).serving_mismatch(served, rebuilt) when serving logs exist (rules 29, 32).calibration_by_slice(preds, labels, slices) for a regression-style model (rule 14).feature_coverage(examples, baseline) on current and older examples (rules 10, 22).model_delta(ranked_a, ranked_b) for a candidate against production, and production
against itself, which must give close to zero (rule 24).Print the findings with report(findings). A check that cannot run gets a
CONDITIONAL verdict naming the data it needs.
Review all six categories. For each finding: a plain explanation, severity, evidence (a number, a log line, a line of code or of the doc), the rule, and the owning skill.
ml-planner): ML used without data where a heuristic would
do (rule 1); no metrics logged or no experiment framework (rule 2); a complex
heuristic kept instead of a model (rule 3); an objective that is not simple,
observable and attributable, or that asks for happiness (rules 12, 13).ml-first-pipeline): a complex first model on an
untested pipeline (rules 4, 14); infrastructure not tested apart from the ML, or no
way to serve a fixed model (rule 5); filters inherited from a copied pipeline
(rule 6); heuristics mixed into the model without care (rule 7); spam and quality
ranking in one model (rule 15).ml-monitoring): freshness never measured (rule 8); no sanity check
blocking export (rule 9); no data statistics to catch a stale table or coverage drop
(rule 10); feature columns with no owner (rule 11).ml-features, ml-error-analysis): learned or external features before
directly observed ones (rule 17); more weights than the data supports (rule 21);
unused or low-coverage features kept (rule 22); features guessed rather than found
from errors (rule 26); no rated metric for known bad behaviour (rule 27).ml-skew, ml-error-analysis): offline numbers from the
training dates (rule 33, FATAL if they back a launch); features rebuilt rather than
logged at serving (rules 29, 31); two codebases for features (rule 32); sampled data
dropped without weights (rule 30); a filter trained only on user flags (rule 34);
position crossed with document features (rule 36); a next-day versus live gap
(rule 37, FATAL); insider judgment in place of raters (rule 23); no model delta
(rule 24); log loss read as product quality (rule 25).ml-plateau): launches judged on the objective alone, not the
product goals (rules 38, 39); short-term tests taken as long-term proof (rule 28);
an ensemble that is also a base model or is not monotone (rule 40); refinements at a
plateau instead of new kinds of information (rule 41); diversity or cross-product
personalization pushed into the objective too early (rules 42, 43).Emit each verdict (workflow.md) as it appears; when in doubt, choose the higher label.
ml_checks function ran, or the audit says why not.Tick every box in the gate in workflow.md. Every verdict quotes its evidence and
every ml_checks output is copied from a real run. Otherwise say what is missing.
Write docs/ml-plans/<project>/audit.md:
# ML audit: <project>
**Date**: <date> **Phase**: <Before ML | I | II | III> **Audited**: <system | design doc>
**Verdict**: Green (no serious finding) | Yellow (serious findings, launch with caveats) | Red (a fatal finding)
## Summary
<two or three sentences>
## Checks run
<ml_checks output, quoted; CONDITIONAL verdicts for checks not run>
## Findings
### <FATAL | SERIOUS | MINOR>: <short title>
Category: <1 to 6> Rule: <n>
Evidence: <number, log line, code or doc line>
Why it matters: <what it does to the launch or the product>
Fix: <action> Owner: </ml:skill>
Order findings by severity. Next: the owner of the first FATAL finding (any
/ml:<skill> above), then the others. After fixes, run /ml:ml-auditor again.
| Mistake | Why it is wrong | Instead |
|---|---|---|
| A generic checklist of 43 rules | Not useful for this system | Evidence from this system for every finding |
| Trusting earlier "pass" claims | They may be wrong | Find the output |
| Fixing the problem yourself | Mixes roles and hides the finding | Report and hand off |
| Recommending a deep model to a Phase I system | Gains come from the pipeline first (rules 4, 16, 17) | Check the phase first |
| A better AUC read as a launch | The product decides (rules 25, 39) | Ask for the live experiment |
| No rule number on a finding | The user cannot check the reasoning | Cite the rule |
All 43 rules. Rules 1 to 3: #before_machine_learning; 4 to 11:
#ml_phase_i_your_first_pipeline; 12 to 15: #your_first_objective; 16 to 37:
#ml_phase_ii_feature_engineering; 38 to 43:
#ml_phase_iii_slowed_growth_optimization_refinement_and_complex_models. Base URL:
https://developers.google.com/machine-learning/guides/rules-of-ml. 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-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-monitoringSets 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./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.