# Querybird: Ask Your SQLite Database in Plain English

> Ask questions about a SQLite database in plain English. Querybird looks up how your data is actually stored, writes read-only SQL, double-checks the result, and shows you the answer with the query it ran. Your data can't be changed.

Querybird: Ask Your SQLite Database in Plain English is a free AI agent skill on Agensi by Gulsher Assad, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Gulsher Assad](https://www.agensi.io/creators/gulsher-assad)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/querybird-ask-your-sqlite-database-in-plain-english
- Tags: database, research, education, sqlite, text-to-sql, data-analysis

## What it does

- Answers plain-English questions about any .sqlite or .db file
- Checks the values actually stored before filtering, so "Orange" matches "Orange County"
- Returns names, not raw IDs, by joining foreign keys to their tables
- Checks every result for silent errors like empty matches, join duplicates and integer division
- Never changes your data: every edit or delete is blocked, and slow or huge queries are cut off automatically
- Shows the answer, the exact SQL it ran, and the result rows

## Who it's for

- **Developers debugging or exploring an app's SQLite database:** Answers without hand-writing joins, and no risk of touching the data Try: "Using querybird, how many users signed up each month in 2024? DB is ./app.db"
- **Analysts and founders with data in a SQLite file:** Business answers in plain English, with the SQL shown so they can check it Try: "Using querybird, which 5 products made the most revenue last quarter? DB is ./shop.db"
- **Students learning SQL:** Correct queries with the reasoning behind each join and filter Try: "Using querybird, which department has the highest average salary? DB is ./company.sqlite"

## About this skill

Querybird turns your AI agent into a careful SQL analyst for SQLite databases. Ask a question in plain English. It reads the schema, checks the values actually stored in the columns it filters on, writes the query, runs it, and checks the result before answering. You get the answer, the SQL it ran, and the rows.

### Why the checks matter
When AI-written SQL is wrong, it usually doesn't crash. It runs fine and returns the wrong rows. Querybird's method comes from failure analysis on the BIRD text-to-SQL benchmark, where about 94% of wrong queries were this kind of silent error. It targets the common causes:
- Returning raw IDs when you asked for names
- Filtering on "Orange" when the data stores "Orange County"
- Date-format mismatches ("2024" vs "2024-03-22 11:05:00")
- Joins that double-count rows
- Integer division that turns percentages into 0

### Your data can't be changed
All database access goes through a bundled Python script that opens the file read-only. SQLite's own authorizer refuses every write, schema change, ATTACH and PRAGMA, so this doesn't rely on keyword matching. Every query also has a timeout and a row cap.

### Limits
SQLite only (.sqlite, .db, .sqlite3). It doesn't connect to Postgres or MySQL, and it never changes data.

## Requires

- Python 3.8+

## Known limitations

Works only with SQLite files (.db, .sqlite, .sqlite3), not Postgres or MySQL. Read-only: it can't add, change, or delete data. Results show up to 200 rows by default and queries stop after 10 seconds; the agent can raise both if needed. Requires Python 3.8+.

## Technical details

Files: SKILL.md (workflow) and scripts/sqlsafe.py (database access).

sqlsafe.py uses only the Python standard library (3.8+). Commands:
- schema DB: CREATE TABLE statements and row counts
- values DB TABLE COLUMN: most common stored values in a column
- query DB "SQL" [--limit 200] [--timeout 10]: runs one read-only statement and returns JSON

Safety: the file is opened with mode=ro, PRAGMA query_only is set, and a SQLite authorizer allows only SELECT/READ/FUNCTION/RECURSIVE. Only one statement runs per call, a progress-handler timeout stops long queries, and a row cap applies. No network access, no API keys, nothing to install.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Querybird: Ask Your SQLite Database in Plain English skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Querybird do?

It answers plain-English questions about a SQLite database. It looks up how your data is stored, writes a read-only query, checks the result for common mistakes, and shows you the answer along with the exact SQL it ran.

### Can it change or delete my data?

No. The database is opened read-only, and SQLite itself blocks every edit, delete, and table change. Even a query written to modify data will be refused.

### How is this different from just asking my agent to write SQL?

When AI-written SQL is wrong, it usually runs fine and returns the wrong answer. Querybird makes the agent check the values actually stored before filtering, join IDs to names, and test the result for problems like empty matches, double-counted rows, and broken percentages before answering.

### Which databases does it work with?

SQLite files only (.db, .sqlite, .sqlite3). It doesn't connect to Postgres, MySQL, or other database servers.

### Which AI agents support it?

Any agent that can run shell commands and Python 3.8+, including Claude Code, Codex CLI, Cursor, and Gemini CLI.

### How do I use it?

Ask your agent a question and give it the database path, for example: "Using querybird, which customers spent the most in 2024? DB is ./shop.db". No API keys or setup needed.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
