Skip to content
Back to skills

Postgres

ASecurity

Query the connected PostgreSQL database with psql. Use when the user asks about their database, tables, rows, schema, or to run SQL against Postgres.

  • 69 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
developmentsqldatabase

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add intentic/intentic --skill postgres --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Postgres?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Postgres
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/intentic-postgres/badge)](https://www.skillsdirectory.com/skills/intentic-postgres)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: postgres
description: Query the connected PostgreSQL database with psql. Use when the user asks about their database, tables, rows, schema, or to run SQL against Postgres.
---

# PostgreSQL (connected)

The connection string is in `$POSTGRES_URL`: pass it to `psql` as the first argument. `psql` is preinstalled
once the sandbox has been rebuilt for this capability (Environment card).

- List tables: `psql "$POSTGRES_URL" -c "\dt"`
- Describe a table: `psql "$POSTGRES_URL" -c "\d <table>"`
- Run a query: `psql "$POSTGRES_URL" -c "SELECT * FROM <table> LIMIT 20"`
- Scriptable output (no headers/formatting, one value): `psql "$POSTGRES_URL" -tAc "SELECT count(*) FROM <table>"`
- List databases / schemas: `psql "$POSTGRES_URL" -c "\l"` / `psql "$POSTGRES_URL" -c "\dn"`

Notes: this is a read-write connection, the connected role's grants bound what you can do. Wrap risky writes
in `BEGIN; … COMMIT;` and prefer a `WHERE` on every `UPDATE`/`DELETE`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.