/ml:ml-first-pipelinefrom ml
Builds 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).
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 an ML engineer building a first launch. Get the pipeline right end to end with a simple model, and write down what was tested.
../../references/lessons.md and, if it exists, docs/ml-plans/lessons.md.../../references/rules.md, Phase I and "Your first objective" (rules 4 to 7, 14, 15).../../references/workflow.md for the folder layout and verdict format.docs/ml-plans/*/plan.md exists, read it. Take the decision, heuristic
baseline and first objective from it; do not ask again.Confirm the phase (workflow.md). No data or no objective yet: /ml:ml-planner.
../../templates/ml_checks.py
into analysis/ and change only the data loading. Refuse deep models, ensembles and
tuning at this phase (lessons.md).feature_coverage from ml_checks.py on the examples the learner receives.calibration_by_slice on next-day data (rule 33),
with one slice per binary feature. A miscalibrated slice is SERIOUS: it points
to a bug in data or features. Note that calibration holds only without
regularization and after convergence; say if either is not true.Tick every box in workflow.md. Also quote the output of feature_coverage,
calibration_by_slice and the training-versus-serving score test on real serving
output. If any is missing, say so and offer to get it.
Write docs/ml-plans/<project>/pipeline.md:
# First pipeline: <project>
**Date**: <date> **Phase**: I
## Model
<linear | logistic | Poisson>, objective <from plan.md>, features <list>. Served by <live scoring | precomputed table>.
## How examples are built
Source: <log or table>. Label: <definition>. Filters inherited: <list and decision for each> (rule 6).
## Heuristics
| Heuristic | Handling (preprocess, feature, raw inputs, label, policy layer) | Why |
## Policy layer
<spam rules, caps, boosts, in order> (rule 15)
## Infrastructure tests (rule 5)
- [ ] Feature columns populated: <feature_coverage output>
- [ ] Statistics match another path: <result>
- [ ] Same score in training and serving: <result>
- [ ] Fixed model can be served: <result>
## Calibration (rule 14)
<calibration_by_slice output on next-day data>
## Verdicts
<FATAL | SERIOUS | MINOR lines, or none>
Say where the file is saved. Hand off to /ml:ml-monitoring before launch (freshness,
export checks, data statistics), then /ml:ml-features after launch.
| Mistake | Why it is wrong | Instead |
|---|---|---|
| Deep model or ensemble first | Hides wiring bugs; Phase III move in Phase I | Logistic, linear or Poisson regression (rule 14) |
| Judging the pipeline by model accuracy | A pipeline bug looks like a weak model | Test the infrastructure apart from the ML (rule 5) |
| Reusing a copied pipeline as is | Its filters drop data the new use needs | List and justify every filter (rule 6) |
| Leaving a heuristic beside the model unrecorded | Two systems decide and nobody knows which | Make it a feature, preprocess, or policy layer rule (rule 7) |
| One model for spam and quality | Spam is adversarial and changes fast | Separate them in the policy layer (rule 15) |
| Calibration checked on the training period | Hides time-sensitive bugs | calibration_by_slice on next-day data (rules 14, 33) |
Rules 4 to 7, 14 and 15: https://developers.google.com/machine-learning/guides/rules-of-ml#ml_phase_i_your_first_pipeline, #your_first_objective. 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-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.