Description
netlify-db is an agent skill that helps a coding assistant use Netlify DB, a managed Postgres database for Netlify projects. Netlify DB provisions a Neon Postgres database for the project without a separate Neon account, and it sets NETLIFY_DATABASE_URL automatically. The skill covers raw SQL through the @netlify/neon package, Drizzle ORM integration, and schema migrations. Each deploy preview branch gets its own isolated database branch, which the skill uses for testing migrations before merging to production. Its argument is that wiring up an external Postgres provider by hand means extra setup and credentials, while Netlify DB handles provisioning and per-branch isolation as part of the deploy preview workflow. A coding assistant with this skill can write queries from Netlify functions, set up Drizzle schemas and generate typed migrations, and test database changes on a preview branch. Typical tasks are running SQL against app data from Netlify functions, querying relational data that grows over time, and accessing the database locally through netlify dev. Install it with the command shown on this page.…
Highlights
- Managed Postgres without a separate Neon account
- Raw SQL through @netlify/neon
- Drizzle ORM and typed migrations
- Isolated database branch per deploy preview
- NETLIFY_DATABASE_URL set automatically
Ratings & Reviews
No ratings yet
Be the first to rate netlify/netlify-db.
People also visit

prisma-postgres-setup
Obtain or reuse a Prisma Postgres database and connect an application

neon-postgres-branches
Choose and create the right Neon branch type for testing and development

planetscale-postgres-safety-review
Review PlanetScale Postgres for Traffic Control, query tags, roles, pg_strict
openai/netlify-deploy
Automate Netlify deployments with CLI auth, linking, and environment support

neondatabase/mcp-server-neon
Create and manage Postgres databases with Neon Serverless Postgres
netlify/netlify-db FAQ
What does this skill do?
It helps a coding assistant set up and query a managed Postgres database for a Netlify project.
How do I install it?
Run npx skills add https://github.com/netlify/context-and-tools --skill netlify-db, or paste the skill link into your coding assistant and ask it to install the skill.
Do I need a Neon account?
No. The page says Netlify DB provisions the database without requiring a separate Neon account.
Does each preview get its own database?
Yes. Each deploy preview branch gets its own isolated database branch.
What are the best netlify/netlify-db alternatives?
Popular alternatives to netlify/netlify-db include netlify-database, prisma-postgres-setup and neon-postgres-branches. See all netlify/netlify-db alternatives




