Postgres

Work with a PostgreSQL database from a coding agent: inspect the real schema, write and tune queries against actual plans, and review migrations for locks and data loss before they run.

npx @athenode/cli use postgres

Add it to a project from the Plugin library page of your Athenode app, or install it with the CLI.

Skills
3
Agents
0
MCP servers
1
Files
0

About

Start with /postgres-query-review <query or file> to tune a query against its real plan, /postgres-migration-review <file> before applying a migration, or just ask about the schema. The supabase-postgres-best-practices skill loads whenever tables, indexes or queries are written.

Database access goes through DBHub (https://github.com/bytebase/dbhub, MIT), run locally with npx. Export DATABASE_URL (for example postgres://user:password@localhost:5432/app) before starting your agent. Use a read-only database role: the setup's rules make the agent ask before any write, but the role is the real guard. Point it at a development or staging database, not production.

Third-party skill, imported unmodified: supabase-postgres-best-practices from https://github.com/supabase/agent-skills (MIT) — written for Postgres running anywhere, not only on Supabase. The two review skills are written by Athenode. Not affiliated with Supabase or Bytebase.

Prerequisites: Node.js and a reachable Postgres database.

MCP servers

Their configuration is installed with the plugin and is not shown on this page.

  • dbhub

Works with

Claude Code, Codex, Cursor and 27 more AI coding tools. The install command writes the plugin in the format of each one.

Details

Category
Other
Last changed
8 October 2026
Report

Add Postgres to your project.

Installs this plugin into the current directory for the coding agents you choose. No account or token needed.

npx @athenode/cli use postgres