ml-engineer

ml-engineer is an agent for Claude Code from morganmuli/metaskill. It costs 81 tokens per session (2,217 once invoked), scanned A, a copy of ml-engineer, MIT.

A machine-learning engineering agent for building and evaluating PyTorch models. PyTorch is a library for creating and training machine-learning systems.

In plain words
What is it for?
Use it for neural-network architectures, training loops, mixed-precision training, hyperparameter searches, experiment tracking, and model evaluation.
Why use it?
It provides specialized guidance for model design, training, tuning, experiment tracking, and evaluation instead of treating these tasks as ordinary application code.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

Good fit Use it for neural-network architectures, training loops, mixed-precision training, hyperparameter searches, experiment tracking, and model evaluation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/morganmuli/metaskill/ml-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/morganmuli/metaskill

Made for: Claude Code.

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 ml-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/morganmuli/metaskill/ml-engineer/github.svg)](https://agentmods.dev/agents/morganmuli/metaskill/ml-engineer)
Your own site
<a href="https://agentmods.dev/agents/morganmuli/metaskill/ml-engineer"><img src="https://agentmods.dev/badge/agents/morganmuli/metaskill/ml-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ml-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/morganmuli/metaskill/ml-engineer"><img src="https://agentmods.dev/badge/agents/morganmuli/metaskill/ml-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,217 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00081 $0.02217
Opus 5.5 $0.00032 $0.00887
Sonnet 5.5 $0.00016 $0.00443
Haiku 4.5 $0.00008 $0.00222

Measured 1mo ago against content hash 78eb1d933eb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ml-engineer 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 1mo 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.

Origin

This is a copy

100% identical to ml-engineer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

examples/data-science/.claude/agents/ml-engineer.md · 210 lines

How it starts

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

You are a senior machine learning engineer specializing in PyTorch-based model development. You have extensive experience building, training, and deploying models across domains -- computer vision (CNNs, Vision Transformers), NLP (Transformers, BERT, GPT-style models), tabular data (embeddings + MLPs), and time series. You write production-quality training infrastructure that is reproducible, efficient, and well-instrumented.

Core Competencies

PyTorch Model Architecture

  • Design models as modular nn.Module subclasses with clear forward signatures
  • Use @dataclass or Pydantic BaseModel for model configuration -- never pass raw dicts
  • Implement proper weight initialization (Xavier/Glorot for linear layers, Kaiming for ReLU networks)
  • Use nn.Sequential, nn.ModuleList, and nn.ModuleDict for dynamic architectures
  • For transformer-based models, leverage torch.nn.TransformerEncoder or Hugging Face transformers when appropriate
  • For CNNs, build on torchvision backbones (resnet, efficientnet) with custom heads
  • Always define the forward pass with explicit type annotations for tensor shapes in comments

Training Loops

  • Build training loops with the following components:
    • Epoch loop with train/validation phases
    • Gradient accumulation for effective batch sizes larger than GPU memory allows
    • Mixed-precision training via torch.amp.autocast and torch.amp.GradScaler
    • Gradient clipping via torch.nn.utils.clip_grad_norm_
    • Learning rate scheduling (cosine annealing, linear warmup, ReduceLROnPlateau)
    • Early stopping based on validation metric with configurable patience
    • Periodic checkpointing (save model state, optimizer state, scheduler state, epoch, best metric)
    • Progress logging with loss, metrics, learning rate, and throughput (samples/sec)
  • Use torch.utils.data.DataLoader with num_workers > 0, pin_memory=True, and persistent_workers=True for GPU training
  • Set torch.backends.cudnn.benchmark = True for fixed input sizes

Read the full file on GitHub · 210 lines

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. 1mo ago First seen · 210 lines · 81 tokens per session scan A 78eb1d933eb3

Subscribe to this mod's changes

ml-engineer is an agent published in the GitHub repository morganmuli/metaskill (1 stars, last pushed 4d ago), licensed MIT. It adds 81 tokens to every session and 2,217 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to ml-engineer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

data-engineer

Use this agent when working with data ingestion, ETL pipelines, data validation, preprocessing, schema design, or data storage. For example: building a data loading pipeline from CSV/Parquet, adding pandera schema validation, creating preprocessing transforms, setting up DVC for data versioning, optimizing data…

xvirobotics/metaskill · 76 tokens

ml-engineer

Use this agent when working with model architecture, training loops, loss functions, optimizers, hyperparameter tuning, experiment tracking, or model evaluation. For example: building a PyTorch model, writing a training loop with mixed precision, setting up an Optuna hyperparameter sweep, configuring MLflow experiment…

xvirobotics/metaskill · 81 tokens

staff-data-sci

Personas are Opus-only. The Data Science Reviewer: data science, ML, and statistics review.

dbc-oduffy/coordinator-claude · 26 tokens

ml-analytics-ml-training-engineer

Machine Learning training engineer specializing in MLE.3 process. Trains ML models, optimizes hyperparameters, and documents training process.

birol91/quorum-agents · 36 tokens

mle-reviewer

Production machine-learning engineering reviewer for data contracts, feature pipelines, training reproducibility, offline/online evaluation, model serving, monitoring, and rollback. Use when ML, MLOps, model training, inference, feature store, or evaluation code changes.

affaan-m/ECC · 55 tokens

Architekt aplikacji LLM

Inżynier AI buduje aplikacje oparte o duże modele jezykowe: systemy RAG, asystentów, pipeline promptów i integracje z API modeli. Nie trenuje modeli od zera - składa działające systemy z gotowych komponentów i pilnuje trzech rzeczy naraz: kosztu, latencji i jakości. Każde twierdzenie o jakości popiera ewaluacja, nie…

TheJacksonCode/Agent-Architecture · 103 tokens