agentleFS
mxslrmxslr/mlcraft/skills/ml-research-methodology/SKILL.md

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.

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
  1. Very specific:

    Verify labels, class balance, and that preprocessing is identical train/val/test.

    line 25
  2. Distinctive:

    If the task has no matching row (for example simulation or robotics control stacks, optimization and operations research, or other niche …

    line 49
  3. Distinctive:

    Evidence before claims: Only report a result after running it and seeing the output.

    line 68
  4. Distinctive:

    YAGNI on complexity: Add a fancy component only after a fair baseline shows it is needed.

    line 70

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 signalDomain skill
image classify / detect / segment / faces / vehicles / objects / OCR / posedomain-computer-vision
medical scan: tumor, cancer, MRI, CT, X-ray, mammogram, histopathology, retinadomain-medical-imaging
text, sentiment, NER, QA, summarization, chatbot, RAG, embeddings, fine-tune LLMdomain-nlp-llm
structured/CSV: churn, fraud, price, risk, credit scoringdomain-tabular
forecasting, sensor/finance/demand over time, anomaly-in-timedomain-time-series
audio, speech to text, ASR, sound classification, speaker, keyword spottingdomain-audio-speech
recommendation, ranking, collaborative filtering, next-item, personalizationdomain-recommender
generate images, text-to-image, diffusion, GAN, image editing, super-resolutiondomain-generative
reinforcement learning, control, robotics, policy, reward, banditsdomain-reinforcement-learning
graph, GNN, node classification, link prediction, molecules, networksdomain-graph
vision-language, CLIP, VQA, image captioning, multimodal, zero-shot imagedomain-multimodal
video, action recognition, activity, temporal action detectiondomain-video
3D, point cloud, LiDAR, mesh, depth, 3D detection or segmentationdomain-3d
anomaly, outlier, defect, novelty, intrusion, predictive maintenancedomain-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.

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.