query-agent

Translate natural language questions into SQL and export results as XML.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/ticruz38/skills --skill query-agent-ticruz38
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: query-agent
Source: https://github.com/ticruz38/skills/tree/main/skills/query-agent
Command: npx skills add https://github.com/ticruz38/skills --skill query-agent-ticruz38

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, google-api-python-client, google-auth, psycopg2-binary, pymysql, boto3, azure-storage-blob, google-cloud-storage, and includes scripts (resource) components.

What problem does it solve?

Translates natural language questions into SQL queries by automatically discovering the database schema, enabling safe, read-only data exploration and XML export of results to configurable storage backends.

Core Features & Use Cases

  • Schema discovery from PostgreSQL, MySQL, and SQLite databases to generate accurate SQL against real schemas
  • LLM-driven SQL generation with strict safety constraints to ensure read-only access and allowed functions
  • XML export of query results to Google Drive, S3, Azure, GCS, or local storage for downstream workflows
  • End-to-end workflow from natural language input to storage-ready XML with metadata
  • Use Case: A data analyst asks a question like "What were total sales by region in 2023?" and receives a ready-to-use XML report

Quick Start

Provide a natural-language description of a data question to generate SQL and export results to storage.

Frequently Asked Questions about query-agent

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

FAQPage Schema
How do I convert natural language to SQL queries for a PostgreSQL database?

To convert natural language to SQL for PostgreSQL, you need a tool that performs automatic schema discovery and LLM-driven SQL generation. This approach translates your plain English data questions directly into safe, executable SQL queries against your specific database schema.

Can I export SQL query results as XML files to Amazon S3 or Google Cloud Storage?

Yes, you can export SQL query results as XML files to Amazon S3 or Google Cloud Storage. Natural language to SQL tools can route your query outputs directly to configurable storage backends, returning a ready-to-use XML artifact with attached metadata.

Does natural language to SQL generation enforce read-only safety constraints?

Natural language to SQL generation enforces strict read-only safety constraints by applying allowed functions and restricting access. This ensures that LLM-generated queries only retrieve data from PostgreSQL, MySQL, or SQLite without executing destructive modifications.

How do I generate an XML report from a natural language data question without writing SQL?

You can generate an XML report from a natural language data question by using an automated text-to-SQL workflow. This process discovers your database schema, generates the required read-only query, executes it, and exports the results as an XML file.

What databases are supported for schema discovery and LLM-driven SQL generation?

Supported databases for schema discovery and LLM-driven SQL generation include PostgreSQL, MySQL, and SQLite. The tool inspects the schema of these relational databases to ensure the automatically generated SQL queries match your actual table structures.