Install
$ agentstack add skill-duonginspace-claude-code-databricks-ml-run-on-databricks ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Databricks training task
Script and args: $ARGUMENTS
Steps
- Read
CLAUDE.mdfor cluster ID, experiment name, and environment setup. - Run a local smoke test first if the user hasn't confirmed the code runs locally:
uv run python scripts/train.py --datasets 1 --epochs 2 2>&1 | head -40 If it fails, stop and report the error. Don't submit broken code to the cluster.
- Submit to Databricks (this builds a wheel, uploads it + scripts/train.py to DBFS, and runs):
uv run python scripts/submit_to_databricks.py scripts/train.py $ARGUMENTS The script passes --wheel-path and --experiment args automatically.
- To use an ephemeral job cluster (lower DBU rate) instead of the existing cluster, add
--job-cluster - Job clusters have ~5-10min startup overhead but cost less per DBU
- Pull MLflow results:
uv run python scripts/pull_results_on_databricks.py
- Read
mlflow_results/latest_run.jsonandmlflow_results/all_runs.csv. - Report:
- Run status (SUCCESS / FAILED)
- Key metrics (loss, accuracy, or whatever the primary metric is)
- Training time and GPU type used
- Comparison with the previous best run from all_runs.csv
- If the run failed, read
mlflow_results/job_logs.txtand diagnose the error.
Common DBR 15+ issues:
OSError: Operation not supportedon Workspace paths — scripts must be on DBFSpydantic has no model_validator— stale system pydantic; check that the bootstrap clears sys.modulescannot import Sentinel from typing_extensions— same stale module issueBAD_REQUEST: For input string: "None"— MLflow experiment name must be a/Users/...workspace pathDBFS library installations are not supported on DBR 15— wheel must be pip-installed at runtime, not via compute.Library
Output
Summarize results and propose the next experiment with specific hyperparameter or architecture changes. ultrathink
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: duonginspace
- Source: duonginspace/claude-code-databricks-ml
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.