Postgres Skills

Postgres Skills is a plugin for Claude Code, GitHub Copilot CLI, and Codex CLI that equips
your AI coding agent with PostgreSQL guidance and database tools. Use it to build,
troubleshoot, and operate PostgreSQL across local, self-hosted, and cloud environments,
including Azure Database for PostgreSQL and Azure HorizonDB.
It bundles three skills and a local PostgreSQL MCP server: PostgreSQL best practices,
Apache AGE graph workflows, and Oracle application migration.
It is not a PostgreSQL extension, database service, or standalone AI assistant.
You bring a supported agent and choose which database it can access.
Get started · How it works ·
Examples · Full catalog
For Oracle-dependent application assessment and conversion, use
migrate-oracle-app. See the migration guide for inputs,
prerequisites, safety policies, and migration-script tests. It uses the same
postgres-mcp server as the other skills.
Is this for me?
Who it's for
- Application developers building PostgreSQL-backed apps, schemas, and queries.
- DBAs and platform engineers investigating performance and managing database operations.
- AI application developers building vector search, retrieval-augmented generation
(RAG), and knowledge graphs.
Workloads it's useful for
| Your task | How the plugin helps |
|---|
| Diagnose a slow query | Inspect the live schema and query plan, then propose a targeted change. |
| Choose indexes or partitioning | Match the design to your queries, data, and PostgreSQL version. |
| Build search and AI features | Guide vector indexing, hybrid retrieval, and RAG implementation. |
| Add tenant isolation | Design row-level security policies around your tenancy model. |
| Investigate connection or service issues | Check the selected environment and follow the relevant PostgreSQL or Azure workflow. |
| Build a knowledge graph | Propose an ontology for review, load it into Apache AGE, and query relationships with openCypher. |
| Migrate a Neo4j application | Assess graph and application compatibility, run a representative pilot, migrate with AGEFreighter, translate approved Cypher, verify parity, and guide cutover and rollback. |
What you're probably doing today instead
You may already use an AI agent and database tools. This plugin adds PostgreSQL-specific
instructions and references to that workflow.
| Today's friction | What Postgres Skills adds |
|---|
| Copying schema and settings into prompts | Instructions to inspect the selected database and ground recommendations in its context. |
| Checking generated SQL against documentation | Version-aware guidance and common PostgreSQL pitfalls. |
| Translating self-hosted commands into managed-service operations | Separate generic, Azure Database for PostgreSQL, and HorizonDB guidance. |
| Switching between advice, SQL tools, and cloud commands | A shared agent workflow using PostgreSQL MCP tools and, for Azure operations, the Azure CLI. |
Get started
Already have Claude Code, GitHub Copilot CLI, or Codex CLI? You also need
Node.js LTS with npx available to launch the MCP server.
If you're starting from scratch, follow the first-time setup guide.
-
Install the plugin from your terminal for the agent you use:
| Agent | Installation commands |
|---|
| Claude Code | claude plugin marketplace add microsoft/postgres-skills
claude plugin install postgres-skills@postgres-skills |
| GitHub Copilot CLI | copilot plugin marketplace add microsoft/postgres-skills
copilot plugin install postgres-skills@postgres-skills |
| Codex CLI | codex plugin marketplace add microsoft/postgres-skills
codex plugin add postgres-skills@postgres-skills |
-
Start a new agent session so it can load the plugin's skills and MCP tools.
Review any tool-access prompts before allowing access.
-
Connect read-only and try an inspection task:
Help me connect to my PostgreSQL database using a read-only profile.
Then show my table names and approximate sizes without reading application rows.
Have your host, port, database name, and user name ready. Enter the password only
in the hidden password prompt, never in chat. See the connection setup
and data-access disclosure before
connecting a sensitive or production database.
Skills only, without database tools