What problem does it solve? Answering business data questions with AI agents often fails because agents guess table names, write dialect-specific SQL, and lose context between sessions. This Skill gives agents a governed workflow for the Wren CLI so they query through a semantic layer, recall past queries, and recover from errors systematically. ## Core Features & Use Cases - End-to-end data question workflow: Gather schema context with wren memory fetch, recall past queries as few-shot examples, write dialect-neutral SQL against MDL models, execute, and store confirmed results. - Structured error recovery: Diagnose failures with wren dry-plan to separate MDL-level issues (wrong model or column names) from database-level issues (type mismatches, permissions, timeouts). - Cube query support: Answer aggregation questions like "revenue by month" or "top N customers" through wren cube query instead of hand-writing GROUP BY SQL. - Use Case: A user asks "what were our top 5 customers by revenue last quarter?" The agent recalls similar past queries, fetches schema context, checks for a matching cube, executes the query through the semantic layer, and stores the confirmed result for future sessions. ## Quick Start Ask the agent to answer a business data question such as "show me monthly revenue for 2024" using the wren CLI and let it follow the guided workflow.