/ml:ml-error-analysisfrom ml
Runs 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).
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 look at what the model does to users: measure how much a candidate changes, find patterns in its errors, and turn complaints into numbers.
../../references/lessons.md and, if it exists, docs/ml-plans/lessons.md.../../references/rules.md, section "Human analysis of the system" (rules 23 to 28).../../references/workflow.md for the folder layout, phases and verdict format.features.md in docs/ml-plans/*/ if present. Do not ask again what they answer.workflow.md). This skill fits Phase II. Earlier, send the
user to ml-planner or ml-first-pipeline: a broken pipeline shows wiring bugs.../../templates/ml_checks.py into analysis/. Change only the data loading.model_delta. It must be close to zero (rule 24). If not, emit FATAL: the
system is unstable and no other delta means anything.model_delta per query (rule
24), because the policy layer can hide or amplify a change. A small delta means
a live experiment will show little; a large one means inspect the queries that
moved most before any user sees them.ml-features adds them.Before interpreting, confirm from actual output:
ml_checks.py ran without errors and you can quote the self-delta and the model delta.If a box is not ticked, say which evidence is missing and offer to get it.
Write docs/ml-plans/<project>/error-analysis.md:
# Error analysis: <project>
**Date**: <date> **Candidate**: <model> **Reference**: <production model>
## Verdicts
<FATAL | SERIOUS | MINOR lines, or "None">
## Model delta
Self-delta: <value>. Old vs new: <mean value> on <n> sample queries. Queries that moved most: <list>.
## Decision metric
| Model | <decision metric> | <log loss or AUC> | Data |
|---|---|---|---|
| Production | | | next-day |
| Candidate | | | next-day |
## Error patterns
### <pattern>: <count> errors
Examples: <three>. Candidate features: <list>. Handed to ml-features.
## Rated metrics
| Behaviour | Rating guide | Head queries | Current rate |
|---|---|---|---|
## Human evaluation plan
<raters, personas, live experiment, and the long-term check after launch>
Then hand off: /ml:ml-features for the candidate features, /ml:ml-skew if offline
and live results disagree, /ml:ml-plateau if the decision metric and the objective
keep pulling apart (rule 25), and /ml:ml-auditor before launch.
| Mistake | Why it is wrong | Instead |
|---|---|---|
| The team judges the model | Insiders have confirmation bias (rule 23) | Raters, personas or a live experiment |
| Model delta on the learner alone | The policy layer changes what users see | Run both models through the full system (rule 24) |
| Skipping the self-delta | An unstable system makes every delta noise | Model against itself first; expect zero (rule 24) |
| Launching on better log loss | The decision is what users get (rule 25) | Judge by the decision metric |
| One guessed feature per pattern | The right form is rarely the first guess | A dozen candidates, for example several buckets (rule 26) |
| Optimizing a complaint before measuring it | No way to tell if it improved | Rated metric first (rule 27) |
| Short experiment read as long-term proof | New instances may never surface (rule 28) | Check on data gathered while the model is live |
Rules 23 to 28, human analysis of the system, in Phase II:
https://developers.google.com/machine-learning/guides/rules-of-ml#ml_phase_ii_feature_engineering.
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
8 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-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).npx claudepluginhub robinicole/skills --plugin ml