/mlops-skills:training-pipeline-orchestrationfrom mlops-skills
Guides designing reproducible, orchestrated ML training pipelines as DAGs covering data ingestion, feature computation, training, evaluation, and conditional model registration. Useful when setting up Airflow, Kubeflow, Argo, or managed pipeline services.
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.
Ad hoc "run a notebook, save a pickle" training does not scale past a single model or a single person, and it cannot be safely automated for recurring retraining. Training pipeline orchestration turns the sequence of data ingestion → validation → feature computation → training → evaluation → conditional registration into an explicit, versioned DAG that runs identically whether triggered by a schedule, an event (new data landed), or a human. This matters operationally because it is what makes retraining repeatable, auditable, resumable after failure, and safe to gate — instead of a fragile script that only the original author can rerun correctly.
torch.manual_seed, numpy.random.seed) if bit-for-bit reproducibility is
a goal — note full determinism is not always achievable with GPU
non-determinism in some CUDA kernels; document this limitation rather than
promising exact reproducibility you can't guarantee.ingest_raw_data
│
validate_data_schema ──(fail)──> alert + halt
│
compute_features (calls feature store materialization)
│
split_train_val_test (time-based split, not random, for temporal data)
│
train_model
│
evaluate_model
│
├──(metrics below threshold)──> alert + halt, do not register
│
register_model_candidate (registers to "staging", not "production")
│
notify_for_promotion_review
from airflow.decorators import dag, task
from datetime import datetime
@dag(schedule="@weekly", start_date=datetime(2026, 1, 1), catchup=False)
def fraud_scorer_retrain():
@task
def validate_data_schema(snapshot_uri: str) -> str:
# raises on schema mismatch; return validated snapshot_uri
...
@task
def compute_features(snapshot_uri: str) -> str:
# materializes feature view, returns training dataset URI
...
@task
def train_model(dataset_uri: str) -> str:
# trains, logs to experiment tracker, returns run_id
...
@task
def evaluate_model(run_id: str) -> dict:
# returns metrics dict; raises AirflowSkipException if below gate
...
@task
def register_candidate(run_id: str, metrics: dict) -> str:
# registers to model registry stage "Staging" only if metrics pass
...
snapshot = validate_data_schema("s3://data-lake/fraud/latest")
dataset = compute_features(snapshot)
run_id = train_model(dataset)
metrics = evaluate_model(run_id)
register_candidate(run_id, metrics)
fraud_scorer_retrain()
Symptom: The same training pipeline produces meaningfully different metrics run-to-run with identical inputs, and no one can tell if a change is a real improvement or noise. Fix: Fix random seeds across all relevant libraries, pin dependency versions per step, and document any known sources of nondeterminism (e.g. certain GPU ops); treat a materially non-reproducible pipeline as a bug to investigate, not an accepted cost of doing ML.
Symptom: A retraining run uses a random train/test split on time-ordered data, and offline metrics look great, but the deployed model underperforms because it was implicitly evaluated on data "from the future" relative to some training rows. Fix: Always use time-based splits for temporally ordered data — train strictly before a cutoff, validate/test strictly after it — and add an automated check that flags any label timestamp in the training split that is later than a corresponding timestamp in the validation split.
Symptom: A transient failure mid-pipeline (e.g. spot instance preemption during training) is retried, but the retry appends to the same output file/table that the failed run partially wrote, producing corrupted or duplicated training data on the next attempt. Fix: Design every step to write to a fresh, uniquely versioned output location per run (partitioned by run ID or timestamp) rather than mutating a shared path in place, so retries are safe by construction.
Symptom: A pipeline's evaluation step logs a low AUC, but the registration step runs anyway and registers (and later gets manually promoted) a materially worse model because the gate was only a dashboard a human was supposed to check. Fix: Encode gates as pipeline control flow (raise/skip on failed threshold) rather than relying on a human noticing a metric in a dashboard after the fact.
A weekly retraining pipeline for fraud-scorer, orchestrated in Airflow:
driver_stats-style feature view
materialization from
feature-store-design to produce a
point-in-time-correct training dataset at
s3://data-lake/fraud/training/run-8841/.run-8841.Staging
stage as version 14 (see
model-packaging-and-versioning),
with full lineage tags (data snapshot, feature view version, git SHA, run
ID).Production the next business day
following the packaging skill's gated promotion process.What SKILL.md sets; muted values are Claude Code's defaults
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."
Other plugins' skills for the same job