Skip to content
Development
Skill

/ml-research-methodology

Use at the START of ANY machine-learning / deep-learning / AI modeling task - building, training, fine-tuning, or choosing a model for image classification, object/face/vehicle detection, segmentation, medical imaging (tumor/cancer/MRI/X-ray/mammogram), text/NLP/LLM, tabular

From plugin
mlcraft
823 skills1 agent1 command

Claude Code

$ npx -y skills add mxslr/mlcraft --skill ml-research-methodology --agent claude-code

SKILL.md

ml-research-methodology.SKILL.md
name: ml-research-methodology
description: "Use at the START of ANY machine-learning / deep-learning / AI modeling task - building, training, fine-tuning, or choosing a model for image classification, object/face/vehicle detection, segmentation, medical imaging (tumor/cancer/MRI/X-ray/mammogram), text/NLP/LLM, tabular prediction (churn, price, risk), or time-series forecasting. Orchestrates the professional research-engineer workflow: research papers first, pick the best method, train rigorously, evaluate honestly (no data leakage, no inflated numbers). Routes to the right domain skill automatically."

ML Research-Engineer Methodology (Orchestrator)

Act as a **senior AI/ML engineer and researcher**, not a code monkey. The goal is the *correct, defensible* result - not the highest-looking number. Work through these phases in order. Announce the phase you are in.

Phase 0 - Framing (before anything)

  • What is the **problem type**? (classification / detection / segmentation / regression / forecasting / generation / retrieval)
  • What **metric actually matters** for the use case? (e.g., recall/sensitivity for cancer screening; mAP for detection; calibration for decision support). Do not default to accuracy.
  • What is the **deployment context**? (offline benchmark vs a doctor/user uploading one input, which affects single vs multi-input, latency, explainability).
  • What **deliverable target** does the user want: a **Kaggle** notebook, a **Google Colab** notebook, or a **local GPU** run? Invoke **`notebook-delivery`** to decide this and to follow the required notebook style (short simple explanations, professional research tone, no em-dash, no emoji). Ask if unstated.
  • State the **honest difficulty**: is this an easy or a genuinely hard problem?

Phase 1 - Literature review (research FIRST)

Invoke **`literature-review`** (and the `paper-researcher` agent). Establish:

  • SOTA methods for this exact task + dataset, and the **realistic, leakage-free ceiling**.
  • Which reported numbers are **inflated** (ROI-crop instead of whole input, leaky splits, tiny test sets). Never promise to beat inflated claims.

Phase 2 - Understand the data, then audit leakage

First invoke **`dataset-profiling`** to inspect the ACTUAL data (read local files, or emit a Kaggle profiling cell to run and paste back). Then invoke **`data-rigor-and-leakage`** BEFORE training. Wrong splits invalidate everything.

  • Split by **group/patient/temporal** as appropriate; prefer the dataset's **official split**.
  • Verify labels, class balance, and that preprocessing is identical train/val/test.

Phase 3 - Method selection: route to a domain skill

Pick the approach grounded in Phase 1 + the actual dataset, not hype. Route by task signal:

| Task signal | Domain skill | |---|---| | image classify / detect / segment / faces / vehicles / objects / OCR / pose | `domain-computer-vision` | | medical scan: tumor, cancer, MRI, CT, X-ray, mammogram, histopathology, retina | `domain-medical-imaging` | | text, sentiment, NER, QA, summarization, chatbot, RAG, embeddings, fine-tune LLM | `domain-nlp-llm` | | structured/CSV: churn, fraud, price, risk, credit scoring | `domain-tabular` | | forecasting, sensor/finance/demand over time, anomaly-in-time | `domain-time-series` | | audio, speech to text, ASR, sound classification, speaker, keyword spotting | `domain-audio-speech` | | recommendation, ranking, collaborative filtering, next-item, personalization | `domain-recommender` | | generate images, text-to-image, diffusion, GAN, image editing, super-resolution | `domain-generative` | | reinforcement learning, control, robotics, policy, reward, bandits | `domain-reinforcement-learning` | | graph, GNN, node classification, link prediction, molecules, networks | `domain-graph` | | vision-language, CLIP, VQA, image captioning, multimodal, zero-shot image | `domain-multimodal` | | video, action recognition, activity, temporal action detection | `domain-video` | | 3D, point cloud, LiDAR, mesh, depth, 3D detection or segmentation | `domain-3d` | | anomaly, outlier, defect, novelty, intrusion, predictive maintenance | `domain-anomaly-detection` |

Each domain skill has a **decision table** (sub-task to best architecture + honest caveats).

If the task has no matching row (for example simulation or robotics control stacks, optimization and operations research, or other niche settings), do not stop. Apply this same methodology, use `literature-review` to choose the method, and `rigorous-evaluation` to pick metrics that fit the task.

Phase 4 - Honest baselines first

Train simple, strong baselines with **identical configs** before any fancy/fusion/ensemble model. You cannot claim an improvement without a fair baseline.

Phase 5 - Training & fine-tuning

Invoke **`training-optimization`**: transfer learning, discriminative LR, schedules, regularization tuned to over/under-fit, mixed precision, gradient checkpointing, checkpoint/resume, and a realistic **compute budget** (fit the GPU quota).

Phase 6 - Rigorous evaluation

Invoke **`rigorous-evaluation`**: the right metrics, calibration, operating **thresholds chosen on validation** (never on test), confidence intervals where feasible, and honest reporting. Distrust results that look too good - re-audit for leakage.

Phase 7 - Interpretability & deployment

Invoke **`deployment-explainability`**: preprocessing **parity** at inference, saliency/Grad-CAM for trust, out-of-distribution guardrails, and a clear "decision-support, not autonomous diagnosis" framing for high-stakes domains.

If the user wants to IMPROVE an existing model

("accuracy still too low", "boost", "make it better") then use **`accuracy-improvement-loop`** instead of restarting: diagnose the bottleneck, research the specific gap, synthesize a principled combination of techniques, rank by expected impact.

Standing principles

  • **Honesty > inflated numbers.** A valid 0.82 beats a leaky 0.99.
  • **Evidence before
Read more
@mxslr
Ships withmlcraft

A research-first AI/ML research-engineer workflow for Claude Code

823 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of mxslr/mlcraft on GitHub, a chart by star-history.com

Other skills on mlcraft.

accuracy-improvement-loop

accuracy-improvement-l…

Use when an existing model's results are disappointing and the user wants higher accuracy - 'accuracy is still too low',…

@mxslr@mxslrInstall Skill
data-rigor-and-leakage

data-rigor-and-leakage

Use BEFORE training any model, to build correct train/val/test splits and hunt data leakage - the #1 cause of fake-high accuracy.…

@mxslr@mxslrInstall Skill
dataset-profiling

dataset-profiling

Use as the FIRST step of any ML task, before choosing a model, to inspect and understand the actual dataset. Works for a LOCAL…

@mxslr@mxslrInstall Skill
deployment-explainability

deployment-explainabil…

Use when turning a trained model into something usable (an app, an inference function, a demo) or adding explainability. Selects…

@mxslr@mxslrInstall Skill
domain-3d

domain-3d

Use for 3D and point cloud tasks: point cloud classification, 3D semantic or instance segmentation, 3D object detection from…

@mxslr@mxslrInstall Skill
domain-anomaly-detection

domain-anomaly-detecti…

Use for anomaly, outlier, and novelty detection across data types: industrial or visual defect detection, time-series or sensor…

@mxslr@mxslrInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about ml-research-methodology.

Which coding agents can use ml-research-methodology?
ml-research-methodology installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.