/databricks-skills:cookbook-workflowsfrom databricks-skills
Triggers and monitors Databricks Workflows jobs from Dash, Streamlit, or Reflex apps using the Databricks SDK.
Ships in databricks-skills. 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.
Trigger Databricks Workflows jobs and retrieve run results using the Databricks SDK.
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
job_id = "921773893211960"
parameters = {"param1": "value1", "param2": "value2"}
try:
run = w.jobs.run_now(job_id=job_id, job_parameters=parameters)
print(f"Started run with ID {run.run_id}")
except Exception as e:
print(f"Error: {e}")
import streamlit as st
import json
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
job_id = st.text_input("Job ID:", placeholder="921773893211960")
parameters_input = st.text_area("Parameters (JSON):", placeholder='{"param1": "value1"}')
if st.button("Trigger job"):
try:
params = json.loads(parameters_input.strip()) if parameters_input.strip() else {}
run = w.jobs.run_now(job_id=job_id, job_parameters=params)
st.success(f"Started run with ID {run.run_id}")
except Exception as e:
st.warning(str(e))
import reflex as rx
import json
from databricks.sdk import WorkspaceClient
class TriggerJobState(rx.State):
job_id: str = ""
parameters_input: str = ""
result_data: str = ""
@rx.event(background=True)
async def trigger_job(self):
w = WorkspaceClient()
params = json.loads(self.parameters_input.strip()) if self.parameters_input.strip() else {}
result = w.jobs.run_now(job_id=int(self.job_id), job_parameters=params)
async with self:
self.result_data = json.dumps({"run_id": result.run_id}, indent=2)
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
task_run_id = "293894477334278"
results = w.jobs.get_run_output(task_run_id)
print(results)
import streamlit as st
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
task_run_id = st.text_input("Task run ID:", placeholder="293894477334278")
if task_run_id:
results = w.jobs.get_run_output(task_run_id)
st.text(results)
import reflex as rx
from databricks.sdk import WorkspaceClient
w = WorkspaceClient()
class RetrieveJobResultsState(rx.State):
run_id: str = ""
results: str = ""
@rx.event(background=True)
async def get_results(self):
run_output = w.jobs.get_run_output(run_id=int(self.run_id))
async with self:
self.results = str(run_output)
| Action | Permission |
|---|---|
| Trigger a job | CAN MANAGE RUN on the job |
| Retrieve results | CAN VIEW on the job |
databricks-sdk
Plus your framework package (dash, streamlit, or reflex).
json.loads() instead of eval() for parsing user-provided JSON parametersrun_now() returns immediately; the job runs asynchronously. Use run_now_and_wait() to block until completionget_run_output() takes a task run ID, not the job run IDWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/cookbook-aimlInvoke ML models, run vector search, and connect to MCP servers from Databricks Apps. Use when the user wants to call a model serving endpoint, query a vector search index, use LLMs/embeddings, or connect to an MCP server in Dash, Streamlit, Reflex, or FastAPI./cookbook-authenticationImplement authentication in Databricks Apps: get current user info, on-behalf-of-user (OBO) auth, service principal auth, and OAuth patterns. Use when the user asks about auth, user tokens, service principals, OAuth, or OBO in Dash, Streamlit, Reflex, or FastAPI./cookbook-biEmbed AI/BI dashboards and integrate Genie Spaces into Databricks Apps. Use when the user wants to embed a Databricks dashboard or build a chat interface with the Genie Conversations API in Dash, Streamlit, or Reflex.npx claudepluginhub databricks-solutions/databricks-apps-cookbook --plugin databricks-skillsOther plugins' skills for the same job