/tonone-core:cortex-evalfrom tonone-core
Evaluates ML model performance by detecting accuracy drops, data drift, and error patterns. Runs static analysis on LLM usage, compares current metrics against baselines, and segments results.
Ships in tonone-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Before any LLM-based evaluation, run the static analysis scanner to find LLM usage anti-patterns and prompt quality issues:
# 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:
# 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.
Scan the project to understand the ML stack and current model:
# 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.
Establish where things stand:
Report:
| Metric | Baseline | Current | Delta |
|-----------|----------|---------|--------|
| [metric] | [value] | [value] | [+/-] |
Check if the input data has changed:
Flag any feature where the distribution has shifted significantly.
Check if the model's outputs have changed:
If predictions shifted but features didn't, the problem is likely in the model or feature pipeline, not the data.
Dig into what the model is getting wrong:
Based on the evidence from Steps 1-4, determine the root cause:
Based on root cause, recommend the appropriate fix:
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]
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tonone-ai/tonone --plugin tonone-core85 skills in this plugin
/apex-planPlan and scope a project — discovery, challenge assumptions, present XS-XXL depth options with token and cost estimates. Use when asked to "plan this", "scope this", "how should we build X", or when a new project/feature request comes in./apex-reconEngineering lead reconnaissance — inventory the project before planning. Use when asked to "understand this project", "orient me on this codebase", "what's the state of the repo", "what's in progress", or before starting work on an unfamiliar codebase./apex-retroWeekly engineering retrospective from git history. Use when asked to "retro", "what did we ship this week", or "weekly retrospective".Other plugins' skills for the same job