ecc-mle-workflow

Reviews and plans production ML systems with data contracts, promotion gates, and monitoring.

Updated Apr 18, 2025
One-click install
npx skills add https://github.com/adriancodes/dotfiles --skill ecc-mle-workflow-adriancodes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ecc-mle-workflow
Source: https://github.com/adriancodes/dotfiles/tree/main/dot_agents/skills/ecc-mle-workflow
Command: npx skills add https://github.com/adriancodes/dotfiles --skill ecc-mle-workflow-adriancodes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning notebook experiments into production ML systems often fails due to data leakage, missing baselines, untested serving paths, and absent rollback plans. This Skill provides a structured review and planning workflow covering prediction contracts, data contracts, reproducible training, promotion gates, packaging, and operational monitoring. ## Core Features & Use Cases - Prediction and Data Contracts: Define decision owners, entity grain, label timing, point-in-time joins, and snapshot versioning before writing model code. - Reproducible Pipelines and Promotion Gates: Pin configs, seeds, and dataset versions, then enforce automated metric gates with fail-closed validation. - Error Analysis and Rollout Planning: Cluster mistakes into actionable hypotheses, plan shadow or canary rollouts, and define rollback triggers with named prior artifacts. - Use Case: When converting a churn-prediction notebook into a deployable service, use this Skill to produce a data contract, baseline comparison, promotion gate thresholds, and a monitoring plan covering feature drift and delayed labels. ## Quick Start Ask the assistant to review your ML training pipeline against the MLE workflow checklist and identify gaps in data contracts, evaluation gates, and rollback planning.

Frequently Asked Questions about ecc-mle-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a notebook into a production ML pipeline?▼

Move hyperparameters and paths into typed configs or dataclasses, pin dependencies, set random seeds, and record dataset version, code SHA, and metrics with each artifact. Save preprocessing logic with the model artifact and make every pipeline step idempotent so retries do not corrupt results.

How do I prevent data leakage in ML training?▼

Check every feature against prediction-time availability and remove anything joined using future information. Define label timestamps, feature freshness SLAs, and point-in-time join rules in an explicit data contract before splitting train, validation, and test sets.

What metrics should gate ML model promotion?▼

Choose metrics from failure costs: precision when false positives dominate, recall when missed positives dominate, and AUC when ranking quality matters. Add guardrails for latency, calibration, and slice performance, and always compare against the baseline and current production model.

Does this workflow require PyTorch or a feature store?▼

No. The workflow explicitly avoids assuming supervised labels, online serving, feature stores, PyTorch, GPUs, or A/B tests. It scales from a simple data contract and eval script up to full MLOps machinery depending on the system being reviewed.

Why does my offline metric improve while production quality drops?▼

Common causes include random splits leaking future data, thresholds tuned repeatedly on the test set, and important slices regressing while aggregate metrics rise. Check slice metrics, train-serve transformation equivalence, and feature freshness drift before trusting offline gains.

When should I not add model complexity?▼

Do not add complexity until error analysis shows the baseline fails for a reason that more signal or capacity can plausibly fix. Cluster mistakes first and trace each cluster to better labels, features, thresholds, or product fallbacks.