cortex-model

cortex-model is a skill for Claude Code from tonone-ai/tonone. It costs 44 tokens per session (1,166 once invoked), scanned A, original, MIT.

A machine-learning pipeline builder that connects data preparation, model training, and a serving endpoint. A serving endpoint is an interface that other software can call to get predictions from the trained model.

In plain words
What is it for?
Use it to build classification or regression systems, train models, define evaluation metrics, and expose predictions through an endpoint.
Why use it?
It requires a clear prediction goal, success measure, and baseline before implementation. This helps teams compare the model with a simple existing approach rather than building without a way to judge it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; mentions Claude Code.

Part of the engineering-team plugin — 87 skills, 2 hooks shipped together

Good fit Use it to build classification or regression systems, train models, define evaluation metrics, and expose predictions through an endpoint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonone-ai/tonone/cortex-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonone-ai/tonone --skill cortex-model
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Made for: Claude Code.

Or install engineering-team, the plugin that ships this one along with the rest of its 87 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cortex-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonone-ai/tonone/cortex-model/github.svg)](https://agentmods.dev/skills/tonone-ai/tonone/cortex-model)
Your own site
<a href="https://agentmods.dev/skills/tonone-ai/tonone/cortex-model"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/cortex-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cortex-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/cortex-model"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/cortex-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,166 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01166
Opus 5.5 $0.00018 $0.00466
Sonnet 5.5 $0.00009 $0.00233
Haiku 4.5 $0.00004 $0.00117

Measured 20d ago against content hash c6b5473a2f56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cortex-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bundle/engineering-team/skills/cortex-model/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

# 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

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · +2 lines c6b5473a2f56
  2. 2mo ago First seen · 139 lines · 44 tokens per session scan A 6202d569b4d0

Subscribe to this mod's changes

cortex-model is a skill published in the GitHub repository tonone-ai/tonone (84 stars, last pushed 2d ago), licensed MIT. It adds 44 tokens to every session and 1,166 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

cortex-model compared with skills from other repositories

cortex-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cortex-modeltonone-ai/tononeSkill842d agoMITA44Claude Code
agentic-data-science-competitionMirannonarbitrable290/agentic-kaggle-skillSkill71mo agoMITA76Claude Code, Codex
spark-environment-setupwshobson/agentsSkill43k5d agoMITA76Claude Code
spark-training-gotchaswshobson/agentsSkill43k5d agoMITA63Claude Code
tao-finetune-cosmos-reasonNVIDIA/skillsSkill4.2k2d agoApache-2.0A73Claude Code
continuum-llm-providersshyftlabs/continuumSkill863d agoApache-2.0A105Claude Code
ai-distributed-trainingvasilyu1983/AI-Agents-publicSkill1011mo agoMITA57Claude Code, Codex