ai-ml-development — скилл для Claude Code: что делает и как установить
Скилл ai-ml-development для Claude Code и Codex под разработку систем машинного обучения. Подключается при сборке пайплайнов обучения, дообучении LLM и выстраивании RAG-архитектуры.
MIT 167 установок ★ 114 обновлён 2026-11-10
npx skills add travisjneuman/.claude --skill ai-ml-development -a claude-codeЧто делает ai-ml-development
Скилл предоставляет инструкции и шаблоны кода для работы с PyTorch, TensorFlow, JAX и scikit-learn. В базовом файле содержатся готовые заготовки для PyTorch: архитектура свёрточной сети ConvNet, цикл обучения с оптимизатором AdamW и модуль на PyTorch Lightning с логированием метрик.
Основная часть инструкций разбита по отдельным справочным файлам в папке references/. Они охватывают классификацию текста и тюнинг моделей через LoRA в Hugging Face, работу с ChromaDB и Pinecone, реестры моделей MLflow и деплой через FastAPI. Для работы с LLM даны паттерны обращения к API OpenAI и Anthropic Claude, вызов функций, структурированный вывод и рецепты LangChain.
Какие задачи решает
- написать стандартный цикл обучения модели на PyTorch с валидацией
- сконфигурировать дообучение языковой модели через Hugging Face и LoRA
- организовать сервис отдачи модели через FastAPI и логирование в MLflow
- настроить RAG с векторным хранилищем в ChromaDB или Pinecone
Примеры запросов агенту
- Помоги настроить дообучение LLM с помощью LoRA и Hugging Face
- Собери структуру класса PyTorch Lightning для мультиклассовой классификации
- Напиши интеграцию с Claude API для генерации структурированных ответов
Как установить ai-ml-development
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill ai-ml-development -a claude-code2Вручную: положить файлы
~/.claude/skills/ai-ml-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ai-ml-development/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill ai-ml-development -a codex2Вручную: положить файлы
.agents/skills/ai-ml-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill ai-ml-development -a cursor2Вручную: положить файлы
.cursor/skills/ai-ml-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install travisjneuman/.claude skills/ai-ml-development2Вручную: положить файлы
.github/skills/ai-ml-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill ai-ml-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/travisjneuman/.claude --path skills/ai-ml-developmentВручную: положить файлы
.devin/skills/ai-ml-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill ai-ml-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об ai-ml-development
Как установить ai-ml-development в Claude Code?
Выполните команду npx skills add travisjneuman/.claude --skill ai-ml-development -a claude-code в терминале.
Что делает скилл ai-ml-development?
Он задаёт контекст и кодовые шаблоны для проектирования архитектур глубокого обучения, трекинга экспериментов и внедрения языковых моделей.
Где находятся подробные руководства по MLOps и RAG?
Они вынесены в директорию references/ и подгружаются агентом точечно под конкретную задачу.
Исходный текст
SKILL.md · MIT
---
name: ai-ml-development
description: AI and machine learning development with PyTorch, TensorFlow, and LLM integration. Use when building ML models, training pipelines, fine-tuning LLMs, or implementing AI features.
---
# AI & Machine Learning Development
Comprehensive guide for building AI/ML systems from prototyping to production.
## Frameworks Overview
| Framework | Best For | Ecosystem |
| ---------------- | ---------------------- | -------------------------- |
| **PyTorch** | Research, flexibility | Hugging Face, Lightning |
| **TensorFlow** | Production, mobile | TFX, TF Lite, TF.js |
| **JAX** | High-performance, TPUs | Flax, Optax |
| **scikit-learn** | Classical ML | Simple, batteries-included |
---
## PyTorch
### Model Definition
```python
import torch
import torch.nn as nn
import torch.nn.functional as F
class ConvNet(nn.Module):
def __init__(self, num_classes: int = 10):
super().__init__()
self.conv1 = nn.Conv2d(3, 32, kernel_size=3, padding=1)
self.conv2 = nn.Conv2d(32, 64, kernel_size=3, padding=1)
self.pool = nn.MaxPool2d(2, 2)
self.fc1 = nn.Linear(64 * 8 * 8, 256)
self.fc2 = nn.Linear(256, num_classes)
self.dropout = nn.Dropout(0.5)
def forward(self, x: torch.Tensor) -> torch.Tensor:
x = self.pool(F.relu(self.conv1(x)))
x = self.pool(F.relu(self.conv2(x)))
x = x.view(-1, 64 * 8 * 8)
x = F.relu(self.fc1(x))
x = self.dropout(x)
return self.fc2(x)
```
### Training Loop
```python
from torch.utils.data import DataLoader
from torch.optim import AdamW
from tqdm import tqdm
def train_model(
model: nn.Module,
train_loader: DataLoader,
val_loader: DataLoader,
epochs: int = 10,
lr: float = 1e-3,
device: str = "cuda"
) -> dict:
model = model.to(device)
optimizer = AdamW(model.parameters(), lr=lr)
criterion = nn.CrossEntropyLoss()
for epoch in range(epochs):
model.train()
for batch in tqdm(train_loader):
inputs, labels = batch[0].to(device), batch[1].to(device)
optimizer.zero_grad()
outputs = model(inputs)
loss = criterion(outputs, labels)
loss.backward()
optimizer.step()
# Validation
model.eval()
correct = total = 0
with torch.no_grad():
for batch in val_loader:
inputs, labels = batch[0].to(device), batch[1].to(device)
outputs = model(inputs)
_, predicted = outputs.max(1)
total += labels.size(0)
correct += predicted.eq(labels).sum().item()
print(f"Epoch {epoch+1}: Val Acc {100.*correct/total:.2f}%")
```
### PyTorch Lightning
```python
import pytorch_lightning as pl
from torchmetrics import Accuracy
class LitModel(pl.LightningModule):
def __init__(self, model: nn.Module, lr: float = 1e-3):
super().__init__()
self.model = model
self.lr = lr
self.criterion = nn.CrossEntropyLoss()
self.accuracy = Accuracy(task="multiclass", num_classes=10)
def training_step(self, batch, batch_idx):
x, y = batch
logits = self.model(x)
loss = self.criterion(logits, y)
self.log("train_loss", loss)
return loss
def validation_step(self, batch, batch_idx):
x, y = batch
logits = self.model(x)
self.accuracy(logits, y)
self.log("val_acc", self.accuracy)
def configure_optimizers(self):
return AdamW(self.parameters(), lr=self.lr)
```
---
## Reference files
Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this `SKILL.md` (in the full toolkit install, `~/.claude/skills/ai-ml-development/`).
| Topic | File | Covers |
| --- | --- | --- |
| Hugging Face Transformers | [`references/hugging-face-transformers.md`](references/hugging-face-transformers.md) | Text Classification; Fine-Tuning LLMs with LoRA |
| LLM Integration | [`references/llm-integration.md`](references/llm-integration.md) | OpenAI API; Anthropic Claude API; LangChain |
| Vector Databases | [`references/vector-databases.md`](references/vector-databases.md) | Pinecone; ChromaDB (Local) |
| MLOps | [`references/mlops.md`](references/mlops.md) | Model Registry (MLflow); Model Serving (FastAPI) |
| Best Practices | [`references/best-practices.md`](references/best-practices.md) | Training; Deployment |
| LLM Application Development | [`references/llm-application-development.md`](references/llm-application-development.md) | RAG Architecture (Retrieval-Augmented Generation); Vector Databases; Prompt Engineering Patterns; Structured Outputs; Tool Use / Function Calling; Claude API / Anthropic SDK Patterns; and 3 more |
© travisjneuman · MIT · travisjneuman/.claude