nexus-text-to-sql
Installation
SKILL.md
NEXUS Schema-Aware SQL Generator
Turn data questions into executable queries using your actual table definitions
The Problem This Solves
Agents working with databases need to construct SQL queries dynamically. Generic LLM prompting produces SQL with hallucinated column names. This service takes your real schema as input and generates queries that reference your actual tables and columns.
When to use
Your agent has access to a database schema and receives natural language questions from users or other agents. Instead of maintaining a library of pre-written queries, feed the question and schema to this service and get back executable, optimized SQL.
How it works
- Agent provides table definitions (CREATE TABLE statements or simplified column lists)
- Agent provides the natural language question
- Service returns: executable SQL + English explanation + performance notes