ml-pipeline
Fungsinya
Skill ini memandu agent AI untuk membangun infrastruktur yang melatih, melacak, dan men-deploy model machine learning. Skill ini untuk insinyur ML yang membutuhkan pipeline yang dapat diulang dan siap produksi.
Kapan dipakai
- βSaat Anda membangun pipeline ML yang melatih model secara terjadwal.
- βSaat Anda perlu pelacakan eksperimen dengan MLflow atau Weights and Biases.
- βSaat Anda ingin registri model, feature store, atau pelatihan ulang otomatis diatur.
Link skill
https://github.com/Jeffallan/claude-skills/blob/main/skills/ml-pipeline/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βAtur pipeline pelacakan eksperimen dan pelatihan ulang MLflow untuk model prediksi churn kami.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memetakan alur data, memeriksa skema data sebelum pelatihan, lalu membangun tahap fitur dan pelatihan. Agent mencatat eksperimen dan menjalankan gerbang evaluasi sebelum model dinaikkan statusnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
ML Pipeline Expert
Senior ML pipeline engineer specializing in production-grade machine learning infrastructure, orchestration systems, and automated training workflows.
Core Workflow
- Design pipeline architecture β Map data flow, identify stages, define interfaces between components
- Validate data schema β Run schema checks and distribution validation before any training begins; halt and report on failures
- Implement feature engineering β Build transformation pipelines, feature stores, and validation checks
- Orchestrate training β Configure distributed training, hyperparameter tuning, and resource allocation
- Track experiments β Log metrics, parameters, and artifacts; enable comparison and reproducibility
- 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)
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)
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)
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 tag
Pertanyaan umum
Alat apa yang didukung?
Skill ini bekerja dengan MLflow, Weights and Biases, Kubeflow, Airflow, dan Feast.
Apakah skill ini memeriksa data sebelum pelatihan?
Ya. Skill ini menjalankan pemeriksaan skema dan distribusi lebih dulu, lalu berhenti jika gagal.
Bagaimana skill ini menaikkan status model?
Skill ini menjalankan gerbang evaluasi dan menyarankan pengujian A/B atau shadow deployment sebelum model dinaikkan statusnya.
Detail
Deskripsi asli dari pembuat
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 Pref
repo: Jeffallan/claude-skills
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11438
- Lisensi
- MIT
- Diperbarui
- 30/10/2026
Komentar
- β¦
Skill lain dari repositori ini
angular-architect
12kMembantu agent Anda membangun aplikasi Angular 17 ke atas dengan komponen standalone, routing lazy-loaded, status NgRx, pola RxJS, dan penyetelan kinerja.
api-designer
12kMembantu agent Anda merancang API REST atau GraphQL dan menulis spesifikasi OpenAPI 3.1, dengan aturan untuk sumber daya, paginasi, format error, dan versi.
architecture-designer
12kMembantu agent Anda merancang arsitektur sistem, membandingkan pola dan teknologi, serta menulis Architecture Decision Record yang menjelaskan setiap pilihan.
atlassian-mcp
12kMembantu agent Anda mencari dan memperbarui isu Jira serta halaman Confluence melalui MCP, termasuk kueri JQL dan CQL, sprint, dan sinkronisasi dokumentasi.
Skill serupa
pytorch-patterns
280kMembantu agent Anda menggunakan PyTorch untuk model machine learning. Menerapkan praktik terbaik untuk pelatihan model yang efisien dan hasil yang dapat direproduksi.
evm-token-decimals
280kMembantu agent menghindari kesalahan angka desimal di berbagai jaringan blockchain. Memastikan nilai token akurat dalam transaksi dan perhitungan.
ito-inference
280kMemungkinkan agent Anda mengecek ketersediaan model AI untuk digunakan. Menghubungkan permintaan komputasi dengan layanan model yang siap.