ml-reviewer

Analyzes PyTorch, TensorFlow, scikit-learn code for ML/DL defects and risks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/physics91/claude-vibe --skill ml-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ml-reviewer
Source: https://github.com/physics91/claude-vibe/tree/main/skills/ml-reviewer
Command: npx skills add https://github.com/physics91/claude-vibe --skill ml-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reviews machine learning and deep learning codebases for model construction, training loops, data pipelines, GPU utilization, and MLOps practices to prevent common pitfalls and inefficiencies.

Core Features & Use Cases

  • Framework-aware review: checks PyTorch/TensorFlow/Keras patterns and common training pitfalls.
  • Data pipeline checks: validates data loading, preprocessing, and augmentation sanity.
  • Experiment tracking: ensures reproducible experiments and proper logging.
  • GPU optimization: flags non-optimal device usage and memory patterns.
  • Use Case: Improve a training script by catching missing gradient clipping and improper eval mode.

Quick Start

Run the ml-reviewer on a Python project with frameworks declared in requirements.txt or pyproject.toml to get a targeted ML code quality report.

Frequently Asked Questions about ml-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review PyTorch and TensorFlow code for training issues?

Code review for ML frameworks detects architectural problems, training loop errors, and GPU misconfigurations by analyzing PyTorch, TensorFlow, and scikit-learn patterns. ml-reviewer scans model.py, train.py, and dataset.py files alongside requirements.txt or pyproject.toml to identify issues like missing gradient clipping, improper eval mode, and data pipeline problems with severity ratings and remediation steps.

Can I check GPU utilization and memory patterns in my ML training code?

GPU optimization checks flag non-optimal device usage and memory patterns in training scripts. ml-reviewer analyzes code patterns to identify inefficient GPU allocation and suggests corrections to improve performance across PyTorch and TensorFlow implementations.

What MLOps practices does code review catch in ML projects?

MLOps review validates experiment tracking setup, reproducibility practices, and logging configurations. ml-reviewer ensures proper frameworks (PyTorch, TensorFlow, scikit-learn) integration with common signal files and detects misconfigurations in data pipelines, training loops, and experiment management.

Does this work for both research and production ML codebases?

Framework-aware review applies across research and production stages, inspecting model architecture, training patterns, data pipelines, and experiment-tracking practices. ml-reviewer targets both contexts using common file patterns (model.py, train.py, dataset.py) and dependency declarations.

How do I validate data loading and preprocessing in ML pipelines?

Data pipeline checks validate data loading, preprocessing, and augmentation sanity by scanning dataset.py and related patterns. ml-reviewer detects common pitfalls in data handling that impact model training quality and provides structured findings with recommendations.

What file formats and dependencies does ml-reviewer recognize?

ml-reviewer detects frameworks through requirements.txt or pyproject.toml and analyzes model files (.pt, .pth, .h5, .pkl). It performs environment-aware checks on PyTorch, TensorFlow, Keras, and scikit-learn codebases to generate targeted quality reports.