/mlops-skills:experiment-trackingfrom mlops-skills
Guides setting up experiment tracking for ML training runs — logging params, metrics, artifacts, and code/data versions for reproducibility. Activates when users ask to track experiments, set up MLflow/W&B/Neptune/DVC, compare runs, or debug unreproducible results.
Ships in mlops-skills. 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.
ML development is fundamentally iterative — dozens or hundreds of training runs with varying data, hyperparameters, and code, most of which don't become the production model. Without experiment tracking, this iteration produces an unmanageable pile of scripts, spreadsheets, and "I think this was the run that worked" guesses. Experiment tracking makes every run a structured, comparable, reproducible record: exact parameters, resulting metrics, logged artifacts, and a link back to the code and data version that produced it. This matters operationally because it's the difference between being able to answer "why did we choose this model" and "can we reproduce it" months later, versus not.
import mlflow
mlflow.set_experiment("fraud-scorer")
with mlflow.start_run(run_name="gbdt-depth6-lr0.05"):
mlflow.log_params({
"model_type": "gradient_boosted_trees",
"max_depth": 6,
"learning_rate": 0.05,
"n_estimators": 300,
"data_snapshot": "s3://data-lake/fraud/snapshots/2026-07-20",
"git_sha": "a1b2c3d",
})
model = train(...)
metrics = evaluate(model, val_set)
mlflow.log_metrics({
"auc": metrics["auc"],
"precision_at_1pct_fpr": metrics["precision_at_1pct_fpr"],
"train_loss_final": metrics["train_loss_final"],
})
mlflow.log_artifact("confusion_matrix.png")
mlflow.sklearn.log_model(model, artifact_path="model")
git_sha for code, a content-addressed or timestamped snapshot ID for
data. Tie this in with lineage tracking (see
data-and-model-lineage) so a run's
full provenance is queryable, not just its hyperparameters.owner, purpose (baseline/sweep/ablation/production-candidate), and
dataset_version, so runs are filterable months later without relying on
memory.import itertools
import mlflow
mlflow.set_experiment("fraud-scorer-sweep")
for max_depth, lr in itertools.product([4, 6, 8], [0.01, 0.05, 0.1]):
with mlflow.start_run(run_name=f"depth{max_depth}-lr{lr}"):
mlflow.log_params({"max_depth": max_depth, "learning_rate": lr,
"sweep_id": "sweep-2026-07-21"})
metrics = train_and_evaluate(max_depth=max_depth, learning_rate=lr)
mlflow.log_metrics(metrics)
auc, precision_at_1pct_fpr)
applied consistently across runs and projects, so cross-project comparison
and dashboarding doesn't require manual cleanup.Symptom: Months after a model was chosen, no one can reproduce the winning run's result — the code has moved on and the exact data snapshot used is unclear. Fix: Log the git SHA and a concrete, immutable data version/snapshot ID (not "the data as of that time," which is not retrievable later) on every run at logging time, not reconstructed after the fact.
Symptom: A hyperparameter sweep produces 200 runs with generic names
(run_1, run_2, ...) and no tags, and comparing them requires manually
opening each one.
Fix: Agree on and enforce a tagging/naming convention before the sweep
starts (sweep ID, varied hyperparameters in the run name, owner), and log
all varied parameters as first-class logged params so the UI's comparison
view can filter/sort on them directly.
Symptom: Two runs with what looks like an identical config produce different metrics, and it turns out one used a slightly different (uncommitted) local code change that was never logged anywhere. Fix: Fail the run (or at minimum flag it prominently) if there are uncommitted local changes at run start, rather than silently logging a git SHA that doesn't reflect the code that actually ran; make "clean working tree" a precondition for any run intended to be reproducible/comparable.
Symptom: A well-meaning cleanup deletes "old" experiment runs and artifacts to save storage costs, and it turns out one of the deleted runs was the originating record for the currently-deployed production model, breaking the audit trail. Fix: Never delete experiment runs without cross-checking whether they're referenced by an active model registry entry or lineage record; archive to cold storage instead of hard-deleting, and treat deletion of any run tied to a production artifact as requiring explicit, warned confirmation.
A team runs a hyperparameter sweep to improve fraud-scorer.
fraud-scorer-sweep-2026-07, and log a
9-trial grid sweep over max_depth ∈ {4,6,8} and
learning_rate ∈ {0.01,0.05,0.1}, each run tagged sweep_id=sweep-2026-07-21,
git_sha=a1b2c3d, data_snapshot=2026-07-20.auc; the best is
depth6-lr0.05 at AUC 0.912, followed closely by depth8-lr0.05 at
AUC 0.909 but with meaningfully higher inference latency logged as an
artifact (a latency benchmark plot) — the team picks depth6-lr0.05 as
the balance of quality and serving cost.run-8841) and its logged model artifact are registered
to the model registry as fraud-scorer version 14 (see
model-packaging-and-versioning),
with the run ID carried over as a permanent tag on the registry entry.run_id tag to run-8841 in the tracker,
and retrieves the exact git SHA, data snapshot URI, and hyperparameters
used — answerable in minutes because the linkage was captured at
logging time, not reconstructed after the fact.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin mlops-skills22 skills in this plugin
/complete-mlops-platform-deployment-on-aws-from-scratchSequences a complete, end-to-end MLOps platform deployment on AWS from a bare AWS Organization to a production-ready platform serving a first retrained model — AWS landing zone, the SageMaker-vs-EKS+Kubeflow platform decision (EKS+Kubeflow is the worked path here), GPU node pools via the NVIDIA GPU Operator, MLflow experiment tracking on S3, a Kubeflow Pipelines retraining DAG, model registry/packaging with gated promotion, KServe canary/shadow serving, and drift monitoring. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on AWS from scratch," "build the full ML training-to-serving pipeline on EKS/SageMaker," "give me the end-to-end sequence from AWS account to a retrained, monitored production model," or "decide between SageMaker and EKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-azure-from-scratchSequences a complete, end-to-end MLOps platform deployment on Azure from a bare tenant to a production-ready platform serving a first retrained model — Azure landing zone, the Azure-ML-vs-AKS+Kubeflow platform decision (Azure ML is the worked path), GPU compute clusters/quota, MLflow-compatible experiment tracking, an Azure ML pipeline retraining DAG, Model Registry with gated promotion, managed online endpoints with traffic-split canary rollout, and data-drift monitoring. An integration/ orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on Azure from scratch," "build the full ML training-to-serving pipeline on Azure ML/AKS," "give me the end-to-end sequence from Azure tenant to a retrained, monitored production model," or "decide between Azure ML and AKS+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-on-gcp-from-scratchSequences a complete, end-to-end MLOps platform deployment on GCP from a bare Google Cloud Organization to a production-ready platform serving a first retrained model — GCP landing zone, the Vertex-AI-vs-GKE+Kubeflow platform decision (Vertex AI is the worked path), GPU quota and accelerator-backed custom training, Vertex AI Experiments tracking, a Vertex AI Pipelines retraining DAG, Model Registry with gated promotion, endpoints with traffic-split canary rollout, and Vertex AI Model Monitoring for drift. An integration/orchestration skill that sequences existing tool-specific skills in the right order and flags handoff points — it does not restate their internals. Use when a user asks to "stand up an MLOps platform on GCP from scratch," "build the full ML training-to-serving pipeline on Vertex AI/GKE," "give me the end-to-end sequence from GCP org to a retrained, monitored production model," or "decide between Vertex AI and GKE+Kubeflow for our ML platform."
/complete-mlops-platform-deployment-self-hosted-k8s-from-scratchSequences a complete, end-to-end, self-hosted and cloud-agnostic MLOps platform on any Kubernetes cluster — no managed ML service from any vendor — from a bare cluster to production: GPU node pools via the NVIDIA GPU Operator, a Kubeflow-vs-Ray orchestration choice, self-hosted MLflow-style tracking and registry on self-operated object storage and Postgres, on-cluster serving, and self-hosted drift monitoring. An integration/orchestration skill sequencing existing tool-specific skills in the right order, explicit about the added operational burden of self-hosting every layer versus a managed-cloud MLOps platform. Use when a user asks to "build a self-hosted MLOps platform on Kubernetes," "stand up MLflow and Kubeflow ourselves with no managed cloud ML service," "design a vendor-agnostic ML platform we can run on any cluster," or "give me the full sequence for a fully self-managed ML platform from bare cluster to production."
/data-and-model-lineageGuides tracking end-to-end lineage from raw data sources through feature computation, training runs, and model versions, to enable root-cause tracing, impact analysis, and compliance/audit answers. Use when the user asks to "trace where a feature/model came from", set up data/model lineage tracking, do impact analysis before changing an upstream table, answer an audit/compliance question about a model's training data, or debug a bad prediction back to its source.
/data-catalog-and-lineage-governance-datahub-amundsenGuides deploying and operating enterprise data catalog and governance tooling — DataHub or Amundsen — for discovering, tagging, classifying, and owning datasets, features, and models across an organization, including deprecation workflows that must check downstream consumers before deletion. Use when the user asks to "set up a data catalog", "make datasets/models searchable and discoverable", "tag PII/sensitive data", assign data ownership, install or configure DataHub or Amundsen, write an ingestion recipe, or safely deprecate/delete an old dataset or model artifact without breaking a consumer.
Other plugins' skills for the same job