Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jawwadfirdousiv0.1.1MITIn 1 marketplace
Lets Claude query multiple PostgreSQL databases for tables, schemas and rows, with a configured per-table PII masking option. Writes are blocked at session level; it needs a connections.json with database credentials and the psycopg2-binary Python package.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
read-only, database-queries, schema-inspection, pii-masking, data-access
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Read-only PostgreSQL query skill. Query multiple databases safely with write protection.
cp skills/read-only-postgres/connections.example.json skills/read-only-postgres/connections.json
{
"databases": [
{
"name": "prod",
"description": "Production - users, orders, transactions",
"host": "db.example.com",
"port": 5432,
"database": "app_prod",
"user": "readonly",
"password": "secret",
"sslmode": "require"
}
]
}
chmod 600 skills/read-only-postgres/connections.json
skills/read-only-postgres/SKILL.md to be specific to your project.Make the read-only-postgres skill examples specific to this project.
Steps:
1) Scan the repo for database schema sources (migrations, ORM models, schema.sql, db/ folders).
2) Identify 4-5 core domains (e.g., users, orders, invoices, audit logs) and any key tables.
3) Update skills/read-only-postgres/SKILL.md to:
- Replace the sample connections.json database names/descriptions with project-specific ones.
- Update the example queries to use real tables/columns from the codebase.
- Update the database-selection mapping table to match the project’s domains.
4) Keep everything read-only and avoid adding real credentials.
Return a brief summary of the changes and the files edited.
# List configured databases
python3 skills/read-only-postgres/scripts/query.py --list
# List tables
python3 skills/read-only-postgres/scripts/query.py --db prod --tables
# Show schema
python3 skills/read-only-postgres/scripts/query.py --db prod --schema
# Run query
python3 skills/read-only-postgres/scripts/query.py --db prod --query "SELECT * FROM users" --limit 100
| Field | Required | Default | Description |
|---|---|---|---|
| name | Yes | - | Database identifier |
| description | Yes | - | What data it contains (for auto-selection) |
| host | Yes | - | Hostname |
| port | No | 5432 | Port |
| database | Yes | - | Database name |
| user | Yes | - | Username |
| password | Yes | - | Password |
| sslmode | No | prefer | disable, allow, prefer, require, verify-ca, verify-full |
| pii_masking | No | - | Map of table names to column arrays to mask (see below) |
Protect sensitive data by masking column values in query output. Add a pii_masking field to any database config:
{
"name": "prod",
"host": "db.example.com",
"database": "app_prod",
"user": "readonly",
"password": "secret",
"pii_masking": {
"users": ["email", "phone", "first_name", "last_name"],
"orders": ["shipping_address"]
}
}
Middle characters are replaced with *, keeping the first and last characters:
| Original | Masked |
|---|---|
| [email protected] | j************m |
| 555-1234 | 5******4 |
| Jo | Jo |
Masking applies automatically when the query targets a configured table. Masked columns are noted in the output footer.
readonly=True mode blocks writes at database levelSELECT 1; DROP TABLE)pip install psycopg2-binary
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (jawwadfirdousi/agent-skills) — no native marketplace selected
npx claudepluginhub p/jawwadfirdousi-read-only-postgres-read-only-postgresPlugins from other owners that cover similar ground