wren-query
Installation
SKILL.md
The user wants to run a Wren CLI command. $ARGUMENTS is the SQL query or instruction.
What to do
-
Check for
~/.wren/mdl.jsonand~/.wren/connection_info.jsonusing Read or Glob.- If either is missing, tell the user what's needed and show the format below.
- If both exist, proceed directly.
-
Run the appropriate command based on what the user asked:
| Intent | Command |
|---|---|
| Execute and return results | uv run wren --sql '...' |
| Translate to native SQL (no DB) | uv run wren dry-plan --sql '...' |
| Validate without fetching rows | uv run wren dry-run --sql '...' |
| Check SQL is valid | uv run wren validate --sql '...' |
If wren is installed globally (not via uv), use wren directly instead of uv run wren.