ontology-core

ontology-core is a skill for Claude Code from UnicomAI/wanwu. It costs 148 tokens per session (2,568 once invoked), scanned A, original, Apache-2.0.

A command-line tool for managing and querying Business Knowledge Networks, data sources, data views, and platform monitoring resources.

In plain words
What is it for?
Use it to build or query knowledge networks, inspect schemas and records, query data views, connect data sources, and check platform health.
Why use it?
It gives these operations one command interface and applies the required account and platform access rules.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build or query knowledge networks, inspect schemas and records, query data views, connect data sources, and check platform health.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unicomai/wanwu/ontology-core
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 ontology-core
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 ontology-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/unicomai/wanwu/ontology-core/github.svg)](https://agentmods.dev/skills/unicomai/wanwu/ontology-core)
Your own site
<a href="https://agentmods.dev/skills/unicomai/wanwu/ontology-core"><img src="https://agentmods.dev/badge/skills/unicomai/wanwu/ontology-core/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 ontology-core

Your own site · 80×15
<a href="https://agentmods.dev/skills/unicomai/wanwu/ontology-core"><img src="https://agentmods.dev/badge/skills/unicomai/wanwu/ontology-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00148 $0.02568
Opus 5 $0.00074 $0.01284
Sonnet 5 $0.00030 $0.00514
Haiku 4.5 $0.00015 $0.00257

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

Security

Grade A, and why

ontology-core scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**别名**:`ontology curl` 等同于 `ontology call`。
configs/microservice/bff-service/configs/agent-skills/ontology/ontology-core/SKILL.md · 140 lines

How it starts

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

Ontology CLI

平台的命令行工具 ontology,覆盖知识网络管理与查询、数据源、数据视图、Vega 可观测、通用 API 调用。

安装

无需安装ontology 已内置在执行环境,直接调用即可。

使用方式

ontology <command> [subcommand] [options]

完整子命令与参数以当前 CLI 为准:运行 ontology --help(或 -h)查看与代码同步的用法列表;查版本用 ontology --version / -V。子命令细节用 ontology <group> <subcommand> --help(例如 ontology bkn push --helpontology dataview find --help)。

本 skill 下的 references/*.md 与 CLI 行为对齐;表格与 reference 为速查

别名ontology curl 等同于 ontology call

业务域(business domain):ontology CLI 没有 config 命令组;business domain 按命令传 -bd <value> 参数。本部署默认使用 bd_public,无需显式传入。

使用前提

**直接执行 ontology <command> 即可。

CLI 在同网络下会按服务名直连后端(vega-backend:13014vega-bkn-backend:13014vega-mdl-data-model:13020vega-mdl-uniquery:13011vega-data-connection:8098vega-ontology-query:13018vega-agent:5000),无需设置 ONTOLOGY_BASE_URL

调用约定

ontology --user-id <accountId> <command> [options]
  • 必须显式传 --user-id <accountId>(顶层选项,写在子命令之前)。本部署下所有命令组(bkn / ds / dataview / vega / call,含 curl 别名)都适用;缺省时调用会失败或语义错误
    • 若未拿到 accountId,先向用户索要,不要自行编造或省略
  • ontology CLI 没有 auth / token / config 命令组,无需任何登录或登录状态检查
  • 出现 401/认证类错误时,直接报错,不要尝试刷新 token 或引导用户登录

业务域优先级

  1. 命令行 -bd <value> 参数(每条命令显式传入)
  2. 默认 bd_public

常见 CLI 坑(编排层必读)

下列三类陷阱在编排层频繁误用,会直接导致语法报错或全量输出截断。编排前先核对,不要等失败后再读 references。

命令 错误用法 正确用法
bkn object-type querycondition {"field":{"op":"val"}} 等嵌套写法 扁平 {"field":"f","operation":"op","value":"v"};多条件用 {"operation":"and"/"or","sub_conditions":[...]}
bkn object-type get --name "中文名" 选对象类 必须传 <ot-id>;不知道 id 时先 bkn object-type list 拿 id
bkn object-type list <kn-id> 直接全量 直接消费 full output 单次返回常 30~50KB 易截断;只为路由/选 ot 时,用 jq 投影到摘要(见下方"查询策略")

jq 投影通用规则:不同 ontology 命令的返回结构不一致,套同一个模板会拿到 nullCannot iterate 报错。常用命令对照:

命令 顶层结构 jq 入口
bkn object-type list {entries:[...]} .entries[] | ...
bkn object-type get {entries:[obj]}(单元素也包一层 entries) .entries[0] | ....entries[] | ...
bkn object-type query {datas:[...], search_after:[...]} .datas[] | ...
bkn list / relation-type list 多数为 {entries:[...]} .entries[] | ...
dataview list 裸数组 [...] .[] | ...
dataview get 裸对象 {...} . 或直接访问字段

Read the full file on GitHub · 140 lines

Files

What ships with it

6 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 First seen · 140 lines · 148 tokens per session scan A abb5bb7a38bf

Subscribe to this mod's changes

ontology-core is a skill published in the GitHub repository UnicomAI/wanwu (2,461 stars, last pushed 4d ago), licensed Apache-2.0. It adds 148 tokens to every session and 2,568 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.