Helps set up and operate the Atlas Kubernetes Operator: Helm install, AtlasSchema/AtlasMigration resources, Atlas Cloud integration, drift detection, security scans, GitOps deployment, and troubleshooting.
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.
The Atlas Kubernetes Operator applies schema changes from Kubernetes resources
(https://atlasgo.io/integrations/kubernetes). This skill covers installing it, writing its resources,
connecting it to Atlas Cloud, deploying through GitOps, and reading its status when something fails. The
atlas skill covers the Atlas CLI, which still generates, lints, tests, and pushes the changes the
operator deploys.
This skill is SKILL.md plus eleven reference files under references/, each served at
https://atlasgo.io/skills/atlas-operator/references/<name>. Read a reference when the task needs it:
| File | Read it for |
|---|---|
references/install.md | Helm install and upgrade, chart values, the operator-wide token, persistence, SQL Server, TLS certificates, what helm uninstall removes |
references/credentials.md | Database URLs in Secrets, the credentials block, URL scope, in-cluster DNS, Atlas Cloud bot tokens |
references/dev-database.md | The dev database the operator creates, devURL, devURLFrom, devDB.spec, devDB.metadata, prewarming |
references/declarative.md | AtlasSchema: schema sources, the registry, lint, review, and diff policies, approvals, exclude, schemas |
references/versioned.md | AtlasMigration: directory sources, registry tags, baseline, history table, execution order, down migrations |
references/drift.md | policy.drift before each deployment, the scheduled AtlasDriftCheck, recovering from drift |
references/gitops.md | Deploying by changing the manifest, CI that updates the tag, Argo CD sync waves and health, Argo Rollouts, Octopus Deploy, Flux, Crossplane |
references/config.md | Custom atlas.hcl (config, configFrom, vars, envName), RDS and Cloud SQL IAM authentication |
references/security-scan.md | AtlasSecurityScan and AtlasSecurityReport: schedules, triggers, policy, waivers, access |
references/troubleshooting.md | Reading conditions, events, and logs, forcing a retry, each error with its cause and fix |
references/testing.md | Testing changes before they reach the cluster, and verifying each rollout |
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>. When the engine has a database skill, such as
../atlas-postgres/SKILL.md or ../atlas-mssql/SKILL.md, also read it: its rules on scope and objects
apply to what the operator deploys.
From an empty cluster to production, in order:
persistence on so the token's cached grant survives restarts
(references/install.md).references/credentials.md).AtlasMigration for a migration directory
(references/versioned.md), AtlasSchema for a desired state (references/declarative.md).references/gitops.md).AtlasSchema; migrate lint in CI and protected down
migrations for AtlasMigration.references/gitops.md).references/drift.md, references/security-scan.md).references/testing.md).cloud.tokenFrom, a Secret holding a bot token from Atlas Cloud: the registry, review policies and
approvals, drift checks, security scans, custom config, and objects beyond tables and indexes, such as
views, triggers, functions, and extensions. The operator has no atlas login session, and without a
token those features fail or are skipped. A user without an account starts a free trial with
atlas login, then creates the bot in Atlas Cloud (references/credentials.md). Enable the chart's
persistence: the operator caches the token's grant on it, which keeps Pro features working when
Atlas Cloud is unreachable, across pod restarts (references/install.md).urlFrom for the target, devURLFrom for a dev database, and
cloud.tokenFrom for the token, each in the resource's namespace. Never write a password or token
into a manifest or the conversation; ask the user to create the Secret. The operator connects from its
own namespace, so an in-cluster host needs its namespace-qualified name, such as postgres.default.search_path in PostgreSQL, the
database in the MySQL path) limits Atlas to it and writes unqualified DDL. Qualified objects, several
schemas, extensions, and roles need a database-scoped URL. A devURL you provide has the target's
scope (references/credentials.md).does not exist: create it in the desired state, or point devURL at a dev
database that has it. The dev database runs the engine's latest image; pin the target's version with
devDB.spec when they differ (references/dev-database.md).dir.remote.tag or the tag in schema.url
(references/gitops.md).AtlasSchema explicitly. Without a token, the operator refuses drops only on
the first run, then applies whatever the desired state implies, drops included. With a token, it
holds destructive changes for review and needs a plan repository (cloud.repo, or an atlas://
schema URL) to publish them for approval. Use policy.lint.destructive.error: true to block drops,
policy.lint.review with a repository to approve changes, and policy.diff.skip for changes that
must never be planned (references/declarative.md).atlas migrate apply --dry-run from the CLI. Down migrations are blocked
until protectedFlows.migrateDown.allow: true; with a registry directory, the sign-off comes from the
directory's protected flow in Atlas Cloud (references/versioned.md).AtlasMigration, gate deployments with
policy.drift and check on a schedule with AtlasDriftCheck. Both compare against states that the
registry stores only for pushes without a tag, so CI pushes untagged as well. AtlasSchema has no
drift detection: its next apply reverts manual changes, or holds the revert for review
(references/drift.md).Ready=True. Use Argo CD sync waves, Flux dependsOn with health checks,
or kubectl wait --for=condition=Ready. With canary or blue-green rollouts, such as Argo Rollouts,
old and new versions share the new schema: keep migrations backward compatible. Helm hooks and init
containers that run migrations are deprecated (references/gitops.md).atlas.hcl (config, configFrom) needs the operator installed with
allowCustomConfig=true, a token, and envName naming the env block. When that env sets url, the
resource's url, urlFrom, and credentials are ignored (references/config.md).kubectl describe shows the Ready reason and message and
the Events. A failed AtlasSchema apply is not retried: fix the cause, then change the spec or
restart the operator. An AtlasMigration retries up to backoffLimit (20 by default), then waits
for a change. Annotations do not trigger a retry (references/troubleshooting.md).helm upgrade. Never helm uninstall to reset the operator: it deletes the CRDs and every Atlas
resource with them. Deleting a resource leaves its database as it is (references/install.md).atlas schema test and atlas migrate test from the CLI, as the atlas skill describes. After the
rollout, wait for Ready=True and check the applied version or plan (references/testing.md).| Question | Answer |
|---|---|
helm repo add fails for the chart | The chart is published only to an OCI registry: helm install atlas-operator oci://ghcr.io/ariga/charts/atlas-operator (references/install.md) |
| A new tag was pushed, and nothing happened | The operator acts on resource changes only: update the tag in the manifest (references/gitops.md) |
ProtectedFlowError: migrate down is not allowed, set `migrateDown.allow` to true to allow downgrade | The manifest points at a version older than the database: restore the tag, or allow the revert with protectedFlows (references/versioned.md) |
ApprovalPending, with a link in status.planLink | Approve the plan in Atlas Cloud; the operator applies it on its next check (references/declarative.md) |
Rejected by review policy: errors or warnings were found | The resource has a token but no plan repository: set cloud.repo, or use an atlas:// schema URL (references/declarative.md) |
auto-approve is not allowed when a lint policy is set to "ERROR" | policy.lint.review without a cloud block: add cloud.tokenFrom and a repository (references/declarative.md) |
flag '--format' is not allowed in interactive mode with review: ALWAYS | The plan has nowhere to go: set cloud.repo (references/declarative.md) |
FirstRunDestructive: first run of a schema must not contain destructive changes | The desired state omits objects that exist in the database: declare them, exclude them, or narrow the URL scope, then change the spec (references/declarative.md) |
destructive changes detected: - Dropping ... | policy.lint.destructive.error blocked a drop: confirm it and adjust the policy, or skip the change with policy.diff.skip (references/declarative.md) |
role "..." does not exist, function ... does not exist, or schema "..." does not exist, only on the operator | The dev database lacks it: create it in the desired state, add a token for Pro objects such as extensions, or set devURL (references/dev-database.md) |
cannot diff a database connection with a schema "<name>" | The dev URL's scope differs from the target's: give both the same search_path (references/dev-database.md) |
devdb: unsupported driver "<driver>". You need to provide the devURL on the resource | No automatic dev database for that engine: set devURL or devURLFrom (references/dev-database.md) |
The resource stays at GettingDevDB | The dev database pod does not start: inspect the <name>-atlas-dev-db Deployment and its pods (references/dev-database.md) |
cannot use remote directory without Atlas Cloud token | Add cloud.tokenFrom to the AtlasMigration; an operator-wide ATLAS_TOKEN does not count (references/credentials.md) |
login is required to use ... for SQL Server, ClickHouse, Redshift, or a Pro feature | The operator has no token: add cloud.tokenFrom to the resource, or ATLAS_TOKEN to the chart's extraEnvs, a Helm value and not a resource field (references/install.md) |
install the operator with "--set allowCustomConfig=true" to use custom atlas.hcl config | Upgrade the release with --set allowCustomConfig=true (references/config.md) |
env block "<name>" is not found, or env name must be set when using custom atlas.hcl config | Set envName to the env block's name, or name the block name = atlas.env (references/config.md) |
connected database is not clean: ... baseline version or allow-dirty is required | Set baseline to a version in the directory, and keep the URL to the schemas the directory manages (references/versioned.md) |
checksum mismatch | atlas.sum does not match the files: re-hash with atlas migrate hash, and build the ConfigMap with kubectl create configmap --from-file instead of a template (references/versioned.md) |
CREATE INDEX CONCURRENTLY cannot run inside a transaction block | Start the file with -- atlas:txmode none and a blank line (references/versioned.md) |
DriftDetected on an AtlasMigration | The database changed outside Atlas: see what drifted with atlas migrate drift, then revert it, exclude it, or adopt it (references/drift.md) |
spec.policy.drift requires a migration directory on the Atlas Registry | The pre-apply drift check needs dir.remote (references/drift.md) |
A failed AtlasSchema stays failed after the database recovered | Its failed applies are not retried: change the spec, or restart the operator (references/troubleshooting.md) |
The resource stays Reconciling after a successful apply under Argo CD | Upgrade the operator (references/troubleshooting.md) |
| Pro features fail after the operator pod restarts while Atlas Cloud is unreachable | The grant cache was lost with the pod: enable the chart's persistence (references/install.md) |
| The SQL Server dev database never starts | Accept the image's EULA: MSSQL_ACCEPT_EULA and MSSQL_PID in extraEnvs (references/install.md) |
The database is unreachable at localhost or a short service name | Use the namespace-qualified service name, such as postgres.default (references/credentials.md) |
references/config.md (opens in a new tab)references/credentials.md (opens in a new tab)references/declarative.md (opens in a new tab)references/dev-database.md (opens in a new tab)references/drift.md (opens in a new tab)references/gitops.md (opens in a new tab)references/install.md (opens in a new tab)references/security-scan.md (opens in a new tab)references/testing.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/versioned.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/atlas:atlas-operatorfrom 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-databricksDatabricks specifics for Atlas: the extended binary and login, connection URLs and scope (catalog vs schema), the dev catalog (no Docker), Delta table properties, managed and external tables, partitioning and liquid clustering, generated and identity columns, defaults and column mapping, renames, informational keys and checks, collations, column masks and row filters, views, metric views, and materialized views, SQL and Python functions, procedures, Unity Catalog grants, no transactions and no locks, partial failures, schema and migration tests, and custom lint rules. Use with the atlas skill whenever Atlas manages a Databricks database. For Databricks Lakebase, use atlas-lakebase./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.Other plugins' skills for the same job