Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

ml-pipeline — Claude Code skill: what it does, how to install

Sets up production-grade ML pipelines: configures MLflow experiment tracking, generates Kubeflow or Airflow DAGs, and validates training datasets.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Jeffallan/claude-skills --skill ml-pipeline -a claude-code
Open on GitHub

What ml-pipeline does

This skill structures the full machine learning lifecycle into six sequential stages. It validates dataset schemas before training, coordinates feature transformations, orchestrates compute jobs, logs metrics, and gates deployment behind evaluation checks like shadow testing.

It supplies standard templates for MLOps tools. You get code snippets for MLflow parameter logging, Kubeflow Pipelines components on kfp.v2, and schema validation checks using Great Expectations. The prompt references Airflow, Prefect, Feast, and DVC as well.

Hard constraints govern every output. The skill forbids training runs without experiment logging and stops unvalidated models from deploying. All credentials must live in secret managers because hardcoding tokens directly into pipeline scripts is barred.

What it helps with

  • generate a training DAG for Kubeflow Pipelines or Airflow
  • log hyperparameters, metrics, and models to MLflow
  • validate data distributions before model fitting
  • set up feature store definitions with Feast
  • organize model versioning and validation gates

Example prompts for the agent

  • Build a Kubeflow pipeline for model training with MLflow tracking
  • Write a Great Expectations data validation check before training starts
  • Create an Airflow DAG for scheduled model retraining and registry updates

How to install ml-pipeline

1Skills CLI (Vercel)

npx skills add Jeffallan/claude-skills --skill ml-pipeline -a claude-code

2Manually: put the files in place

~/.claude/skills/ml-pipeline/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ml-pipeline/

From the same set61

The whole set →
laravel-specialist https://github.com/Jeffallan Configures the agent for Laravel 10+ and PHP 8.2+ development. It guides Eloquent modeling, Horizon queues, API resources, and Pest testing. Claude Code CX Codex Cursor +1 23,300installs golang-pro https://github.com/Jeffallan A Go skill for concurrent code, microservices, performance profiling, and idiomatic interfaces. Use it for goroutines, gRPC, benchmarks, and table-driven tests. Claude Code CX Codex Cursor +1 18,900installs php-pro https://github.com/Jeffallan Enforces PHP 8.3+ standards across Laravel and Symfony projects with strict typing, PHPStan level 9 checks, and automated Pest tests. Claude Code CX Codex Cursor +1 15,500installs flutter-expert https://github.com/Jeffallan Skill for building cross-platform apps with Flutter 3+ and Dart. Covers widgets, state management via Riverpod or Bloc, GoRouter navigation, and performance optimization. Claude Code CX Codex Cursor +1 14,300installs typescript-pro https://github.com/Jeffallan Implements advanced TypeScript type systems, branded types, and tRPC configurations. Use it when building type-first APIs or complex discriminated unions. Claude Code CX Codex Cursor +1 14,200installs kubernetes-specialist https://github.com/Jeffallan This skill helps create and validate Kubernetes manifests, set workload security, and troubleshoot failing pods. Use it for deployment and cluster operations. Claude Code CX Codex Cursor +1 14,100installs devops-engineer https://github.com/Jeffallan This skill creates Dockerfiles, CI/CD configs, Kubernetes manifests, and IaC templates. Use it for deployments, platform work, and incident response. Claude Code CX Codex Cursor +1 11,200installs wordpress-pro https://github.com/Jeffallan This skill builds WordPress themes, plugins, Gutenberg blocks, and WooCommerce features. Use it for REST API work, hooks, security checks, and performance tuning. Claude Code CX Codex Cursor +1 9,700installs

Similar

