atlas-postgres
Skill by ariga
Adds PostgreSQL-specific rules to Atlas, a schema management tool. It covers dev databases, roles and grants, row-level security, and lock-safe migrations. Use it with the atlas skill whenever Atlas manages a PostgreSQL database.
Install atlas-postgres
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ariga/atlas /tmp/atlas && mkdir -p ~/.claude/skills && cp -r /tmp/atlas/skills/atlas-postgres ~/.claude/skills/atlas-postgresRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ariga/atlas /tmp/atlas && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/atlas/skills/atlas-postgres ~/.gemini/antigravity-cli/skills/atlas-postgresAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
atlas-postgres is a skill that gives an AI assistant PostgreSQL-specific rules for Atlas, a tool that manages database schemas. It covers the dev database and URL scope, extensions, roles and grants, default privileges, ownership, and row-level security. It also covers sequences, enums, column type changes, partitions, triggers, and concurrent indexes.
The skill is a SKILL.md file with seven reference files that the assistant reads when a task needs them. It covers lock-safe migrations, connection poolers, schema and migration tests, and custom lint rules. It is for developers who use Atlas to manage a PostgreSQL database and who use it together with the atlas skill. PostgreSQL-compatible engines such as CockroachDB behave differently and need their own guides.
Written from the project's SKILL.md and checked against it.
What it can do
- Dev database setupSets up a dev database that matches the target's major version and extensions, using a docker URL.
- URL scopeExplains when to use schema scope with search_path and when to use database scope.
- Roles and grantsCovers managing roles, GRANT and REVOKE, and external roles in migrations.
- Default privilegesExplains ALTER DEFAULT PRIVILEGES and the default_permissions setting.
- Row-level securityCovers policies and testing row-level security as a non-privileged role.
- Lock-safe migrationsCovers concurrent indexes, NOT VALID constraints, and transaction modes in migration files.
- Column and type changesExplains when a hand edit with USING, setval, or a new enum value is needed.
- Schema and migration testsCovers test blocks for functions, triggers, views, policies, and seeded migrations.
- Custom lint rulesExplains how to write lint rules in the HCL rule language for conventions Atlas does not check.
- Connection poolers and managed servicesAdvises on using direct connections for RDS, Cloud SQL, Supabase, Neon, and Azure.
What you need
- Atlas CLI with an Atlas account (atlas login)
- The atlas skill installed in the sibling folder
- Docker, for the dev database (docker:// URLs)
Try asking
- Set up a local PostgreSQL 17 dev database for my Atlas migrations
- Write a migration that adds an index on a large table without locking it
- Add a test case for a new trigger function in my Atlas schema
Good to know
- Covers PostgreSQL only. Compatible engines such as CockroachDB need their own guides.
- Logged-out Atlas skips views, functions, triggers, and policies, so run atlas login first.
- Do not point the dev URL at a real environment's database.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/atlas-postgres/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB -
references/custom-rules.md8 KB -
references/dev-database.md15 KB -
references/hcl.md14 KB -
references/migrations.md13 KB
Show all 8 files
-
references/objects.md11 KB -
references/security.md16 KB -
references/testing.md7 KB
Alternatives to atlas-postgres
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
atlas-postgres: common questions
What does the atlas-postgres skill do?
It gives an AI assistant PostgreSQL-specific rules and edge cases for managing a schema with Atlas. It is used alongside the atlas skill.
Does it work with Supabase or Neon?
The skill covers managed services including Supabase and Neon. It says to apply migrations over a direct connection, not a transaction-mode pooler.
Can it write custom lint rules?
Yes. The skill explains how to write custom lint rules in the HCL rule language when no built-in analyzer covers a check.
How do I install atlas-postgres?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is atlas-postgres free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is atlas-postgres safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to atlas-postgres?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
