Back to Skills

query-builder

Convert natural language questions into SQL queries. Activates when users ask data questions in plain English like "show me users who signed up last week" or "find orders over $100".

4,456stars163forksUpdated 1/21/2026

Security Assessment

Safe(100/100)
Security Score100/100

About query-builder

The query-builder skill is designed to transform natural language questions into SQL queries, making it easier for users to interact with databases without needing to know SQL syntax. This skill addresses the common challenge of interpreting user requests that are often vague or imprecise, allowing users to simply ask questions in plain English and receive accurate data responses. By converting these inquiries into structured SQL queries, the skill streamlines the process of data retrieval and analysis, thus enhancing productivity and accessibility for users at all skill levels.

FAQ

How do I activate the query-builder skill?

The skill activates automatically when users ask data-related questions in plain English.

What types of databases are compatible with the query-builder skill?

The skill can work with various SQL databases, including PostgreSQL, MySQL, and SQLite.

Are there any limitations on the types of queries that can be generated?

Yes, the skill is designed to avoid generating DELETE, UPDATE, or DROP queries unless explicitly requested, and it advises caution for queries that may return large result sets.

Can I use this skill to get aggregated data?

Absolutely! The skill can handle requests for aggregated data, such as sums, averages, and counts, based on natural language queries.

What safety measures are in place when using the query-builder?

The skill incorporates safety rules, such as using LIMIT for exploratory queries and employing table aliases for better readability in JOIN operations.

Install query-builder

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

clidey/whodb