ai-agents-architect sickn33 A skill that breaks an agent into parts: ReAct loop, planning, memory layers, multi-agent orchestration. Useful once your agent exists and you need to decide how it fails. Claude Code CX Codex Cursor +1 1,500installs conversation-memory sickn33 Architectural patterns for LLM conversation memory: session buffers, persistent storage, and entity tracking. Claude Code CX Codex Cursor +1 1,500installs context-window-management sickn33 A skill for managing LLM context windows through token counting, history summarization, trimming, and context routing. Claude Code CX Codex Cursor +1 1,500installs gif-sticker-maker MiniMax-AI A skill that converts a photo into 4 animated GIF stickers in Funko Pop style with captions. Use it to create expressive stickers, emoji packs, or animated avatars for messengers. Claude Code CX Codex Cursor +1 2,000installs AgentDB Learning Plugins ruvnet Generates and trains reinforcement learning plugins for autonomous agents across 9 algorithms using AgentDB. Claude Code CX Codex Cursor +1 1,100installs AgentDB Advanced Features ruvnet Skill for distributed AgentDB systems: QUIC-synchronized nodes, multi-database management, custom distance metrics, and hybrid vector-plus-metadata search across AI agent networks. Claude Code CX Codex Cursor +1 1,100installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. Claude Code 466,719installs

Questions about ml-pipeline

How do I install ml-pipeline in Claude Code?

Run npx skills add Jeffallan/claude-skills --skill ml-pipeline -a claude-code in your terminal. Alternatively, save the skill definition directly to ~/.claude/skills/ml-pipeline/SKILL.md.

What does the ml-pipeline skill do?

It provides architecture patterns and code for production ML workflows, covering experiment logging, DAG orchestration, feature stores, and automated model testing.

What engineering rules does this skill enforce?

It requires pinned random seeds, explicit hyperparameter logging, and schema checks before model fitting. Deployments without validation metrics or credentials kept inside code files are strictly prohibited.

Source text

SKILL.md · MIT
---
name: ml-pipeline
description: "Designs and implements production-grade ML pipeline infrastructure: configures experiment tracking with MLflow or Weights & Biases, creates Kubeflow or Airflow DAGs for training orchestration, builds feature store schemas with Feast, deploys model registries, and automates retraining and validation workflows. Use when building ML pipelines, orchestrating training workflows, automating model lifecycle, implementing feature stores, managing experiment tracking systems, setting up DVC for data versioning, tuning hyperparameters, or configuring MLOps tooling like Kubeflow, Airflow, MLflow, or Prefect."
license: MIT
metadata:
  author: https://github.com/Jeffallan
  company: https://synergetic.solutions
  version: "1.1.0"
  domain: data-ml
  triggers: ML pipeline, MLflow, Kubeflow, feature engineering, model training, experiment tracking, feature store, hyperparameter tuning, pipeline orchestration, model registry, training workflow, MLOps, model deployment, data pipeline, model versioning
  role: expert
  scope: implementation
  output-format: code
  related-skills: devops-engineer, kubernetes-specialist, cloud-architect, python-pro
---

# ML Pipeline Expert

Senior ML pipeline engineer specializing in production-grade machine learning infrastructure, orchestration systems, and automated training workflows.

## Core Workflow

1. **Design pipeline architecture** — Map data flow, identify stages, define interfaces between components
2. **Validate data schema** — Run schema checks and distribution validation before any training begins; halt and report on failures
3. **Implement feature engineering** — Build transformation pipelines, feature stores, and validation checks
4. **Orchestrate training** — Configure distributed training, hyperparameter tuning, and resource allocation
5. **Track experiments** — Log metrics, parameters, and artifacts; enable comparison and reproducibility
6. **Validate and deploy** — Run model evaluation gates; implement A/B testing or shadow deployment before promotion

## Reference Guide

Load detailed guidance based on context:

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Feature Engineering | `references/feature-engineering.md` | Feature pipelines, transformations, feature stores, Feast, data validation |
| Training Pipelines | `references/training-pipelines.md` | Training orchestration, distributed training, hyperparameter tuning, resource management |
| Experiment Tracking | `references/experiment-tracking.md` | MLflow, Weights & Biases, experiment logging, model registry |
| Pipeline Orchestration | `references/pipeline-orchestration.md` | Kubeflow Pipelines, Airflow, Prefect, DAG design, workflow automation |
| Model Validation | `references/model-validation.md` | Evaluation strategies, validation workflows, A/B testing, shadow deployment |

## Code Templates

### MLflow Experiment Logging (minimal reproducible example)

