read-prod-database

Installation
SKILL.md

Read Prod Database (read-only)

Sanctioned read-only access to the production DeepAPI Supabase Postgres (ADR 0093). Writes are impossible for this role — never attempt them.

Quick start

# env var lives in David's ~/.zshrc. NEVER `source ~/.zshrc` (breaks agent shells).
URL=${DEEPAPI_READONLY_DB_URL:-$(rg -o 'DEEPAPI_READONLY_DB_URL="([^"]+)"' -r '$1' ~/.zshrc)}

psql "$URL" -X -c "select count(*) from public.workspaces;"

State-check: select current_user; must return agents_readonly. If the env var is missing entirely, stop and ask the user.

Scope: exclude David & team by default (ADR 0175)

Every usage/customer/PMF query runs in one of two modes. Pick one, on purpose, every time:

Installs
43
GitHub Stars
4.0K
First Seen
Aug 5, 2026
read-prod-database — davidondrej/skills