Logo van Cortex Eval

Cortex Eval

CommunityPopulair
jeremylongshore
cortex-eval

Evalueer de modelprestaties — controleer op afnemende nauwkeurigheid, datadrift en foutenpatronen. Gebruik dit bij vragen als ‘de modelnauwkeurigheid is afgenomen’, ‘evalueer het model’, ‘controleer op drift’ of ‘modelprestaties’.

Add to TypingMind

Overzicht

Uitgeverjeremylongshore
Repositorytons-of-skills-marketplace
Skillnaamcortex-eval
Sterren
2.8K
Forks
409
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door jeremylongshore op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Cortex Eval in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/ai-agency/tonone/skills/cortex-eval
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git /tmp/tons-of-skills-marketplace
mkdir -p .claude/skills
cp -r /tmp/tons-of-skills-marketplace/plugins/ai-agency/tonone/skills/cortex-eval .claude/skills/cortex-eval
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Cortex Eval in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Cortex Eval automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Cortex Eval niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Evaluate Model Performance

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: Run Static Analysis

Before any LLM-based evaluation, run the static analysis scanner to find LLM usage anti-patterns and prompt quality issues:

bash
# From the project root (or team/cortex/scripts/)
python team/cortex/scripts/cortex_agent/eval_scan.py . --out .reports/cortex-eval-latest.json

Or with selective scans:

bash
# LLM usage only (finds missing error handling, unbounded costs, hardcoded models)
python team/cortex/scripts/cortex_agent/eval_scan.py . --skip-prompts

# Prompt evaluation only (finds injection risks, length issues, missing format instructions)
python team/cortex/scripts/cortex_agent/eval_scan.py . --skip-usage

Review the JSON report at .reports/cortex-eval-<ts>.json. Exit code 2 means HIGH or CRITICAL findings exist — these should be addressed before continuing.

Step 1: Detect ML Environment

Scan the project to understand the ML stack and current model:

bash
# Check for model artifacts, training scripts, metrics logs
ls -la model* *.pkl *.joblib *.onnx *.pt *.h5 2>/dev/null
ls -la train* evaluate* metrics* 2>/dev/null
cat requirements.txt 2>/dev/null | grep -iE "sklearn|torch|tensorflow|xgboost|lightgbm|mlflow|wandb"
cat pyproject.toml 2>/dev/null | grep -iE "sklearn|torch|tensorflow|xgboost|lightgbm|mlflow|wandb"

# Check for experiment tracking
ls -la mlruns/ wandb/ .neptune/ 2>/dev/null
grep -rl "mlflow\|wandb\|neptune" --include="*.py" . 2>/dev/null | head -10

# Check for monitoring/metrics
ls -la metrics/ logs/ monitoring/ 2>/dev/null

Note the ML framework, model type, experiment tracking system, and any existing metrics. If nothing is detected, ask the user.

Step 2: Current Model Metrics vs Baseline

Establish where things stand:

  • Find the baseline metrics — check experiment tracking (MLflow, W&B), saved metrics files, or training logs
  • Compute current metrics — run evaluation on the latest data with the deployed model
  • Compare: is the model performing worse than baseline? By how much?
  • Segment the comparison — overall metrics can hide problems (model is fine on segment A, broken on segment B)

Report:

| Metric    | Baseline | Current | Delta  |
|-----------|----------|---------|--------|
| [metric]  | [value]  | [value] | [+/-]  |

Step 3: Data Distribution Shift (Feature Drift)

Check if the input data has changed:

  • Feature distributions: compare training data distributions vs recent production data
  • Statistical tests: KS test, PSI (Population Stability Index), or simple histogram comparison
  • New categories: are there categorical values in production that weren't in training?
  • Missing data patterns: has the rate of nulls/missing values changed?
  • Volume changes: is the prediction volume significantly different?

Flag any feature where the distribution has shifted significantly.

Step 4: Prediction Distribution Changes

Check if the model's outputs have changed:

  • Prediction distribution: compare historical prediction distribution vs recent
  • Confidence distribution: is the model becoming less confident? More confident on wrong answers?
  • Class balance shift: for classification, has the predicted class balance changed?
  • Output range shift: for regression, has the output range moved?

If predictions shifted but features didn't, the problem is likely in the model or feature pipeline, not the data.

Step 5: Error Analysis

Dig into what the model is getting wrong:

  • Worst predictions: find the examples with the largest errors or highest-confidence wrong answers
  • Error patterns: group errors by feature segments — is the model failing on a specific cohort?
  • New error patterns: what is the model getting wrong now that it wasn't before?
  • Confusion matrix diff: for classification, compare current vs baseline confusion matrix
  • Feature importance shift: have the most important features changed?

Step 6: Identify Root Cause

Based on the evidence from Steps 1-4, determine the root cause:

  • Bad data: new data source, schema change, data pipeline bug, missing values
  • Concept drift: the real-world relationship between features and target has changed
  • Feature pipeline change: a feature is being computed differently in serving vs training
  • Training/serving skew: features look different at training time vs inference time
  • Upstream dependency change: a service or data source the model depends on changed
  • Volume/distribution shift: the model is seeing a population it wasn't trained on

Step 7: Recommend Fix

Based on root cause, recommend the appropriate fix:

  • Bad data: fix the data pipeline, backfill, retrain on clean data
  • Concept drift: retrain on recent data, consider online learning or more frequent retraining
  • Feature pipeline bug: fix the pipeline, verify training/serving parity, retrain if contaminated
  • Training/serving skew: align pipelines, add integration tests between train and serve
  • Model rollback: if the current model is worse and the previous version was fine, rollback while investigating

Present a summary:

## Model Evaluation Report

**Model:** [name/version] | **Status:** [healthy/degraded/broken]

### Metrics Comparison
| Metric | Baseline | Current | Delta |
|--------|----------|---------|-------|
| [metric] | [value] | [value] | [+/-] |

### Root Cause
[One-line root cause]

### Evidence
- [Finding 1]
- [Finding 2]
- [Finding 3]

### Recommended Fix
1. [Immediate action]
2. [Follow-up action]
3. [Prevention measure]

### Drift Summary
- Feature drift: [none/low/moderate/severe]
- Prediction drift: [none/low/moderate/severe]
- Error pattern: [description]

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.

Veelgestelde vragen

Wat doet de AI-skill Cortex Eval?

Evalueer de modelprestaties — controleer op afnemende nauwkeurigheid, datadrift en foutenpatronen. Gebruik dit bij vragen als ‘de modelnauwkeurigheid is afgenomen’, ‘evalueer het model’, ‘controleer op drift’ of ‘modelprestaties’.

Waarom Cortex Eval gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Cortex Eval bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Cortex Eval in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/plugins/ai-agency/tonone/skills/cortex-eval. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Cortex Eval gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Cortex Eval gebruiken?

Zoveel als je wilt. Je kunt Cortex Eval gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Cortex Eval gratis?

Ja. Deze skill is door jeremylongshore op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