train-local

train-local is a skill for Claude Code, Codex from duonginspace/claude-code-databricks-ml. It costs 56 tokens per session (310 once invoked), scanned A, original, MIT.

A procedure for running a small machine-learning training experiment on your own computer using its CPU or Apple MPS graphics processor. It is meant for quick checks before sending the job to Databricks, a cloud platform for data and machine-learning work.

In plain words
What is it for?
Use it to smoke-test training code, debug a model change, or check a new model design with a small amount of data and a short run.
Why use it?
It lets you find import errors, incorrect data shapes, device problems, invalid losses, or memory failures without waiting for a full remote training run.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/duonginspace/claude-code-databricks-ml/train-local
Any agent
npx skills add duonginspace/claude-code-databricks-ml --skill train-local
Clone the repo
git clone --depth 1 https://github.com/duonginspace/claude-code-databricks-ml

Made for: Claude Code, Codex.

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 train-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/train-local.svg)](https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/train-local)
Your own site
<a href="https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/train-local"><img src="https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/train-local.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.00310
Opus 5 $0.00028 $0.00155
Sonnet 5 $0.00011 $0.00062
Haiku 4.5 $0.00006 $0.00031

Measured 4d ago against content hash 09930322af35, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

train-local 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 4d 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.

skills/train-local/SKILL.md · 24 lines

What it actually says

Local training task

$ARGUMENTS

Steps

  1. Read CLAUDE.md for the project structure and current experiment config.
  2. If not specified, default to: 2 epochs, 10% of training data, CPU/MPS device, batch size 16.
  3. Add --dry-run or --fast-dev-run flag if the training script supports it.
  4. Run: uv run python scripts/train.py <args> 2>&1 | tee mlflow_results/local_run.log
  5. Watch for: import errors, shape mismatches, CUDA/MPS device errors, NaN losses, OOM errors.
  6. If the run succeeds, report: final train loss, validation metric, time per epoch.
  7. If it fails, diagnose the error and propose a fix before suggesting a Databricks run.

Output

Tell the user whether the code is ready to submit to Databricks, or what to fix first. Always suggest using /run-on-databricks after a successful local smoke test.

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. 4d ago First seen · 24 lines · 56 tokens per session scan A 09930322af35

Subscribe to this mod's changes

train-local is a skill published in the GitHub repository duonginspace/claude-code-databricks-ml (5 stars, last pushed 5mo ago), licensed MIT. It adds 56 tokens to every session and 310 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.

Related

Other skills, from other repositories

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

evaluating-with-leakage-gates

Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1. Use when the user wants to run the OpenMed eval harness on a synthetic golden set, decide whether a de-id model is RELEASABLE or…

maziyarpanahi/openmed · 158 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens

mixed-precision

Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.

aiming-lab/AutoResearchClaw · 25 tokens

tooluniverse-drug-research

Comprehensive drug profiling — mechanism, primary/secondary targets, drug interactions, clinical-trial status, adverse events (FAERS), pharmacogenomics, and approval history. Use for full drug investigation reports, 'tell me about drug X' queries, and assembling drug profiles for clinicians, researchers, or regulatory…

mims-harvard/ToolUniverse · 71 tokens

audit-scientific-figure

Review and score an existing scientific illustration in visible draw.io, Microsoft PowerPoint, or WPS Presentation without hiding defects through flattening. Use for reference-fidelity checks, layout cleanup, connector review, text-fit checks, deep editability and raster-atomicity inspection, local-region gates, or…

icebird1998/scientific-illustrator · 80 tokens