agentleFS
jthiruveedulajthiruveedula/agentkit/skills/ml-lifecycle/SKILL.md

ml-lifecycle

Skill0 starsChanged 2 months agoMITView on GitHub

Run an ML project from framing and leakage-safe splits through tracking, evaluation, registry, serving and drift monitoring. Use when training or evaluating a model, setting up MLflow/W&B, deploying a model, or when performance dropped.

1 other project uses a version of this.

Adopted by

Most recently taken up by

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:

    Verify: re-run training and serving on a sample and check predictions match.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Lifecycle

Most ML failures are data failures: leakage, bad splits, or a metric that doesn't match the business goal. Guard those first, tune last.

Procedure

  1. Frame the problem. Name the decision the model drives, the metric that reflects it (and its cost asymmetry), and the non-ML baseline to beat (rule, heuristic, last-value). No baseline → nothing to compare.
  2. Split without leakage. Time-based split for anything temporal; group split when entities repeat (users, patients, stores). Fit scalers/encoders/feature stats on train only. Check reference/checklist.md#leakage before trusting any number.
  3. Baseline, then iterate. Simple model (linear/GBM) first, logged. Each experiment logs params, data version, code commit, and metrics to the project's tracker (MLflow/W&B — reuse what exists).
  4. Evaluate for the real decision. Slice metrics by key segments, calibration if probabilities are consumed, and error analysis on the worst slice. A single aggregate number is not an evaluation.
  5. Ship reproducibly. Register the model with its data version, feature schema, and metrics; serving uses the same feature code as training (no train/serve skew). Batch scoring before real-time unless latency needs it. Verify: re-run training and serving on a sample and check predictions match; if they differ, fix the feature code and re-run until they match (max 3 attempts, then report what still fails).
  6. Monitor. Input drift, prediction drift, and — when labels arrive — performance by slice, with an alert threshold and a retrain trigger.
  7. Hand off implementation to the ml-engineer subagent; pipeline plumbing (feature tables, schedules) to pipeline-engineer; data checks to data-quality-engineer.

Reference

  • reference/checklist.md — leakage traps, split strategy table, experiment-logging minimum, deploy and monitoring checklist.

Token economy

  • Inspect data with df.shape, dtypes, describe(), small head(); never print full frames or logs.
  • Summarize runs as a metrics table; open one run only to compare.

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.