ML Pipeline Workflow
Complete end-to-end MLOps pipeline orchestration from data preparation through model deployment.
Do not use this skill when
- The task is unrelated to ml pipeline workflow
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Overview
This skill provides comprehensive guidance for building production ML pipelines that handle the full lifecycle: data ingestion → preparation → training → validation → deployment → monitoring.
Use this skill when
- Building new ML pipelines from scratch
- Designing workflow orchestration for ML systems
- Implementing data → model → deployment automation
- Setting up reproducible training workflows
- Creating DAG-based ML orchestration
- Integrating ML components into production systems
What This Skill Provides
Core Capabilities
Pipeline Architecture
- End-to-end workflow design
- DAG orchestration patterns (Airflow, Dagster, Kubeflow)
- Component dependencies and data flow
- Error handling and retry strategies
Data Preparation
- Data validation and quality checks
- Feature engineering pipelines
- Data versioning and lineage
- Train/validation/test splitting strategies
Model Training
- Training job orchestration
- Hyperparameter management
- Experiment tracking integration
- Distributed training patterns
Model Validation
- Validation frameworks and metrics
- A/B testing infrastructure
- Performance regression detection
- Model comparison workflows
Deployment Automation
- Model serving patterns
- Canary deployments
- Blue-green deployment strategies
- Rollback mechanisms
Reference Documentation
See the references/ directory for detailed guides:
- data-preparation.md - Data cleaning, validation, and feature engineering
- model-training.md - Training workflows and best practices
- model-validation.md - Validation strategies and metrics
- model-deployment.md - Deployment patterns and serving architectures
Assets and Templates
The assets/ directory contains:
- pipeline-dag.yaml.template - DAG template for workflow orchestration
- training-config.yaml - Training configuration template
- validation-checklist.md - Pre-deployment validation checklist
Usage Patterns
Basic Pipeline Setup
# 1. Define pipeline stages
stages = [
"data_ingestion",
"data_validation",
"feature_engineering",
"model_training",
"model_validation",
"model_deployment"
]
# 2. Configure dependencies
# See assets/pipeline-dag.yaml.template for full example
Production Workflow
Data Preparation Phase
- Ingest raw data from sources
- Run data quality checks
- Apply feature transformations
- Version processed datasets
Training Phase
- Load versioned training data
- Execute training jobs
- Track experiments and metrics
- Save trained models
Validation Phase
- Run validation test suite
- Compare against baseline
- Generate performance reports
- Approve for deployment
Deployment Phase
- Package model artifacts
- Deploy to serving infrastructure
- Configure monitoring
- Validate production traffic
Best Practices
Pipeline Design
- Modularity: Each stage should be independently testable
- Idempotency: Re-running stages should be safe
- Observability: Log metrics at every stage
- Versioning: Track data, code, and model versions
- Failure Handling: Implement retry logic and alerting
Data Management
- Use data validation libraries (Great Expectations, TFX)
- Version datasets with DVC or similar tools
- Document feature engineering transformations
- Maintain data lineage tracking
Model Operations
- Separate training and serving infrastructure
- Use model registries (MLflow, Weights & Biases)
- Implement gradual rollouts for new models
- Monitor model performance drift
- Maintain rollback capabilities
Deployment Strategies
- Start with shadow deployments
- Use canary releases for validation
- Implement A/B testing infrastructure
- Set up automated rollback triggers
- Monitor latency and throughput
Integration Points
Orchestration Tools
- Apache Airflow: DAG-based workflow orchestration
- Dagster: Asset-based pipeline orchestration
- Kubeflow Pipelines: Kubernetes-native ML workflows
- Prefect: Modern dataflow automation
Experiment Tracking
- MLflow for experiment tracking and model registry
- Weights & Biases for visualization and collaboration
- TensorBoard for training metrics
Deployment Platforms
- AWS SageMaker for managed ML infrastructure
- Google Vertex AI for GCP deploymen
1---2name: ml-pipeline-workflow3description: Complete end-to-end MLOps pipeline orchestration from data preparation through model deployment. 4category: Document Processing5source: antigravity6tags: [python, ai, automation, workflow, template, design, document, kubernetes, aws, gcp]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/ml-pipeline-workflow8metadata:9 source: https://skillmd.com/skills/sickn33/ml-pipeline-workflow10---111213# ML Pipeline Workflow1415Complete end-to-end MLOps pipeline orchestration from data preparation through model deployment.1617## Do not use this skill when1819- The task is unrelated to ml pipeline workflow20- You need a different domain or tool outside this scope2122## Instructions2324- Clarify goals, constraints, and required inputs.25- Apply relevant best practices and validate outcomes.26- Provide actionable steps and verification.27- If detailed examples are required, open `resources/implementation-playbook.md`.2829## Overview3031This skill provides comprehensive guidance for building production ML pipelines that handle the full lifecycle: data ingestion → preparation → training → validation → deployment → monitoring.3233## Use this skill when3435- Building new ML pipelines from scratch36- Designing workflow orchestration for ML systems37- Implementing data → model → deployment automation38- Setting up reproducible training workflows39- Creating DAG-based ML orchestration40- Integrating ML components into production systems4142## What This Skill Provides4344### Core Capabilities45461. **Pipeline Architecture**47 - End-to-end workflow design48 - DAG orchestration patterns (Airflow, Dagster, Kubeflow)49 - Component dependencies and data flow50 - Error handling and retry strategies51522. **Data Preparation**53 - Data validation and quality checks54 - Feature engineering pipelines55 - Data versioning and lineage56 - Train/validation/test splitting strategies57583. **Model Training**59 - Training job orchestration60 - Hyperparameter management61 - Experiment tracking integration62 - Distributed training patterns63644. **Model Validation**65 - Validation frameworks and metrics66 - A/B testing infrastructure67 - Performance regression detection68 - Model comparison workflows69705. **Deployment Automation**71 - Model serving patterns72 - Canary deployments73 - Blue-green deployment strategies74 - Rollback mechanisms7576### Reference Documentation7778See the `references/` directory for detailed guides:79- **data-preparation.md** - Data cleaning, validation, and feature engineering80- **model-training.md** - Training workflows and best practices81- **model-validation.md** - Validation strategies and metrics82- **model-deployment.md** - Deployment patterns and serving architectures8384### Assets and Templates8586The `assets/` directory contains:87- **pipeline-dag.yaml.template** - DAG template for workflow orchestration88- **training-config.yaml** - Training configuration template89- **validation-checklist.md** - Pre-deployment validation checklist9091## Usage Patterns9293### Basic Pipeline Setup9495```python96# 1. Define pipeline stages97stages = [98 "data_ingestion",99 "data_validation",100 "feature_engineering",101 "model_training",102 "model_validation",103 "model_deployment"104]105106# 2. Configure dependencies107# See assets/pipeline-dag.yaml.template for full example108```109110### Production Workflow1111121. **Data Preparation Phase**113 - Ingest raw data from sources114 - Run data quality checks115 - Apply feature transformations116 - Version processed datasets1171182. **Training Phase**119 - Load versioned training data120 - Execute training jobs121 - Track experiments and metrics122 - Save trained models1231243. **Validation Phase**125 - Run validation test suite126 - Compare against baseline127 - Generate performance reports128 - Approve for deployment1291304. **Deployment Phase**131 - Package model artifacts132 - Deploy to serving infrastructure133 - Configure monitoring134 - Validate production traffic135136## Best Practices137138### Pipeline Design139140- **Modularity**: Each stage should be independently testable141- **Idempotency**: Re-running stages should be safe142- **Observability**: Log metrics at every stage143- **Versioning**: Track data, code, and model versions144- **Failure Handling**: Implement retry logic and alerting145146### Data Management147148- Use data validation libraries (Great Expectations, TFX)149- Version datasets with DVC or similar tools150- Document feature engineering transformations151- Maintain data lineage tracking152153### Model Operations154155- Separate training and serving infrastructure156- Use model registries (MLflow, Weights & Biases)157- Implement gradual rollouts for new models158- Monitor model performance drift159- Maintain rollback capabilities160161### Deployment Strategies162163- Start with shadow deployments164- Use canary releases for validation165- Implement A/B testing infrastructure166- Set up automated rollback triggers167- Monitor latency and throughput168169## Integration Points170171### Orchestration Tools172173- **Apache Airflow**: DAG-based workflow orchestration174- **Dagster**: Asset-based pipeline orchestration175- **Kubeflow Pipelines**: Kubernetes-native ML workflows176- **Prefect**: Modern dataflow automation177178### Experiment Tracking179180- MLflow for experiment tracking and model registry181- Weights & Biases for visualization and collaboration182- TensorBoard for training metrics183184### Deployment Platforms185186- AWS SageMaker for managed ML infrastructure187- Google Vertex AI for GCP deploymen