Extends the Atlas skill with Databricks-specific schema management: Unity Catalog objects, Delta tables, views, functions, procedures, grants, migrations, and custom lint rules.
Ships in Atlas. 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.
Read when SKILL.md points to them.
What is specific to Databricks when Atlas manages the schema. The atlas skill covers the workflows and
commands; this skill covers the rules, edge cases, and answers that differ on Databricks. Atlas connects
through a SQL warehouse and manages Unity Catalog objects: schemas, Delta tables, views, materialized
views, functions, procedures, and grants.
Databricks Lakebase is a managed PostgreSQL service, not a Unity Catalog database: Atlas manages it with
the postgres driver, so use the atlas-lakebase skill instead, with atlas-postgres
(https://atlasgo.io/guides/postgres/databricks-lakebase).
This skill is SKILL.md plus seven reference files under references/, each served at
https://atlasgo.io/skills/atlas-databricks/references/<name>. Read a reference when the task needs it:
| File | Read it for |
|---|---|
references/dev-database.md | Installing the extended binary, connection URLs and their scope, the dev catalog and its clean checks, what normalization keeps, the dev block and baseline |
references/security.md | Grants on schemas, tables, views, and routines, Unity Catalog principals, privileges, grants on objects the schema does not declare, masks and row filters |
references/objects.md | Delta properties, managed and external tables, partitioning and clustering, keys and checks, generated and identity columns, defaults, column changes, renames, collations, types, views, metric views, materialized views, routines, what Atlas does not manage |
references/hcl.md | Writing the schema in HCL: the NOT NULL default, types, every Databricks block and attribute, views, metric views, materialized views, functions, procedures, permissions |
references/migrations.md | Lint codes on Databricks, --tx-mode none and the atlas:txmode none directive, partial failures and recovery, no locks, the revisions table, baselines |
references/testing.md | Testing every change: why atlas schema test does not run on Databricks, migration tests with seeded rows that also cover functions, views, masks, and checks, CI |
references/custom-rules.md | Writing a custom lint rule in the HCL rule language when no analyzer covers a check: predicates, operators, what each Databricks object exposes, examples |
The atlas skill, installed next to this one (../atlas/SKILL.md). If it is missing, download
https://atlasgo.io/skills/atlas/SKILL.md to ../atlas/SKILL.md and each reference file listed in its
Files section to ../atlas/references/<name>.
atlas whoami. If it shows no login, ask the user to run atlas login:
logged out, every command that opens a Databricks URL fails, so nothing is skipped silently. The
driver ships only in the extended binary (ATLAS_FLAVOR="databricks" for the install script, or
the arigaio/atlas:latest-extended image). A user without an account can start a free trial with
atlas login.schema
(databricks://<token>@<host>:443<warehouse-path>?catalog=<catalog>&schema=<schema>): Atlas
manages that schema and writes unqualified statements. Catalog scope, no schema: Atlas covers
every schema of the catalog and qualifies each statement (`default`.`users`).catalog parameter.default included, is planned for
DROP SCHEMA ... CASCADE. Declare schema "default" {}, or use schema scope.?catalog=atlas_dev&schema=default, or ?catalog=atlas_dev.default schema, and every schema in it must be empty. Never point dev at
a catalog that holds data (references/dev-database.md).schema apply
and migrate apply default to --tx-mode file and fail with an error that starts with
starting transaction: before running anything. Run both with --tx-mode none, or set
tx_mode = "none" in the env's migration block. Start every migration file with
-- atlas:txmode none and a blank line, or atlas migrate test fails the same way. Each statement
commits on its own, so a file or plan that fails halfway stays half applied; keep files small and
test them first (references/migrations.md).--lock-timeout has no effect, and two deployments to one target
can run at the same time. Serialize deployments in CI, with one concurrency group per target.delta.* properties onto every table. Atlas compares only the properties the
desired state lists, and removing a property from the schema plans nothing: write
ALTER TABLE ... UNSET TBLPROPERTIES by hand. After schema inspect, keep only the properties the
team owns (references/objects.md, Table Properties).is set on creation only: identity and generated columns, partition, and provider.
Changing them means a new table and a hand-written data copy. Clustering, location, comments, and
properties change in place (references/objects.md).renamed_from, so a renamed column or table is
planned as a drop and an add, and its data is lost. Write renames by hand in a migration file. Other
column changes expand into several statements: a drop first sets
'delta.columnMapping.mode' = 'name', and a new column with a default or NOT NULL is added plain,
then altered (references/objects.md, Renames).ON DELETE or
ON UPDATE. A changed key is dropped and re-added. A check changed under the same name, or a
renamed primary key, fails at planning: give the check a new name, and rename the key by hand
(references/objects.md, Keys and Constraints).CREATE OR REPLACE MATERIALIZED VIEW; only its refresh schedule,
row filter, and column comments and masks change in place. A plain view's query changes in place
with ALTER VIEW ... AS; one that declares column blocks is rewritten (references/objects.md).mode { permissions = true } in the env's schema block. Grantees are
Unity Catalog principals that already exist; Atlas creates none. Once the mode is on, a grant the
desired state does not declare on a managed object is revoked (references/security.md).atlas schema validate, then
atlas migrate test: atlas schema test does not run on Databricks, so write test "migrate"
cases for everything. Add one for each function, procedure, mask, row filter, view, or check you
add or change, and one with seeded rows for each migration that moves, converts, or drops data
(references/testing.md).references/custom-rules.md).| Question | Answer |
|---|---|
The databricks driver is available only as custom build. | Install the extended binary with ATLAS_FLAVOR="databricks" (Rule 1) |
login is required to use the 'databricks' driver | Run atlas login, or atlas login --token in CI (Rule 1) |
| Which URL to give Atlas | databricks://<token>@<host>:443/sql/1.0/warehouses/<id>?catalog=<catalog>, with &schema=<schema> for schema scope (references/dev-database.md, Connection URLs) |
| A dev database for Databricks | A dedicated empty catalog: CREATE CATALOG IF NOT EXISTS atlas_dev; (references/dev-database.md) |
connected database is not clean: found table "..." in schema "..." | The dev catalog is not empty, or dev points at a real catalog (references/dev-database.md, Errors) |
connected database is not clean: default schema "default" not found | The dev catalog lost its default schema: create it again (references/dev-database.md, Errors) |
connected database is not clean: ... baseline version or allow-dirty is required | migrate apply on a target that has objects but no revisions table: baseline it (references/migrations.md, Existing Databases) |
databricks: schema "..." was not found | The URL's schema parameter names a schema that does not exist in that catalog (references/dev-database.md, Errors) |
starting transaction: ... from schema apply or migrate apply | Add --tx-mode none, or tx_mode = "none" in the migration block (Rule 4) |
The same error from atlas migrate test | The file has no -- atlas:txmode none header: add it to every file, then atlas migrate hash (references/testing.md) |
The same error from every case of atlas schema test | Schema tests do not run on Databricks: cover the change with test "migrate" cases (references/testing.md, Schema Tests Do Not Run) |
A plan drops schemas with DROP SCHEMA ... CASCADE | Catalog scope covers every schema: declare them, limit the run with --schema, or use schema scope (Rule 2) |
| A table property was removed from the schema, and the plan has no change | Expected: write ALTER TABLE ... UNSET TBLPROPERTIES by hand (Rule 6) |
The migration's CREATE TABLE lists every delta.* property | The desired state lists them, often an inspected HCL file. Trim them (references/objects.md, Table Properties) |
the PARTITIONED BY clause of a table is set on creation only | Partitioning cannot change in place: create a new table and copy the data (Rule 7) |
a generated column is set on table creation only, or the generated clause of a column is set on creation only | Identity and generated columns exist only at table creation: use a new table, or a plain column (Rule 7) |
unsupported type: "OBJECT", or another type name | Atlas inspects OBJECT and type names it does not know, but cannot create them: keep the table out with exclude (references/objects.md, Types) |
A rename shows up as a drop and an add, or unknown attribute renamed_from in block of type column | Databricks has no renamed_from: write the rename in a migration file (references/objects.md, Renames) |
unsupported modify table change after editing a check or renaming a primary key | Give the changed check a new name; rename the key in a hand-written migration (references/objects.md, Keys and Constraints) |
Lint reports CD101 or CD103 on a key that only changed | Atlas drops and re-adds a modified foreign or primary key (Rule 9) |
Lint reports DS103 on a hand-written RENAME COLUMN | Lint reads the rename as a drop and an add (references/migrations.md, What Lint Catches on Databricks) |
unknown attribute default in block of type column, or unknown block type primary_key in block of type view | A plain view's columns take only type, null, and comment; masks, keys, and expectations belong to materialized (references/hcl.md, Views) |
| Grants never show up in inspection or plans | Turn on mode { permissions = true } (references/security.md, Turn It On) |
unknown attribute grantable in block of type permission | Databricks has no WITH GRANT OPTION: remove grantable (references/security.md) |
cluster auto: must be true, or omit the block, or refresh on_update: must be true, or omit the block | Omit the block instead of setting it to false (references/hcl.md) |
A migration failed halfway, and migrate status shows it as partially applied | The statements before the failure stayed applied: fix the rest and run atlas migrate hash (references/migrations.md, Transactions) |
ambiguous revision table after changing the URL's scope | Set --revisions-schema to the schema that holds the existing table (references/migrations.md, Revisions Table) |
LANGUAGE PYTHON is not a clause of CREATE PROCEDURE, or DETERMINISTIC is not a clause of CREATE PROCEDURE | Procedures are SQL only, and take deterministic = false at most (references/objects.md, Functions and Procedures) |
references/custom-rules.md (opens in a new tab)references/dev-database.md (opens in a new tab)references/hcl.md (opens in a new tab)references/migrations.md (opens in a new tab)references/objects.md (opens in a new tab)references/security.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
atlas, databricks, schema-migration, unity-catalog, delta-lake
/atlas:atlas-databricksfrom Atlas
npx claudepluginhub ariga/atlas --plugin atlas14 skills in this plugin
/atlasDatabase schema management, migrations, data scripts, and Atlas Cloud operations with the Atlas CLI. Use when: generating or applying migrations, diffing, linting, validating, or testing schemas, working with atlas.hcl, schema.hcl, or ORM schemas (GORM, Drizzle, SQLAlchemy, Django, Ent, Sequelize, TypeORM, Prisma), running data backfills, purges, or reports with atlas script, or answering questions about Atlas Cloud: which databases are synced, pending, or failed, recent or failed deployments, what is waiting for deployment, registry repos, and pending plan approvals./atlas-actionAtlas in CI/CD pipelines with the Atlas actions: ariga/setup-atlas and ariga/atlas-action on GitHub Actions, the GitLab CI components, the CircleCI orb, the Bitbucket pipe, and the Azure DevOps AtlasAction task. The CI/CD steps (migrate lint, push, diff, hash, autorebase, test, apply, down, set, drift; schema plan, plan approve, push, apply, lint, test; script exec, query, loop, test, push; security scan; monitor schema; create-repo) with its inputs, outputs, tokens, permissions, and pull request comments, plus pinning versions, runners, and fixing a failed run. Use with the atlas skill whenever a pipeline runs Atlas or an Atlas check in CI fails./atlas-clickhouseClickHouse specifics for Atlas: the login-only driver, dev database and URL scope (database vs server), Docker dev images and version checks, cluster mode and ON CLUSTER, table engines, sort keys and table rebuilds, plans that skip destructive changes without a terminal, table recreation and the allow_recreate policy, mutations and CH lint checks, materialized views, dictionaries, UDFs and WASM, named collections, users, roles, grants, row policies and settings profiles, secret settings and the sensitive mode, no transactions and no lock, ClickHouse Cloud, schema and migration tests, and custom lint rules. Use with the atlas skill whenever Atlas manages a ClickHouse database./atlas-lakebaseDatabricks Lakebase specifics for Atlas: the databricks_lakebase_token data source and the Databricks credentials it uses (a CLI profile, or a service principal with the workspace-access entitlement), the endpoint host instead of the -pooler host, the Postgres role in the URL, password roles, the objects Lakebase manages in every database (__db_system, three grant_* functions, three on_create_* event triggers) and how to exclude them at schema and database scope, the first migrate apply, drift checks, object ownership, and Lakebase errors. Use with the atlas and atlas-postgres skills whenever Atlas manages a Databricks Lakebase database./atlas-mssqlSQL Server specifics for Atlas (also Azure SQL and MSSQL): login, Azure SQL sign-in with Microsoft Entra ID (fedauth, no password), dev database and URL scope (mode=schema vs mode=database, the database query parameter), compatibility level and collation, system-generated constraint names, clustered index defaults and datetime2 precision in HCL, GO batches and the delimiter directive, transactions and statements that cannot run in one, identity, computed and temporal columns, alias and table types, changes planned as a drop and an add, what Atlas leaves out (DENY, synonyms, row-level security, sparse columns), database roles, users and grants, schema and migration tests, and custom lint rules. Use with the atlas skill whenever Atlas manages a SQL Server or Azure SQL database./atlas-mysqlMySQL and MariaDB specifics for Atlas: dev database and URL scope (schema vs server), character sets and collations, users, roles and grants, enum and set columns, generated columns, foreign-key indexes, functional and prefix indexes, triggers and stored programs, table copies and MY lint checks, partial migration failures (no transactional DDL), GET_LOCK, managed services (RDS, Aurora, Cloud SQL, Azure), schema and migration tests, and custom lint rules. Use with the atlas skill whenever Atlas manages a MySQL or MariaDB database.Other plugins' skills for the same job