What problem does it solve? AI agents often query data warehouses inaccurately because they lack business context, metric definitions, and knowledge of table relationships. This Skill teaches you to set up ktx, an executable context layer that ingests company knowledge, maps your data stack, and serves accurate context to agents via CLI and MCP tools. ## Core Features & Use Cases - Semantic Layer Construction: Define metrics and dimensions in YAML, with automatic join graph detection that resolves chasm and fan traps across PostgreSQL, Snowflake, BigQuery, ClickHouse, MySQL, SQL Server, and SQLite. - Knowledge Ingestion: Ingest dbt manifests, Looker models, Metabase, and Notion content into a searchable wiki with deduplication and contradiction flagging. - Agent Integration via MCP: Expose search_semantic_layer, search_wiki, get_metric_definition, and get_join_paths tools to Claude Code, Codex, Cursor, and OpenCode. - Use Case: A data team connects ktx to their Snowflake warehouse and dbt project, runs ktx ingest, and then Claude Code can answer "What is our total revenue this quarter?" using governed metric definitions instead of guessing SQL. ## Quick Start Ask the agent to run ktx setup in your project directory, configure your warehouse connection and dbt source in ktx.yaml, then run ktx ingest to build the context layer.