---
title: "Postgres skills · skilld"
description: "Browse 77 agent skills tagged Postgres. Skills tagged Postgres.."
canonical_url: "https://skilld.dev/skills/tag/postgres"
last_updated: "2026-08-20T07:00:40.202Z"
meta:
  "og:description": "Browse 77 agent skills tagged Postgres. Skills tagged Postgres.."
  "og:image": "https://skilld.dev/_og/d/a_Postgres%2Bskills%2Bon%2Bskilld%2Cc_Page.takumi%2Ctitle_Postgres%2Bskills%2Cdescription_Skills%2Btagged%2BPostgres.%2Cp_Ii9za2lsbHMvdGFnL3Bvc3RncmVzIg%2Cs_2WvJMtDZAk6T4m5L.png"
  "og:image:alt": "Postgres skills on skilld"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Postgres skills"
  "twitter:image": "https://skilld.dev/_og/d/a_Postgres%2Bskills%2Bon%2Bskilld%2Cc_Page.takumi%2Ctitle_Postgres%2Bskills%2Cdescription_Skills%2Btagged%2BPostgres.%2Cp_Ii9za2lsbHMvdGFnL3Bvc3RncmVzIg%2Cs_2WvJMtDZAk6T4m5L.png"
  "twitter:image:alt": "Postgres skills on skilld"
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

