# databricks-solutions/ai-dev-kit architecture

> Architecture diagram of the GitHub repository databricks-solutions/ai-dev-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/databricks-solutions/ai-dev-kit
- Repository: https://github.com/databricks-solutions/ai-dev-kit

## Overview

1. **What this repo is**
   - `databricks-ai-dev-kit` is a multi-package toolkit for building Databricks-focused AI assistance.
   - It is organized around four user-facing surfaces: a reusable Python library, an MCP tool server, a curated skill/content library, and a full-stack builder app.

2. **Core abstraction layer: `databricks-tools-core/`**
   - This is the main Python SDK-style layer and the lowest common dependency for the rest of the repo.
   - It groups Databricks capabilities into domains such as SQL, Jobs, Unity Catalog, Compute, Serving, Vector Search, Lakebase, Apps, and Agent Bricks.
   - The library encapsulates authentication, client setup, and higher-level operations so higher layers do not talk to raw Databricks APIs directly.

3. **Execution boundary: `databricks-mcp-server/`**
   - This package exposes Databricks operations as MCP tools for AI assistants.
   - Tool modules mirror Databricks domains: compute, jobs, SQL, Unity Catalog, serving, vector search, workspace/file operations, PDFs, pipelines, Genie, apps, and dashboards.
   - The server is the action layer: assistants call these tools, which in turn delegate to the core library and Databricks services.

4. **Knowledge layer: `databricks-skills/` and `.claude/skills/`**
   - This is the content layer, not code execution.
   - Each skill is a markdown-based guidance package covering a Databricks topic or workflow, such as Spark Declarative Pipelines, model serving, Unity Catalog, SQL, jobs, and vector search.
   - Installation scripts copy these skills into assistant-specific directories so the model has durable project context and best practices.

5. **Visual builder product: `databricks-builder-app/`**
   - This is a separate full-stack application for interacting with Databricks development workflows through a chat/UI experience.
   - Backend: FastAPI app with routers for projects, skills, conversations, clusters, warehouses, config, and agent orchestration.
   - Frontend: React + Vite + TypeScript UI with layout, context, and page components.
   - Persistence: SQLAlchemy/Alembic-managed database schema, with migrations for projects, backups, cluster IDs, warehouse/workspace metadata, and executions.

6. **Builder app data flow**
   - UI actions call the FastAPI backend.
   - The backend orchestrates Databricks-facing services such as agent execution, cluster/warehouse management, skill management, backups, and prompt generation.
   - The app stores project and conversation state in its database and uses Databricks resources as external execution targets.

7. **Test and evaluation platform: `.test/`**
   - This is a substantial harness for validating skills, tool selection, traces, and generated answers.
   - It contains baseline scenarios, manifests, expected responses, evaluation criteria, scorers, optimization pipelines, and integration tests.
   - The test package is effectively a meta-system for measuring assistant quality against Databricks-specific tasks.

8. **Evaluation architecture inside `.test/src/skill_test/`**
   - The package is split into subsystems for runners, optimization, scorers, trace processing, agent execution, and CLI commands.
   - It supports routing evaluation, trace evaluation, regression checks, and prompt/skill optimization workflows.
   - Inputs are skill manifests, traces, and candidate responses; outputs are scores, diagnostics, and generated artifacts.

9. **Installation and packaging surfaces**
   - `install.sh` and `install.ps1` are the primary repo-level entry points for installing the kit into an assistant environment.
   - `.claude-plugin/` and `hooks/` contain integration metadata for packaging the repo as an assistant plugin or hookable workflow.
   - The repo is designed to be consumable in multiple modes: skills-only, MCP-only, core library only, or full builder app.

10. **CI and validation**
   - GitHub Actions and validation scripts enforce consistency of skills, manifests, tests, and packaging.
   - The CI surface is focused on keeping the skill content, evaluation baselines, and tool definitions aligned as the repo evolves.
   - This matters architecturally because the repo is not just code; it is a distributed product composed of runtime services, assistant guidance, and evaluation assets.

