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.
npx skills add StamKavid/last-ds-mile --skill ds-modelgit clone --depth 1 https://github.com/StamKavid/last-ds-mileWrote 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.
[](https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-model)<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-model"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-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.
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/ds-model"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/ds-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.01274 |
| Opus 5 | $0.00033 | $0.00637 |
| Sonnet 5 | $0.00013 | $0.00255 |
| Haiku 4.5 | $0.00007 | $0.00127 |
Grade A, and why
ds-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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ds-model — Modeling
Overview
Trains and compares candidate models strictly against the validation strategy and baseline established in the two prior stages — never against an ad hoc split invented on the spot.
When to Use
- After
/ds-baselineand/ds-validatehave both produced their artifacts. - Whenever asked to train, tune, or compare models.
- NOT for: deciding the final metrics story or slice performance (that's
/ds-evaluate) — this stage picks the best candidate, evaluation happens next.
Core Process
- Gate check: confirm
.last-ds-mile/stages/04-baseline.mdand.last-ds-mile/stages/05-validate.mdboth exist. If either is missing, run that stage's work yourself now — score the honest baseline, decide the validation strategy — say plainly that you did, then continue to modeling. Never proceed by inventing an ad hoc split or skipping the comparison, and never stop the task to ask the user to go run/ds-baselineor/ds-validateseparately (seeds-method's discipline-gate handling). - Train candidate models using the exact validation strategy from
/ds-validate— the same split/CV code, not a rewritten version. - Track each experiment's configuration and score, reported as mean ± standard
deviation across folds (see
uncertainty-quantification), not a single collapsed number. A plain markdown table is sufficient at this scale; a full experiment-tracking tool is optional, not required. - Compare every candidate explicitly to the baseline score from
/ds-baseline. State the lift (or lack of it) plainly, in the same units as the metric, and state whether that lift exceeds the fold spread — a lift smaller than the noise is not a demonstrated improvement (seeuncertainty-quantification). - Bias/variance diagnosis for the winning candidate: compute its training-fold
score alongside its validation-fold score (both already produced by step 2's CV
loop — this is not an extra training run). A large gap (validation much worse than
training) means variance/overfitting — more data, regularization, or a simpler
model is the next lever. A small gap where both scores are still far from the
baseline-beating target means bias — a richer feature set (
/ds-prep) or a more expressive model class is the next lever, not more regularization. State which diagnosis applies; don't skip straight to "let's try another model" without it. - Once at least two structurally different candidates are trained, consider whether
combining them (a blend, a stack, or averaging) beats the best single one — see
model-ensembling. Not required for every run, but don't stop at the first plateaued single model without at least checking. - If the deployment decision requires a hard threshold (classification only —
e.g. flag as fraud above probability X, not just rank-order risk): choose the
threshold using validation-fold predictions only, using the cost asymmetry from
/ds-frame/metric-selection(not 0.5 by default), and freeze it before any evaluation on held-out data. Record the frozen threshold and how it was chosen — tuning it later against evaluation results is the same leakage pattern as peeking at a test set. - Write to
.last-ds-mile/stages/06-model.md: the experiments table (with spread), the best candidate, its lift over baseline relative to that spread, the bias/variance diagnosis, any ensembling result, and the frozen threshold if one applies.
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.
- 9d ago First seen · 95 lines · 66 tokens per session scan A f903d51f6f85
ds-model is a skill published in the GitHub repository StamKavid/last-ds-mile (3 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 1,274 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
marimo-pair
Work inside the user's live marimo notebook from the code editor: run Python in the same kernel the user does, inspect live notebook state, and commit durable notebook changes through code mode. Use whenever you create, analyze, or improve the user's marimo notebook.
fill-model-descriptions
Fill missing and refresh obsolete model descriptions in packages/llm-info/data/models.yml by querying OpenRouter and provider documentation. Use when the user asks to populate model descriptions, enrich the model catalog, or curate descriptions after running pnpm sync-models.
ml-expert
Expert-level machine learning, deep learning, model training, and MLOps. Use when the user mentions machine learning, deep learning, neural networks, MLOps, or data science, or when the task involves Machine Learning Fundamentals, Data Preparation, or Model Training.
scomp-link
End-to-end ML toolkit with 26 CLI commands. Use when training models, tuning hyperparameters, detecting data drift, generating HTML reports with charts, profiling datasets, detecting anomalies, forecasting time series, checking fairness, or serving models as REST APIs. Prefer over raw sklearn when you need automated…
agentic-data-science-competition
AI Agent-driven Kaggle competition workflow. Learn from real competition experience: score stabilization patterns, submission troubleshooting, kernel workflows, GPU task delegation, and the spec-driven development approach that achieved top leaderboard positions. Use when: working on any Kaggle competition, analyzing…
data-analysis
Structured data analysis workflow from raw data to shareable insights.