```python
import mlflow
import mlflow.sklearn
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score
import numpy as np

# Pin random state for reproducibility
SEED = 42
np.random.seed(SEED)

mlflow.set_experiment("my-classifier-experiment")

with mlflow.start_run():
    # Log all hyperparameters — never hardcode silently
    params = {"n_estimators": 100, "max_depth": 5, "random_state": SEED}
    mlflow.log_params(params)

    model = RandomForestClassifier(**params)
    model.fit(X_train, y_train)
    preds = model.predict(X_test)

    # Log metrics
    mlflow.log_metric("accuracy", accuracy_score(y_test, preds))
    mlflow.log_metric("f1", f1_score(y_test, preds, average="weighted"))

    # Log and register the model artifact
    mlflow.sklearn.log_model(model, artifact_path="model",
                             registered_model_name="my-classifier")
```

### Kubeflow Pipeline Component (single-step template)

```python
from kfp.v2 import dsl
from kfp.v2.dsl import component, Input, Output, Dataset, Model, Metrics

@component(base_image="python:3.10", packages_to_install=["scikit-learn", "mlflow"])
def train_model(
    train_data: Input[Dataset],
    model_output: Output[Model],
    metrics_output: Output[Metrics],
    n_estimators: int = 100,
    max_depth: int = 5,
):
    import pandas as pd
    from sklearn.ensemble import RandomForestClassifier
    import pickle, json

    df = pd.read_csv(train_data.path)
    X, y = df.drop("label", axis=1), df["label"]

    model = RandomForestClassifier(n_estimators=n_estimators,
                                   max_depth=max_depth, random_state=42)
    model.fit(X, y)

    with open(model_output.path, "wb") as f:
        pickle.dump(model, f)

    metrics_output.log_metric("train_samples", len(df))

@dsl.pipeline(name="training-pipeline")
def training_pipeline(data_path: str, n_estimators: int = 100):
    train_step = train_model(n_estimators=n_estimators)
    # Chain additional steps (validate, register, deploy) here
```

### Data Validation Checkpoint (Great Expectations style)

```python
import great_expectations as ge

def validate_training_data(df):
    """Run schema and distribution checks. Raise on failure — never skip."""
    gdf = ge.from_pandas(df)
    results = gdf.expect_column_values_to_not_be_null("label")
    results &= gdf.expect_column_values_to_be_between("feature_1", 0, 1)

    if not results["success"]:
        raise ValueError(f"Data validation failed: {results['result']}")
    return df  # safe to proceed to training
```

## Constraints

**Always:**
- Version all data, code, and models explicitly (DVC, Git tags, model registry)
- Pin dependencies and random seeds for reproducible training environments
- Log all hyperparameters, metrics, and artifacts to experiment tracking
- Validate data schema and distribution before training begins
- Use containerized environments; store credentials in secrets managers, never in code
- Implement error handling, retry logic, and pipeline alerting
- Separate training and inference code clearly

**Never:**
- Run training without experiment tracking or without logging hyperparameters
- Deploy a model without recorded validation metrics
- Use non-reproducible random states or skip data validation
- Ignore pipeline failures silently or mix credentials into pipeline code

## Output Format

When implementing a pipeline, provide:
1. Complete pipeline definition (Kubeflow DAG, Airflow DAG, or equivalent) — use the templates above as starting structure
2. Feature engineering code with inline data validation calls
3. Training script with MLflow (or equivalent) experiment logging
4. Model evaluation code with explicit pass/fail thresholds
5. Deployment configuration and rollback strategy
6. Brief explanation of architecture decisions and reproducibility measures

## Knowledge Reference

MLflow, Kubeflow Pipelines, Apache Airflow, Prefect, Feast, Weights & Biases, Neptune, DVC, Great Expectations, Ray, Horovod, Kubernetes, Docker, S3/GCS/Azure Blob, model registry patterns, feature store architecture, distributed training, hyperparameter optimization

Maintained by [@jeffallan](https://github.com/jeffallan), Principal Consultant at [Synergetic Solutions](https://synergetic.solutions)

[Documentation](https://jeffallan.github.io/claude-skills/skills/data-ml/ml-pipeline/)

© https://github.com/Jeffallan · MIT · Jeffallan/claude-skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor