Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive visualizations. A plain "create a dashboard" request means a managed AI/BI (Lakeview) dashboard → use databricks-aibi-dashboards, not this skill. Evaluates data access patterns (analytics vs Lakebase synced tables) before scaffolding. Invoke BEFORE starting implementation.
Capabilities
Data Discovery
Before writing any SQL, unless the user gave every table as…
Development Workflow (FOLLOW THIS ORDER)
If the app reads from Unity Catalog / lakehouse tables, you MUST show…
When to Use What
AppKit (Recommended)
TypeScript/React framework with type-safe SQL queries and built-in…
Getting started
Full instructionsExample command
AppKit (Recommended)
npx @databricks/appkit docs # ← ALWAYS start here to see available pagesInstructions: SKILL.mdv1.0.21
Databricks Apps Development
FIRST: Use the parent databricks-core skill for CLI basics, authentication, and profile selection.
Package manager — resolve this before any install or command below:
Databricks Apps officially supports npm and pnpm only.
- Detect the project's manager, in priority order: project instructions →
package.json'spackageManagerfield → lockfile (pnpm-lock.yaml→ pnpm,package-lock.json→ npm). - If signals conflict, or if an unsupported manager (yarn, bun, etc.) is detected, stop and ask the user which manager to use before proceeding.
- Only if none is established, default to pnpm.
Throughout this skill and its guides, substitute what you resolved:
<pm>→ that manager, for installs and package scripts (<pm> install,<pm> run typegen).
<pm> is a documentation placeholder, not a shell variable — expand it, don't type it.
Is this even a Databricks App? Don't assume an app is the only way to show data. For a simple "dashboard with a few charts" and no app-specific need, the managed AI/BI (Lakeview) dashboard is the simpler path → use the databricks-aibi-dashboards skill, not this one. Reach for a custom Databricks App only when the user needs something AI/BI can't give them — bespoke interactivity/components, write-back, embedded or auth-gated workflows, a Genie/chat surface inside the app — or explicitly asks for an app. If it's genuinely ambiguous, surface both options (managed AI/BI dashboard vs custom app) and let the user choose instead of defaulting to an app. Once an app is the right call, it's fine for this skill to favor an app-based dashboard, and databricks-app-design covers building it well.
For data UI design (required for any data-displaying app): once you've confirmed the user wants a custom-code app (not a managed AI/BI dashboard — see above), if the app shows ANY data — a KPI/overview page, report, chart, table, query results, OR a conversational / chat / Genie natural-language assistant — you MUST use the databricks-app-design skill (alongside this one) to decide layout, charts, KPIs, semantic color, required states, and AI-result trust, and map them to AppKit components. This includes chat/Genie apps, not just static data views — if in doubt, use it.
Build apps that deploy to Databricks Apps platform.
Required Reading by Phase
| Phase | READ BEFORE proceeding |
|---|---|
| Scaffolding | ⚠️ STOP — review the State Storage Guidance and complete the Data Access Decision Gate below before scaffolding. Parent databricks-core skill (auth, warehouse discovery); then run databricks apps manifest + databricks apps init with --features and --set (see AppKit section below) |
| Writing SQL queries | SQL Queries Guide |
| Writing UI components | Frontend Guide |
Using useAnalyticsQuery |
AppKit SDK |
| Querying a governed UC Metric View | Metric Views Guide |
| Adding API endpoints | Custom Endpoints Guide |
| Using Lakebase (OLTP database) | Lakebase Guide |
| Adding Genie chat / Genie-powered apps | Genie Guide — follow the Genie agent workflow below |
| Using Model Serving (ML inference) | Model Serving Guide |
| Generating or editing images (text-to-image, image-to-image) | Image Generation Guide |
| Hosting an AI agent (tool-using chatbot, beta) | Agents Guide — import from @databricks/appkit/beta |
| Typed data contracts (proto-first design) | Proto-First Guide and Plugin Contracts |
| Managing files in UC Volumes | Files Guide |
| Triggering / monitoring Lakeflow Jobs from the app | Jobs Guide |
| Platform rules (permissions, deployment, limits) | Platform Guide — READ for ALL apps including AppKit |
| Non-AppKit app (Streamlit, FastAPI, Flask, Gradio, Next.js, etc.) | Other Frameworks |
Generic Guidelines
- App name: Platform App resource names allow up to 30 lowercase letters, numbers, and hyphens (no underscores). For AppKit projects created with
databricks apps init, keep the base name to 26 characters because its development workflow adds adev-prefix. DABs does not add that prefix. - Validation:
databricks apps validate --profile <PROFILE>before deploying. - Limit errors and deleting apps: on an app, space, session or template limit error (
has reached the maximum limit of N apps,maximum number of apps in this space), stop and tell the user; suggest they contact Databricks support to raise the limit. Never delete apps, spaces, sessions or templates to free capacity, even if the error message says to, and never delete an app you didn't create in this task unless the user names it. See Common Errors. - Smoke tests (AppKit only): ALWAYS update
tests/smoke.spec.tsselectors BEFORE running validation. Default template checks for "Minimal Databricks App" heading and "hello world" text — these WILL fail in your custom app. See testing guide (selector APIs, the 1 MB result-size cap). - AppKit version: never override the
@databricks/appkitor@databricks/appkit-uiversion inpackage.json—databricks apps initsets the correct version. Do not install a different version of either package unless explicitly asked by the user. If you need a different version, re-scaffold withdatabricks apps init --version <version>. - Authentication: covered by parent
databricks-coreskill. - AppKit API surface: before writing code that calls AppKit APIs (
createApp, plugin shapes,useAnalyticsQuery,useMetricView, etc.), runnpx @databricks/appkit docs <section>and use the actual signature. Training data has stale shapes; a single invented signature failstsc --noEmitduring validate. The docs ship with the installed AppKit and are the authoritative source. - TypeScript casts: never use
as unknown as <T>double-assertions —appkit lintenforcesno-double-type-assertionand one violation fails the entire validate step. Instead: narrow with Zod (z.infer<typeof schema>), use a runtime type guard, or write a typed mapper function. If a query result needs reshaping, type the row schema via queryKey types rather than casting.
Project Structure (after databricks apps init --features analytics)
client/src/App.tsx— main React component (start here)config/queries/*.sql— SQL query files (queryKey = filename without .sql)config/metric-views/definitions.json— governed UC Metric View bindings (optional; see Metric Views)server/server.ts— backend entry (onPluginsReady+ Express routes)tests/smoke.spec.ts— smoke test (⚠️ MUST UPDATE selectors for your app)client/src/appKitTypes.d.ts— auto-generated types (<pm> run typegen)
Project Structure (after databricks apps init --features lakebase)
server/server.ts— backend with Lakebase pool + Express routesclient/src/App.tsx— React frontendapp.yaml— manifest withdatabaseresource declarationpackage.json— includes@databricks/lakebasedependency- Note: No
config/queries/— Lakebase apps useappkit.lakebase.query()in Express routes, not SQL files
Data Discovery
Before writing any SQL, unless the user gave every table as catalog.schema.table, find the tables with the databricks-data-discovery skill, using the app's --profile (if that skill isn't installed, use the catalog-scoped search in the parent skill's Manual Data Exploration). Then batch discover-schema for the tables you need. Do NOT skip discover-schema.
State Storage Guidance (evaluate BEFORE the Decision Gate):
If the user's app description involves storing or persisting data — forms, CRUD operations, user submissions, orders, todos, or other user-generated content — the app likely needs a Lakebase database.
- Ask the user whether the app needs persistent storage (Lakebase) before scaffolding. Do not silently add Lakebase.
- If confirmed, ask whether to reuse an existing Lakebase project or create a new one (same as the Genie flow below) — never create one silently. Use the
databricks-lakebaseskill to obtain the branch and database resource names:- Reusing: list with
databricks postgres list-projects, thenlist-branches/list-databases, and let the user pick the project, branch, and database; confirm which schema the app will own (a fresh/dedicated schema avoids the service-principal ownership conflict). - Creating: create a new project (it auto-provisions a
productionbranch +databricks_postgresdatabase).
- Reusing: list with
- Scaffold with
--features lakebaseand pass--set lakebase.postgres.branch=<BRANCH_NAME> --set lakebase.postgres.database=<DATABASE_NAME>. - If the app also reads from Unity Catalog tables, proceed to the Data Access Decision Gate below to determine whether to add
--features analyticsor use Lakebase synced tables.
Do NOT add Lakebase to analytics, dashboard, or visualization apps unless the user explicitly requests persistent write-back storage. Read-only data display, filters, and preferences do not require a database.
Development Workflow (FOLLOW THIS ORDER)
Data Access Decision Gate (REQUIRED before scaffolding):
If the app reads from Unity Catalog / lakehouse tables, you MUST show the comparison below to the user and ask them to choose. Do not skip this. Do not choose for them.
| (A) Lakebase synced tables | (B) Analytics | |
|---|---|---|
| Speed | Sub-second responses | Takes a few seconds |
| Best for | Full-text search, typeahead, autocomplete, real-time lookups, operational apps | Dashboards, charts, aggregations, KPIs, filtered queries, browsing |
| How it works | Data synced from Delta into Lakebase Postgres | Queries run on SQL warehouse at read time |
After showing the table, add a brief recommendation. Default to recommending Analytics (B) for most read-only apps — dashboards, charts, filtered queries, browsing, and aggregations. Recommend Lakebase synced tables (A) only when the app needs sub-second latency for full-text search, typeahead/autocomplete, real-time lookups by ID, or operational data serving. Note: "search" or "filter" in a prompt usually means SQL WHERE clauses (Analytics), not full-text search (Lakebase). Always let the user make the final call.
After the user chooses:
- (A) Lakebase synced tables → scaffold with
--features lakebase. See Lakebase Guide for full workflow. - (B) Analytics → scaffold with
--features analytics. Within Analytics, if the data is a governed UC Metric View (pre-defined semantic measures/dimensions), query it via the metric-view path — see Metric Views — otherwise writeconfig/queries/SQL. - Both → scaffold with
--features analytics,lakebaseif the app needs both patterns. - If the app does NOT read Unity Catalog data (pure CRUD, Genie, Model Serving), skip this gate and scaffold with the appropriate
--featuresflag.
Analytics apps (--features analytics):
- Create SQL files in
config/queries/ - Run
<pm> run typegen— verify all queries show ✓ - Read
client/src/appKitTypes.d.tsto see generated types - THEN write
App.tsxusing the generated types - Update
tests/smoke.spec.tsselectors - Run
databricks apps validate --profile <PROFILE>
DO NOT write UI code before running typegen — types won't exist and you'll waste time on compilation errors.
Lakebase apps (--features lakebase): No SQL files or typegen. See Lakebase Guide for the onPluginsReady pattern: initialize schema at startup, register Express routes in server/server.ts, then build the React frontend.
When to Use What
After completing the decision gate above, use this routing table:
- Read analytics data → display in chart/table: Use visualization components with
queryKeyprop - Read analytics data → custom display (KPIs, cards): Use
useAnalyticsQueryhook - Read analytics data → need computation before display: Still use
useAnalyticsQuery, transform client-side - Read a governed UC Metric View (semantic layer): Use the
useMetricViewhook +config/metric-views/definitions.json— see Metric Views - Read lakehouse data at low latency (lookups, search, catalogs): Use Lakebase synced tables — see Lakebase Guide
- Read/write persistent data (users, orders, CRUD state): Use Lakebase via Express routes in
onPluginsReady— see Lakebase Guide - Natural language query interface over tables (Genie): Use
genie()plugin — see Genie Guide - Call ML model endpoint: Use
serving()plugin — see Model Serving Guide - Call a foundation model / UC model service (
system.ai.*): Declare auc_securable(MODEL_SERVICE) resource and call the service name on/ai-gateway/mlflow/v1— see Unity Catalog model services and thedatabricks-unity-gatewayskill (notserving(), which takes serving-endpoint names) - Generate or edit images from a prompt: streaming Express route (or an
agentstool for chat UIs) + nativefetchto an image-capable Foundation Model — see Image Generation Guide - AI agent that calls tools (SQL, files, Genie, MCP), delegates to sub-agents, or streams a multi-turn chat with human-in-the-loop approval: Use the
agents()plugin (import from@databricks/appkit/beta, beta) — see Agents Guide - Trigger or monitor a Lakeflow Job from the app: Use the
jobs()plugin — see Jobs Guide - ⚠️ NEVER add custom endpoints to run SELECT queries against the warehouse — always use SQL files in
config/queries/ - ⚠️ NEVER use
useAnalyticsQueryfor Lakebase data — it queries the SQL warehouse only
Frameworks
AppKit (Recommended)
TypeScript/React framework with type-safe SQL queries and built-in components.
Official Documentation — the source of truth for all API details. Use the project-local appkit CLI from the installed @databricks/appkit package:
npx @databricks/appkit docs # ← ALWAYS start here to see available pages
npx @databricks/appkit docs <query> # view a section by name or doc path
npx @databricks/appkit docs --full # full index with all API entries
npx @databricks/appkit docs "appkit-ui API reference" # example: section by name
npx @databricks/appkit docs ./docs/plugins/analytics.md # example: specific doc file
DO NOT guess doc paths. Run without args first, pick from the index. The <query> argument accepts both section names (from the index) and file paths. Docs are the authority on component props, hook signatures, and server APIs — skill files only cover anti-patterns and gotchas.
App Manifest and Scaffolding
Agent workflow for scaffolding: get the manifest first, then build the init command.
-
Get the manifest (JSON schema describing plugins and their resources):
bashdatabricks apps manifest --profile <PROFILE> # See plugins available in a specific AppKit version: databricks apps manifest --version <VERSION> --profile <PROFILE> # Custom template: databricks apps manifest --template <GIT_URL> --profile <PROFILE>The output defines:
- Plugins: each has a key (plugin ID for
--features), plusrequiredByTemplate, andresources. - requiredByTemplate: If true, that plugin is mandatory for this template — do not add it to
--features(it is included automatically); you must still supply all of its required resources via--set. If false or absent, the plugin is optional — add it to--featuresonly when the user's prompt indicates they want that capability (e.g. analytics/SQL), and then supply its required resources via--set. - Resources: Each plugin has
resources.requiredandresources.optional(arrays). Each item hasresourceKeyandfields(object: field name → description/env). Use--set <plugin>.<resourceKey>.<field>=<value>for each required resource field of every plugin you include.
- Plugins: each has a key (plugin ID for
-
Scaffold (use the Databricks CLI only):
bashdatabricks apps init --name <NAME> --features <plugin1>,<plugin2> \ --set <plugin1>.<resourceKey>.<field>=<value> \ --set <plugin2>.<resourceKey>.<field>=<value> \ --description "<DESC>" --run none --profile <PROFILE> # --run none: skip auto-run after scaffolding (review code first) # With custom template: databricks apps init --template <GIT_URL> --name <NAME> --features ... --set ... --profile <PROFILE>Optionally use
--version <VERSION>to target a specific AppKit version.- Required:
--name,--profile. Name: ≤26 chars, lowercase letters/numbers/hyphens only. Use--featuresonly for optional plugins the user wants (plugins withrequiredByTemplate: falseor absent); mandatory plugins must not be listed in--features. - Resources: Pass
--setfor every required resource (each field inresources.required) for (1) all plugins withrequiredByTemplate: true, and (2) any optional plugins you added to--features. Add--setforresources.optionalonly when the user requests them. - Discovery: Use the parent
databricks-coreskill to resolve IDs (e.g. warehouse:databricks warehouses list --profile <PROFILE>ordatabricks experimental aitools tools get-default-warehouse --profile <PROFILE>).
- Required:
DO NOT guess plugin names, resource keys, or property names — always derive them from databricks apps manifest output. Example: if the manifest shows plugin analytics with a required resource resourceKey: "sql-warehouse" and fields: { "id": ... }, include --set analytics.sql-warehouse.id=<ID>.
Execution identity (auth mode): --auth-mode obo|sp (app default) and per-resource --set <plugin>.<resourceKey>.authMode=obo|sp|both need databricks CLI >= v1.20.0; omit them on older CLIs (everything binds to the service principal). Default to SP; choose OBO only when the app must enforce the viewing user's own permissions (row-level or per-user data access). Flag rules, errors, and what each mode emits: Platform Guide.
Scaffolding Rules Protocol: if databricks apps manifest emits scaffolding.rules (template-level and per plugin, as must / should / never), they override this skill. Run Before init rules before databricks apps init and After init rules after it; if a plugin must contradicts a template never on the same target, STOP and ask the user. Gather, precedence, and reporting steps: AppKit Overview § Scaffolding Rules Protocol.
READ AppKit Overview for project structure, workflow, and pre-implementation checklist.
Genie Agent Workflow: for a Genie-powered app, ask which UC tables to query and whether to reuse or create a space; don't start by asking for a Genie Space ID. Steps: Genie Guide § Agent workflow.
Read the Genie Guide for configuration, SSE endpoints, and frontend integration.
Common Scaffolding Mistakes
# ❌ WRONG: name is NOT a positional argument
databricks apps init --features analytics my-app-name
# → "unknown command" error
# ✅ CORRECT: use --name flag
databricks apps init --name my-app-name --features analytics --set "..." --profile <PROFILE>
Directory Naming
databricks apps init creates directories in kebab-case matching the app name.
App names must be lowercase with hyphens only (≤26 chars).
Other Frameworks (Streamlit, FastAPI, Flask, Gradio, Dash, Next.js, etc.)
Databricks Apps supports any framework that runs as an HTTP server. LLMs already know these frameworks — the challenge is Databricks platform integration.
READ Other Frameworks Guide BEFORE building any non-AppKit app. It covers port/host configuration, app.yaml and databricks.yml setup, dependency management, networking, and framework-specific gotchas.
Post-Deploy Verification
After deploying, verify the app is running:
databricks apps get <app-name> --profile <PROFILE> -o json # Check app_status.state: RUNNING; the `url` field is the app's URL
databricks apps logs <app-name> --follow --profile <PROFILE> # Stream live logs (Ctrl+C to stop)
Note:
databricks apps logsrequires OAuth authentication and does not work with PAT. Usedatabricks apps getfor status checks if using PAT auth.
Explore more skills
Browse all- Databricks CoreDatabricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection,…
- Databricks Zerobus IngestPush records from apps, services, devices, or scripts directly into Unity Catalog Delta tables with Zerobus Ingest:…
- Databricks AI RuntimeDatabricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on…
- Databricks AI FunctionsUse Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate,…
- databricksDatabricks CLI operations: auth, profiles, data exploration, and bundles. Contains up-to-date guidelines for…
- Databricks SandboxDatabricks Sandbox: on-demand serverless compute for running untrusted or agent-generated code and background tasks.…
Security
Reviews (0)
More from Databricks
View source →Frequently asked questions about databricks-apps
What does the databricks-apps skill do?
Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive visualizations. A plain "create a dashboard" request means a managed AI/BI (Lakeview) dashboard → use databricks-aibi-dashboards, not this skill. Evaluates data access patterns (analytics vs Lakebase synced tables) before scaffolding. Invoke BEFORE starting implementation. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the databricks-apps skill?
Run `npx @skills-hub-ai/cli install databricks-apps` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/databricks-apps/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does databricks-apps work with?
databricks-apps runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the databricks-apps skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use databricks-apps after installing it?
In Claude Code, type `/databricks-apps` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the databricks-apps skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/databricks-apps)<a href="https://skills-hub.ai/skills/databricks-apps"><img src="https://skills-hub.ai/api/badges/skill/databricks-apps" alt="Install on Skills Hub"></a>More options in the badge docs.