lauren-framework/lauren-ai/database-query-tool
Claude Code and agent skill by lauren-framework/lauren-ai
- community
Checking that the SKILL.md file is still in the repository.
SQL query tool with read/write guard using SQLite in-memory (or any sqlite3-compatible connection). Use when an agent needs to query or mutate a relational database, with configurable read-only mode to prevent accidental writes. Supports @set_metadata for mode annotation.
Install
npx vskill@latest install lauren-framework/lauren-ai/database-query-toolSKILL.md
The same SKILL.md was published earlier as lauren-framework/lauren-ai/database-query-tool.
Usecodemap find "SQLQueryTool"after adding the pattern to your project.
Database Query Tool (SQL Agent with Read/Write Guard)
A @tool() class wrapping a sqlite3 connection. Blocks INSERT, UPDATE, DELETE, and DDL statements when read_only=True.
Critical rule — name override for acronym classes
The @tool() snake_case converter inserts _ before every uppercase letter, so SQLQueryTool would become s_q_l_query_tool. Always override the name explicitly when the class name contains consecutive uppercase letters:
Pattern
AgentRunner test pattern
When passing a tool instance (pre-configured with connection/read_only), pass the instance to @use_tools. The runner stores and calls it correctly.
Usage with an agent
For a write-enabled tool, pass read_only=False to the constructor.
Notes
- Always use
@tool(name="sql_query_tool")to override the auto-generated name
when the class has consecutive uppercase letters in its name.
@set_metadata("mode", "read")documents the tool's operation mode and is
readable via ctx.get_metadata("mode") inside the tool.
- The
read_onlyflag can be set at the instance level (permanent) or
per-call (temporary override). Both flags are OR-ed.
- For production use, add parameterised queries to prevent SQL injection.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database-query-tool/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lauren-framework/lauren-ai/database-query-tool)