agentleFS
priyanshijanipriyanshijani/data-agents/skills/ml-engineering/SKILL.md

ml-engineering

Skill0 starsChanged 43 days agoMITView on GitHub

Max's ML engineering playbook. Covers problem framing, leakage-safe feature engineering, time-based validation and backtesting, baselines, experiment tracking and model registry with MLflow, per-entity training at scale with Spark applyInPandas, quality gates and fallbacks, explainability, and drift monitoring and retraining. Includes a deep reference on demand and time-series forecasting for sparse or intermittent data. Use for any ML experiment, training pipeline, evaluation or model debugging task.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. stas00/ml-engineering★ 20ksame name
    2. magnus919/agent-skills★ 172same name
    3. irahardianto/awesome-agv★ 157same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep a decision log: ACCEPT / REJECT / INCONCLUSIVE, plus why.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ML Engineering Playbook

NeedOpen
Demand / time-series forecasting (intermittent, sparse, many series)references/forecasting.md
MLflow tracking, registry, per-entity training on Sparkreferences/mlflow-and-scale.md
Metrics, backtesting, leakage checklist, quality gatesreferences/evaluation.md
Drift monitoring, retraining, production lifecyclereferences/monitoring-and-lifecycle.md

Framing template (write this before any code)

Decision:     <what action will someone take with the prediction?>
Target:       <exact definition, unit>        Grain: <one prediction per ...>
Horizon:      <how far ahead>                  Latency: <batch daily / real-time>
Metric:       <primary, tied to business cost>  Secondary: <bias, coverage, ...>
Baseline:     <naive / seasonal naive / majority class / current rule>
Data:         <source tables, history length, known gaps or censoring>
Fallback:     <what is served when the model can't / fails its gate>

Experiment discipline

  1. One hypothesis per experiment, with a success criterion set in advance.
  2. Same data snapshot, split and metric as the baseline, or the comparison is invalid.
  3. Log baseline and candidate side by side. Report by segment, because aggregates hide failures.
  4. Keep a decision log: ACCEPT / REJECT / INCONCLUSIVE, plus why. Dead ends are valuable.

Model choice heuristics

DataStart with
Tabular, mixed typesGradient boosting (LightGBM / XGBoost / CatBoost)
Count targetsGBM with a Poisson or Tweedie objective
Many short or sparse time seriesGlobal GBM across series with lag features, plus classical methods for the sparse tail
Few long, regular seriesETS / ARIMA / Prophet-style models as strong baselines
Text / imagesPretrained embeddings + a simple head before fine-tuning

Deep learning only when the simpler model's gap to the business need is proven and the data volume supports it.

Definition of done (production)

  • Beats the baseline on the primary metric in a rolling backtest, per key segment
  • Quality gate and fallback path implemented and tested
  • Tracked run with params, metrics, data version, code version, signature and input example
  • Registered and served by alias (@champion), not by run path
  • Explainability artifact (SHAP / importance) and a plain-language summary
  • Drift and performance monitoring defined, with a retraining trigger
  • Inference output is audited (_run_id, model_version, predicted_at) and incremental

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.