MLOps & ML Security - Complete Reference (Jan 2026)
Production ML lifecycle with modern security practices.
This skill covers:
- Production: Data ingestion, deployment, drift detection, monitoring, incident response
- Security: Prompt injection, jailbreak defense, RAG security, output filtering
- Governance: Privacy protection, supply chain security, safety evaluation
- Data ingestion (dlt): Load data from APIs, databases to warehouses
- Model deployment: Batch jobs, real-time APIs, hybrid systems, event-driven automation
- Operations: Real-time monitoring, drift detection, automated retraining, incident response
Modern Best Practices (Jan 2026):
- Version everything that can change: model artifacts, data snapshots, feature definitions, prompts/configs, and agent graphs; require reproducibility, rollbacks, and audit logs (NIST SSDF: https://csrc.nist.gov/pubs/sp/800/218/final).
- Gate changes with evals (offline + online) and safe rollout (shadow/canary/blue-green); treat regressions in quality, safety, latency, and cost as release blockers.
- Align controls and documentation to risk posture (EU AI Act: https://eur-lex.europa.eu/eli/reg/2024/1689/oj; NIST AI RMF + GenAI profile: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf, https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf).
- Operationalize security: threat model the full system (data, model, prompts, tools, RAG), harden the supply chain (SBOM/signing), and ship incident playbooks for both reliability and safety events.
It is execution-focused:
- Data ingestion patterns (REST APIs, database replication, incremental loading)
- Deployment patterns (batch, online, hybrid, streaming, event-driven)
- Automated monitoring with real-time drift detection
- Automated retraining pipelines (monitor → detect → trigger → validate → deploy)
- Incident handling with validated rollback and postmortems
- Links to copy-paste templates in
assets/
Quick Reference
| Task |
Tool/Framework |
Command |
When to Use |
| Data Ingestion |
dlt (data load tool) |
dlt pipeline run, dlt init |
Loading from APIs, databases to warehouses |
| Batch Deployment |
Airflow, Dagster, Prefect |
airflow dags trigger, dagster job launch |
Scheduled predictions on large datasets |
| API Deployment |
FastAPI, Flask, TorchServe |
uvicorn app:app, torchserve --start |
Real-time inference (<500ms latency) |
| LLM Serving |
vLLM, TGI, BentoML |
vllm serve model, bentoml serve |
High-throughput LLM inference |
| Model Registry |
MLflow, W&B, ZenML |
mlflow.register_model(), zenml model register |
Versioning and promoting models |
| Drift Detection |
Statistical tests + monitors |
PSI/KS, embedding drift, prediction drift |
Detect data/process changes and trigger review |
| Monitoring |
Prometheus, Grafana |
prometheus.yml, Grafana dashboards |
Metrics, alerts, SLO tracking |
| AgentOps |
AgentOps, Langfuse, LangSmith |
agentops.init(), trace visualization |
AI agent observability, session replay |
| Incident Response |
Runbooks, PagerDuty |
Documented playbooks, alert routing |
Handling failures and degradation |
Use This Skill When
Use this skill when the user asks for deployment, operations, monitoring, incident handling, or governance for ML/LLM/agent systems, e.g.:
- "How do I deploy this model to prod?"
- "Design a batch + online scoring architecture."
- "Add monitoring and drift detection to our model."
- "Write an incident runbook for this ML service."
- "Package this LLM/RAG pipeline as an API."
- "Plan our retraining and promotion workflow."
- "Load data from Stripe API to Snowflake."
- "Set up incremental database replication with dlt."
- "Build an ELT pipeline for warehouse loading."
If the user is asking only about EDA, modelling, or theory, prefer:
ai-ml-data-science (EDA, features, modelling, SQL transformation with SQLMesh)
ai-llm (prompting, fine-tuning, eval)
ai-rag (retrieval pipeline design)
ai-llm-inference (compression, spec decode, serving internals)
If the user is asking about SQL transformation (after data is loaded), prefer:
ai-ml-data-science (SQLMesh templates for staging, intermediate, marts layers)
Decision Tree: Choosing Deployment Strategy
User needs to deploy: [ML System]
├─ Data Ingestion?
│ ├─ From REST APIs? → dlt REST API templates
│ ├─ From databases? → dlt database sources (PostgreSQL, MySQL, MongoDB)
│ └─ Incremental loading? → dlt incremental patterns (timestamp, ID-based)
│
├─ Model Serving?
│ ├─ Latency <500ms? → FastAPI real-time API
│ ├─ Batch predictions? → Airflow/Dagster batch pipeline
│ └─ Mix of both? → Hybrid (batch features + online scoring)
│
├─ Monitoring & Ops?
│ ├─ Drift detection? → Evidently + automated retraining triggers
│ ├─ Performance tracking? → Prometheus + Grafana dashboards
│ └─ Incident response? → Runbooks + PagerDuty alerts
│
└─ LLM/RAG Production?
├─ Cost optimization? → Caching, prompt templates, token budgets
└─ Safety? → See ai-mlops skill
Core Concepts (Vendor-Agnostic)
- Lifecycle loop: train → validate → deploy → monitor → respond → retrain/retire.
- Risk controls: access control, data minimization, logging, and change management (NIST AI RMF: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf).
- Observability planes: system metrics (latency/errors), data metrics (freshness/drift), quality metrics (model performance).
- Incident readiness: detection, containment, rollback, and root-cause analysis.
Do / Avoid
Do
- Do gate deployments with repeatable checks: evaluation pass, load test, security review, rollback plan.
- Do version everything: code, data, features, model artifact, prompt templates, configuration.
- Do define SLOs and budgets (latency/cost/error rate) before optimizing.
Avoid
- Avoid manual “clickops” deployments without audit trail.
- Avoid silent upgrades; require eval + canary for model/prompt changes.
- Avoid drift dashboards without actions; every alert needs an owner and runbook.
Core Patterns Overview
This skill provides production-ready patterns and guides organized into comprehensive references:
Data & Infrastructure Patterns
Pattern 0: Data Contracts, Ingestion & Lineage
→ See Data Ingestion Patterns
- Data contracts with SLAs and versioning
- Ingestion modes (CDC, batch, streaming)
- Lineage tracking and schema evolution
- Replay and backfill procedures
Pattern 1: Choose Deployment Mode
→ See Deployment Patterns
- Decision table (batch, online, hybrid, streaming)
- When to use each mode
- Deployment mode selection checklist
Pattern 2: Standard Deployment Lifecycle
→ See Deployment Lifecycle
- Pre-deploy, deploy, observe, operate, evolve phases
- Environment promotion (dev → staging → prod)
- Gradual rollout strategies (canary, blue-green)
Pattern 3: Packaging & Model Registry
→ See Model Registry Patterns
- Model registry structure and metadata
- Packaging strategies (Docker, ONNX, MLflow)
- Promotion flows (experimental → production)
- Versioning and governance
Serving Patterns
Pattern 4: Batch Scoring Pipeline
→ See Deployment Patterns
- Orchestration with Airflow/Dagster
- Idempotent scoring jobs
- Validation and backfill procedures
Pattern 5: Real-Time API Scoring
→ See API Design Patterns
- Service design (HTTP/JSON, gRPC)
- Input/output schemas
- Rate limiting, timeouts, circuit breakers
Pattern 6: Hybrid & Feature Store Integration
→ See Feature Store Patterns
- Batch vs online features
- Feature store architecture
- Training-serving consistency
- Point-in-time correctness
Operations Patterns
Pattern 7: Monitoring & Alerting
→ See Monitoring Best Practices
- Data, performance, and technical metrics
- SLO definition and tracking
- Dashboard design and alerting strategies
Pattern 8: Drift Detection & Automated Retraining
→ See Drift Detection Guide
- Automated retraining triggers
- Event-driven retraining pipelines
Pattern 9: Incidents & Runbooks
→ See Incident Response Playbooks
- Common failure modes
- Detection, diagnosis, resolution
- Post-mortem procedures
Pattern 10: LLM / RAG in Production
→ See LLM & RAG Production Patterns
- Prompt and configuration management
- Safety and compliance (PII, jailbreaks)
- Cost optimization (token budgets, caching)
- Monitoring and fallbacks
Pattern 11: Cross-Region, Residency & Rollback
→ See Multi-Region Patterns
- Multi-region deployment architectures
- Data residency and tenant isolation
- Disaster recovery and failover
- Regional rollback procedures
Pattern 12: Online Evaluation & Feedback Loops
→ See Online Evaluation Patterns
- Feedback signal collection (implicit, explicit)
- Shadow and canary deployments
- A/B testing with statistical significance
- Human-in-the-loop labeling
- Automated retraining cadence
Pattern 13: AgentOps (AI Agent Operations)
→ See AgentOps Patterns
- Session tracing and replay for AI agents
- Cost and latency tracking across agent runs
- Multi-agent visualization and debugging
- Tool invocation monitoring
- Integration with CrewAI, LangGraph, OpenAI Agents SDK
Pattern 14: Edge MLOps & TinyML
→ See Edge MLOps Patterns
- Device-aware CI/CD pipelines
- OTA model updates with rollback
- Federated learning operations
- Edge drift detection
- Intermittent connectivity handling
Resources (Detailed Guides)
For comprehensive operational guides, see:
Core Infrastructure:
- Data Ingestion Patterns - Data contracts, CDC, batch/streaming ingestion, lineage, schema evolution
- Deployment Lifecycle - Pre-deploy validation, environment promotion, gradual rollout, rollback
- Model Registry Patterns - Versioning, packaging, promotion workflows, governance
- Feature Store Patterns - Batch/online features, hybrid architectures, consistency, latency optimization
Serving & APIs:
- Deployment Patterns - Batch, online, hybrid, streaming deployment strategies and architectures
- API Design Patterns - ML/LLM/RAG API patterns, input/output schemas, reliability patterns, versioning
Operations & Reliability:
- Monitoring Best Practices - Metrics collection, alerting strategies, SLO definition, dashboard design
- Drift Detection Guide - Statistical tests, automated detection, retraining triggers, recovery strategies
- Incident Response Playbooks - Runbooks for common failure modes, diagnostics, resolution steps
Security & Governance:
- Threat Models - Trust boundaries, attack surface, control mapping
- Prompt Injection Mitigation - Input hardening, tool/RAG containment, least privilege
- Jailbreak Defense - Robust refusal behavior, safe completion patterns
- RAG Security - Retrieval poisoning, context injection, sensitive data leakage
- Output Filtering - Layered filters (PII/toxicity/policy), block/rewrite strategies
- Privacy Protection - PII handling, data minimization, retention, consent
- Supply Chain Security - SBOM, dependency pinning, artifact signing
- Safety Evaluation - Red teaming, eval sets, incident readiness
Advanced Patterns:
- LLM & RAG Production Patterns - Prompt management, safety, cost optimization, caching, monitoring
- Multi-Region Patterns - Multi-region deployment, data residency, disaster recovery, rollback
- Online Evaluation Patterns - A/B testing, shadow deployments, feedback loops, automated retraining
- AgentOps Patterns - AI agent observability, session replay, cost tracking, multi-agent debugging
- Edge MLOps Patterns - TinyML, federated learning, OTA updates, device-aware CI/CD
Templates
Use these as copy-paste starting points for production artifacts:
Data Ingestion (dlt)
For loading data into warehouses and pipelines:
- dlt basic pipeline setup - Install, configure, run basic extraction and loading
- dlt REST API sources - Extract from REST APIs with pagination, authentication, rate limiting
- dlt database sources - Replicate from PostgreSQL, MySQL, MongoDB, SQL Server
- dlt incremental loading - Timestamp-based, ID-based, merge/upsert patterns, lookback windows
- dlt warehouse loading - Load to Snowflake, BigQuery, Redshift, Postgres, DuckDB
Use dlt when:
- Loading data from APIs (Stripe, HubSpot, Shopify, custom APIs)
- Replicating databases to warehouses
- Building ELT pipelines with incremental loading
- Managing data ingestion with Python
For SQL transformation (after ingestion), use:
→ ai-ml-data-science skill (SQLMesh templates for staging/intermediate/marts layers)
Deployment & Packaging
- Deployment & MLOps template - Complete MLOps lifecycle, model registry, promotion workflows
- Deployment readiness checklist - Go/No-Go gate, monitoring, and rollback plan
- API service template - Real-time REST/gRPC API with FastAPI, input validation, rate limiting
- Batch scoring pipeline template - Orchestrated batch inference with Airflow/Dagster, validation, backfill
Monitoring & Operations
- Monitoring & alerting template - Data/performance/technical metrics, dashboards, SLO definition
- Drift detection & retraining template - Automated drift detection, retraining triggers, promotion pipelines
- Incident runbook template - Failure mode playbooks, diagnosis steps, resolution procedures
Navigation
Resources
- references/drift-detection-guide.md
- references/model-registry-patterns.md
- references/online-evaluation-patterns.md
- references/monitoring-best-practices.md
- references/llm-rag-production-patterns.md
- references/api-design-patterns.md
- references/incident-response-playbooks.md
- references/deployment-patterns.md
- references/data-ingestion-patterns.md
- references/deployment-lifecycle.md
- references/feature-store-patterns.md
- references/multi-region-patterns.md
- references/agentops-patterns.md
- references/edge-mlops-patterns.md
Templates
Data
- data/sources.json - Curated external references
External Resources
See data/sources.json for curated references on:
- Serving frameworks (FastAPI, Flask, gRPC, TorchServe, KServe, Ray Serve)
- Orchestration (Airflow, Dagster, Prefect)
- Model registries and MLOps (MLflow, W&B, Vertex AI, Sagemaker)
- Monitoring and observability (Prometheus, Grafana, OpenTelemetry, Evidently)
- Feature stores (Feast, Tecton, Vertex, Databricks)
- Streaming & messaging (Kafka, Pulsar, Kinesis)
- LLMOps & RAG infra (vector DBs, LLM gateways, safety tools)
Data Lake & Lakehouse
For comprehensive data lake/lakehouse patterns (beyond dlt ingestion), see data-lake-platform:
- Table formats: Apache Iceberg, Delta Lake, Apache Hudi
- Query engines: ClickHouse, DuckDB, Apache Doris, StarRocks
- Alternative ingestion: Airbyte (GUI-based connectors)
- Transformation: dbt (alternative to SQLMesh)
- Streaming: Apache Kafka patterns
- Orchestration: Dagster, Airflow
This skill focuses on ML-specific deployment, monitoring, and security. Use data-lake-platform for general-purpose data infrastructure.
Recency Protocol (Tooling Recommendations)
When users ask recommendation questions about MLOps tooling, verify recency before answering.
Trigger Conditions
- "What's the best MLOps platform for [use case]?"
- "What should I use for [deployment/monitoring/drift detection]?"
- "What's the latest in MLOps?"
- "Current best practices for [model registry/feature store/observability]?"
- "Is [MLflow/Kubeflow/Vertex AI] still relevant in 2026?"
- "[MLOps tool A] vs [MLOps tool B]?"
- "Best way to deploy [LLM/ML model] to production?"
- "What feature store should I use?"
Minimal Recency Check
- Start from
data/sources.json and prefer sources with add_as_web_search: true.
- If web search or browsing is available, confirm at least: (a) the tool’s latest release/docs date, (b) active maintenance signals, (c) a recent comparison/alternatives post.
- If live search is not available, state that you are relying on static knowledge +
data/sources.json, and recommend validation steps (POC + evals + rollout plan).
What to Report
After searching, provide:
- Current landscape: What MLOps tools/platforms are popular NOW
- Emerging trends: New approaches gaining traction (LLMOps, GenAI ops)
- Deprecated/declining: Tools or approaches losing relevance
- Recommendation: Based on fresh data, not just static knowledge
Related Skills
For adjacent topics, reference these skills:
- ai-ml-data-science - EDA, feature engineering, modelling, evaluation, SQLMesh transformations
- ai-llm - Prompting, fine-tuning, evaluation for LLMs
- ai-agents - Agentic workflows, multi-agent systems, LLMOps
- ai-rag - RAG pipeline design, chunking, retrieval, evaluation
- ai-llm-inference - Model serving optimization, quantization, batching
- ai-prompt-engineering - Prompt design patterns and best practices
- data-lake-platform - Data lake/lakehouse infrastructure (ClickHouse, Iceberg, Kafka)
Use this skill to turn trained models into reliable services, not to derive the model itself.
1---
2name: ai-mlops
3description: Production MLOps and ML/LLM/agent security skill for deploying and operating ML systems in production (registry + CI/CD, serving, monitoring/drift, evaluation loops, incident response/runbooks, and governance), including GenAI security (prompt injection, jailbreaks, RAG security, privacy, and supply chain).
4metadata:
5 source: https://skillmd.com/skills/aibot88/ai-mlops
6---
7
8# MLOps & ML Security - Complete Reference (Jan 2026)
9
10Production ML lifecycle with **modern security practices**.
11
12This skill covers:
13
14- **Production**: Data ingestion, deployment, drift detection, monitoring, incident response
15- **Security**: Prompt injection, jailbreak defense, RAG security, output filtering
16- **Governance**: Privacy protection, supply chain security, safety evaluation
17
181. **Data ingestion** (dlt): Load data from APIs, databases to warehouses
192. **Model deployment**: Batch jobs, real-time APIs, hybrid systems, event-driven automation
203. **Operations**: Real-time monitoring, drift detection, automated retraining, incident response
21
22**Modern Best Practices (Jan 2026)**:
23
24- Version everything that can change: model artifacts, data snapshots, feature definitions, prompts/configs, and agent graphs; require reproducibility, rollbacks, and audit logs (NIST SSDF: https://csrc.nist.gov/pubs/sp/800/218/final).
25- Gate changes with evals (offline + online) and safe rollout (shadow/canary/blue-green); treat regressions in quality, safety, latency, and cost as release blockers.
26- Align controls and documentation to risk posture (EU AI Act: https://eur-lex.europa.eu/eli/reg/2024/1689/oj; NIST AI RMF + GenAI profile: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf, https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf).
27- Operationalize security: threat model the full system (data, model, prompts, tools, RAG), harden the supply chain (SBOM/signing), and ship incident playbooks for both reliability and safety events.
28
29It is execution-focused:
30
31- Data ingestion patterns (REST APIs, database replication, incremental loading)
32- Deployment patterns (batch, online, hybrid, streaming, event-driven)
33- **Automated monitoring** with real-time drift detection
34- **Automated retraining** pipelines (monitor → detect → trigger → validate → deploy)
35- Incident handling with validated rollback and postmortems
36- Links to copy-paste templates in `assets/`
37
38## Quick Reference
39
40| Task | Tool/Framework | Command | When to Use |
41|------|----------------|---------|-------------|
42| Data Ingestion | dlt (data load tool) | `dlt pipeline run`, `dlt init` | Loading from APIs, databases to warehouses |
43| Batch Deployment | Airflow, Dagster, Prefect | `airflow dags trigger`, `dagster job launch` | Scheduled predictions on large datasets |
44| API Deployment | FastAPI, Flask, TorchServe | `uvicorn app:app`, `torchserve --start` | Real-time inference (<500ms latency) |
45| LLM Serving | vLLM, TGI, BentoML | `vllm serve model`, `bentoml serve` | High-throughput LLM inference |
46| Model Registry | MLflow, W&B, ZenML | `mlflow.register_model()`, `zenml model register` | Versioning and promoting models |
47| Drift Detection | Statistical tests + monitors | PSI/KS, embedding drift, prediction drift | Detect data/process changes and trigger review |
48| Monitoring | Prometheus, Grafana | `prometheus.yml`, Grafana dashboards | Metrics, alerts, SLO tracking |
49| AgentOps | AgentOps, Langfuse, LangSmith | `agentops.init()`, trace visualization | AI agent observability, session replay |
50| Incident Response | Runbooks, PagerDuty | Documented playbooks, alert routing | Handling failures and degradation |
51
52## Use This Skill When
53
54Use this skill when the user asks for **deployment, operations, monitoring, incident handling, or governance** for ML/LLM/agent systems, e.g.:
55
56- "How do I deploy this model to prod?"
57- "Design a batch + online scoring architecture."
58- "Add monitoring and drift detection to our model."
59- "Write an incident runbook for this ML service."
60- "Package this LLM/RAG pipeline as an API."
61- "Plan our retraining and promotion workflow."
62- "Load data from Stripe API to Snowflake."
63- "Set up incremental database replication with dlt."
64- "Build an ELT pipeline for warehouse loading."
65
66If the user is asking only about **EDA, modelling, or theory**, prefer:
67
68- `ai-ml-data-science` (EDA, features, modelling, SQL transformation with SQLMesh)
69- `ai-llm` (prompting, fine-tuning, eval)
70- `ai-rag` (retrieval pipeline design)
71- `ai-llm-inference` (compression, spec decode, serving internals)
72
73If the user is asking about **SQL transformation (after data is loaded)**, prefer:
74
75- `ai-ml-data-science` (SQLMesh templates for staging, intermediate, marts layers)
76
77## Decision Tree: Choosing Deployment Strategy
78
79```text
80User needs to deploy: [ML System]
81 ├─ Data Ingestion?
82 │ ├─ From REST APIs? → dlt REST API templates
83 │ ├─ From databases? → dlt database sources (PostgreSQL, MySQL, MongoDB)
84 │ └─ Incremental loading? → dlt incremental patterns (timestamp, ID-based)
85 │
86 ├─ Model Serving?
87 │ ├─ Latency <500ms? → FastAPI real-time API
88 │ ├─ Batch predictions? → Airflow/Dagster batch pipeline
89 │ └─ Mix of both? → Hybrid (batch features + online scoring)
90 │
91 ├─ Monitoring & Ops?
92 │ ├─ Drift detection? → Evidently + automated retraining triggers
93 │ ├─ Performance tracking? → Prometheus + Grafana dashboards
94 │ └─ Incident response? → Runbooks + PagerDuty alerts
95 │
96 └─ LLM/RAG Production?
97 ├─ Cost optimization? → Caching, prompt templates, token budgets
98 └─ Safety? → See ai-mlops skill
99```
100
101## Core Concepts (Vendor-Agnostic)
102
103- **Lifecycle loop**: train → validate → deploy → monitor → respond → retrain/retire.
104- **Risk controls**: access control, data minimization, logging, and change management (NIST AI RMF: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf).
105- **Observability planes**: system metrics (latency/errors), data metrics (freshness/drift), quality metrics (model performance).
106- **Incident readiness**: detection, containment, rollback, and root-cause analysis.
107
108## Do / Avoid
109
110**Do**
111- Do gate deployments with repeatable checks: evaluation pass, load test, security review, rollback plan.
112- Do version everything: code, data, features, model artifact, prompt templates, configuration.
113- Do define SLOs and budgets (latency/cost/error rate) before optimizing.
114
115**Avoid**
116- Avoid manual “clickops” deployments without audit trail.
117- Avoid silent upgrades; require eval + canary for model/prompt changes.
118- Avoid drift dashboards without actions; every alert needs an owner and runbook.
119
120## Core Patterns Overview
121
122This skill provides production-ready patterns and guides organized into comprehensive references:
123
124### Data & Infrastructure Patterns
125
126**Pattern 0: Data Contracts, Ingestion & Lineage**
127→ See [Data Ingestion Patterns](references/data-ingestion-patterns.md)
128
129- Data contracts with SLAs and versioning
130- Ingestion modes (CDC, batch, streaming)
131- Lineage tracking and schema evolution
132- Replay and backfill procedures
133
134**Pattern 1: Choose Deployment Mode**
135→ See [Deployment Patterns](references/deployment-patterns.md)
136
137- Decision table (batch, online, hybrid, streaming)
138- When to use each mode
139- Deployment mode selection checklist
140
141**Pattern 2: Standard Deployment Lifecycle**
142→ See [Deployment Lifecycle](references/deployment-lifecycle.md)
143
144- Pre-deploy, deploy, observe, operate, evolve phases
145- Environment promotion (dev → staging → prod)
146- Gradual rollout strategies (canary, blue-green)
147
148**Pattern 3: Packaging & Model Registry**
149→ See [Model Registry Patterns](references/model-registry-patterns.md)
150
151- Model registry structure and metadata
152- Packaging strategies (Docker, ONNX, MLflow)
153- Promotion flows (experimental → production)
154- Versioning and governance
155
156### Serving Patterns
157
158**Pattern 4: Batch Scoring Pipeline**
159→ See [Deployment Patterns](references/deployment-patterns.md)
160
161- Orchestration with Airflow/Dagster
162- Idempotent scoring jobs
163- Validation and backfill procedures
164
165**Pattern 5: Real-Time API Scoring**
166→ See [API Design Patterns](references/api-design-patterns.md)
167
168- Service design (HTTP/JSON, gRPC)
169- Input/output schemas
170- Rate limiting, timeouts, circuit breakers
171
172**Pattern 6: Hybrid & Feature Store Integration**
173→ See [Feature Store Patterns](references/feature-store-patterns.md)
174
175- Batch vs online features
176- Feature store architecture
177- Training-serving consistency
178- Point-in-time correctness
179
180### Operations Patterns
181
182**Pattern 7: Monitoring & Alerting**
183→ See [Monitoring Best Practices](references/monitoring-best-practices.md)
184
185- Data, performance, and technical metrics
186- SLO definition and tracking
187- Dashboard design and alerting strategies
188
189**Pattern 8: Drift Detection & Automated Retraining**
190→ See [Drift Detection Guide](references/drift-detection-guide.md)
191
192- Automated retraining triggers
193- Event-driven retraining pipelines
194
195**Pattern 9: Incidents & Runbooks**
196→ See [Incident Response Playbooks](references/incident-response-playbooks.md)
197
198- Common failure modes
199- Detection, diagnosis, resolution
200- Post-mortem procedures
201
202**Pattern 10: LLM / RAG in Production**
203→ See [LLM & RAG Production Patterns](references/llm-rag-production-patterns.md)
204
205- Prompt and configuration management
206- Safety and compliance (PII, jailbreaks)
207- Cost optimization (token budgets, caching)
208- Monitoring and fallbacks
209
210**Pattern 11: Cross-Region, Residency & Rollback**
211→ See [Multi-Region Patterns](references/multi-region-patterns.md)
212
213- Multi-region deployment architectures
214- Data residency and tenant isolation
215- Disaster recovery and failover
216- Regional rollback procedures
217
218**Pattern 12: Online Evaluation & Feedback Loops**
219→ See [Online Evaluation Patterns](references/online-evaluation-patterns.md)
220
221- Feedback signal collection (implicit, explicit)
222- Shadow and canary deployments
223- A/B testing with statistical significance
224- Human-in-the-loop labeling
225- Automated retraining cadence
226
227**Pattern 13: AgentOps (AI Agent Operations)**
228→ See [AgentOps Patterns](references/agentops-patterns.md)
229
230- Session tracing and replay for AI agents
231- Cost and latency tracking across agent runs
232- Multi-agent visualization and debugging
233- Tool invocation monitoring
234- Integration with CrewAI, LangGraph, OpenAI Agents SDK
235
236**Pattern 14: Edge MLOps & TinyML**
237→ See [Edge MLOps Patterns](references/edge-mlops-patterns.md)
238
239- Device-aware CI/CD pipelines
240- OTA model updates with rollback
241- Federated learning operations
242- Edge drift detection
243- Intermittent connectivity handling
244
245## Resources (Detailed Guides)
246
247For comprehensive operational guides, see:
248
249**Core Infrastructure:**
250
251- **[Data Ingestion Patterns](references/data-ingestion-patterns.md)** - Data contracts, CDC, batch/streaming ingestion, lineage, schema evolution
252- **[Deployment Lifecycle](references/deployment-lifecycle.md)** - Pre-deploy validation, environment promotion, gradual rollout, rollback
253- **[Model Registry Patterns](references/model-registry-patterns.md)** - Versioning, packaging, promotion workflows, governance
254- **[Feature Store Patterns](references/feature-store-patterns.md)** - Batch/online features, hybrid architectures, consistency, latency optimization
255
256**Serving & APIs:**
257
258- **[Deployment Patterns](references/deployment-patterns.md)** - Batch, online, hybrid, streaming deployment strategies and architectures
259- **[API Design Patterns](references/api-design-patterns.md)** - ML/LLM/RAG API patterns, input/output schemas, reliability patterns, versioning
260
261**Operations & Reliability:**
262
263- **[Monitoring Best Practices](references/monitoring-best-practices.md)** - Metrics collection, alerting strategies, SLO definition, dashboard design
264- **[Drift Detection Guide](references/drift-detection-guide.md)** - Statistical tests, automated detection, retraining triggers, recovery strategies
265- **[Incident Response Playbooks](references/incident-response-playbooks.md)** - Runbooks for common failure modes, diagnostics, resolution steps
266
267**Security & Governance:**
268
269- **[Threat Models](references/threat-models.md)** - Trust boundaries, attack surface, control mapping
270- **[Prompt Injection Mitigation](references/prompt-injection-mitigation.md)** - Input hardening, tool/RAG containment, least privilege
271- **[Jailbreak Defense](references/jailbreak-defense.md)** - Robust refusal behavior, safe completion patterns
272- **[RAG Security](references/rag-security.md)** - Retrieval poisoning, context injection, sensitive data leakage
273- **[Output Filtering](references/output-filtering.md)** - Layered filters (PII/toxicity/policy), block/rewrite strategies
274- **[Privacy Protection](references/privacy-protection.md)** - PII handling, data minimization, retention, consent
275- **[Supply Chain Security](references/supply-chain-security.md)** - SBOM, dependency pinning, artifact signing
276- **[Safety Evaluation](references/safety-evaluation.md)** - Red teaming, eval sets, incident readiness
277
278**Advanced Patterns:**
279
280- **[LLM & RAG Production Patterns](references/llm-rag-production-patterns.md)** - Prompt management, safety, cost optimization, caching, monitoring
281- **[Multi-Region Patterns](references/multi-region-patterns.md)** - Multi-region deployment, data residency, disaster recovery, rollback
282- **[Online Evaluation Patterns](references/online-evaluation-patterns.md)** - A/B testing, shadow deployments, feedback loops, automated retraining
283- **[AgentOps Patterns](references/agentops-patterns.md)** - AI agent observability, session replay, cost tracking, multi-agent debugging
284- **[Edge MLOps Patterns](references/edge-mlops-patterns.md)** - TinyML, federated learning, OTA updates, device-aware CI/CD
285
286## Templates
287
288Use these as copy-paste starting points for production artifacts:
289
290### Data Ingestion (dlt)
291
292For loading data into warehouses and pipelines:
293
294- **[dlt basic pipeline setup](../data-lake-platform/assets/ingestion/dlt/template-dlt-pipeline.md)** - Install, configure, run basic extraction and loading
295- **[dlt REST API sources](../data-lake-platform/assets/ingestion/dlt/template-dlt-rest-api.md)** - Extract from REST APIs with pagination, authentication, rate limiting
296- **[dlt database sources](../data-lake-platform/assets/ingestion/dlt/template-dlt-database-source.md)** - Replicate from PostgreSQL, MySQL, MongoDB, SQL Server
297- **[dlt incremental loading](../data-lake-platform/assets/ingestion/dlt/template-dlt-incremental.md)** - Timestamp-based, ID-based, merge/upsert patterns, lookback windows
298- **[dlt warehouse loading](../data-lake-platform/assets/ingestion/dlt/template-dlt-warehouse-loading.md)** - Load to Snowflake, BigQuery, Redshift, Postgres, DuckDB
299
300**Use dlt when:**
301
302- Loading data from APIs (Stripe, HubSpot, Shopify, custom APIs)
303- Replicating databases to warehouses
304- Building ELT pipelines with incremental loading
305- Managing data ingestion with Python
306
307**For SQL transformation (after ingestion), use:**
308
309→ `ai-ml-data-science` skill (SQLMesh templates for staging/intermediate/marts layers)
310
311### Deployment & Packaging
312
313- **[Deployment & MLOps template](assets/deployment/template-deployment-mlops.md)** - Complete MLOps lifecycle, model registry, promotion workflows
314- **[Deployment readiness checklist](assets/deployment/deployment-readiness-checklist.md)** - Go/No-Go gate, monitoring, and rollback plan
315- **[API service template](assets/deployment/template-api-service.md)** - Real-time REST/gRPC API with FastAPI, input validation, rate limiting
316- **[Batch scoring pipeline template](assets/deployment/template-batch-pipeline.md)** - Orchestrated batch inference with Airflow/Dagster, validation, backfill
317
318### Monitoring & Operations
319
320- **[Monitoring & alerting template](assets/monitoring/template-monitoring-plan.md)** - Data/performance/technical metrics, dashboards, SLO definition
321- **[Drift detection & retraining template](assets/monitoring/template-drift-retraining.md)** - Automated drift detection, retraining triggers, promotion pipelines
322- **[Incident runbook template](assets/ops/template-incident-runbook.md)** - Failure mode playbooks, diagnosis steps, resolution procedures
323
324## Navigation
325
326**Resources**
327- [references/drift-detection-guide.md](references/drift-detection-guide.md)
328- [references/model-registry-patterns.md](references/model-registry-patterns.md)
329- [references/online-evaluation-patterns.md](references/online-evaluation-patterns.md)
330- [references/monitoring-best-practices.md](references/monitoring-best-practices.md)
331- [references/llm-rag-production-patterns.md](references/llm-rag-production-patterns.md)
332- [references/api-design-patterns.md](references/api-design-patterns.md)
333- [references/incident-response-playbooks.md](references/incident-response-playbooks.md)
334- [references/deployment-patterns.md](references/deployment-patterns.md)
335- [references/data-ingestion-patterns.md](references/data-ingestion-patterns.md)
336- [references/deployment-lifecycle.md](references/deployment-lifecycle.md)
337- [references/feature-store-patterns.md](references/feature-store-patterns.md)
338- [references/multi-region-patterns.md](references/multi-region-patterns.md)
339- [references/agentops-patterns.md](references/agentops-patterns.md)
340- [references/edge-mlops-patterns.md](references/edge-mlops-patterns.md)
341
342**Templates**
343- [template-dlt-pipeline.md](../data-lake-platform/assets/ingestion/dlt/template-dlt-pipeline.md)
344- [template-dlt-rest-api.md](../data-lake-platform/assets/ingestion/dlt/template-dlt-rest-api.md)
345- [template-dlt-database-source.md](../data-lake-platform/assets/ingestion/dlt/template-dlt-database-source.md)
346- [template-dlt-incremental.md](../data-lake-platform/assets/ingestion/dlt/template-dlt-incremental.md)
347- [template-dlt-warehouse-loading.md](../data-lake-platform/assets/ingestion/dlt/template-dlt-warehouse-loading.md)
348- [assets/deployment/template-deployment-mlops.md](assets/deployment/template-deployment-mlops.md)
349- [assets/deployment/deployment-readiness-checklist.md](assets/deployment/deployment-readiness-checklist.md)
350- [assets/deployment/template-api-service.md](assets/deployment/template-api-service.md)
351- [assets/deployment/template-batch-pipeline.md](assets/deployment/template-batch-pipeline.md)
352- [assets/ops/template-incident-runbook.md](assets/ops/template-incident-runbook.md)
353- [assets/monitoring/template-drift-retraining.md](assets/monitoring/template-drift-retraining.md)
354- [assets/monitoring/template-monitoring-plan.md](assets/monitoring/template-monitoring-plan.md)
355
356**Data**
357- [data/sources.json](data/sources.json) - Curated external references
358
359## External Resources
360
361See `data/sources.json` for curated references on:
362
363- Serving frameworks (FastAPI, Flask, gRPC, TorchServe, KServe, Ray Serve)
364- Orchestration (Airflow, Dagster, Prefect)
365- Model registries and MLOps (MLflow, W&B, Vertex AI, Sagemaker)
366- Monitoring and observability (Prometheus, Grafana, OpenTelemetry, Evidently)
367- Feature stores (Feast, Tecton, Vertex, Databricks)
368- Streaming & messaging (Kafka, Pulsar, Kinesis)
369- LLMOps & RAG infra (vector DBs, LLM gateways, safety tools)
370
371## Data Lake & Lakehouse
372
373For comprehensive data lake/lakehouse patterns (beyond dlt ingestion), see **[data-lake-platform](../data-lake-platform/SKILL.md)**:
374
375- **Table formats:** Apache Iceberg, Delta Lake, Apache Hudi
376- **Query engines:** ClickHouse, DuckDB, Apache Doris, StarRocks
377- **Alternative ingestion:** Airbyte (GUI-based connectors)
378- **Transformation:** dbt (alternative to SQLMesh)
379- **Streaming:** Apache Kafka patterns
380- **Orchestration:** Dagster, Airflow
381
382This skill focuses on **ML-specific deployment, monitoring, and security**. Use data-lake-platform for general-purpose data infrastructure.
383
384## Recency Protocol (Tooling Recommendations)
385
386When users ask recommendation questions about MLOps tooling, verify recency before answering.
387
388### Trigger Conditions
389
390- "What's the best MLOps platform for [use case]?"
391- "What should I use for [deployment/monitoring/drift detection]?"
392- "What's the latest in MLOps?"
393- "Current best practices for [model registry/feature store/observability]?"
394- "Is [MLflow/Kubeflow/Vertex AI] still relevant in 2026?"
395- "[MLOps tool A] vs [MLOps tool B]?"
396- "Best way to deploy [LLM/ML model] to production?"
397- "What feature store should I use?"
398
399### Minimal Recency Check
400
4011. Start from `data/sources.json` and prefer sources with `add_as_web_search: true`.
4022. If web search or browsing is available, confirm at least: (a) the tool’s latest release/docs date, (b) active maintenance signals, (c) a recent comparison/alternatives post.
4033. If live search is not available, state that you are relying on static knowledge + `data/sources.json`, and recommend validation steps (POC + evals + rollout plan).
404
405### What to Report
406
407After searching, provide:
408
409- **Current landscape**: What MLOps tools/platforms are popular NOW
410- **Emerging trends**: New approaches gaining traction (LLMOps, GenAI ops)
411- **Deprecated/declining**: Tools or approaches losing relevance
412- **Recommendation**: Based on fresh data, not just static knowledge
413
414## Related Skills
415
416For adjacent topics, reference these skills:
417
418- **[ai-ml-data-science](../ai-ml-data-science/SKILL.md)** - EDA, feature engineering, modelling, evaluation, SQLMesh transformations
419- **[ai-llm](../ai-llm/SKILL.md)** - Prompting, fine-tuning, evaluation for LLMs
420- **[ai-agents](../ai-agents/SKILL.md)** - Agentic workflows, multi-agent systems, LLMOps
421- **[ai-rag](../ai-rag/SKILL.md)** - RAG pipeline design, chunking, retrieval, evaluation
422- **[ai-llm-inference](../ai-llm-inference/SKILL.md)** - Model serving optimization, quantization, batching
423- **[ai-prompt-engineering](../ai-prompt-engineering/SKILL.md)** - Prompt design patterns and best practices
424- **[data-lake-platform](../data-lake-platform/SKILL.md)** - Data lake/lakehouse infrastructure (ClickHouse, Iceberg, Kafka)
425
426Use this skill to **turn trained models into reliable services**, not to derive the model itself.