mle-workflow
它能做什么
这个工具可以帮你把 AI 项目打造成稳健可靠的系统。它能确保使用的数据前后一致、模型训练可以重复进行,并且在投入使用前检查模型的质量。
适用场景
- ✓当你规划一个要投入生产环境的 AI 系统时。
- ✓当你要把 AI 代码从实验阶段改造成可以反复使用的系统时。
- ✓当你要检查 AI 系统是否正常工作,并且在出现问题时能够回滚时。
技能链接
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/mle-workflow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“怎样把我在 Notebook 里写的 AI 代码改造成可重复训练和评估的系统?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会引导你完成一系列步骤,先定义数据和模型应该如何运行(即数据契约)。它还会帮你设置测试,确保模型表现良好,并规划部署和监控方案。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Machine Learning Engineering Workflow
Use this skill to turn model work into a production ML system with clear data contracts, repeatable training, measurable quality gates, deployable artifacts, and operational monitoring.
When to Activate
- Planning or reviewing a production ML feature, model refresh, ranking system, recommender, classifier, embedding workflow, or forecasting pipeline
- Converting notebook code into a reusable training, evaluation, batch inference, or online inference pipeline
- Designing model promotion criteria, offline/online evals, experiment tracking, or rollback paths
- Debugging failures caused by data drift, label leakage, stale features, artifact mismatch, or inconsistent training and serving logic
- Adding model monitoring, canary rollout, shadow traffic, or post-deploy quality checks
Scope Calibration
Use only the lanes that fit the system in front of you. This skill is useful for ranking, search, recommendations, classifiers, forecasting, embeddings, LLM workflows, anomaly detection, and batch analytics, but it should not force one architecture onto all of them.
- Do not assume every model has supervised labels, online serving, a feature store, PyTorch, GPUs, human review, A/B tests, or real-time feedback.
- Do not add heavyweight MLOps machinery when a data contract, baseline, eval script, and rollback note would make the change reviewable.
- Do make assumptions explicit when the project lacks labels, delayed outcomes, slice definitions, production traffic, or monitoring ownership.
- Treat examples as interchangeable scaffolds. Replace metrics, serving mode, data stores, and rollout mechanics with the project-native equivalents.
Related Skills
python-patternsandpython-testingfor Python implementation and pytest coveragepytorch-patternsfor deep learning models, data loaders, device handling, and training loopseval-harnessandai-regression-testingfor promotion gates and agent-assisted regression checksdatabase-migrations,postgres-patterns, andclickhouse-iofor data storage and analytics surfacesdeployment-patterns,docker-patterns, andsecurity-reviewfor serving, secrets, containers, and production hardening
Reuse the SWE Surface
Do not treat MLE as separate from software engineering. Most ECC SWE workflows apply directly to ML systems, often with stricter failure modes:
The recommended minimal --with capability:machine-learning install keeps the core agent surface available alongside this skill. For skill-only or agent-limited harnesses, pair skill:mle-workflow with agent:mle-reviewer where the target supports agents.
| SWE surface | MLE use |
|---|---|
product-capability / architecture-decision-records |
Turn model work into explicit product contracts and record irreversible data, model, and rollout choices |
repo-scan / codebase-onboarding / code-tour |
Find existing training, feature, serving, eval, and monitoring paths before introducing a parallel ML stack |
plan / feature-dev |
Scope model changes as product capabilities with data, eval, serving, and rollback phases |
tdd-workflow / python-testing |
Test feature transforms, split logic, metric calculations, artifact loading, and inference schemas before implementation |
code-reviewer / mle-reviewer |
Review code quality plus ML-specific leakage, reproducibility, promotion, and monitoring risks |
build-fix / pr-test-analyzer |
Diagnose broken CI, flaky evals, missing fixtures, and environment-specific model or dependency failures |
quality-gate / test-coverage |
Require automated evidence for transforms, metrics, inference contracts, promotion gates, and rollback behavior |
eval-harness / verification-loop |
Turn offline metrics, slice checks, latency budgets, and rollback drills into repeatable gates |
ai-regression-testing |
Preserve every production bug as a regression: missing feature, stale label, bad artifact, schema drift, or serving mismatch |
api-design / backend-patterns |
Design prediction APIs, batch jobs, idempotent retraining endpoints, and response envelopes |
database-migrations / postgres-patterns / clickhouse-io |
Version labels, feature snapshots, prediction logs, experiment metrics, and drift analytics |
deployment-patterns / docker-patterns |
Package reproducible training and serving images with health checks, resource limits, and rollback |
…
常见问题
使用这个工具需要会编程吗?
你不需要是经验丰富的程序员。这个工具会一步步引导你完成整个过程,即使你不了解具体的编程细节也可以使用。
什么是“数据契约”?
数据契约就像一套规则,确保进出 AI 系统的数据始终符合预期格式,从而避免意外错误。
“可复现”是什么意思?
可复现是指你可以重复 AI 模型的训练过程,并得到完全相同的结果,从而保证结果的一致性和可靠性。
详情
作者的原始描述
Production machine-learning engineering workflow for data contracts, reproducible training, model evaluation, deployment, monitoring, and rollback. Use when building, reviewing, or hardening ML systems beyond one-off notebooks.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #209
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。