[← All skills](https://skilld.dev/skills)

# **Postgres**

Skills tagged Postgres.

77 skills ·2.1m stars

## Top curators

- [![affaan-m](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Faffaan-m.png) affaan-m 2](https://skilld.dev/@affaan-m)
- [![n8n-io](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fn8n-io.png) n8n-io 1](https://skilld.dev/@n8n-io)
- [![wshobson](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fwshobson.png) wshobson 3](https://skilld.dev/@wshobson)
- [![github](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fgithub.png) github 11](https://skilld.dev/@github)
- [![posthog](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fposthog.png) posthog 9](https://skilld.dev/@posthog)
- [![anthropics](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fanthropics.png) anthropics 2](https://skilld.dev/@anthropics)
- [![davila7](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fdavila7.png) davila7 5](https://skilld.dev/@davila7)
- [![jeffallan](https://skilld.dev/_img/avatar?url=https%3A%2F%2Fgithub.com%2Fjeffallan.png) jeffallan 2](https://skilld.dev/@jeffallan)

- [/django-patterns](https://skilld.dev/gh/affaan-m/ecc/django-patterns)

  Affaan Mustafa·ecc

  Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps. Use when building or reviewing Django apps, DRF APIs, ORM queries, or caching.

  310k GitHub stars
- [/postgres-patterns](https://skilld.dev/gh/affaan-m/ecc/postgres-patterns)

  Affaan Mustafa·ecc

  PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices. Use when designing PostgreSQL schemas, indexes, or RLS policies, or when a query is too slow.

  310k GitHub stars
- [/db-migrations](https://skilld.dev/gh/n8n-io/n8n/db-migrations)

  n8n - Workflow Automation·n8n

  Authors n8n database migrations. Use when creating or modifying files under packages/@n8n/db/src/migrations/, when the user asks to add a column, table, index, foreign key, or backfill, or when the user mentions DB migrations or TypeORM migrations.

  212k GitHub stars
- [/fastapi-templates](https://skilld.dev/gh/wshobson/agents/fastapi-templates)

  Seth Hobson·agents

  Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

  43k GitHub stars
- [/postgresql-table-design](https://skilld.dev/gh/wshobson/agents/postgresql-table-design)

  Seth Hobson·agents

  Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

  43k GitHub stars
- [/sql-optimization-patterns](https://skilld.dev/gh/wshobson/agents/sql-optimization-patterns)

  Seth Hobson·agents

  Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

  43k GitHub stars
- [/create-spring-boot-java-project](https://skilld.dev/gh/github/awesome-copilot/create-spring-boot-java-project)

  github/awesome-copilot

  Create a new Spring Boot Java project (Maven or Gradle) from start.spring.io with sensible defaults for configuration, PostgreSQL, logging, security, testing and Docker. Use when asked to scaffold, bootstrap or generate a Spring Boot application. Detects existing project versions and never upgrades implicitly.

  42k GitHub stars
- [/creating-oracle-to-postgres-master-migration-plan](https://skilld.dev/gh/github/awesome-copilot/creating-oracle-to-postgres-master-migration-plan)

  github/awesome-copilot

  Discovers all projects in a .NET solution, classifies each for Oracle-to-PostgreSQL migration eligibility, and produces a persistent master migration plan. Use when starting a multi-project Oracle-to-PostgreSQL migration, creating a migration inventory, or assessing which .NET projects contain Oracle dependencies.

  42k GitHub stars
- [/creating-oracle-to-postgres-migration-bug-report](https://skilld.dev/gh/github/awesome-copilot/creating-oracle-to-postgres-migration-bug-report)

  github/awesome-copilot

  Creates structured bug reports for defects found during Oracle-to-PostgreSQL migration. Use when documenting behavioral differences between Oracle and PostgreSQL as actionable bug reports with severity, root cause, and remediation steps.

  42k GitHub stars
- [/creating-oracle-to-postgres-migration-integration-tests](https://skilld.dev/gh/github/awesome-copilot/creating-oracle-to-postgres-migration-integration-tests)

  github/awesome-copilot

  Creates integration test cases targeting Oracle for .NET data access artifacts. Tests capture Oracle expected behavior as the authoritative baseline; they are written once and later ported to PostgreSQL by migrating the test project in Phase 6. Use only during Phase 3, before any PostgreSQL migration work has begun. Do not invoke during Phase 6 or against a project that has already been migrated.

  42k GitHub stars
- [/migrating-oracle-to-postgres-data-access-code](https://skilld.dev/gh/github/awesome-copilot/migrating-oracle-to-postgres-data-access-code)

  github/awesome-copilot

  Migrates .NET/C# data access code from Oracle to PostgreSQL (Npgsql). Replaces Oracle NuGet packages, rewrites OracleConnection/OracleCommand/OracleDataReader usage, fixes DbType mappings, updates stored procedure invocation patterns, and adapts connection string configuration. Use when migrating the application code layer of a .NET project during an Oracle-to-PostgreSQL database migration.

  42k GitHub stars
- [/migrating-oracle-to-postgres-stored-procedures](https://skilld.dev/gh/github/awesome-copilot/migrating-oracle-to-postgres-stored-procedures)

  github/awesome-copilot

  Migrates Oracle PL/SQL stored procedures to PostgreSQL PL/pgSQL. Translates Oracle-specific syntax, preserves method signatures and type-anchored parameters, leverages orafce where appropriate, and applies explicit collation mapping (\`COLLATE "C"\` only when appropriate, locale collations when required). Use when converting Oracle stored procedures or functions to PostgreSQL equivalents during a database migration.

  42k GitHub stars
- [/planning-oracle-to-postgres-migration-integration-testing](https://skilld.dev/gh/github/awesome-copilot/planning-oracle-to-postgres-migration-integration-testing)

  github/awesome-copilot

  Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Analyzes a single project to identify repositories, DAOs, and service layers that interact with the database, then produces a structured testing plan. Use when planning integration test coverage for a migrated project, identifying which data access methods need tests, or preparing for Oracle-to-PostgreSQL migration validation.

  42k GitHub stars
- [/postgresql-code-review](https://skilld.dev/gh/github/awesome-copilot/postgresql-code-review)

  github/awesome-copilot

  PostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usage, custom types, schema design, function optimization, and PostgreSQL-exclusive security features like Row Level Security (RLS).

  42k GitHub stars
- [/postgresql-optimization](https://skilld.dev/gh/github/awesome-copilot/postgresql-optimization)

  github/awesome-copilot

  PostgreSQL-specific development assistant focusing on unique PostgreSQL features, advanced data types, and PostgreSQL-exclusive capabilities. Covers JSONB operations, array types, custom types, range/geometric types, full-text search, window functions, and PostgreSQL extensions ecosystem.

  42k GitHub stars
- [/reviewing-oracle-to-postgres-migration](https://skilld.dev/gh/github/awesome-copilot/reviewing-oracle-to-postgres-migration)

  github/awesome-copilot

  Identifies Oracle-to-PostgreSQL migration risks by cross-referencing code against known behavioral differences (empty strings, refcursors, type coercion, sorting/collations, UNION ALL planner risks, materialized-view refresh requirements, timestamps, concurrent transactions, etc.). Use when planning a database migration, reviewing migration artifacts, or validating that integration tests cover Oracle/PostgreSQL differences.

  42k GitHub stars
- [/scaffolding-oracle-to-postgres-migration-test-project](https://skilld.dev/gh/github/awesome-copilot/scaffolding-oracle-to-postgres-migration-test-project)

  github/awesome-copilot

  Scaffolds an xUnit integration test project targeting Oracle in .NET solutions. Creates the test project, transaction-rollback base class, and seed data manager. Use only during Phase 3, before writing Oracle baseline integration tests. Do not invoke during Phase 6 — the PostgreSQL test project is produced by migrating this project, not by running this skill again.

  42k GitHub stars
- [/adding-personhog-rpc](https://skilld.dev/gh/posthog/posthog/adding-personhog-rpc)

  posthog/posthog

  Guide for adding a new RPC to personhog-replica and personhog-router. Covers eligibility checks, proto definition, code generation for Python and Node.js clients, Rust implementation (storage trait, postgres queries, service handler, router wiring), and index compatibility validation. Use when adding a new gRPC endpoint to personhog, migrating a Django ORM query to personhog, or extending the personhog service API.

  41k GitHub stars
- [/diagnosing-failed-warehouse-syncs](https://skilld.dev/gh/posthog/posthog/diagnosing-failed-warehouse-syncs)

  posthog/posthog

  Diagnose why a data warehouse sync is failing and recommend the right recovery action. Use when the user asks "why isn't my Stripe/Postgres/Hubspot sync working?", "this table has been stuck for hours", "the data in the warehouse looks wrong", or wants to troubleshoot a specific source or schema. Covers source-level vs schema-level failures, stuck Running states, credential and schema-drift errors, incremental-field misconfig, CDC prerequisite failures, and the cancel / reload / resync / delete-data recovery actions.

  41k GitHub stars
- [/django-migrations](https://skilld.dev/gh/posthog/posthog/django-migrations)

  posthog/posthog

  Django migration patterns and safety workflow for PostHog. Use when creating, adjusting, or reviewing Django/Postgres migrations, including non-blocking index/constraint changes, multi-phase schema changes, data backfills, migration conflict rebasing, and product model moves that require SeparateDatabaseAndState. Also use for any deletion or removal of a model, table, column, product, or app — including deleting migration files or retiring a feature — even when no migration is written.

  41k GitHub stars
- [/django-startup-time](https://skilld.dev/gh/posthog/posthog/django-startup-time)

  posthog/posthog

  Keep heavy imports off the django.setup() path that every process (web, celery, temporal, migrate, shell, CI) pays for. Use when touching AppConfig.ready(), wiring signal receivers, editing the lazy API router (posthog/api/rest\_router.py or its \_\_init\_\_.py shim), deferring a heavy import or profiling import time (importtime, hothog), when the startup-import-budget guard fails, or when merging master into a long-lived branch that made the router lazy.

  41k GitHub stars
- [/querying-local-postgres](https://skilld.dev/gh/posthog/posthog/querying-local-postgres)

  posthog/posthog

  Run read-only SQL against the local Postgres app database (SELECT, EXPLAIN, EXPLAIN ANALYZE on SELECT). Default local URL postgres://posthog:posthog@localhost:5432/posthog; else DATABASE\_URL. Use when querying the local DB, inspecting tables, debugging data, or analyzing query plans. Mutations are strictly forbidden.

  41k GitHub stars
- [/run-posthog](https://skilld.dev/gh/posthog/posthog/run-posthog)

  posthog/posthog

  Start, inspect, and drive the PostHog dev stack. Use for /run and /verify on this repo — when asked to launch PostHog, check whether the stack is healthy, inspect a running process, or verify a UI change against the live app.

  41k GitHub stars
- [/setting-up-a-data-warehouse-source](https://skilld.dev/gh/posthog/posthog/setting-up-a-data-warehouse-source)

  posthog/posthog

  Guide the user through connecting a new data warehouse source, including databases, SaaS tools, and bucket files. Use when the user wants to "connect Stripe", "import data from Postgres", "import files from a bucket", "upload a file", "add a new data source", or pick sync methods for each table. This skill covers source-type discovery, credential validation, table discovery, per-table sync\_type selection, and the final create call. Also covers picking a good prefix, what to do right after creation, and sending a source's tables to the user's own warehouse (Snowflake, BigQuery, Postgres, S3 and other destinations).

  41k GitHub stars
- [/suggesting-data-imports](https://skilld.dev/gh/posthog/posthog/suggesting-data-imports)

  posthog/posthog

  Use when the user asks about revenue, payments, subscriptions, billing, CRM deals, support tickets, ad spend, production database tables, bucket files, or local file uploads. Also use when the user wants to join PostHog events with external data, or when a query fails because an expected table is missing. The data warehouse can import from SaaS tools, ad platforms, databases, object storage, and uploaded files. Covers checking existing sources, identifying the right source type, and guiding setup.

  41k GitHub stars
- [/tuning-incremental-sync-config](https://skilld.dev/gh/posthog/posthog/tuning-incremental-sync-config)

  posthog/posthog

  Change the sync configuration of an existing data warehouse schema — switch sync\_type, pick a different incremental\_field, set primary\_key\_columns, choose cdc\_table\_mode, or change sync\_frequency. Use when the user asks "switch my orders table from full refresh to incremental", "this table is syncing too slowly / too frequently", "I need to pick a different incremental column", "set up CDC for this Postgres table", or when diagnosis of a failing sync pointed to an incremental-field or PK misconfiguration.

  41k GitHub stars
- [/data-context-extractor](https://skilld.dev/gh/anthropics/knowledge-work-plugins/data-context-extractor)

  Anthropic·knowledge-work-plugins

  Generate or improve a company-specific data analysis skill by extracting tribal knowledge from analysts. BOOTSTRAP MODE - Triggers: "Create a data context skill", "Set up data analysis for our warehouse", "Help me create a skill for our database", "Generate a data skill for \[company]" → Discovers schemas, asks key questions, generates initial skill with reference files ITERATION MODE - Triggers: "Add context about \[domain]", "The skill needs more info about \[topic]", "Update the data skill with \[metrics/tables/terminology]", "Improve the \[domain] reference" → Loads existing skill, asks targeted questions, appends/updates reference files Use when data analysts want Claude to understand their company's specific data warehouse, terminology, metrics definitions, and common query patterns.

  37k GitHub stars
- [/sql-queries](https://skilld.dev/gh/anthropics/knowledge-work-plugins/sql-queries)

  Anthropic·knowledge-work-plugins

  Write correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.). Use when writing queries, optimizing slow SQL, translating between dialects, or building complex analytical queries with CTEs, window functions, or aggregations.

  37k GitHub stars
- [/neon-postgres](https://skilld.dev/gh/davila7/claude-code-templates/neon-postgres)

  Daniel Avila·claude-code-templates

  Expert patterns for Neon serverless Postgres, branching, connection pooling, and Prisma/Drizzle integration Use when: neon database, serverless postgres, database branching, neon postgres, postgres serverless.

  34k GitHub stars
- [/postgres-best-practices](https://skilld.dev/gh/davila7/claude-code-templates/postgres-best-practices)

  Daniel Avila·claude-code-templates

  Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

  34k GitHub stars
- [/postgresql](https://skilld.dev/gh/davila7/claude-code-templates/postgresql)

  Daniel Avila·claude-code-templates

  Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

  34k GitHub stars
- [/postgresql-optimization](https://skilld.dev/gh/davila7/claude-code-templates/postgresql-optimization)

  Daniel Avila·claude-code-templates

  PostgreSQL database optimization workflow for query tuning, indexing strategies, performance analysis, and production database management.

  34k GitHub stars
- [/supabase-postgres-best-practices](https://skilld.dev/gh/davila7/claude-code-templates/supabase-postgres-best-practices)

  Daniel Avila·claude-code-templates

  Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

  34k GitHub stars
- [/django-expert](https://skilld.dev/gh/jeffallan/claude-skills/django-expert)

  jeffallan/claude-skills

  Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select\_related/prefetch\_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.

  12k GitHub stars
- [/postgres-pro](https://skilld.dev/gh/jeffallan/claude-skills/postgres-pro)

  jeffallan/claude-skills

  Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.

  12k GitHub stars
- [/amazon-aurora-postgresql](https://skilld.dev/gh/aws/agent-toolkit-for-aws/amazon-aurora-postgresql)

  Amazon Web Services·agent-toolkit-for-aws

  Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I/O-Optimized storage, commitment pricing, or PostgreSQL upgrade planning. For Aurora MySQL, use amazon-aurora-mysql instead. Contains safety guardrails, express-first routing, and response templates that override defaults.

  3.5k GitHub stars
- [/azure-postgres-ts](https://skilld.dev/gh/microsoft/skills/azure-postgres-ts)

  microsoft/skills

  Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL connection", "PostgreSQL TypeScript", "pg Pool", "passwordless postgres".

  3.2k GitHub stars
- [/azure-resource-manager-postgresql-dotnet](https://skilld.dev/gh/microsoft/skills/azure-resource-manager-postgresql-dotnet)

  microsoft/skills

  Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for PostgreSQL", "PostgreSQL database management", "PostgreSQL firewall", "PostgreSQL backup", "Postgres".

  3.2k GitHub stars
- [/supabase](https://skilld.dev/gh/supabase/agent-skills/supabase)

  supabase/agent-skills

  Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg\_graphql, pg\_cron, pg\_vector); debugging and troubleshooting errors or unexpected behavior on Supabase projects (HTTP errors, Postgres errors, RLS surprises, permission denied, schema cache issues, timeouts, Edge Function crashes, Realtime drops, Storage failures) and reading or querying logs (Logs Explorer, ClickHouse).

  3.1k GitHub stars
- [/supabase-postgres-best-practices](https://skilld.dev/gh/supabase/agent-skills/supabase-postgres-best-practices)

  supabase/agent-skills

  Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg\_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg\_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

  3.1k GitHub stars
- [/design-postgres-tables](https://skilld.dev/gh/timescale/pg-aiguide/design-postgres-tables)

  Tiger Data·pg-aiguide

  Use this skill for general PostgreSQL table design. \*\*Trigger when user asks to:\*\* - Design PostgreSQL tables, schemas, or data models when creating new tables and when modifying existing ones. - Choose data types, constraints, or indexes for PostgreSQL - Create user tables, order tables, reference tables, or JSONB schemas - Understand PostgreSQL best practices for normalization, constraints, or indexing - Design update-heavy, upsert-heavy, or OLTP-style tables \*\*Keywords:\*\* PostgreSQL schema, table design, data types, PRIMARY KEY, FOREIGN KEY, indexes, B-tree, GIN, JSONB, constraints, normalization, identity columns, partitioning, row-level security Comprehensive reference covering data types, indexing strategies, constraints, JSONB patterns, partitioning, and PostgreSQL-specific best practices.

  1.9k GitHub stars
- [/migrate-postgres-tables-to-hypertables](https://skilld.dev/gh/timescale/pg-aiguide/migrate-postgres-tables-to-hypertables)

  Tiger Data·pg-aiguide

  Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. \*\*Trigger when user asks to:\*\* - Migrate or convert PostgreSQL tables to hypertables - Execute hypertable migration with minimal downtime - Plan blue-green migration for large tables - Validate hypertable migration success - Configure compression after migration \*\*Prerequisites:\*\* Tables already identified as candidates (use find-hypertable-candidates first if needed) \*\*Keywords:\*\* migrate to hypertable, convert table, Timescale, TimescaleDB, blue-green migration, in-place conversion, create\_hypertable, migration validation, compression setup Step-by-step migration planning including: partition column selection, chunk interval calculation, PK/constraint handling, migration execution (in-place vs blue-green), and performance validation queries.

  1.9k GitHub stars
- [/postgres](https://skilld.dev/gh/timescale/pg-aiguide/postgres)

  Tiger Data·pg-aiguide

  Use this skill for any PostgreSQL database work — table design, indexing, data types, constraints, extensions (pgvector, PostGIS, TimescaleDB), search, and migrations. \*\*Trigger when user asks to:\*\* - Explore an existing PostgreSQL database to understand its objects and relationships - Design or modify PostgreSQL tables, schemas, or data models - Choose data types, constraints, indexes, or partitioning strategies - Work with pgvector embeddings, semantic search, or RAG - Set up full-text search, hybrid search, or BM25 ranking - Use PostGIS for spatial/geographic data - Set up TimescaleDB hypertables for time-series data - Migrate tables to hypertables or evaluate migration candidates - Plan or execute safe schema migrations with zero downtime \*\*Keywords:\*\* PostgreSQL, Postgres, SQL, schema, table design, indexes, constraints, pgvector, PostGIS, TimescaleDB, hypertable, semantic search, hybrid search, BM25, time-series, migration

  1.9k GitHub stars
- [/postgres-database-migration](https://skilld.dev/gh/timescale/pg-aiguide/postgres-database-migration)

  Tiger Data·pg-aiguide

  Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases. \*\*Trigger when user asks to:\*\* - Test a schema migration before applying it to production - Add, remove, or rename columns safely on a live table - Change a column's data type without downtime - Add or drop indexes, constraints, or foreign keys on large tables - Understand which ALTER TABLE operations lock the table - Roll back a failed migration - Plan a zero-downtime migration strategy - Fork a database to test a migration safely \*\*Keywords:\*\* migration, schema change, ALTER TABLE, add column, drop column, rename column, change type, zero downtime, lock, AccessExclusiveLock, concurrent index, forking, rollback, backfill, deploy Covers: lock-level reference for every common DDL operation, safe migration patterns, fork-based testing, zero-downtime column changes, index creation, constraint addition, backfill strategies, pre/post-migration validation, and rollback planning.

  1.9k GitHub stars
- [/postgres-hybrid-text-search](https://skilld.dev/gh/timescale/pg-aiguide/postgres-hybrid-text-search)

  Tiger Data·pg-aiguide

  Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). \*\*Trigger when user asks to:\*\* - Combine keyword and semantic search - Implement hybrid search or multi-modal retrieval - Use BM25/pg\_textsearch with pgvector together - Implement RRF (Reciprocal Rank Fusion) for search - Build search that handles both exact terms and meaning \*\*Keywords:\*\* hybrid search, BM25, pg\_textsearch, RRF, reciprocal rank fusion, keyword search, full-text search, reranking, cross-encoder Covers: pg\_textsearch BM25 index setup, parallel query patterns, client-side RRF fusion (Python/TypeScript), weighting strategies, and optional ML reranking.

  1.9k GitHub stars
- [/postgres-diagnostics](https://skilld.dev/gh/pgrundev/pgbot)

  PGRun·pgbot

  Diagnose PostgreSQL health and performance using the read-only pgbot tool. Use for slow databases, expensive queries, unused indexes, disk usage, bloat, autovacuum, vacuum health, and configuration questions.

  1.5k GitHub stars
- [/langgraph-persistence](https://skilld.dev/gh/langchain-ai/langchain-skills/langgraph-persistence)

  LangChain·langchain-skills

  Retired skill, replaced by \`langchain-build-agent\`. Use for LangGraph checkpointers, threads, and stores: it tells you to switch to \`langchain-build-agent\`.

  1.4k GitHub stars
- [/neki](https://skilld.dev/gh/planetscale/database-skills/neki)

  planetscale/database-skills

  Guidance for Neki, PlanetScale's distributed (sharded) Postgres. Load when working with a Neki database — connecting, data topology and shard keys, query routing and fanout, cross-shard transactions, schema changes, resharding and migration, NK013 errors — or when scaling and sharding Postgres.

  744 GitHub stars
- [/postgres](https://skilld.dev/gh/planetscale/database-skills/postgres)

  planetscale/database-skills

  PostgreSQL best practices, query optimization, connection troubleshooting, and performance improvement. Load when working with Postgres databases.

  744 GitHub stars
- [/chdb-sql](https://skilld.dev/gh/clickhouse/agent-skills/chdb-sql)

  clickhouse/agent-skills

  Use when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse Cloud, Iceberg, Delta Lake) without setting up a server. Provides chDB — embedded ClickHouse SQL in Python with 1000+ functions, Session for stateful multi-step pipelines, parametrized queries, and cross-source joins via \`s3()\`, \`mysql()\`, \`postgresql()\`, \`iceberg()\`, \`deltaLake()\`, \`remoteSecure()\` table functions. TRIGGER when: user wants SQL on parquet/csv/files or across remote analytical sources; uses ClickHouse SQL features (window functions, windowFunnel, geoToH3, JSON path ops, Session, parametrized queries); imports \`chdb\` or calls \`chdb.query()\`. SKIP this skill for pandas-style DataFrame method-chaining (use chdb-datastore instead) or ClickHouse server administration.

  574 GitHub stars
- [/clickhouse-managed-postgres-rca](https://skilld.dev/gh/clickhouse/agent-skills/clickhouse-managed-postgres-rca)

  clickhouse/agent-skills

  MUST USE when investigating performance issues on a ClickHouse-managed Postgres instance. Provides an evidence-based RCA workflow that scrapes the Prometheus endpoint for system signal, pulls per-digest evidence from the Slow Query Patterns API, and recommends (does not apply) a fix.

  574 GitHub stars
- [/infra-postgres](https://skilld.dev/gh/clickhouse/agent-skills/infra-postgres)

  clickhouse/agent-skills

  Sets up and manages Postgres using the clickhousectl CLI — runs a local Docker-backed Postgres for development, and creates and operates managed ClickHouse Cloud Postgres services (connections, TLS, runtime config, read replicas, failover, point-in-time restore). Use when the user wants a Postgres or PostgreSQL database for their application, a local Postgres dev environment, psql access, or a managed/production Postgres in ClickHouse Cloud, or mentions moving a local Postgres to production. Also use when migrating an existing Postgres database (Neon, Supabase, RDS, Aurora, Cloud SQL, self-hosted) into ClickHouse Cloud Postgres.

  574 GitHub stars
- [/postgres](https://skilld.dev/gh/sanjay3290/ai-skills/postgres)

  Sanjay Ramadugu·ai-skills

  Execute read-only SQL queries against multiple PostgreSQL databases. Use when: (1) querying PostgreSQL databases, (2) exploring database schemas/tables, (3) running SELECT queries for data analysis, (4) checking database contents. Supports multiple database connections with descriptions for intelligent auto-selection. Blocks all write operations (INSERT, UPDATE, DELETE, DROP, etc.) for safety.

  459 GitHub stars
- [/neon-postgres](https://skilld.dev/gh/xai-org/plugin-marketplace/neon-postgres)

  SpaceXSI Org·plugin-marketplace

  Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods, branching, autoscaling, scale-to-zero, read replicas, connection pooling, Neon Auth, and the Neon CLI, MCP server, REST API, TypeScript SDK, and Python SDK. Use when users ask about "Neon setup", "connect to Neon", "Neon project", "DATABASE\_URL", "serverless Postgres", "Neon CLI", "neonctl", "Neon MCP", "Neon Auth", "@neondatabase/serverless", "@neondatabase/neon-js", "scale to zero", "Neon autoscaling", "Neon read replica", or "Neon connection pooling".

  344 GitHub stars
- [/neon-postgres-branches](https://skilld.dev/gh/xai-org/plugin-marketplace/neon-postgres-branches)

  SpaceXSI Org·plugin-marketplace

  Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP. Triggers include "Neon branch", "test migrations safely", "branch production data", "schema-only branch", "reset branch" and "sensitive data testing".

  344 GitHub stars
- [/dd-dbm-rds-postgres](https://skilld.dev/gh/datadog-labs/agent-skills/dd-dbm-rds-postgres)

  Datadog Labs·agent-skills

  Set up Datadog Database Monitoring (DBM) for a standalone PostgreSQL instance on AWS RDS (not Aurora) - enable pg\_stat\_statements on the instance's parameter group, then deploy a managed Agent with CloudFormation, provision one with Terraform, or configure an existing Agent, plus the read-only datadog monitoring user. Use when the user wants to set up Database Monitoring for an RDS Postgres database, monitor query performance on a Postgres RDS instance, enable DBM for Postgres on RDS, or use Terraform to set up DBM for an RDS Postgres database. Not for Aurora PostgreSQL (including Serverless v2), RDS Multi-AZ DB clusters, or read replicas - do not use it to plan their setup; explain why and point the user at the DBM docs instead. Requires the Datadog AWS integration for the AWS account that holds the instance; run \`dd-aws-integration\` first if it is missing.

  185 GitHub stars
- [/neon](https://skilld.dev/gh/neondatabase/agent-skills/neon)

  neondatabase/agent-skills

  Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASE\_URL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, a no-signup database, or pairing Neon with Upstash for cache, Redis, rate limiting, queues, or background jobs.

  118 GitHub stars
- [/neon-functions](https://skilld.dev/gh/neondatabase/agent-skills/neon-functions)

  neondatabase/agent-skills

  Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASE\_URL injected automatically and compute that runs next to your data. Use when a user wants to host an API, an AI agent with long streaming responses, a WebSocket or server-sent-events (SSE) server, a webhook handler, a Discord bot, an MCP server, or any request/response workload that risks timing out on short, lambda-style serverless functions — and wants it to branch with their database. Also use for Function Triggers: a cron or an object-storage event that POSTs to a function. Triggers include "serverless function", "deploy an API", "long-running function", "streaming agent", "SSE server", "WebSocket server", "webhook handler", "MCP server", "cron", "scheduled function", "object storage trigger", "on upload", "function that won't time out", "function logs", "Neon Functions", "Neon Compute", "DDoS protection", "rate limiting", and "production hardening". For live UIs over database rows, use neon-realtime.

  118 GitHub stars
- [/neon-object-storage](https://skilld.dev/gh/neondatabase/agent-skills/neon-object-storage)

  neondatabase/agent-skills

  S3-compatible object storage that branches with your database, so each branch gets its own copy of the files and the rows that point at them. Use when a user wants object storage, a bucket, blob/file storage, or somewhere to put uploads, images, documents, avatars, or user-generated files for their app or agent — especially when they already use (or are setting up) Lakebase Postgres and don't want to add a separate storage provider like AWS S3, Cloudflare R2, or Supabase Storage. Triggers include "object storage", "bucket", "blob storage", "file storage", "store uploads/images/files", "S3-compatible storage", "presigned URL", "where do I put files", "storage logs", "bucket logs", "CDN in front of object storage", "Neon Object Storage", "Neon Storage", and "storage that branches with my database".

  118 GitHub stars
- [/neon-postgres](https://skilld.dev/gh/neondatabase/agent-skills/neon-postgres)

  neondatabase/agent-skills

  Guides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching (including schema-only, reset-from-parent, and branch-per-PR workflows), autoscaling, scale-to-zero, instant restore, read replicas, IP allow lists, logical replication, egress optimization, and Lakebase Search. Use when the work is an existing DATABASE\_URL, SQL, schema, inspect, or search. New backends, Auth, files, Functions, and LLM calls go to the parent \`neon\` skill. Live queries, reactive UIs, and realtime data go to \`neon-realtime\`. Also use for "@neondatabase/serverless", "@neon/neon-js", "neon inspect db", "neon postgres computes", "Neon branch", "schema-only branch", "reset branch", "branch per PR", high database bills, network transfer or egress, Free plan limits or a compute suspended over quota (SQLSTATE 53000, HTTP 402), SELECT \* optimization, query overfetching, "semantic search", "vector search", "full-text search", "BM25", or "hybrid search".

  118 GitHub stars
- [/prisma-database-setup](https://skilld.dev/gh/prisma/skills/prisma-database-setup)

  prisma/skills

  Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.

  80 GitHub stars
- [/prisma-driver-adapter-implementation](https://skilld.dev/gh/prisma/skills/prisma-driver-adapter-implementation)

  prisma/skills

  Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.

  80 GitHub stars
- [/prisma-postgres](https://skilld.dev/gh/prisma/skills/prisma-postgres)

  prisma/skills

  Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.

  80 GitHub stars
- [/prisma-postgres-setup](https://skilld.dev/gh/prisma/skills/prisma-postgres-setup)

  prisma/skills

  Obtain or reuse a Prisma Postgres database and connect an application. Use when the user needs a database and has none configured ("I need a database", "add a Postgres database", "set up a database for this app"), runs or mentions \`create-db\` or \`npx create-db\`, or asks to set up or connect Prisma Postgres, including in v0 and the Vercel Marketplace. Hands Prisma ORM configuration to prisma-orm-setup; reuses an existing connection first and honors an explicit provider, driver, alternative ORM, or database-only choice.

  80 GitHub stars
- [/prisma-postgres-upgrade](https://skilld.dev/gh/prisma/skills/prisma-postgres-upgrade)

  prisma/skills

  Upgrade a PostgreSQL app from Prisma ORM 6 or 7 straight to Prisma 8 in one pass, keeping the existing schema.prisma, database and data. Use when a Postgres project on Prisma 6 or 7 wants Prisma 8, including before deploying it on Prisma Compute, which runs only Prisma 8. Triggers on "upgrade prisma 6 to 8", "upgrade prisma 7 to 8", "upgrade to prisma 8 postgres", "prisma7Schema", "migrations/app", "move off @prisma/client", "Console says move to Prisma 8".

  80 GitHub stars
- [/prisma-upgrade-v7](https://skilld.dev/gh/prisma/skills/prisma-upgrade-v7)

  prisma/skills

  Complete migration guide from Prisma ORM v6 to v7 covering all breaking changes. Use when upgrading Prisma versions, encountering v7 errors, or migrating existing projects. Triggers on "upgrade to prisma 7", "prisma 7 migration", "prisma-client generator", "driver adapter required".

  80 GitHub stars
- [/251-dotnet-postgresql-best-practices](https://skilld.dev/gh/ronnythedev/dotnet-clean-architecture-skills/251-dotnet-postgresql-best-practices)

  Ronny Delgado·dotnet-clean-architecture-skills

  PostgreSQL database design best practices, naming conventions, indexing strategies, and performance optimization for .NET applications using Npgsql and EF Core.

  77 GitHub stars
- [/postgres-drizzle](https://skilld.dev/gh/ccheney/robust-skills/postgres-drizzle)

  Chris Cheney·robust-skills

  Write or review PostgreSQL schemas, queries, migrations, and Drizzle ORM code. Use for Postgres/Drizzle relations, indexing, pooling, or query performance; not for unrelated databases or generic backend work.

  61 GitHub stars
- [/database](https://skilld.dev/gh/encoredev/skills/database)

  Encore·skills

  Work with PostgreSQL in Encore.ts using \`SQLDatabase\` from \`encore.dev/storage/sqldb\` — schema migrations and SQL queries.

  30 GitHub stars
- [/go-database](https://skilld.dev/gh/encoredev/skills/go-database)

  Encore·skills

  Work with PostgreSQL in Encore Go using \`sqldb.NewDatabase\` from \`encore.dev/storage/sqldb\` — schema migrations and SQL queries.

  30 GitHub stars
- [/neon-postgres](https://skilld.dev/gh/andrelandgraf/fullstackrecipes/neon-postgres)

  Andre Landgraf·fullstackrecipes

  Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods, branching, autoscaling, scale-to-zero, read replicas, connection pooling, Neon Auth, and the Neon CLI, MCP server, REST API, TypeScript SDK, and Python SDK. Use when users ask about "Neon setup", "connect to Neon", "Neon project", "DATABASE\_URL", "serverless Postgres", "Neon CLI", "neonctl", "Neon MCP", "Neon Auth", "@neondatabase/serverless", "@neondatabase/neon-js", "scale to zero", "Neon autoscaling", "Neon read replica", or "Neon connection pooling".

  22 GitHub stars
- [/neon-postgres-branches](https://skilld.dev/gh/andrelandgraf/fullstackrecipes/neon-postgres-branches)

  Andre Landgraf·fullstackrecipes

  Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP. Triggers include "Neon branch", "test migrations safely", "branch production data", "schema-only branch", "reset branch" and "sensitive data testing".

  22 GitHub stars
- [/neon-postgres-egress-optimizer](https://skilld.dev/gh/andrelandgraf/fullstackrecipes/neon-postgres-egress-optimizer)

  Andre Landgraf·fullstackrecipes

  Diagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs, network transfer charges, egress spikes, "why is my Neon bill so high", "database costs jumped", SELECT \* optimization, query overfetching, reduce Neon costs, optimize database usage, or wants to reduce data sent from their database to their application. Also use when reviewing query patterns for cost efficiency, even if the user doesn't explicitly mention egress or data transfer.

  22 GitHub stars
- [/typescript-e2e-testing](https://skilld.dev/gh/bmad-labs/skills)

  bmad-labs/skills

  E2E and integration testing for TypeScript/NestJS projects using Jest, supertest, and real infrastructure via Docker (Kafka, PostgreSQL, MongoDB, Redis) with the Given-When-Then pattern. Use whenever the user is working on \`.e2e-spec.ts\` files or anything under \`test/e2e/\`, or asks to set up, write, review, run, debug, or optimize E2E or integration tests — including flaky tests, docker-compose for tests, Kafka/Redpanda consumers, test isolation, or GWT compliance.

  20 GitHub stars
- [/postgresql](https://skilld.dev/gh/suleyman/fullstack-agent-skills/postgresql)

  Süleyman·fullstack-agent-skills

  Opinionated rules for PostgreSQL and PostGIS behind an application API, covering schema design, constraints, indexing, query optimization, transactions and concurrency, cursor pagination, zero-downtime migrations with Alembic, and geospatial queries. Use when designing tables, writing or reviewing migrations, adding indexes, reading EXPLAIN output, fixing slow queries or lock contention, handling race conditions, or implementing location and radius search.

  4 GitHub stars
- [/postgresql](https://skilld.dev/gh/jyasuu/cheat-sheet/postgresql)

  Jyasu·cheat-sheet

  PostgreSQL database operations including backups, transactions, user management, window functions, materialized views, and extensions.
- [/supabase-postgres-best-practices](https://skilld.dev/gh/superstone-han/dotfiles/supabase-postgres-best-practices)

  superstone-han/dotfiles

  Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.

## Related tags

- [Database 18](https://skilld.dev/skills/tag/database)
- [TypeScript 9](https://skilld.dev/skills/tag/typescript)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://skilld.dev/#website","@type":"WebSite","description":"Curated agent skills by humans, written by real maintainers in their own GitHub repos","name":"skilld","url":"https://skilld.dev/"},{"@id":"https://skilld.dev/skills/tag/postgres#webpage","@type":"WebPage","description":"Browse 77 agent skills tagged Postgres. Skills tagged Postgres..","name":"Postgres skills","url":"https://skilld.dev/skills/tag/postgres","isPartOf":{"@id":"https://skilld.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://skilld.dev/skills/tag/postgres"]}]}]}
```