mit einem Klick
skill-autoctx-init
// Orchestrates the initialization workflow for auto context generation, and provides helper workflow for setting up dataset connection by creating or updating tools.yaml configurations.
// Orchestrates the initialization workflow for auto context generation, and provides helper workflow for setting up dataset connection by creating or updating tools.yaml configurations.
Guides the agent to bootstrap an initial context set (templates & facets) by deducing key information from the database schema and generating a ContextSet file.
Generate and expand datasets of Natural Language Questions (NLQ) and SQL pairs for evaluation.
Guides the agent to execute an evaluation of a generated ContextSet against a golden dataset utilizing the Evalbench framework.
Guides the agent to perform hill-climbing iterations to improve a ContextSet based on evaluation results.
Guidelines and best practices for generating context items (Templates, Facets, Value Searches). Use this skill whenever the user asks to create, author, or generate context for database enrichment, or asks for examples and instructions on how to write templates, facets, or value searches. It helps bridge the gap between LLMs and structured databases.
| name | skill-autoctx-init |
| description | Orchestrates the initialization workflow for auto context generation, and provides helper workflow for setting up dataset connection by creating or updating tools.yaml configurations. |
This skill guides the user through scaffolding a new environment for the DB Data Agent auto context generation. It handles creating tracking files, output directories, and configuring database connections.
Follow these steps when the user asks to initialize the environment:
autoctx/ folder in this directory to hold tools.yaml, state.md, and experiments/. Ask them to confirm if this is the correct location before proceeding.autoctx/ directory exists.tools.yaml and state.md files. If it appears to be an unrelated folder or corrupted, STOP and ask the user how to proceed (e.g., use a different name or overwrite).autoctx/.tools.yaml is missing inside autoctx/, follow the primary "1. Create a New tools.yaml" workflow documented below in the Toolbox Config Helper section.state.md is missing inside autoctx/, create it with header “context authoring experiment state tracking”.experiments/ is missing inside autoctx/, create an empty experiments/ directory inside autoctx/.Upon successful completion, the workspace must contain:
autoctx/: The dedicated workspace directory.
tools.yaml: A structurally sound configuration file for the Toolbox MCP Server.state.md: The external state tracker for hill-climbing iterations.experiments/: The base directory prepared to store all hill-climbing run artifacts (e.g. baseline contexts, evaluation reports).Conclude by providing a succinct summary to the user:
/mcp reload./reload-plugins.This section contains standalone instructions for managing the tools.yaml file for the GenAI Toolbox. You can execute these if the user explicitly asks to add or list database connections.
For Google Cloud databases, the system uses Application Default Credentials (ADC) and IAM Authentication. Providing a user and password is not supported.
When collecting information from the user, inform the user that only Application Default Credentials (ADC) are supported for authentication. They do not need to provide a username or password.
Sample Message:
"I'll help you configure the database connection in
tools.yaml. Note that the system only supports Application Default Credentials (ADC) for authentication, so you don't need to provide a username or password. Please ensure that the IAM account you are using has the required permissions to access the database.Could you please provide the following details:
- Google Cloud Project ID:
- Region: ... (other required fields based on database type)"
tools.yamlreferences/ folder. Do NOT assume missing fields; ask the user for them explicitly.tools.yaml content. Save it to the target location (e.g., autoctx/tools.yaml for Autoctx workflows, or tools.yaml in the current directory for standalone use).<config_path> with the actual path to the file:
npx -y @toolbox-sdk/server --config <config_path> invoke <data_source_name>-list-schemastools.yaml<data_source_name>.tools.yaml from the target location.sources and tools sections. Append these new entries to the respective sections in the existing file content.<config_path> with the actual path to the file:
npx -y @toolbox-sdk/server --config <config_path> invoke <data_source_name>-list-schemastools.yaml: Check for the tools.yaml file. If it doesn't exist, inform the user.sources: key limit.To verify that a specific database connection is configured correctly at any time, run the validation script with the target data source name:
npx -y @toolbox-sdk/server --config tools.yaml invoke <data_source_name>-list-schemas
For the specific fields required for each database type and the exact YAML structure to use, refer to the references/ directory.