Main entry points: [`databricks-tools-core`](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core) (Tools core), [`databricks-builder-app/server`](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/server) (Backend API), [`.test/src/skill_test`](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test/src/skill_test) (Eval engine), [`.test`](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test) (Test harness)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo_surfaces["User surfaces"]
  node_mcp_server["MCP server<br/>tool server"]
  node_mcp_tools["Tool modules<br/>tools"]
end

subgraph group_core_stack["Core runtime"]
  node_core_pkg["Tools core<br/>Python SDK"]
  node_core_auth["Auth & client<br/>bootstrap<br/>[auth.py]"]
  node_core_sql["SQL domain<br/>domain module<br/>[sql.py]"]
  node_core_uc["Catalog domain<br/>domain module"]
  node_core_compute["Compute domain<br/>domain module"]
  node_core_serving_vs["Serving & search<br/>domain module"]
  node_core_jobs_lakebase["Jobs & Lakebase<br/>domain module"]
end

subgraph group_builder_app["Builder app"]
  node_builder_app_root["Builder app<br/>full-stack app"]
  node_builder_backend["Backend API<br/>FastAPI app"]
  node_builder_db["DB layer<br/>ORM + migrations"]
  node_builder_frontend["Frontend UI<br/>React app"]
end

subgraph group_skill_content["Skill content"]
  node_skills_repo["Skills library<br/>markdown content"]
  node_claude_skills["Claude skills<br/>assistant skills<br/>[skills]"]
end

subgraph group_evaluation["Evaluation"]
  node_test_harness["Test harness<br/>evaluation suite<br/>[.test]"]
  node_test_engine["Eval engine<br/>skill-test package<br/>[skill_test]"]
  node_test_assets["Baselines & manifests<br/>eval assets<br/>[skills]"]
end

subgraph group_integration["Packaging & CI"]
  node_install["Install scripts<br/>entrypoints<br/>[install.sh]"]
  node_plugin_hooks["Plugin & hooks<br/>packaging metadata<br/>[.claude-plugin]"]
  node_ci_validate["CI checks<br/>validation<br/>[ci.yml]"]
end

node_repo["Repo"]

node_repo -->|"includes"| node_core_pkg
node_repo -->|"includes"| node_mcp_server
node_repo -->|"includes"| node_builder_app_root
node_repo -->|"includes"| node_skills_repo
node_repo -->|"includes"| node_test_harness
node_repo -->|"ships"| node_install
node_repo -->|"packages"| node_plugin_hooks
node_core_pkg -->|"bootstraps"| node_core_auth
node_core_pkg -->|"provides"| node_core_sql
node_core_pkg -->|"provides"| node_core_uc
node_core_pkg -->|"provides"| node_core_compute
node_core_pkg -->|"provides"| node_core_serving_vs
node_core_pkg -->|"provides"| node_core_jobs_lakebase
node_mcp_server -->|"exposes"| node_mcp_tools
node_mcp_tools -->|"delegates"| node_core_pkg
node_builder_app_root -->|"contains"| node_builder_backend
node_builder_app_root -->|"contains"| node_builder_frontend
node_builder_backend -->|"persists to"| node_builder_db
node_builder_backend -->|"uses"| node_core_pkg
node_builder_backend -->|"orchestrates"| node_mcp_server
node_builder_frontend -->|"calls"| node_builder_backend
node_skills_repo -->|"installs into"| node_claude_skills
node_test_harness -->|"implements"| node_test_engine
node_test_harness -->|"drives"| node_test_assets
node_test_engine -->|"evaluates"| node_core_pkg
node_test_engine -->|"evaluates"| node_mcp_server
node_test_engine -->|"uses"| node_skills_repo
node_install -->|"supports"| node_plugin_hooks
node_ci_validate -->|"checks"| node_skills_repo
node_ci_validate -->|"checks"| node_test_harness
node_ci_validate -->|"checks"| node_plugin_hooks

