Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计提醒

ml-engineer机器学习工程师

Agent Skill

ml-engineer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,574

周安装

146

GitHub Stars

76

下载量

1,156
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ml-engineer(机器学习工程师)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/ml-engineer
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill ml-engineer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill ml-engineer

简介

ml-engineer 聚焦于端到端机器学习流水线的构建与生产化部署,涵盖数据预处理、模型训练、验证及监控全流程。

  • 适用于搭建 MLOps 流水线、实现模型版本管理、部署实时推理接口或优化模型性能等生产级 ML 工程任务。
  • 可协助完成特征存储配置、实验追踪系统集成、A/B 测试框架搭建以及模型漂移检测等关键环节。
  • 当需要从数据科学向工程化落地过渡时,可通过该技能获得自动化部署与持续交付方面的专业指导。
  • 注意区分其职责边界:不负责原始模型开发与训练,而是关注部署后的运维与迭代优化工作。

SKILL.md

Machine Learning Engineer

Purpose

Provides MLOps and production ML engineering expertise specializing in end-to-end ML pipelines, model deployment, and infrastructure automation. Bridges data science and production engineering with robust, scalable machine learning systems.

When to Use

  • Building end-to-end ML pipelines (Data → Train → Validate → Deploy)
  • Deploying models to production (Real-time API, Batch, or Edge)
  • Implementing MLOps practices (CI/CD for ML, Experiment Tracking)
  • Optimizing model performance (Latency, Throughput, Resource usage)
  • Setting up feature stores and model registries
  • Implementing model monitoring (Drift detection, Performance tracking)
  • Scaling training workloads (Distributed training)


2. Decision Framework

Model Serving Strategy

Need to serve predictions?
│
├─ Real-time (Low Latency)?
│  │
│  ├─ High Throughput? → **Kubernetes (KServe/Seldon)**
│  ├─ Low/Medium Traffic? → **Serverless (Lambda/Cloud Run)**
│  └─ Ultra-low latency (<10ms)? → **C++/Rust Inference Server (Triton)**
│
├─ Batch Processing?
│  │
│  ├─ Large Scale? → **Spark / Ray**
│  └─ Scheduled Jobs? → **Airflow / Prefect**
│
└─ Edge / Client-side?
   │
   ├─ Mobile? → **TFLite / CoreML**
   └─ Browser? → **TensorFlow.js / ONNX Runtime Web**

Training Infrastructure

Training Environment?
│
├─ Single Node?
│  │
│  ├─ Interactive? → **JupyterHub / SageMaker Notebooks**
│  └─ Automated? → **Docker Container on VM**
│
└─ Distributed?
   │
   ├─ Data Parallelism? → **Ray Train / PyTorch DDP**
   └─ Pipeline orchestration? → **Kubeflow / Airflow / Vertex AI**

Feature Store Decision

NeedRecommendationRationale
Simple / MVPNo Feature StoreUse SQL/Parquet files. Overhead of FS is too high.
Team ConsistencyFeastOpen source, manages online/offline consistency.
Enterprise / ManagedTecton / HopsworksFull governance, lineage, managed SLA.
Cloud NativeVertex/SageMaker FSTight integration if already in that cloud ecosystem.

Red Flags → Escalate to oracle:

  • "Real-time" training requirements (online learning) without massive infrastructure budget
  • Deploying LLMs (7B+ params) on CPU-only infrastructure
  • Training on PII/PHI data without privacy-preserving techniques (Federated Learning, Differential Privacy)
  • No validation set or "ground truth" feedback loop mechanism


3. Core Workflows

Workflow 1: End-to-End Training Pipeline

Goal: Automate model training, validation, and registration using MLflow.

Steps:

  1. Setup Tracking import mlflow import mlflow.sklearn from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import accuracy_score, precision_score mlflow.set_tracking_uri("http://localhost:5000") mlflow.set_experiment("churn-prediction-prod")
  2. Training Script (train.py) def train(max_depth, n_estimators): with mlflow.start_run(): # Log params mlflow.log_param("max_depth", max_depth) mlflow.log_param("n_estimators", n_estimators) # Train model = RandomForestClassifier(max_depth=max_depth, n_estimators=n_estimators, random_state=42) model.fit(X_train, y_train) # Evaluate preds = model.predict(X_test) acc = accuracy_score(y_test, preds) prec = precision_score(y_test, preds) # Log metrics mlflow.log_metric("accuracy", acc) mlflow.log_metric("precision", prec) # Log model artifact with signature from mlflow.models.signature import infer_signature signature = infer_signature(X_train, preds) mlflow.sklearn.log_model(model, "model", signature=signature, registered_model_name="churn-model") print(f"Run ID: {mlflow.active_run().info.run_id}") if __name__ == "__main__": train(max_depth=5, n_estimators=100)
  3. Pipeline Orchestration (Bash/Airflow) #!/bin/bash # Run training python train.py # Check if model passed threshold (e.g. via MLflow API) # If yes, transition to Staging


Workflow 3: Drift Detection (Monitoring)

Goal: Detect if production data distribution has shifted from training data.

