К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

ml-pipeline — скилл для Claude Code: что делает и как установить

Скилл проектирует пайплайны машинного обучения: настраивает трекинг экспериментов в MLflow, собирает DAG для Kubeflow или Airflow и валидирует данные перед обучением.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Jeffallan/claude-skills --skill ml-pipeline -a claude-code
Открыть на GitHub

Что делает ml-pipeline

Скилл помогает спроектировать инфраструктуру для моделей машинного обучения. Он разбивает пайплайн на шесть этапов: валидацию схемы данных, подготовку признаков через Feast, оркестрацию обучения, трекинг и финальное тестирование модели перед деплоем.

В инструкции включены готовые шаблоны. Среди них — логирование параметров в MLflow с фиксацией случайного зерна, запуск шага обучения в Kubeflow Pipelines через kfp.v2 и контрольные точки валидации данных в стиле Great Expectations. Скилл также ссылается на регламенты для Airflow, Prefect и DVC.

Правила скилла запрещают обучать модель без трекинга экспериментов и разворачивать её без замеров качества. Любые учётные данные придётся хранить в менеджере секретов, потому что зашивать ключи в код пайплайна здесь прямо запрещено.

Какие задачи решает

  • написать DAG для Kubeflow Pipelines или Airflow
  • настроить логирование параметров и метрик в MLflow
  • добавить проверку распределения данных перед обучением модели
  • спроектировать схему хранилища признаков в Feast
  • зафиксировать версии данных и моделей через DVC и реестр

Примеры запросов агенту

  • Собери Kubeflow пайплайн для обучения RandomForest с логированием в MLflow
  • Напиши проверку схемы данных через Great Expectations перед запуском тренировки
  • Настрой оркестрацию переобучения модели в Airflow с сохранением артефактов

Как установить ml-pipeline

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/ml-pipeline/

Из того же набора61

Весь набор →
laravel-specialist https://github.com/Jeffallan Настраивает агента на разработку бэкенда на Laravel 10+ и PHP 8.2+. Помогает писать модели Eloquent, очереди Horizon, API resources и тесты Pest. Claude Code CX Codex Cursor +1 23 300установок golang-pro https://github.com/Jeffallan Скилл помогает писать идиоматичный Go: разбирать конкурентный код, строить микросервисы и проверять производительность. Пригодится для goroutines, gRPC и тестов. Claude Code CX Codex Cursor +1 18 900установок php-pro https://github.com/Jeffallan Задаёт правила разработки на PHP 8.3+ для Laravel и Symfony: включает strict_types, анализ в PHPStan на уровне 9 и тесты PHPUnit или Pest. Claude Code CX Codex Cursor +1 15 500установок flutter-expert https://github.com/Jeffallan Скилл для разработки кросс-платформных приложений на Flutter 3+ и Dart. Помогает с виджетами, управлением состоянием через Riverpod или Bloc, маршрутизацией GoRouter и оптимизацией производительности. Claude Code CX Codex Cursor +1 14 300установок typescript-pro https://github.com/Jeffallan Настраивает строгую типизацию TypeScript, генерирует брендированные типы и связывает tRPC. Пригодится при проектировании надёжных API и сложных generic-структур. Claude Code CX Codex Cursor +1 14 200установок kubernetes-specialist https://github.com/Jeffallan Скилл помогает создавать и проверять Kubernetes-манифесты, настраивать безопасность и разбирать сбои подов. Пригодится для деплоя и сопровождения кластерных workloads. Claude Code CX Codex Cursor +1 14 100установок devops-engineer https://github.com/Jeffallan Скилл создаёт Dockerfile, CI/CD-конфигурации и манифесты Kubernetes. Нужен для инфраструктуры, деплоя и разбора инцидентов. Claude Code CX Codex Cursor +1 11 200установок wordpress-pro https://github.com/Jeffallan Скилл помогает разрабатывать темы и плагины WordPress, блоки Gutenberg и магазины WooCommerce. Нужен для задач с REST API, хуками, безопасностью и производительностью. Claude Code CX Codex Cursor +1 9 700установок

Похожие

ai-agents-architect sickn33 Скилл раскладывает агента на части: цикл ReAct, планирование, слои памяти, оркестрация субагентов. Пригодится, когда агент уже пишется и надо решить, как он будет ломаться и восстанавливаться. Claude Code CX Codex Cursor +1 1 500установок conversation-memory sickn33 Архитектурные паттерны памяти для диалоговых LLM: буфер сессии, долговременное хранилище и учёт сущностей. Claude Code CX Codex Cursor +1 1 500установок context-window-management sickn33 Скилл помогает управлять контекстным окном LLM: считать токены, сжимать историю и выбирать стратегию для длинных диалогов. Claude Code CX Codex Cursor +1 1 500установок gif-sticker-maker MiniMax-AI Скилл конвертирует фотографию в 4 анимированных GIF-стикера в стиле Funko Pop с подписями. Подойдёт, если нужны забавные стикеры с эмоциями, аватары или наборы для месседжеров. Claude Code CX Codex Cursor +1 2 000установок AgentDB Learning Plugins ruvnet Создаёт и обучает плагины обучения для агентов на базе 9 алгоритмов reinforcement learning в среде AgentDB. Claude Code CX Codex Cursor +1 1 100установок AgentDB Advanced Features ruvnet Скилл для работы с распределёнными AgentDB системами: QUIC-синхронизация между узлами, многобазовое управление, пользовательские метрики расстояния и гибридный поиск по векторам и метаданным. Claude Code CX Codex Cursor +1 1 100установок skill-creator официальный anthropics Помогает создать новый скилл, доработать существующий и проверить результат через тестовые промпты и оценки. Claude Code Claude.ai 414 180установок writing-for-agents Matt Pocock Помогает писать скиллы и документы с инструкциями для агентов. Пригодится при правках AGENTS.md, CLAUDE.md и связанных справочных файлов. Claude Code 466 719установок

Вопросы о ml-pipeline

Как установить ml-pipeline в Claude Code?

Выполните в терминале команду npx skills add Jeffallan/claude-skills --skill ml-pipeline -a claude-code. Также можно вручную поместить файл инструкции по пути ~/.claude/skills/ml-pipeline/SKILL.md.

Что делает скилл ml-pipeline?

Он генерирует код и архитектуру для MLOps: создаёт компоненты Kubeflow и Airflow, конфигурирует Feast, организует версионирование данных в DVC и связывает логирование с MLflow или Weights & Biases.

Какие ограничения накладывает скилл на код обучения?

Скилл запрещает запускать тренировку без фиксации случайного состояния (random_state) и без логирования параметров в трекер экспериментов. Модели нельзя переводить в прод без прохождения пороговых проверок валидации.

Исходный текст

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

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой