What problem does it solve? Writing a new model training script from scratch is repetitive and error-prone: seeds get forgotten, early stopping is skipped, and artifacts are saved without version metadata. This Skill scaffolds a complete, convention-compliant training script for battery SOH prediction or anomaly detection in one step. ## Core Features & Use Cases - Automatic template selection: Picks the PyTorch template (Adam lr=1e-3, MSELoss, early stopping patience=10) for names like SOHPredictor, or the Isolation Forest template for names like AnomalyDetector. - Reproducibility built in: Sets seed=42 across random, numpy, and torch, and enforces a checklist covering hyperparameters, metric reporting, and data leakage rules. - Versioned artifacts: Saves model weights to models/weights with embedded version metadata, and prints MAE/RMSE with warnings when targets (MAE < 2%, RMSE < 3%) are missed. - Use Case: Run /scaffold-training SOHPredictor to get a ready-to-edit train/train_soh.py that loads preprocessed battery data, trains with early stopping, evaluates, and saves a versioned checkpoint. ## Quick Start Ask the assistant to scaffold a training script for your model, for example by saying: scaffold a training script for SOHPredictor.