wren-query

Execute, dry-plan, or validate SQL queries using the Wren CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kubeworkz/legible --skill wren-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wren-query
Source: https://github.com/kubeworkz/legible/tree/main/wren-engine/.claude/skills/wren-query
Command: npx skills add https://github.com/kubeworkz/legible --skill wren-query

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run, dry-plan, or validate a SQL query through the Wren semantic CLI to interact with your data sources efficiently.

Core Features & Use Cases

  • Execute SQL against supported data sources using the Wren CLI.
  • Dry-plan SQL via MDL to preview generated SQL without hitting the database.
  • Validate SQL syntax and semantics before execution to catch errors early.

Quick Start

Ask Wren to run your SQL query against your configured datasource.

Frequently Asked Questions about wren-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate SQL syntax and semantics before executing a query?

To validate SQL syntax and semantics before execution, you can use the Wren CLI to check your query. This catches errors early by verifying the SQL against your configured data sources without hitting the database.

What does dry-planning a SQL query via MDL do?

Dry-planning a SQL query via MDL generates a preview of the SQL without hitting the database. It uses the Wren semantic CLI to show the execution plan, allowing you to inspect the query logic safely.

Do I need specific configuration files to run SQL queries with Wren?

Yes, running SQL queries requires the presence of `~/.wren/mdl.json` and `~/.wren/connection_info.json` files. These configuration files define your semantic models and data source connections for the Wren CLI.

Can I use Wren to execute SQL against PostgreSQL and MySQL data sources?

Yes, you can execute SQL against PostgreSQL, MySQL, and other supported data sources using Wren. The CLI interacts with your configured datasources to run queries directly from your semantic models.

What is the best way to preview generated SQL without impacting database performance?

The best way to preview generated SQL without impacting database performance is to use the dry-plan feature. Wren generates a dry plan via MDL to show the exact SQL that would be executed without querying the database.