Steps:

  1. Baseline Generation (During Training) import evidently from evidently.report import Report from evidently.metric_preset import DataDriftPreset # Calculate baseline profile on training data report = Report(metrics=[DataDriftPreset()]) report.run(reference_data=train_df, current_data=test_df) report.save_json("baseline_drift.json")
  2. Production Monitoring Job # Scheduled daily job def check_drift(): # Load production logs (last 24h) current_data = load_production_logs() reference_data = load_training_data() report = Report(metrics=[DataDriftPreset()]) report.run(reference_data=reference_data, current_data=current_data) result = report.as_dict() dataset_drift = result['metrics'][0]['result']['dataset_drift'] if dataset_drift: trigger_alert("Data Drift Detected!") trigger_retraining()


Workflow 5: RAG Pipeline with Vector Database

Goal: Build a production retrieval pipeline using Pinecone/Weaviate and LangChain.

Steps:

  1. Ingestion (Chunking & Embedding) from langchain.text_splitter import RecursiveCharacterTextSplitter from langchain_openai import OpenAIEmbeddings from langchain_pinecone import PineconeVectorStore # Chunking text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200) docs = text_splitter.split_documents(raw_documents) # Embedding & Indexing embeddings = OpenAIEmbeddings() vectorstore = PineconeVectorStore.from_documents(docs, embeddings, index_name="knowledge-base")
  2. Retrieval & Generation from langchain.chains import RetrievalQA from langchain_openai import ChatOpenAI llm = ChatOpenAI(model="gpt-4o", temperature=0) qa_chain = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=vectorstore.as_retriever(search_kwargs={"k": 5})) response = qa_chain.invoke("How do I reset my password?") print(response['result'])
  3. Optimization (Hybrid Search)

- Combine Dense Retrieval (Vectors) with Sparse Retrieval (BM25/Keywords). - Use Reranking (Cohere/Cross-Encoder) on the top 20 results to select best 5.



5. Anti-Patterns & Gotchas

❌ Anti-Pattern 1: Training-Serving Skew

What it looks like:

  • Feature logic implemented in SQL for training, but re-implemented in Java/Python for serving.
  • "Mean imputation" value calculated on training set but not saved; serving uses a different default.

Why it fails:

  • Model behaves unpredictably in production.
  • Debugging is extremely difficult.

Correct approach:

  • Use a Feature Store or shared library for transformations.
  • Wrap preprocessing logic inside the model artifact (e.g., Scikit-Learn Pipeline, TensorFlow Transform).

❌ Anti-Pattern 2: Manual Deployments

What it looks like:

  • Data Scientist emails a .pkl file to an engineer.
  • Engineer manually copies it to a server and restarts the flask app.

Why it fails:

  • No version control.
  • No reproducibility.
  • High risk of human error.

Correct approach:

  • CI/CD Pipeline: Git push triggers build → test → deploy.
  • Model Registry: Deploy specific version hash from registry.

❌ Anti-Pattern 3: Silent Failures

What it looks like:

  • Model API returns 200 OK but prediction is garbage because input data was corrupted (e.g., all Nulls).
  • Model returns default class 0 for everything.

Why it fails:

  • Application keeps running, but business value is lost.
  • Incident detected weeks later by business stakeholders.

Correct approach:

  • Input Schema Validation: Reject bad requests (Pydantic/TFX).
  • Output Monitoring: Alert if prediction distribution shifts (e.g., if model predicts "Fraud" 0% of time for 1 hour).


7. Quality Checklist

Reliability:

  • Health Checks: /health endpoint implemented (liveness/readiness).
  • Retries: Client has retry logic with exponential backoff.
  • Fallback: Default heuristic exists if model fails or times out.
  • Validation: Inputs validated against schema before inference.

Performance:

  • Latency: P99 latency meets SLA (e.g., < 100ms).
  • Throughput: System autoscales with load.
  • Batching: Inference requests batched if using GPU.
  • Image Size: Docker image optimized (slim base, multi-stage build).

Reproducibility:

  • Versioning: Code, Data, and Model versions linked.
  • Artifacts: Saved in object storage (S3/GCS), not local disk.
  • Environment: Dependencies pinned (requirements.txt / conda.yaml).

Monitoring:

  • Technical: Latency, Error Rate, CPU/Memory/GPU usage.
  • Functional: Prediction distribution, Input data drift.
  • Business: (If possible) Attribution of prediction to outcome.

Anti-Patterns

Training-Serving Skew

  • Problem: Feature logic differs between training and serving environments
  • Symptoms: Model performs well in testing but poorly in production
  • Solution: Use feature stores or embed preprocessing in model artifacts
  • Warning Signs: Different code paths for feature computation, hardcoded constants

Manual Deployment

  • Problem: Deploying models without automation or version control
  • Symptoms: No traceability, human errors, deployment failures
  • Solution: Implement CI/CD pipelines with model registry integration
  • Warning Signs: Email/file transfers of model files, manual server restarts

Silent Failures

  • Problem: Model failures go undetected
  • Symptoms: Bad predictions returned without error indication
  • Solution: Implement input validation, output monitoring, and alerting
  • Warning Signs: 200 OK responses with garbage data, no anomaly detection

Data Leakage

  • Problem: Training data contains information not available at prediction time
  • Symptoms: Unrealistically high training accuracy, poor generalization
  • Solution: Careful feature engineering and validation split review
  • Warning Signs: Features that would only be known after prediction

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.99%
按下载量换算335

OpenCode

20.2%
按下载量换算234

Gemini CLI

15.98%
按下载量换算185

Codex

13.27%
按下载量换算153

Cursor

8.16%
按下载量换算94

Antigravity

3.08%
按下载量换算36

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills