Kaelio/ktx✦ 精选0°

ktx-analytics

仓库创建 2026年5月11日最近提交 7 天前SkillHot 收录 20 天前
▸ 精选理由

便于自动化回答基于数据库的业务问题与报表。

▸ 风险提示

需要访问数据库凭据与只读查询权限。

这个 Skill 做什么

基于 ktx 连接的数据源执行发现、分析与 SQL 查询工作流。

帮你对接 ktx 连接的数据源,做数据发现、分析和只读 SQL 查询,能回答“有多少”“给我看分解”“找出某个值的记录”等问题。常用在需要从配置好的 ktx 数据库里探索表结构、比对时间段或解释某个指标时。特点是先做全局发现(wiki、语义层、原始表与列),再并行检查命中项,既能用语义层分析也能回退到原始 SQL。

▸ 展开 SKILL.md 英文原文

Use when answering a question that needs data from a ktx-connected database - investigating, analyzing, "how many", "show me", "what's the breakdown of", finding records by value, exploring tables, comparing periods, explaining metrics, or any data-analysis request. Triggers even when the user does not say "analytics"; if the answer requires querying a configured ktx connection, this skill applies.

数据与抓取数据分析SQL查询语义层通用
1.5k
Stars
96
Forks
17
仓库内 Skill
+49
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/analytics/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Kaelio/ktx/main/packages/cli/src/skills/analytics/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# ktx Analytics Workflow

You have access to ktx MCP tools for data discovery, semantic-layer analysis, raw read-only SQL, wiki context, and memory ingest. Follow this workflow.

<workflow>
1. **Discover** - call `discover_data` first to see what exists across wiki pages, semantic-layer sources, metrics, dimensions, raw tables, and columns. Returns refs only.
2. **Inspect top hits in parallel** - for each promising ref:
   - `kind: 'wiki'` -> `wiki_read`
   - `kind: 'sl_source'`, `kind: 'sl_measure'`, or `kind: 'sl_dimension'` -> `sl_read_source`
   - `kind: 'table'` or `kind: 'column'` -> `entity_details`
   - For tables you intend to query, sample a few rows (`entity_details` plus a small 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有