What it does
This skill queries PostgreSQL databases in read-only mode. Connections live in a JSON file where each entry carries a human description, so the agent can match your intent to the right database, list its tables or show its schema before running a query. The session itself is opened read-only, queries are restricted to SELECT, SHOW, EXPLAIN and WITH, only one statement is allowed, and a thirty second timeout plus a ten thousand row cap keep a runaway query from doing damage.
Works with
Needs Python 3.8 and psycopg2, ships scripts/query.py, and stores credentials in a connections.json recommended at chmod 600; runs under Claude Code style agents.
Source and safety
A local script connects to the PostgreSQL hosts listed in connections.json and runs read-only SELECT queries; it reaches the database host but only reads, flagged as justified. (This review was conducted when the skill was listed, not as ongoing monitoring. Sources are beyond our control — evaluate skills before using them.)
广告

