databricks-app

databricks-app is a skill for Claude Code, Codex from mexmarv/ai-genie-factory. It costs 63 tokens per session (1,591 once invoked), scanned A, original, MIT.

A set of architecture and deployment rules for Databricks Apps, which are web applications hosted in Databricks and built with Dash or Streamlit.

In plain words
What is it for?
Use it when creating or reviewing app.py, app.yaml, requirements, permissions, startup behavior, deployment, or debugging.
Why use it?
It keeps data access, business rules, user-interface code, configuration, and deployment settings in clear places.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or reviewing app.py, app.yaml, requirements, permissions, startup behavior, deployment, or debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mexmarv/ai-genie-factory/databricks-app
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.

Any agent
npx skills add mexmarv/ai-genie-factory --skill databricks-app
Clone the repo
git clone --depth 1 https://github.com/mexmarv/ai-genie-factory

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 databricks-app

README.md
[![agentmods](https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/databricks-app/github.svg)](https://agentmods.dev/skills/mexmarv/ai-genie-factory/databricks-app)
Your own site
<a href="https://agentmods.dev/skills/mexmarv/ai-genie-factory/databricks-app"><img src="https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/databricks-app/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for databricks-app

Your own site · 80×15
<a href="https://agentmods.dev/skills/mexmarv/ai-genie-factory/databricks-app"><img src="https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/databricks-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00063 $0.01591
Opus 5 $0.00032 $0.00796
Sonnet 5 $0.00013 $0.00318
Haiku 4.5 $0.00006 $0.00159

Measured 12d ago against content hash ebe49da6ddf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

databricks-app 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 12d 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/databricks-app/SKILL.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Databricks App Architecture — Alpura

Apply to every Databricks App. The workspace instructions are authoritative if another example conflicts with this skill.

Required architecture

my-app/
├── app.py              # orchestration, configuration, layout wiring, callbacks
├── data.py             # WorkspaceClient Statement Execution reads only
├── logic.py            # pandas transformations and business rules only
├── ui.py               # Plotly figures and Dash/Streamlit components only
├── _logger.py          # shared structured logger
├── app.yaml            # command and resource-backed environment variables
├── requirements.txt
└── APP.md              # purpose, audience, Gold tables, filters, KPIs, acceptance criteria

Rules

  • No Spark session exists in Databricks Apps.
  • data.py uses WorkspaceClient().statement_execution and follows @data-access.
  • logic.py has no SQL and no UI imports.
  • ui.py has no SQL, remote access, KPI definitions, or aggregations.
  • app.py owns validated configuration and orchestration; it contains no SQL.
  • UI-facing reads are Gold-only and use three-part Unity Catalog names.
  • Reuse centrally defined semantic KPIs; never recalculate them in an app.
  • Import get_logger from _logger.py in every Python module; never use print().
  • Catch and translate exceptions at every layer boundary. Never show raw tracebacks.
  • Every visual UI supports alpura-dark and alpura-light from @ui-ux-patterns.

Configuration pattern

All values vary by environment and must come from app resources or environment variables. Validate them during startup without opening a remote connection.

"""Application entry point and orchestration."""
import os

from _logger import get_logger

logger = get_logger(__name__)

CONFIG = {
    "table_name": os.environ["UC_TABLE_NAME"],
    "warehouse_id": os.environ["DATABRICKS_WAREHOUSE_ID"],
    "row_limit": int(os.environ["APP_ROW_LIMIT"]),
}

logger.info("Config loaded")

Read the full file on GitHub · 202 lines

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. 12d ago First seen · 202 lines · 63 tokens per session scan A ebe49da6ddf3

Subscribe to this mod's changes

databricks-app is a skill published in the GitHub repository mexmarv/ai-genie-factory (5 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 1,591 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

cloud-deploy-gate

The pre-deployment gate for managed AI platforms (Azure AI Foundry, Google Vertex AI, AWS Bedrock), evals packed, budget set, guardrails on, owner named. Use before any cloud deployment.

zorost/AI-Engineering-Lab · 49 tokens

databricks-expert

Expert-level Databricks platform, Apache Spark, Delta Lake, MLflow, notebooks, and cluster management. Use when the user mentions Apache Spark, Delta Lake, MLflow, lakehouse architecture, or PySpark, or when the task involves Cluster Configuration and Management, Delta Lake Architecture, PySpark Data Processing, or…

personamanagmentlayer/pcl · 74 tokens

data-divergence

Investigate why two datasets that should agree don't — two pipelines writing the same logical table, a rollup vs the detail it aggregates, a dashboard vs its source, one environment vs another. Use when row counts, totals, or date ranges disagree and the question is what happened rather than just what differs. Covers…

andre-salvati/databricks-template · 123 tokens

sql-diagram

Diagram a SQL query and explain what it shows — either its execution steps (mode=plan) or its column lineage (mode=lineage) — then trace it through small data so the defects the picture cannot show become visible. Use when asked to visualize, diagram, explain or review what a query does, how it joins its tables, or…

andre-salvati/databricks-template · 121 tokens

project-costs

Run the project cost report and write the analysis into it. Use when asked about this project's cloud spend, cost anomalies, spikes or trends, DBU/DSU consumption, per-job or per-pipeline cost, or the AWS vs Databricks split. Runs make project-costs (AWS Cost Explorer + Databricks system.billing), then analyses the…

andre-salvati/databricks-template · 93 tokens

databricks-platform-provisioning

Provision and test Databricks workspaces. Use when the user asks to create a workspace, set up a new environment, provision infrastructure, bootstrap Databricks, test a workspace, verify a deployment, or run validation checks against a Databricks workspace. Covers Azure, AWS, and GCP.

databricks-solutions/ai-platform-kit · 69 tokens