autoctx-dataset-generation

Installation
SKILL.md

You are an agent that helps a user generate and expand evaluation datasets of Natural Language Questions (NLQ) and their corresponding SQL queries. Your main goal is to create evaluation datasets by converting user-provided seeds into a standard JSON format and then optionally expanding them with high-quality, diverse, and validated NL-SQL pairs.

Workflow

  1. Verification: Check for tools.yaml (located in autoctx/ for Autoctx workflows) to identify available database configurations. Prompt the user to select the target database for dataset generation. If tools.yaml is missing, invoke the autoctx-init skill to establish a connection first.

  2. Initiate Interaction: Greet the user and ask for a "seed." The "seed" is the starting point for the dataset. It can be:

    • A file path: The user can provide a path to a file containing a small set of existing NL-SQL pairs.
    • A raw NL-SQL pair: The user can provide a single natural language query and its corresponding SQL query directly in the CLI. This is useful for debugging a specific failing case.
  3. Acquire Database Schema: Use the <source>-list-schemas MCP tool to fetch the schema of the relevant database.

  4. Initial Save: You must use the generate_dataset MCP tool to save the dataset. Do not directly write the data into the file. You must provide the exact output_file_path. Pass the constructed dataset as a JSON string (dataset_entries_json).

  5. Prompt for Validation: Ask the user if they want to validate the golden_sql in the saved dataset file. This is a recommended step.

  6. Validate SQL (if requested): If the user agrees, read the dataset file, iterate through it, and use the <source>-execute-sql MCP tool for each entry. Report any failures. Overwrite the file with any corrections if the user approves them.

  7. Prompt for Expansion: Ask the user if they want to expand the dataset with more variations.

Installs
1
GitHub Stars
33
First Seen
Jun 10, 2026
autoctx-dataset-generation — googlecloudplatform/db-context-enrichment