ml-research-methodology
Skill8 starsChanged 4 months agoMITView on GitHub
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.
In this repository22 other files it gives its agents.
- accuracy-improvement-loopSkill
- data-rigor-and-leakageSkill
- dataset-profilingSkill
- deployment-explainabilitySkill
- domain-3dSkill
- domain-anomaly-detectionSkill
- domain-audio-speechSkill
- domain-computer-visionSkill
- domain-generativeSkill
- domain-graphSkill
- domain-medical-imagingSkill
- domain-multimodalSkill
- domain-nlp-llmSkill
- domain-recommenderSkill
- domain-reinforcement-learningSkill
- domain-tabularSkill
- domain-time-seriesSkill
- domain-videoSkill
- literature-reviewSkill
- notebook-deliverySkill
- rigorous-evaluationSkill
- training-optimizationSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Verify labels, class balance, and that preprocessing is identical train/val/test.
- Distinctive: line 49
If the task has no matching row (for example simulation or robotics control stacks, optimization and operations research, or other niche …
- Distinctive: line 68
Evidence before claims: Only report a result after running it and seeing the output.
- Distinctive: line 70
YAGNI on complexity: Add a fancy component only after a fair baseline shows it is needed.
≈ “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.
Files
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-deliveryto 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 claims. Only report a result after running it and seeing the output.
- Reproducibility. Fixed seeds, versioned configs, saved checkpoints.
- YAGNI on complexity. Add a fancy component only after a fair baseline shows it is needed.
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
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.

