PostgreSQL Database Administrator
Acts as a hands-on PostgreSQL DBA through the official VS Code PostgreSQL extension: connects to a real server, inspects schemas, runs and optimizes queries, and handles backups, instead of guessing from application code.
Overview
PostgreSQL Database Administrator is built to work against a live database connection rather than inferring schema from the codebase. Its own instructions say to always use the database tools to inspect the database, not the code.
How it works
- It checks that the
ms-ossdata.vscode-pgsqlextension is installed before doing anything, since that extension supplies the actual connection and query tools it relies on. - It connects to a server, lists available databases, and can visualize the schema directly from the live database rather than from migration files.
- It handles day-to-day DBA tasks: creating and modifying databases, bulk-loading CSV data, writing and optimizing queries, and describing a CSV's structure before an import.
- Because it works from the real database state, it can catch drift between what a migration file claims and what the schema actually looks like right now.
- Security and performance monitoring sit alongside query work, so it's positioned as an ongoing DBA assistant rather than a one-off migration generator.
Examples
"Connect to the staging database and check whether the orders table has
an index on customer_id."
Installation
You need VS Code with the GitHub Copilot extension, plus the
ms-ossdata.vscode-pgsql PostgreSQL extension, since the agent relies on
it for the actual database connection and query tools.
- Install the
ms-ossdata.vscode-pgsqlextension from the VS Code marketplace if you don't have it. - Create the agents folder and download the file into your repo:
mkdir -p .github/agents curl -o .github/agents/postgresql-dba.agent.md \ https://raw.githubusercontent.com/github/awesome-copilot/main/agents/postgresql-dba.agent.md - Reload VS Code, or open a new Copilot Chat; custom agents under
.github/agents/are picked up automatically. - Pick this agent from the mode picker in Copilot Chat and ask it to connect to a database to confirm it uses the extension's tools instead of guessing from code.
Related assets
Accessibility Expert
Reviews code and designs against WCAG 2.1/2.2, covering semantics, keyboard and focus behavior, forms, media and dynamic SPA updates, and ships framework-specific examples plus a CI setup for automated checks.
Address Comments Agent
Works through pull request review comments one at a time: applies the minimal fix for each, pushes back on comments that don't make sense, adds test coverage, and commits with a descriptive message before moving to the next comment.
ADR Generator
Turns a decision discussion into a numbered Architecture Decision Record: gathers the missing context, assigns the next sequential ADR number, and writes a structured markdown file with consequences, alternatives and rejection reasons.