Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify DatabaseSkill
Summary
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.
Features
- Zero-config managed Postgres: install, add migrations, deploy
- Modern getDatabase() client with auto-parameterised SQL templates
- Marks @netlify/neon and NETLIFY_DATABASE_URL as legacy, with replacements
- Drizzle ORM setup, migrations, local dev with netlify dev, and testing
- Per-deploy-preview database branches seeded from production
- Warns that preview branches carry production data and preview links are public
- Named runtime errors with fixes, including Lambda compatibility mode
- Three-phase migration playbook from Neon, Supabase, RDS or self-managed Postgres
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
Netlify's official agent skill for Netlify Database, its zero-config managed Postgres. Install @netlify/database, put migrations under netlify/database/migrations/, deploy — Netlify provisions the database and applies the migrations itself. The database is queryable from Functions, Edge Functions, Builds and Agent Runners.
What the skill actually teaches. The modern client (getDatabase(), whose tagged-template sql auto-parameterises values) and getConnectionString() for bringing your own driver or ORM. It is explicit that @netlify/neon and NETLIFY_DATABASE_URL are legacy and should not be used in new code, which matters because most third-party tutorials still show the old API. It then covers Drizzle ORM setup, writing and running migrations, local development with netlify dev, the netlify database CLI, the REST API, and testing against a local Postgres.
The part worth reading before you ship. Every deploy preview gets its own database branch seeded with a copy of production data, wired up automatically. The skill flags the consequence directly: preview branches can contain production data including PII, and preview deploy links are public — so a shared preview link is a data-exposure path. It also encodes the house rule that agents express production data changes as DML migrations rather than editing rows directly.
Failure modes it names. Environment not configured when getDatabase() cannot resolve a connection string (running outside Netlify, or on Functions in Lambda compatibility mode, where you must pass connectionString yourself); database feature not available for this account on non-credit plans; branch-limit errors as previews accumulate; and database not found before netlify database init.
Constraints. Netlify Database is available on credit-based plans only, and active databases consume credits for compute and bandwidth. Only Team Owners can delete a database, and only Team Owners and Developers can view connection strings. Compute customisation such as auto-scale and sleep settings requires Pro or higher.
The skill also includes a three-phase playbook — provision, rehearse, cut over — for migrating an existing Postgres project from Neon, Supabase, RDS or a self-managed instance, including the brief data-loss window that any pg_dump-based cutover implies.
Related Skills
Official WordPress skill for Gutenberg block work: block.json, attributes and serialization, dynamic rendering, and the deprecation path that keeps existing content valid.
Persistent cross-session memory for coding agents: hooks capture each session, a local SQLite + vector store compresses it, and a mem-search skill reads it back.
The master skill in PlanetScale's official pack: runs a full read-only best-practices assessment of a database or org, then produces one evidence-backed report.
