postgres

Execute read-only SQL queries across multiple PostgreSQL databases.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/tecnologia-ibtech/geo-codex --skill postgres-tecnologia-ibtech
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: postgres
Source: https://github.com/tecnologia-ibtech/geo-codex/tree/main/geo-ops/skills/postgres
Command: npx skills add https://github.com/tecnologia-ibtech/geo-codex --skill postgres-tecnologia-ibtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires psycopg2, and includes scripts (resource) components.

What problem does it solve?

PostgreSQL databases can be sensitive; this skill enables safe, centralized querying by enforcing read-only access and preventing writes, allowing teams to explore data and schemas without risk.

Core Features & Use Cases

  • Multi-database read-only queries: Connect to multiple PostgreSQL databases and run safe SELECT queries.
  • Schema discovery & data exploration: List schemas, tables, and columns to understand data structure without modifying data.
  • Controlled access & safety: Single-statement enforcement, query timeouts, and read-only sessions to prevent accidental writes.
  • Use case: Quickly verify data across production and analytics environments for validation and reporting.

Quick Start

Query a sample database with a read-only SELECT to verify results.

Frequently Asked Questions about postgres

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run read-only PostgreSQL queries across multiple databases safely?▼

Run read-only PostgreSQL queries by enforcing single-statement sessions with configurable timeouts. This prevents accidental writes while allowing safe data exploration across multiple connected databases.

Can I inspect PostgreSQL schemas and tables without allowing write access?▼

Inspect PostgreSQL schemas and tables safely using read-only sessions. You can list schemas, tables, and columns for data structure discovery without risking modifications to the underlying database.

Do I need psycopg2 to connect to multiple PostgreSQL databases for data exploration?▼

Yes, psycopg2 is required to connect to multiple PostgreSQL databases. You load database connections from a JSON file and use the dependency to execute safe, read-only SELECT queries.

What is the best way to prevent accidental writes when querying production PostgreSQL databases?▼

Prevent accidental writes in PostgreSQL by using enforced read-only sessions and restricting queries to a single statement. This approach protects production databases during validation and reporting tasks.

Why does my multi-database PostgreSQL query fail when using multiple statements?▼

Multi-database PostgreSQL queries fail with multiple statements because single-statement enforcement is active. This safety mechanism restricts execution to one statement per query to prevent unauthorized modifications.

Are there limitations when using read-only sessions for PostgreSQL data validation?▼

Read-only sessions for PostgreSQL data validation limit you to SELECT queries and schema discovery. You cannot perform writes, and queries are constrained by configurable timeouts and single-statement enforcement.