Edit
omegaml/omegaml
how to use the edit command properly
Train ML models with scikit-learn, PyTorch, TensorFlow. An agent skill from secondsky/claude-skills.
$ npx skills add secondsky/claude-skills --skill ml-model-training -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install secondsky/claude-skills ml-model-training --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .claude/skills/ml-model-training && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .claude/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-trainingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add secondsky/claude-skills --skill ml-model-training -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install secondsky/claude-skills ml-model-training --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .agents/skills/ml-model-training && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .agents/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add secondsky/claude-skills --skill ml-model-training -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install secondsky/claude-skills ml-model-training --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .cursor/skills/ml-model-training && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .cursor/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/secondsky/claude-skills.git --path plugins/ml-model-training/skills/ml-model-training--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add secondsky/claude-skills --skill ml-model-training -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install secondsky/claude-skills ml-model-training --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .gemini/skills/ml-model-training && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .gemini/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install secondsky/claude-skills ml-model-trainingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add secondsky/claude-skills --skill ml-model-training -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .github/skills/ml-model-training && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .github/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add secondsky/claude-skills --skill ml-model-training -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install secondsky/claude-skills ml-model-training --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/secondsky/claude-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/ml-model-training/skills/ml-model-training .opencode/skills/ml-model-training && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ml-model-training" agent skill from https://github.com/secondsky/claude-skills/tree/main/plugins/ml-model-training/skills/ml-model-training into .opencode/skills/ml-model-training/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ml-model-training", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ml-model-trainingTrain ML models with scikit-learn, PyTorch, TensorFlow. An agent skill from secondsky/claude-skills.
ML Model Training is an agent skill from secondsky/claude-skills. Train ML models with scikit-learn, PyTorch, TensorFlow. Use for classification/regression, neural networks, hyperparameter tuning, or encountering overfitting, underfitting, convergence issues.
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/pytorch-training.md` and `references/tensorflow-keras.md`).
It sits in Data & Analytics, covering Machine learning and Deep learning. It works with PyTorch, TensorFlow and scikit-learn. The repository describes itself as: Production-ready skills for Claude Code CLI - Cloudflare, React, Tailwind v4, and AI integrations. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8837836. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
ML Model Training loads about 1.7k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 53 tokens; SKILL.md has 332 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from secondsky/claude-skills at commit 8837836, republished under its MIT licence (© secondsky). 332 words, ~1,731 tokens.
.claude/skills/ml-model-training/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Train machine learning models with proper data handling and evaluation.
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler, LabelEncoder
# Load and clean data
df = pd.read_csv('data.csv')
df = df.dropna()
# Encode categorical variables
le = LabelEncoder()
df['category'] = le.fit_transform(df['category'])
# Split data (70/15/15)
X = df.drop('target', axis=1)
y = df['target']
X_train, X_temp, y_train, y_temp = train_test_split(X, y, test_size=0.3)
X_val, X_test, y_val, y_test = train_test_split(X_temp, y_temp, test_size=0.5)
# Scale features
scaler = StandardScaler()
X_train = scaler.fit_transform(X_train)
X_val = scaler.transform(X_val)
X_test = scaler.transform(X_test)from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import classification_report, accuracy_score
model = RandomForestClassifier(n_estimators=100, random_state=42)
model.fit(X_train, y_train)
y_pred = model.predict(X_val)
print(classification_report(y_val, y_pred))import torch
import torch.nn as nn
class Model(nn.Module):
def __init__(self, input_dim):
super().__init__()
self.layers = nn.Sequential(
nn.Linear(input_dim, 64),
nn.ReLU(),
nn.Dropout(0.3),
nn.Linear(64, 32),
nn.ReLU(),
nn.Linear(32, 1),
nn.Sigmoid()
)
def forward(self, x):
return self.layers(x)
model = Model(X_train.shape[1])
optimizer = torch.optim.Adam(model.parameters(), lr=0.001)
criterion = nn.BCELoss()
for epoch in range(100):
model.train()
optimizer.zero_grad()
output = model(X_train_tensor)
loss = criterion(output, y_train_tensor)
loss.backward()
optimizer.step()| Task | Metrics |
|---|---|
| Classification | Accuracy, Precision, Recall, F1, AUC-ROC |
| Regression | MSE, RMSE, MAE, R² |
PyTorch: See references/pytorch-training.md for complete training with:
TensorFlow/Keras: See references/tensorflow-keras.md for:
Do:
Don't:
Problem: Scaling or transforming data before splitting leads to test set information leaking into training.
Solution: Always split data first, then fit transformers only on training data:
# ✅ Correct: Fit on train, transform train/val/test
scaler = StandardScaler()
X_train = scaler.fit_transform(X_train)
X_val = scaler.transform(X_val) # Only transform
X_test = scaler.transform(X_test) # Only transform
# ❌ Wrong: Fitting on all data
X_all = scaler.fit_transform(X) # Leaks test info!Problem: Training on imbalanced datasets (e.g., 95% class A, 5% class B) leads to models that predict only the majority class.
Solution: Use class weights or resampling:
from sklearn.utils.class_weight import compute_class_weight
# Compute class weights
class_weights = compute_class_weight('balanced', classes=np.unique(y_train), y=y_train)
model = RandomForestClassifier(class_weight='balanced')
# Or use SMOTE for oversampling minority class
from imblearn.over_sampling import SMOTE
smote = SMOTE()
X_resampled, y_resampled = smote.fit_resample(X_train, y_train)Problem: Complex models memorize training data, perform poorly on validation/test sets.
Solution: Add regularization techniques:
# Dropout in PyTorch
nn.Dropout(0.3)
# L2 regularization in scikit-learn
RandomForestClassifier(max_depth=10, min_samples_split=20)
# Early stopping in Keras
from tensorflow.keras.callbacks import EarlyStopping
early_stop = EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True)
model.fit(X_train, y_train, validation_data=(X_val, y_val), callbacks=[early_stop])Problem: Results are not reproducible across runs, making debugging and comparison impossible.
Solution: Set all random seeds:
import random
import numpy as np
import torch
random.seed(42)
np.random.seed(42)
torch.manual_seed(42)
if torch.cuda.is_available():
torch.cuda.manual_seed_all(42)Problem: Optimizing hyperparameters on test set leads to overfitting to test data.
Solution: Use validation set for tuning, test set only for final evaluation:
from sklearn.model_selection import GridSearchCV
# ✅ Correct: Tune on train+val, evaluate on test
param_grid = {'n_estimators': [50, 100, 200], 'max_depth': [5, 10, 15]}
grid_search = GridSearchCV(RandomForestClassifier(), param_grid, cv=5)
grid_search.fit(X_train, y_train) # Cross-validation on training set
best_model = grid_search.best_estimator_
# Final evaluation on held-out test set
final_score = best_model.score(X_test, y_test)Load reference files when you need:
references/pytorch-training.md for complete training loops with early stopping, learning rate scheduling, and checkpointingreferences/tensorflow-keras.md for callback usage, custom training loops, and mobile deployment with TFLite© secondsky, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in plugins/ml-model-training/skills/ml-model-training of secondsky/claude-skills.
Open the folder on GitHubat commit 8837836
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in secondsky/claude-skills, which our catalogue first saw on October 7, 2026.
ML Model Training next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| ML Model Training this skillsecondsky/claude-skills | 227 | 1 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Editomegaml/omegaml | 107 | — | ~206 | Automated safety check: Pass | Apache-2.0 | |
| ML EngineerRightNow-AI/openfang | 18k | — | ~987 | Automated safety check: Pass | Apache-2.0 | |
| Umap Learnjaechang-hits/SciAgent-Skills | 370 | — | ~4.7k | Automated safety check: Pass | BSD-3-Clause | |
| Databricks ML Trainingdatabricks/databricks-agent-skills | 345 | — | ~4.6k | Automated safety check: Pass | Custom licence | |
| Scikit Learn Machine Learningjaechang-hits/SciAgent-Skills | 370 | 1 repos | ~4k | Automated safety check: Pass | BSD-3-Clause |
omegaml/omegaml
how to use the edit command properly
RightNow-AI/openfang
Machine learning engineer expert for PyTorch, scikit-learn, model evaluation, and MLOps
jaechang-hits/SciAgent-Skills
UMAP dimensionality reduction for visualization, clustering prep, and feature engineering.
databricks/databricks-agent-skills
Train ML models on Databricks. An agent skill from databricks/databricks-agent-skills.
jaechang-hits/SciAgent-Skills
Classical ML in Python: classification, regression, clustering, dim reduction, evaluation, tuning, preprocessing pipelines.
ericrisco/rsc-harness
A skill your agent uses when predicting a column from rows of tabular features with classic models — scikit-learn pipelines, RandomForest, XGBoost/LightGBM, leak-free cross-validation, metrics for…
secondsky/claude-skills
TanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama.
secondsky/claude-skills
AutoAnimate (@formkit/auto-animate) zero-config animations for React.
secondsky/claude-skills
MUI Base UI unstyled React components with Floating UI. An agent skill from secondsky/claude-skills.
secondsky/claude-skills
This skill should be used when the user asks to "upload images to Cloudflare", "implement direct creator upload", "configure image transformations", "optimize WebP/AVIF", "create image variants"…
secondsky/claude-skills
Deploy Next.js to Cloudflare Workers via the OpenNext adapter (@opennextjs/cloudflare).
secondsky/claude-skills
Cloudflare Sandboxes SDK for secure code execution in Linux containers at edge.
Works with
Categories
Train ML models with scikit-learn, PyTorch, TensorFlow. An agent skill from secondsky/claude-skills. ML Model Training is an agent skill from secondsky/claude-skills. Train ML models with scikit-learn, PyTorch, TensorFlow.
ML Model Training fits situations like: classification/regression; neural networks; hyperparameter tuning; encountering overfitting.
Run `npx skills add secondsky/claude-skills --skill ml-model-training -a claude-code`. Or copy the skill folder (plugins/ml-model-training/skills/ml-model-training in secondsky/claude-skills) into .claude/skills/ml-model-training in your project. Claude Code loads it when a task matches its description.
Run `npx skills add secondsky/claude-skills --skill ml-model-training -a codex`. Or copy the skill folder (plugins/ml-model-training/skills/ml-model-training in secondsky/claude-skills) into .agents/skills/ml-model-training in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add secondsky/claude-skills --skill ml-model-training -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ml-model-training, .gemini/skills/ml-model-training, .github/skills/ml-model-training and .opencode/skills/ml-model-training in your project.
SKILL.md names no scripts, command-line tools or credentials: ML Model Training is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
ML Model Training is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with ML Model Training: Edit (omegaml/omegaml, 107 stars), ML Engineer (RightNow-AI/openfang, 18k stars), Umap Learn (jaechang-hits/SciAgent-Skills, 370 stars) and Databricks ML Training (databricks/databricks-agent-skills, 345 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
secondsky (a GitHub user) maintains it in secondsky/claude-skills, which has 227 GitHub stars. The repository holds 169 skills in this directory. The repository was last updated on September 28, 2026.
Source: secondsky/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.