smart-ask-data

smart-ask-data is a skill for Claude Code from UnicomAI/wanwu. It costs 92 tokens per session (2,493 once invoked), scanned A, original, Apache-2.0.

A guided workflow for answering data questions by selecting a Business Knowledge Network, finding its fields, generating SQL, and running the query.

In plain words
What is it for?
Use it for data lookups, statistics, trends, SQL queries, and chart-ready results.
Why use it?
It connects a plain-language question to the right schema and query, reducing guesswork when retrieving metrics or records.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it for data lookups, statistics, trends, SQL queries, and chart-ready results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unicomai/wanwu/smart-ask-data
About the project

Wanwu is an enterprise platform for building AI agents, workflows, retrieval-augmented applications, and managing models in multi-tenant environments. It is designed for developers and enterprise teams delivering AI applications and integrations. The catalogue entries provide skills and agents for using the platform.

UnicomAI/wanwu · 2,461 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add UnicomAI/wanwu --skill smart-ask-data
Clone the repo
git clone --depth 1 https://github.com/UnicomAI/wanwu

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smart-ask-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/unicomai/wanwu/smart-ask-data/github.svg)](https://agentmods.dev/skills/unicomai/wanwu/smart-ask-data)
Your own site
<a href="https://agentmods.dev/skills/unicomai/wanwu/smart-ask-data"><img src="https://agentmods.dev/badge/skills/unicomai/wanwu/smart-ask-data/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smart-ask-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/unicomai/wanwu/smart-ask-data"><img src="https://agentmods.dev/badge/skills/unicomai/wanwu/smart-ask-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.02493
Opus 5 $0.00046 $0.01247
Sonnet 5 $0.00018 $0.00499
Haiku 4.5 $0.00009 $0.00249

Measured 5d ago against content hash c5d23c7e5eaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

smart-ask-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

configs/microservice/bff-service/configs/agent-skills/ontology/smart-ask-data/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Smart Ask Data(问数)

本 skill 定义 固定先后顺序 的问数工具链,完全由 ontology native 子命令bkn / dataview / ds)实现。

在数据分析员工体系中,本 skill 必须由 smart-data-analysis 总入口完成意图、选 KN、生成 SQL 等 LLM 决策后再进入执行;CLI 实际执行由 ontology-core 承担。

调用方式(统一 ontology 命令;委托 ontology-core 执行)

本 skill 涉及的所有数据/Schema 访问 必须 通过 ontology native 子命令发起。

Never 由本 skill 直接执行 ontology CLI;所有 CLI 执行均委托 ontology-core 完成。调用链固定:

smart-data-analysis(顶层意图 + LLM 决策:选 KN、生成 SQL)
  └─ smart-ask-data(本 skill:描述要调的命令形态 + 顺序 + 约束)
       └─ ontology-core(实际执行 ontology 命令,返回结果)

子技能依赖

子技能 角色 返回 约束
smart-data-analysis 顶层意图路由、KN 选择、SQL 生成 进入本 skill 的上下文(kn_id / 生成的 SQL / accountId 等) Never 跳过 smart-data-analysis 直接接管流程
ontology-core smart-ask-data 的 CLI 委托 命令执行结果与回执 Never 跳过 smart-ask-data 直接接管流程

委托给 ontology-core 的命令形态

本 skill 仅 描述 下列命令形态供 ontology-core 执行;本文档与 references 中 不出现 真实执行入口。

ontology --user-id <accountId> <command> [options]

具体 4 个步骤对应到 native 子命令(详见各 reference):

步骤 native 子命令 用途
1. 找 KN bkn get <kn-id> 取详情供 LLM 选择
2. 取字段与 dataview-id bkn object-type list <kn-id> / bkn object-type get <kn-id> <ot-id> 拿字段 + 后端 dataview-id
3. 执行 SQL dataview query <dataview-id> --sql "..." LLM 生成的 SELECT/WITH SQL(mdl-uniquery)
—(简单单表) bkn object-type query <kn-id> <ot-id> '<filter-json>' 不需要 SQL 时的实例过滤 + 分页
  • --user-id <accountId>必传(顶层选项,写在子命令之前;发送为 x-account-id;详见 ontology-core SKILL)。
  • 网关(--base-url / ONTOLOGY_BASE_URL)由 ontology-core 侧承担,本 skill 不出现该参数。
  • 本部署 ontology CLI 无须 token;本 skill 命令体内 不出现 --token / auth.token / Authorization
  • -bd bd_public:默认即 bd_public,可省。

必读 references(按步骤)

步骤 说明 Reference
1 知识网络选择(条件执行) references/kn-resolve.md
2 Schema 发现:候选对象类与字段 references/schema-discovery.md
3 SQL 生成(编排层 LLM)+ 执行 references/sql-execute.md
端到端顺序示例 references/tool-examples.md

Read the full file on GitHub · 143 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +10 lines c5d23c7e5eaf
  2. 6d ago First seen · 133 lines · 92 tokens per session scan A 72662fdd02dc

Subscribe to this mod's changes

smart-ask-data is a skill published in the GitHub repository UnicomAI/wanwu (2,461 stars, last pushed 6d ago), licensed Apache-2.0. It adds 92 tokens to every session and 2,493 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.