Skip to content
youdede

Provision Postgres Readonly Role

DataSkillv1.3.0

Prepare reviewed PostgreSQL SQL for a login role that defaults to read-only, has bounded execution, and excludes sensitive relations. Use when humans need to grant an analyst or agent production read access.

Runs on

Scope
$npx @youdede/toolkit add provision-postgres-readonly-role --target claude-code

What it does

Design and verify a least-privilege PostgreSQL role for bounded read access.

When it fires

  • setup
  • operations

How it behaves

It does not grant SUPERUSER, BYPASSRLS, write privileges, or role administration.

It does not embed or print a production password.

It does not apply production DDL without explicit authorization and a revocation plan.

Version
1.3.0
Licence
RiskIt can apply production role grants after explicit authorization, changing live database access.
High
ModeHow it works: fixed rules, model instructions, or both.
Prompt only
Behaviour
Advises, never blocks
On failure
Stops and reports
LatencyThe skill designs and verifies a least-privilege PostgreSQL role for bounded read access, using sequential evidence and verification steps.
Bounded
Data retentionWhether data remains after use and who manages its storage.
Managed by the runtime

Often used with

All in Data