ktx-data-agent-context-layer — Claude Code skill: setup and use
The ktx-data-agent-context-layer skill guides ktx setup so an AI agent can search warehouse context, metric definitions, and wiki knowledge, then use that context in data queries.
no license 158 installs ★ 9 updated 2026-10-09
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a claude-codeWhat ktx-data-agent-context-layer does
The skill covers using ktx to gather metadata from databases and sources such as dbt, Looker, and Notion. It builds a semantic layer with metric definitions and makes that material searchable through the CLI or MCP. An agent can use the approved definitions when querying data rather than reconstructing metric logic for each request.
Start a project with ktx setup, collect context with ktx ingest, and search metrics or wiki pages with ktx sl and ktx wiki. The instructions also cover MCP server setup and source configuration. The described connections rely on LLM and embedding keys; database access also needs credentials. Secrets can live in .ktx/secrets.yaml or environment variables. Without configured keys and access to the sources, ktx cannot build the required project context.
What it helps with
- gather context from warehouse metadata and connected sources
- look up an approved metric definition
- find business rules in wiki pages
- query data through the ktx semantic layer
Example prompts for the agent
- Find the definition of monthly recurring revenue in ktx.
- Search the wiki for our refund rules.
- Use ktx to query revenue by product category for Q4 2024.
How to install ktx-data-agent-context-layer
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a claude-code2Manually: put the files in place
~/.claude/skills/ktx-data-agent-context-layer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ktx-data-agent-context-layer/
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a codex2Manually: put the files in place
.agents/skills/ktx-data-agent-context-layer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a cursor2Manually: put the files in place
.cursor/skills/ktx-data-agent-context-layer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/mcp-skills skills/ktx-data-agent-context-layer2Manually: put the files in place
.github/skills/ktx-data-agent-context-layer/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/ktx-data-agent-context-layerManually: put the files in place
.devin/skills/ktx-data-agent-context-layer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about ktx-data-agent-context-layer
How do I install ktx-data-agent-context-layer in Claude Code?
Run npx skills add reason-machines/mcp-skills --skill ktx-data-agent-context-layer -a claude-code. The skill file is placed at ~/.claude/skills/ktx-data-agent-context-layer/SKILL.md.
What does ktx-data-agent-context-layer do?
It guides setup of ktx, which gathers data context and supports searches across a semantic layer and wiki. Agents can use the metric definitions it finds when querying data.
Which sources can ktx ingest?
The described sources include databases, dbt, LookML, Looker, Metabase, and Notion. Configure connections in the project settings.