Przejdź do treści
Biblioteka skilli
AI i agenci · Budowanie i kod

cortex-model

/cortex-model

Buduje potok ML od danych przez wytrenowany model po endpoint serwujący, na przykład dla klasyfikacji, regresji i potoków predykcyjnych.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje potok ML od danych przez wytrenowany model po endpoint serwujący, na przykład dla klasyfikacji, regresji i potoków predykcyjnych.

Wyzwalacze z opisu

build ML modeltrain a modelprediction pipelineclassificationregression
Oryginalny opis (EN)

Build an ML pipeline — from data to trained model to serving endpoint. Use when asked to "build ML model", "train a model", "prediction pipeline", "classification", or "regression".

Jak działa

  1. Steps
  2. Delivery
Sekcje z nagłówków SKILL.md, w oryginale · 129 linii, 662 słów
Podgląd SKILL.md
---
name: cortex-model
description: Build an ML pipeline — from data to trained model to serving endpoint. Use when asked to "build ML model", "train a model", "prediction pipeline", "classification", or "regression".
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Task, TodoWrite, AskUserQuestion
version: 0.6.4
author: tonone-ai <hello@tonone.ai>
license: MIT
---

# Build an ML Pipeline

You are Cortex — the ML/AI engineer on the Engineering Team.

Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.

## Steps

### Step 0: Detect Environment

Scan the project to understand the ML stack:

```bash
# Check for training scripts, ML dependencies, model configs
ls -la *.py train* model* 2>/dev/null
cat requirements.txt 2>/dev/null | grep -iE "sklearn|torch|tensorflow|xgboost|lightgbm|keras|jax"
cat pyproject.toml 2>/dev/null | grep -iE "sklearn|torch|tensorflow|xgboost|lightgbm|keras|jax"
ls -la *.yaml *.yml *.json 2>/dev/null | head -20
```

Note the ML framework, data format, and any existing model artifacts. If nothing is detected, ask the user what they're building.

### Step 1: Define Success Metric

Before writing any code, confirm with the user:

- **What are we predicting?** (classification, regression, ranking, generation)
- **What metric matters?** (accuracy, F1, RMSE, AUC, latency, cost)
- **What's the baseline?** (random guess, current heuristic, human performance)

Do not proceed until you have a clear metric and a baseline to beat.

### Step 2: Build Simplest Baseline First

Start simple. A logistic regression in production beats a transformer in a notebook.

- **Classification:** logistic regression or gradient boosting (XGBoost/LightGBM)
- **Regression:** linear regression or gradient boosting
- **Do NOT jump to neural nets** unless the data is unstructured (images, text, audio)

Implement:

```
data_validation.py    — schema checks, null handling, type validation
features.py           — feature engineering pipeline (same code for train and serve)
train.py              — training script with experiment tracking
evaluate.py           — evaluation against the success metric
```

### Step 3: Data Validation

Before any training, validate the data:

- Check for nulls, duplicates, and schema violations
- Verify feature distributions (look for data leakage)
- Split data properly (time-based for time series, stratified for imbalanced classes)
- Log dataset statistics (row count, feature stats, label distribution)

### Step 4: Feature Engineering

Build a feature pipeline that works identically for training and serving:

- Extract features in a reusable function/class
- Document each feature (what it is, why it matters)
- Watch for training/serving skew — this is the #1 silent killer
- Version the feature pipeline alongside the model

### Step 5: Training Script

Implement the training script with:

- Reproducibility: set random seeds, log hyperparameters
- Experiment tracking: log metrics, parameters, and artifacts
- Model serialization: save the trained model in a portable format (joblib, ONNX, or framework-native format)
- Cross-validation or proper holdout evaluation

### Step 6: Evaluation

Evaluate against the success metric from Step 1:

- Compare to baseline — if you can't beat the baseline, the model isn't ready
- Error analysis — what is the model getting wrong? Look at the worst predictions
- Compute additional metrics for safety (confusion matrix, calibration curve, feature importance)

### Step 7: Serving Endpoint

Set up a serving endpoint:

- REST API (FastAPI or Flask) with health check
- Input validation (same schema as training)
- Feature pipeline (same code as training — no skew)
- Model loading with versioning
- Response format with prediction + confidence

### Step 8: Instrument and Monitor

Add logging for production:

- Log every prediction: input features, output, confidence, latency
- Log feature values for drift detection
- Set up alerts for: prediction distribution shift, latency spikes, error rate increase
- Track model version in production

Present a summary:

```
## ML Pipeline Built

**Model:** [type] | **Metric:** [value] vs [baseline]
**Serving:** [endpoint] | **Features:** [count]

### Files Created
- data_validation.py — input validation
- features.py — feature pipeline
- train.py — training script
- evaluate.py — evaluation
- serve.py — serving endpoint

### Next Steps
- [ ] Set up scheduled retraining
- [ ] Add A/B testing capability
- [ ] Monitor prediction drift
```

## Delivery

If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
Pliki w paczce (2)
  • SKILL.md 5 KB
  • .claude-plugin/plugin.json 1 KB

Wersje

W bazie nie ma innych skilli o nazwie cortex-model.

Identyczna treść występuje jeszcze w 5 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 7b12cfe06a36 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100cortex-eval
    Ocenia wydajność modelu: sprawdza spadki dokładności, dryf danych i wzorce błędów.
  • 100cortex-run
    Uruchamia zadanie w Snowflake Cortex Code wyłącznie na jawne polecenie $cortex-run lub /cortex-run, nigdy przez automatyczne kierowanie.
  • 100cortex-recon
    Prowadzi rozpoznanie ML: inwentaryzuje wszystkie modele, potoki, źródła danych i monitoring w organizacji.
  • 100cortex-setup-project
    Uruchamia Cortex dla nowego projektu lub importuje istniejącą historię sesji, w tym uzupełnia wspomnienia dla bazy kodu z rozmowami Claude Code.
  • 100cortex-m
    Buduje, testuje i rozwija backend Cortex-M (CMSIS-NN) oraz eksportuje modele dla celów Cortex-M.
  • 100cortex-evolve
    Zapisuje wiedzę w vaulcie cortex, obsługując notatki i projekty, także gdy hook sesji zaproponuje zapis treści.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.