click node_core_pkg "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core"
click node_core_auth "https://github.com/databricks-solutions/ai-dev-kit/blob/main/databricks-tools-core/databricks_tools_core/auth.py"
click node_core_sql "https://github.com/databricks-solutions/ai-dev-kit/blob/main/databricks-tools-core/databricks_tools_core/sql/sql.py"
click node_core_uc "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/unity_catalog"
click node_core_compute "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/compute"
click node_core_serving_vs "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/serving"
click node_core_jobs_lakebase "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/jobs"
click node_mcp_server "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-mcp-server"
click node_mcp_tools "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-mcp-server/databricks_mcp_server/tools"
click node_builder_app_root "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app"
click node_builder_backend "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/server"
click node_builder_db "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/server/db"
click node_builder_frontend "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/client/src"
click node_skills_repo "https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-skills"
click node_claude_skills "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.claude/skills"
click node_test_harness "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test"
click node_test_engine "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test/src/skill_test"
click node_test_assets "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test/skills"
click node_install "https://github.com/databricks-solutions/ai-dev-kit/blob/main/install.sh"
click node_plugin_hooks "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.claude-plugin"
click node_ci_validate "https://github.com/databricks-solutions/ai-dev-kit/blob/main/.github/workflows/ci.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp_server,node_mcp_tools toneBlue
class node_core_pkg,node_core_auth,node_core_sql,node_core_uc,node_core_compute,node_core_serving_vs,node_core_jobs_lakebase toneAmber
class node_builder_app_root,node_builder_backend,node_builder_db,node_builder_frontend toneMint
class node_skills_repo,node_claude_skills toneRose
class node_test_harness,node_test_engine,node_test_assets toneIndigo
class node_install,node_plugin_hooks,node_ci_validate toneTeal
class node_repo toneNeutral
```

## Components

### User surfaces

Primary entry points and consumable surfaces for the kit.

- [MCP server](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-mcp-server): tool server · Assistant-facing execution boundary exposing Databricks actions as MCP tools. · `databricks-mcp-server`
- [Tool modules](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-mcp-server/databricks_mcp_server/tools): tools · Domain-aligned tool implementations for compute, jobs, SQL, UC, serving, search, files, PDFs, pipelines, Genie, apps, and dashboards. · `databricks-mcp-server/databricks_mcp_server/tools`

### Core runtime

Shared SDK layer and its execution-facing packages.

- [Tools core](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core): Python SDK · Shared Databricks client and domain abstractions used by higher layers. · `databricks-tools-core`
- [Auth & client](https://github.com/databricks-solutions/ai-dev-kit/blob/main/databricks-tools-core/databricks_tools_core/auth.py): bootstrap · Authentication, identity, and client setup for Databricks access. · `databricks-tools-core/databricks_tools_core/auth.py`
- [SQL domain](https://github.com/databricks-solutions/ai-dev-kit/blob/main/databricks-tools-core/databricks_tools_core/sql/sql.py): domain module · SQL execution, warehouses, and related helpers. · `databricks-tools-core/databricks_tools_core/sql/sql.py`
- [Catalog domain](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/unity_catalog): domain module · Unity Catalog operations for tables, grants, volumes, storage, and governance. · `databricks-tools-core/databricks_tools_core/unity_catalog`
- [Compute domain](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/compute): domain module · Cluster and serverless compute management and execution utilities. · `databricks-tools-core/databricks_tools_core/compute`
- [Serving & search](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/serving): domain module · Model serving endpoints and vector search operations. · `databricks-tools-core/databricks_tools_core/serving`
- [Jobs & Lakebase](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-tools-core/databricks_tools_core/jobs): domain module · Jobs/runs plus Lakebase catalogs, instances, autoscale, and synced tables. · `databricks-tools-core/databricks_tools_core/jobs`

### Builder app

Full-stack chat/UI application and its backend/data layer.

- [Builder app](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app): full-stack app · FastAPI plus React application for Databricks workflow interaction. · `databricks-builder-app`
- [Backend API](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/server): FastAPI app · Routers and orchestration services for projects, skills, conversations, clusters, warehouses, and agents. · `databricks-builder-app/server`
- [DB layer](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/server/db): ORM + migrations · SQLAlchemy models and Alembic schema history for persisted app state. · `databricks-builder-app/server/db`
- [Frontend UI](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-builder-app/client/src): React app · Vite/TypeScript interface with layout, contexts, pages, and API client. · `databricks-builder-app/client/src`

### Skill content

Markdown skill packs and installation targets.

- [Skills library](https://github.com/databricks-solutions/ai-dev-kit/tree/main/databricks-skills): markdown content · Curated Databricks skill packs used as durable assistant context. · `databricks-skills`
- [Claude skills](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.claude/skills): assistant skills · Installed skill copies for Claude-specific assistant contexts. · `.claude/skills`

### Evaluation

Test harness, baselines, and scoring/optimization workflows.

- [Test harness](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test): evaluation suite · Meta-system for validating skills, tool selection, traces, and generated answers. · `.test`
- [Eval engine](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test/src/skill_test): skill-test package · Runners, scorers, trace processing, optimization, and CLI workflows. · `.test/src/skill_test`
- [Baselines & manifests](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.test/skills): eval assets · Skill manifests, ground truth, baselines, and expected responses used by the harness. · `.test/skills`

### Packaging & CI

Repository-level installation, plugin, hook, and validation surfaces.

- [Install scripts](https://github.com/databricks-solutions/ai-dev-kit/blob/main/install.sh): entrypoints · Repo-level installer entry points for assistant environments. · `install.sh`
- [Plugin & hooks](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.claude-plugin): packaging metadata · Assistant plugin configuration and hook integration metadata. · `.claude-plugin`
- [CI checks](https://github.com/databricks-solutions/ai-dev-kit/blob/main/.github/workflows/ci.yml): validation · Automation that validates skill content, manifests, and repo consistency. · `.github/workflows/ci.yml`

### Other components

- **Repo**: mono-repo · Databricks AI dev kit organized into runtime, content, app, and evaluation surfaces.

## Connections

- Repo → Tools core: includes · Root repo contains the shared SDK layer.
- Repo → MCP server: includes · Root repo contains the MCP action surface.
- Repo → Builder app: includes · Root repo contains the full-stack builder app.
- Repo → Skills library: includes · Root repo contains curated skill content.
- Repo → Test harness: includes · Root repo contains the evaluation platform.
- Repo → Install scripts: ships · Root repo provides installer entry points.
- Repo → Plugin & hooks: packages · Root repo includes plugin and hook metadata.
- Tools core → Auth & client: bootstraps · Client and auth setup underpin all domains.
- Tools core → SQL domain: provides · Shared SQL domain operations.
- Tools core → Catalog domain: provides · Shared Unity Catalog operations.
- Tools core → Compute domain: provides · Shared compute execution and management.
- Tools core → Serving & search: provides · Shared serving and vector search operations.
- Tools core → Jobs & Lakebase: provides · Shared jobs and Lakebase operations.
- MCP server → Tool modules: exposes · Server surfaces domain tools for assistants.
- Tool modules → Tools core: delegates · Tool handlers call into the shared Databricks core.
- Builder app → Backend API: contains · App includes the backend API.
- Builder app → Frontend UI: contains · App includes the browser UI.
- Backend API → DB layer: persists to · Backend stores state through ORM and migrations.
- Backend API → Tools core: uses · Backend reuses shared Databricks operations.
- Backend API → MCP server: orchestrates · Backend can coordinate assistant/tool execution patterns.
- Frontend UI → Backend API: calls · UI actions flow through the API.
- Skills library → Claude skills: installs into · Skill packs are copied into assistant skill directories.
- Test harness → Eval engine: implements · Harness code lives in the skill_test package.
- Test harness → Baselines & manifests: drives · Harness consumes manifests and ground truth artifacts.
- Eval engine → Tools core: evaluates · Evaluation workflows can exercise shared Databricks operations.
- Eval engine → MCP server: evaluates · Tool selection and trace tests target the MCP layer.
- Eval engine → Skills library: uses · Optimization and scoring workflows use skill content.
- Install scripts → Plugin & hooks: supports · Install scripts prepare assistant packaging surfaces.
- CI checks → Skills library: checks · CI validates skill content and manifests.
- CI checks → Test harness: checks · CI keeps evaluation assets and workflows consistent.
- CI checks → Plugin & hooks: checks · CI validates packaging metadata.
