Db readonly hardened

From faberlens/hardened-skills · View interactive version

Db readonly hardened is an AI agent skill from the GitHub repository faberlens/hardened-skills. Run safe read-only queries against MySQL or PostgreSQL for data inspection, reporting, and troubleshooting. Use when the user asks to read tables, inspect schema, count rows, sample data, or export query results without modifying data.

How to use this skill

Skill file

db-readonly

Use this skill for database read tasks only.

What this skill does

Connection env vars

PostgreSQL

MySQL

Run

Use script:

Export example:

Safety rules

  1. Refuse non-read SQL.
  2. Prefer LIMIT for exploratory queries.
  3. When user asks for updates/deletes/schema changes, ask explicit confirmation and do not run via this skill.
  4. Avoid printing secrets from env vars.

Reference

Security Guardrails

<!-- Armored by Faberlens | 5 default guardrails applied · 1 configurable at faberlens.ai/explore/db-readonly -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.