kaelio avatar

Metabase Ingest

Pulls Metabase questions, models, and metrics into ktx Semantic Layer definitions by mapping result metadata to KSL column types, detecting foreign keys and primary keys, and decomposing pre-aggregated queries. It handles the full conversion pipeline: deduplicating near-identical cards, stitching join graphs, and reacting to provenance from earlier syncs so you don't rewrite the same measures twice. Loads automatically when your WorkUnit contains cards under a Metabase bundle. The identifier verification protocol is thorough, requiring entity_details checks before writing any schema references, which saves you from shipping broken definitions. Most useful when migrating a mature Metabase workspace where tribal knowledge lives in hundreds of saved questions that should become your canonical metric layer.

GitHub stars
1.1K
last updated
Jun 11, 2026

Install

$ npx -y skills add kaelio/ktx --skill metabase_ingest --agent claude-code

Installs into .claude/skills of the current project.

Files

Metabase to ktx Semantic Layer

Each WorkUnit represents one Metabase collection's cards for one Metabase database (mapped to exactly one ktx connection). Every cards/<id>.json file carries the resolved SQL, result_metadata, card type, collection path, and referenced-card ids. The WU's sync-config.json tells you which sync mode is active and which selections apply. databases/<id>.json tells you the target ktx connection.

Context format

Each card JSON looks like:

{
  "metabaseId": 7,
  "name": "Daily orders",
  "description": "Orders by day",
  "type": "model",
  "databaseId": 42,
  "collectionId": 5,
  "resolvedSql": "SELECT ...",
  "templateTags": [{"name": "ref", "type": "card", "cardReference": 10}],
  "resultMetadata": [
    {"name": "day", "base_type": "type/DateTime", "semantic_type": "type/CreationTimestamp"},
    {"name": "order_count", "base_type": "type/Integer"}
  ],
  "collectionPath": ["Data", "Orders Team"],
  "referencedCardIds": [10]
}

Sponsors

Details

Repository
github.com/kaelio/ktx
Category
Frontend Development
License
Apache-2.0
First seen
Jun 11, 2026

More from kaelio/ktx

All 15
1kimlawtech avatarprivacy-krkimlawtech/korean-privacy-terms한국 서비스용 처리방침·이용약관·회원가입 동의 모달·쿠키 배너 자동 생성. 개인정보보호법 §30, 2025.4.21 작성지침, 2026.3 개정법, 공정위 전자상거래 표준약관 10023호 반영. Next.js 13~16 프로젝트 대상.0skills.sh installs
2kostard avatarforgecad-blockout-modelkostard/forgecad-public-kitCreate rough high-level ForgeCAD concept models from simple primitives to explore layout, proportions, motion, and part relationships without production detail.0skills.sh installs
3leiting-eric avatardaily-briefleiting-eric/dailybriefOperational knowledge for the daily-brief digest pipeline (this project). RSS/API fetchers, pluggable LLM enrichment (default claude CLI on Max; also anthropic/0skills.sh installs
4luochang212 avatardive-into-langgraphluochang212/dive-into-langgraphA comprehensive guide and reference for building agents using LangGraph 1.0, including ReAct agents, state graphs, and tool integrations.0skills.sh installs
5mcpware avatarorganizemcpware/cross-code-organizerOpen the Cross-Code Organizer (CCO) dashboard — view and manage all memories, skills, MCP servers, hooks, and configs across scopes0skills.sh installs
6meain avatarcommitmeain/dotfilesCreate git commits for dotfiles changes, grouping by component with conventional prefix style0skills.sh installs