Netlify/netlify-db — Agent Skills | officialskills.sh
Back to skills

netlify-db

Netlify DB provisions a managed Neon Postgres database for Netlify projects without requiring a separate Neon account.

Setup & Installation

npx skills add https://github.com/netlify/context-and-tools --skill netlify-db
or paste the link and ask your coding assistant to install it
https://github.com/netlify/context-and-tools/tree/main/skills/netlify-db
View on GitHub

What This Skill Does

Netlify DB provisions a managed Neon Postgres database for Netlify projects without requiring a separate Neon account. It supports raw SQL via @netlify/neon, Drizzle ORM integration, and schema migrations. Each deploy preview branch gets its own isolated database branch.

Unlike wiring up an external Postgres provider manually, Netlify DB auto-provisions the database and sets NETLIFY_DATABASE_URL automatically, with per-branch isolation built into the deploy preview workflow.

When to use it

  • Running SQL queries against structured app data from Netlify functions
  • Setting up Drizzle ORM schemas and generating typed migrations
  • Testing database migrations on deploy preview branches before merging to production
  • Querying and filtering relational data that grows over time
  • Accessing a Postgres database locally through netlify dev without manual connection setup