Giverny

Readonly SQL Guard

Make an agent's database access provably read-only.

by davila7★ 34,480Databases

What Readonly SQL Guard does

Make an agent's database access provably read-only. Use when an agent runs caller-supplied SQL against a production/ERP/analytics database (a "query" MCP tool, text-to-SQL, an admin console), or when reviewing DB-access code for write/DDL/side-effect/transaction-escape risks. Checks what a statement CALLS, not just its shape.

How to install Readonly SQL Guard in Claude Code

Giverny gives you a ready prompt with the exact install command from davila7/claude-code-templates. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone davila7/claude-code-templates and copy the cli-tool/components/skills/database/readonly-sql-guard folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Readonly SQL Guard on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the readonly-sql-guard skill on my current project.”

More Claude skills for databases