mle-workflow

mle-workflow is a skill for Claude Code, Codex from chandrudp29/skillhub. It costs 39 tokens per session (1,636 once invoked), scanned A, original, MIT.

A workflow for turning machine-learning experiments into repeatable software systems. It covers the data used for training, model evaluation, deployment and monitoring.

In plain words
What is it for?
Use it to define data rules, convert notebooks into training pipelines, set evaluation checks, deploy models, plan rollbacks and monitor model behavior.
Why use it?
It helps prevent problems such as inconsistent training data, changes in real-world data, and differences between training and production results.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chandrudp29/skillhub/mle-workflow
Any agent
npx skills add chandrudp29/skillhub --skill mle-workflow
Clone the repo
git clone --depth 1 https://github.com/chandrudp29/skillhub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mle-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/chandrudp29/skillhub/mle-workflow.svg)](https://agentmods.dev/skills/chandrudp29/skillhub/mle-workflow)
Your own site
<a href="https://agentmods.dev/skills/chandrudp29/skillhub/mle-workflow"><img src="https://agentmods.dev/badge/skills/chandrudp29/skillhub/mle-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00039 $0.01636
Opus 5 $0.00019 $0.00818
Sonnet 5 $0.00008 $0.00327
Haiku 4.5 $0.00004 $0.00164

Measured 5d ago against content hash 21e50f1068d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mle-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mle-workflow/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ML Engineering Workflow

Turns model work into production ML systems. Use only the stages that match your system — don't force heavyweight MLOps onto a simple classifier.

When to Use

  • Building a production ML feature (classifier, ranker, embeddings, LLM pipeline)
  • Converting notebook code into a reproducible training pipeline
  • Designing evaluation criteria before training starts
  • Debugging data drift, stale features, or training/serving skew
  • Planning model deployment and rollback

Stage 1 — Data Contract

Define before writing code. Everything downstream depends on this.

# data_contract.py
from dataclasses import dataclass
from typing import Optional

@dataclass
class TrainingExample:
    text: str                    # input feature
    label: str                   # target: "positive" | "negative" | "neutral"
    source: str                  # where this came from
    created_at: str              # ISO 8601 timestamp
    metadata: Optional[dict] = None

# Constraints (validate in data loader, not model)
LABEL_SET = {"positive", "negative", "neutral"}
MAX_TEXT_TOKENS = 512
MIN_EXAMPLES_PER_LABEL = 100

Document: feature schema, label definitions (with examples of edge cases), known data quality issues, train/val/test split strategy, and class balance.

Gate: do not proceed until you have ≥ MIN_EXAMPLES_PER_LABEL for every label.

Stage 2 — Baseline First

Before trying a complex model, establish a baseline you can beat:

  • Rule-based: keyword matching, regex, heuristics
  • Classical ML: TF-IDF + logistic regression, or fastText
  • Pretrained zero-shot: test the LLM without fine-tuning first

Baselines are not just warm-ups. They define the performance floor and often expose that a simpler model is good enough.

from sklearn.linear_model import LogisticRegression
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.pipeline import Pipeline
from sklearn.metrics import classification_report

baseline = Pipeline([
    ("tfidf", TfidfVectorizer(max_features=10_000)),
    ("clf", LogisticRegression(max_iter=1000))
])
baseline.fit(X_train, y_train)
print(classification_report(y_test, baseline.predict(X_test)))

Read the full file on GitHub · 207 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 207 lines · 39 tokens per session scan A 21e50f1068d4

Subscribe to this mod's changes

mle-workflow is a skill published in the GitHub repository chandrudp29/skillhub (13 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 1,636 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.