MLOps & ML Security — Complete Reference
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 (December 2025):
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
templates/
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) |
| Model Registry |
MLflow, W&B |
mlflow.register_model(), wandb.log_model() |
Versioning and promoting models |
| Drift Detection |
Statistical tests + monitors |
PSI/KS, feature drift, prediction drift |
Detect data/process changes and trigger review |
| Monitoring |
Prometheus, Grafana |
prometheus.yml, Grafana dashboards |
Metrics, alerts, SLO tracking |
| Incident Response |
Runbooks, PagerDuty |
Documented playbooks, alert routing |
Handling failures and degradation |
When to Use This Skill
Claude should invoke this skill when the user asks for deployment, operations, or data ingestion help, 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 13 production-ready patterns organized into comprehensive guides:
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
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
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
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
- resources/drift-detection-guide.md
- resources/model-registry-patterns.md
- resources/online-evaluation-patterns.md
- resources/monitoring-best-practices.md
- resources/llm-rag-production-patterns.md
- resources/api-design-patterns.md
- resources/incident-response-playbooks.md
- resources/deployment-patterns.md
- resources/data-ingestion-patterns.md
- resources/deployment-lifecycle.md
- resources/feature-store-patterns.md
- resources/multi-region-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.
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-mlops3description: Complete MLOps skill covering production ML lifecycle and security. Includes data ingestion, model deployment, drift detection, monitoring, plus ML security (prompt injection, jailbreak defense, RAG security, privacy, governance). Modern automation-first patterns with multi-layered defenses.4---5
6# MLOps & ML Security — Complete Reference
7
8Production ML lifecycle with **modern security practices**.
9
10This skill covers:
11
12- **Production**: Data ingestion, deployment, drift detection, monitoring, incident response
13- **Security**: Prompt injection, jailbreak defense, RAG security, output filtering
14- **Governance**: Privacy protection, supply chain security, safety evaluation
15
161. **Data ingestion** (dlt): Load data from APIs, databases to warehouses
172. **Model deployment**: Batch jobs, real-time APIs, hybrid systems, event-driven automation
183. **Operations**: Real-time monitoring, drift detection, automated retraining, incident response
19
20**Modern Best Practices (December 2025)**:
21
22- Treat the model as a **versioned production artifact** with provenance, rollbacks, and audit logs (NIST SSDF: https://csrc.nist.gov/pubs/sp/800/218/final).
23- Align governance and documentation to risk posture (EU AI Act: https://eur-lex.europa.eu/eli/reg/2024/1689/oj; NIST AI RMF: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf).
24- Measure and manage drift with **clear triggers and playbooks**; “drift” is not one metric.
25- Make incident response and change management first-class (runbooks, on-call, postmortems).
26
27It is execution-focused:
28
29- Data ingestion patterns (REST APIs, database replication, incremental loading)
30- Deployment patterns (batch, online, hybrid, streaming, event-driven)
31- **Automated monitoring** with real-time drift detection
32- **Automated retraining** pipelines (monitor → detect → trigger → validate → deploy)
33- Incident handling with validated rollback and postmortems
34- Links to copy-paste templates in `templates/`
35
36---
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| Model Registry | MLflow, W&B | `mlflow.register_model()`, `wandb.log_model()` | Versioning and promoting models |
46| Drift Detection | Statistical tests + monitors | PSI/KS, feature drift, prediction drift | Detect data/process changes and trigger review |
47| Monitoring | Prometheus, Grafana | `prometheus.yml`, Grafana dashboards | Metrics, alerts, SLO tracking |
48| Incident Response | Runbooks, PagerDuty | Documented playbooks, alert routing | Handling failures and degradation |
49
50---
51
52## When to Use This Skill
53
54Claude should invoke this skill when the user asks for **deployment, operations, or data ingestion** help, 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---
78
79## Decision Tree: Choosing Deployment Strategy
80
81```text
82User needs to deploy: [ML System]
83 ├─ Data Ingestion?
84 │ ├─ From REST APIs? → dlt REST API templates
85 │ ├─ From databases? → dlt database sources (PostgreSQL, MySQL, MongoDB)
86 │ └─ Incremental loading? → dlt incremental patterns (timestamp, ID-based)
87 │
88 ├─ Model Serving?
89 │ ├─ Latency <500ms? → FastAPI real-time API
90 │ ├─ Batch predictions? → Airflow/Dagster batch pipeline
91 │ └─ Mix of both? → Hybrid (batch features + online scoring)
92 │
93 ├─ Monitoring & Ops?
94 │ ├─ Drift detection? → Evidently + automated retraining triggers
95 │ ├─ Performance tracking? → Prometheus + Grafana dashboards
96 │ └─ Incident response? → Runbooks + PagerDuty alerts
97 │
98 └─ LLM/RAG Production?
99 ├─ Cost optimization? → Caching, prompt templates, token budgets
100 └─ Safety? → See ai-mlops skill
101```
102
103---
104
105## Core Concepts (Vendor-Agnostic)
106
107- **Lifecycle loop**: train → validate → deploy → monitor → respond → retrain/retire.
108- **Risk controls**: access control, data minimization, logging, and change management (NIST AI RMF: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf).
109- **Observability planes**: system metrics (latency/errors), data metrics (freshness/drift), quality metrics (model performance).
110- **Incident readiness**: detection, containment, rollback, and root-cause analysis.
111
112## Do / Avoid
113
114**Do**
115- Do gate deployments with repeatable checks: evaluation pass, load test, security review, rollback plan.
116- Do version everything: code, data, features, model artifact, prompt templates, configuration.
117- Do define SLOs and budgets (latency/cost/error rate) before optimizing.
118
119**Avoid**
120- Avoid manual “clickops” deployments without audit trail.
121- Avoid silent upgrades; require eval + canary for model/prompt changes.
122- Avoid drift dashboards without actions; every alert needs an owner and runbook.
123
124## Core Patterns Overview
125
126This skill provides 13 production-ready patterns organized into comprehensive guides:
127
128### Data & Infrastructure Patterns
129
130**Pattern 0: Data Contracts, Ingestion & Lineage**
131→ See [Data Ingestion Patterns](resources/data-ingestion-patterns.md)
132
133- Data contracts with SLAs and versioning
134- Ingestion modes (CDC, batch, streaming)
135- Lineage tracking and schema evolution
136- Replay and backfill procedures
137
138**Pattern 1: Choose Deployment Mode**
139→ See [Deployment Patterns](resources/deployment-patterns.md)
140
141- Decision table (batch, online, hybrid, streaming)
142- When to use each mode
143- Deployment mode selection checklist
144
145**Pattern 2: Standard Deployment Lifecycle**
146→ See [Deployment Lifecycle](resources/deployment-lifecycle.md)
147
148- Pre-deploy, deploy, observe, operate, evolve phases
149- Environment promotion (dev → staging → prod)
150- Gradual rollout strategies (canary, blue-green)
151
152**Pattern 3: Packaging & Model Registry**
153→ See [Model Registry Patterns](resources/model-registry-patterns.md)
154
155- Model registry structure and metadata
156- Packaging strategies (Docker, ONNX, MLflow)
157- Promotion flows (experimental → production)
158- Versioning and governance
159
160### Serving Patterns
161
162**Pattern 4: Batch Scoring Pipeline**
163→ See [Deployment Patterns](resources/deployment-patterns.md)
164
165- Orchestration with Airflow/Dagster
166- Idempotent scoring jobs
167- Validation and backfill procedures
168
169**Pattern 5: Real-Time API Scoring**
170→ See [API Design Patterns](resources/api-design-patterns.md)
171
172- Service design (HTTP/JSON, gRPC)
173- Input/output schemas
174- Rate limiting, timeouts, circuit breakers
175
176**Pattern 6: Hybrid & Feature Store Integration**
177→ See [Feature Store Patterns](resources/feature-store-patterns.md)
178
179- Batch vs online features
180- Feature store architecture
181- Training-serving consistency
182- Point-in-time correctness
183
184### Operations Patterns
185
186**Pattern 7: Monitoring & Alerting**
187→ See [Monitoring Best Practices](resources/monitoring-best-practices.md)
188
189- Data, performance, and technical metrics
190- SLO definition and tracking
191- Dashboard design and alerting strategies
192
193**Pattern 8: Drift Detection & Automated Retraining**
194→ See [Drift Detection Guide](resources/drift-detection-guide.md)
195
196- Automated retraining triggers
197- Event-driven retraining pipelines
198
199**Pattern 9: Incidents & Runbooks**
200→ See [Incident Response Playbooks](resources/incident-response-playbooks.md)
201
202- Common failure modes
203- Detection, diagnosis, resolution
204- Post-mortem procedures
205
206**Pattern 10: LLM / RAG in Production**
207→ See [LLM & RAG Production Patterns](resources/llm-rag-production-patterns.md)
208
209- Prompt and configuration management
210- Safety and compliance (PII, jailbreaks)
211- Cost optimization (token budgets, caching)
212- Monitoring and fallbacks
213
214**Pattern 11: Cross-Region, Residency & Rollback**
215→ See [Multi-Region Patterns](resources/multi-region-patterns.md)
216
217- Multi-region deployment architectures
218- Data residency and tenant isolation
219- Disaster recovery and failover
220- Regional rollback procedures
221
222**Pattern 12: Online Evaluation & Feedback Loops**
223→ See [Online Evaluation Patterns](resources/online-evaluation-patterns.md)
224
225- Feedback signal collection (implicit, explicit)
226- Shadow and canary deployments
227- A/B testing with statistical significance
228- Human-in-the-loop labeling
229- Automated retraining cadence
230
231---
232
233## Resources (Detailed Guides)
234
235For comprehensive operational guides, see:
236
237**Core Infrastructure:**
238
239- **[Data Ingestion Patterns](resources/data-ingestion-patterns.md)** - Data contracts, CDC, batch/streaming ingestion, lineage, schema evolution
240- **[Deployment Lifecycle](resources/deployment-lifecycle.md)** - Pre-deploy validation, environment promotion, gradual rollout, rollback
241- **[Model Registry Patterns](resources/model-registry-patterns.md)** - Versioning, packaging, promotion workflows, governance
242- **[Feature Store Patterns](resources/feature-store-patterns.md)** - Batch/online features, hybrid architectures, consistency, latency optimization
243
244**Serving & APIs:**
245
246- **[Deployment Patterns](resources/deployment-patterns.md)** - Batch, online, hybrid, streaming deployment strategies and architectures
247- **[API Design Patterns](resources/api-design-patterns.md)** - ML/LLM/RAG API patterns, input/output schemas, reliability patterns, versioning
248
249**Operations & Reliability:**
250
251- **[Monitoring Best Practices](resources/monitoring-best-practices.md)** - Metrics collection, alerting strategies, SLO definition, dashboard design
252- **[Drift Detection Guide](resources/drift-detection-guide.md)** - Statistical tests, automated detection, retraining triggers, recovery strategies
253- **[Incident Response Playbooks](resources/incident-response-playbooks.md)** - Runbooks for common failure modes, diagnostics, resolution steps
254
255**Advanced Patterns:**
256
257- **[LLM & RAG Production Patterns](resources/llm-rag-production-patterns.md)** - Prompt management, safety, cost optimization, caching, monitoring
258- **[Multi-Region Patterns](resources/multi-region-patterns.md)** - Multi-region deployment, data residency, disaster recovery, rollback
259- **[Online Evaluation Patterns](resources/online-evaluation-patterns.md)** - A/B testing, shadow deployments, feedback loops, automated retraining
260
261---
262
263## Templates
264
265Use these as copy-paste starting points for production artifacts:
266
267### Data Ingestion (dlt)
268
269For loading data into warehouses and pipelines:
270
271- **[dlt basic pipeline setup](../data-lake-platform/templates/ingestion/dlt/template-dlt-pipeline.md)** - Install, configure, run basic extraction and loading
272- **[dlt REST API sources](../data-lake-platform/templates/ingestion/dlt/template-dlt-rest-api.md)** - Extract from REST APIs with pagination, authentication, rate limiting
273- **[dlt database sources](../data-lake-platform/templates/ingestion/dlt/template-dlt-database-source.md)** - Replicate from PostgreSQL, MySQL, MongoDB, SQL Server
274- **[dlt incremental loading](../data-lake-platform/templates/ingestion/dlt/template-dlt-incremental.md)** - Timestamp-based, ID-based, merge/upsert patterns, lookback windows
275- **[dlt warehouse loading](../data-lake-platform/templates/ingestion/dlt/template-dlt-warehouse-loading.md)** - Load to Snowflake, BigQuery, Redshift, Postgres, DuckDB
276
277**Use dlt when:**
278
279- Loading data from APIs (Stripe, HubSpot, Shopify, custom APIs)
280- Replicating databases to warehouses
281- Building ELT pipelines with incremental loading
282- Managing data ingestion with Python
283
284**For SQL transformation (after ingestion), use:**
285
286→ `ai-ml-data-science` skill (SQLMesh templates for staging/intermediate/marts layers)
287
288### Deployment & Packaging
289
290- **[Deployment & MLOps template](templates/deployment/template-deployment-mlops.md)** - Complete MLOps lifecycle, model registry, promotion workflows
291- **[Deployment readiness checklist](templates/deployment/deployment-readiness-checklist.md)** - Go/No-Go gate, monitoring, and rollback plan
292- **[API service template](templates/deployment/template-api-service.md)** - Real-time REST/gRPC API with FastAPI, input validation, rate limiting
293- **[Batch scoring pipeline template](templates/deployment/template-batch-pipeline.md)** - Orchestrated batch inference with Airflow/Dagster, validation, backfill
294
295### Monitoring & Operations
296
297- **[Monitoring & alerting template](templates/monitoring/template-monitoring-plan.md)** - Data/performance/technical metrics, dashboards, SLO definition
298- **[Drift detection & retraining template](templates/monitoring/template-drift-retraining.md)** - Automated drift detection, retraining triggers, promotion pipelines
299- **[Incident runbook template](templates/ops/template-incident-runbook.md)** - Failure mode playbooks, diagnosis steps, resolution procedures
300
301## Navigation
302
303**Resources**
304- [resources/drift-detection-guide.md](resources/drift-detection-guide.md)
305- [resources/model-registry-patterns.md](resources/model-registry-patterns.md)
306- [resources/online-evaluation-patterns.md](resources/online-evaluation-patterns.md)
307- [resources/monitoring-best-practices.md](resources/monitoring-best-practices.md)
308- [resources/llm-rag-production-patterns.md](resources/llm-rag-production-patterns.md)
309- [resources/api-design-patterns.md](resources/api-design-patterns.md)
310- [resources/incident-response-playbooks.md](resources/incident-response-playbooks.md)
311- [resources/deployment-patterns.md](resources/deployment-patterns.md)
312- [resources/data-ingestion-patterns.md](resources/data-ingestion-patterns.md)
313- [resources/deployment-lifecycle.md](resources/deployment-lifecycle.md)
314- [resources/feature-store-patterns.md](resources/feature-store-patterns.md)
315- [resources/multi-region-patterns.md](resources/multi-region-patterns.md)
316
317**Templates**
318- [template-dlt-pipeline.md](../data-lake-platform/templates/ingestion/dlt/template-dlt-pipeline.md)
319- [template-dlt-rest-api.md](../data-lake-platform/templates/ingestion/dlt/template-dlt-rest-api.md)
320- [template-dlt-database-source.md](../data-lake-platform/templates/ingestion/dlt/template-dlt-database-source.md)
321- [template-dlt-incremental.md](../data-lake-platform/templates/ingestion/dlt/template-dlt-incremental.md)
322- [template-dlt-warehouse-loading.md](../data-lake-platform/templates/ingestion/dlt/template-dlt-warehouse-loading.md)
323- [templates/deployment/template-deployment-mlops.md](templates/deployment/template-deployment-mlops.md)
324- [templates/deployment/deployment-readiness-checklist.md](templates/deployment/deployment-readiness-checklist.md)
325- [templates/deployment/template-api-service.md](templates/deployment/template-api-service.md)
326- [templates/deployment/template-batch-pipeline.md](templates/deployment/template-batch-pipeline.md)
327- [templates/ops/template-incident-runbook.md](templates/ops/template-incident-runbook.md)
328- [templates/monitoring/template-drift-retraining.md](templates/monitoring/template-drift-retraining.md)
329- [templates/monitoring/template-monitoring-plan.md](templates/monitoring/template-monitoring-plan.md)
330
331**Data**
332- [data/sources.json](data/sources.json) — Curated external references
333
334---
335
336## External Resources
337
338See `data/sources.json` for curated references on:
339
340- Serving frameworks (FastAPI, Flask, gRPC, TorchServe, KServe, Ray Serve)
341- Orchestration (Airflow, Dagster, Prefect)
342- Model registries and MLOps (MLflow, W&B, Vertex AI, Sagemaker)
343- Monitoring and observability (Prometheus, Grafana, OpenTelemetry, Evidently)
344- Feature stores (Feast, Tecton, Vertex, Databricks)
345- Streaming & messaging (Kafka, Pulsar, Kinesis)
346- LLMOps & RAG infra (vector DBs, LLM gateways, safety tools)
347
348---
349
350## Data Lake & Lakehouse
351
352For comprehensive data lake/lakehouse patterns (beyond dlt ingestion), see **[data-lake-platform](../data-lake-platform/SKILL.md)**:
353
354- **Table formats:** Apache Iceberg, Delta Lake, Apache Hudi
355- **Query engines:** ClickHouse, DuckDB, Apache Doris, StarRocks
356- **Alternative ingestion:** Airbyte (GUI-based connectors)
357- **Transformation:** dbt (alternative to SQLMesh)
358- **Streaming:** Apache Kafka patterns
359- **Orchestration:** Dagster, Airflow
360
361This skill focuses on **ML-specific deployment, monitoring, and security**. Use data-lake-platform for general-purpose data infrastructure.
362
363---
364
365## Related Skills
366
367For adjacent topics, reference these skills:
368
369- **[ai-ml-data-science](../ai-ml-data-science/SKILL.md)** - EDA, feature engineering, modelling, evaluation, SQLMesh transformations
370- **[ai-llm](../ai-llm/SKILL.md)** - Prompting, fine-tuning, evaluation for LLMs
371- **[ai-agents](../ai-agents/SKILL.md)** - Agentic workflows, multi-agent systems, LLMOps
372- **[ai-rag](../ai-rag/SKILL.md)** - RAG pipeline design, chunking, retrieval, evaluation
373- **[ai-llm-inference](../ai-llm-inference/SKILL.md)** - Model serving optimization, quantization, batching
374- **[ai-prompt-engineering](../ai-prompt-engineering/SKILL.md)** - Prompt design patterns and best practices
375- **[data-lake-platform](../data-lake-platform/SKILL.md)** - Data lake/lakehouse infrastructure (ClickHouse, Iceberg, Kafka)
376
377---
378
379Use this skill to **turn trained models into reliable services**, not to derive the model itself.