用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill mlops-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
基于 SOC 职业分类
正在显示 SKILL.md
| name | mlops-patterns |
| description | MLOps: Model deployment, monitoring, drift detection, CI/CD for ML. |
| triggers | {"extensions":[".py"],"directories":["ml/","models/","training/"],"keywords":["mlops","model serving","inference","drift","monitoring","kubeflow","mlflow","weights biases"]} |
| auto_load_when | Deploying ML models or setting up ML pipelines |
| agent | ai-engineer |
| tools | ["Read","Write","Bash"] |
Focus: Model deployment, monitoring, lifecycle management
When to use what:
├── Simple inference → Model as API (FastAPI/Flask)
│ └── Quick to deploy, good for low traffic
│
├── High scale → Model server (TorchServe, TensorFlow Serving)
│ └── Batching, GPU support, multi-model
│
├── Cloud-native → Managed services
│ └── SageMaker, Vertex AI, Azure ML
│
├── Edge/Embedded → ONNX + lightweight runtime
│ └── Mobile, IoT, low latency
│
└── Serverless → Lambda/Cloud Functions
└── Pay per request, auto-scale
Deployment patterns:
├── Blue-green deployment
│ ├── Deploy new model alongside old
│ ├── Test new in staging
│ └── Switch traffic atomically
│ └── Fast rollback if issues
│
├── Canary deployment
│ ├── Gradual traffic shift (1% → 10% → 100%)
│ └── Monitor metrics at each stage
│ └── Automatic rollback on degradation
│
├── Shadow mode
│ ├── New model runs in parallel, no traffic
│ └── Compare outputs to current model
│ └── Zero risk, full evaluation before switch
│
└── A/B testing
└── Split traffic by user segment
└── Measure business metrics per variant
What to monitor:
├── Model metrics
│ ├── Prediction accuracy (if ground truth available)
│ ├── Latency (p50, p95, p99)
│ └── Throughput (requests/second)
│
├── Data metrics
│ ├── Input distribution (detect drift)
│ ├── Missing values, outliers
│ └── Feature statistics over time
│
├── Business metrics
│ ├── Click-through rate on recommendations
│ ├── Conversion rate on predictions
│ └── User satisfaction scores
│
└── System metrics
├── CPU, GPU utilization
└── Memory, disk usage
Drift types:
├── Concept drift
│ └── Target variable changes (spam detection: new patterns)
│ └── Monitor: prediction distribution change
│
├── Data drift
│ └── Input features change (user behavior shifts)
│ └── Monitor: feature distribution (KL divergence, PSI)
│
└── Model drift
└── Combination of above
└── Monitor: accuracy drops over time
Detection approach:
├── Statistical tests (chi-square, KS test)
├── Distance metrics (KL, Wasserstein)
├── Custom thresholds per feature
└── Alert when drift > threshold
ML Pipeline stages:
├── Data validation
│ ├── Schema checks (types, ranges)
│ ├── Data quality (missing, outliers)
│ └── Fail pipeline if checks fail
│
├── Model training
│ ├── Version control data + code
│ ├── Log metrics (MLflow, Weights & Biases)
│ └── Artifacts stored in registry
│
├── Model evaluation
│ ├── Compare to baseline (current model)
│ ├── Business metrics, not just accuracy
│ └── Threshold for promotion
│
├── Model registry
│ ├── Versioned model storage
│ ├── Metadata (training data, metrics, hyperparameters)
│ └── Staging → Production promotion
│
└── Deployment
├── Automated (GitOps, ArgoCD)
└── Rollback capability
❌ Manual model deployment — no audit trail, not reproducible
✅ Automated CI/CD pipeline for all model changes
❌ No monitoring in production — issues found by users
✅ Instrument from day one, alert on anomalies
❌ Retraining on fixed schedule regardless of data changes
✅ Trigger retraining on drift detection or performance drop
❌ Storing models in random locations — no versioning, no lineage
✅ Use model registry (MLflow, SageMaker, etc.)
❌ Ignoring data drift — model degrades silently
✅ Monitor input distribution, alert on significant drift
| Task | Tool/Pattern | Note |
|---|---|---|
| Model serving | FastAPI, TorchServe, Triton | Simple to complex |
| Monitoring | Prometheus, Grafana | Custom dashboards |
| Drift detection | Evidently, Great Expectations | Statistical tests |
| Model registry | MLflow, SageMaker | Version + metadata |
| Pipeline | Airflow, Kubeflow, Dagster | Orchestration |