ontology-zh

ontology-zh is a skill for Claude Code, Codex from L-LesterYu/OpenClaw-hot-skills-zh. It costs 104 tokens per session (1,793 once invoked), scanned A, a copy of ontology, MIT.

A structured knowledge graph for storing entities such as people, projects, tasks, events, and documents, along with their relationships. It validates changes against defined constraints.

In plain words
What is it for?
Use it to remember information, connect related objects, inspect project tasks and dependencies, and model multi-step plans.
Why use it?
Useful context can be lost when it is kept in disconnected notes. Linking objects in one graph makes it easier to query information, dependencies, and shared agent state.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to remember information, connect related objects, inspect project tasks and dependencies, and model multi-step plans.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/l-lesteryu/openclaw-hot-skills-zh/ontology-zh
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 L-LesterYu/OpenClaw-hot-skills-zh --skill ontology-zh
Clone the repo
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh

Made for: Claude Code, Codex.

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-zh

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/ontology-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/ontology-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,793 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.
Origin 94% copy Near-identical to another mod 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.00104 $0.01793
Opus 5.5 $0.00042 $0.00717
Sonnet 5.5 $0.00021 $0.00359
Haiku 4.5 $0.00010 $0.00179

Measured 1mo ago against content hash f74bdb70072f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ontology-zh 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ontology.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

94% identical to ontology — 62 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ontology-zh/SKILL.md · 233 lines

How it starts

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

本体 (Ontology)

类型化词汇表 + 约束系统,用于将知识表示为可验证的图结构。

核心概念

一切皆为实体,拥有类型、属性以及与其他实体的关系。每次变更都会在提交前进行类型约束验证。

实体: { id, type, properties, relations, created, updated }
关系: { from_id, relation_type, to_id, properties }

何时使用

触发词 操作
"记住……" 创建/更新实体
"我知道关于X什么?" 查询图
"将X关联到Y" 创建关系
"显示项目Z的所有任务" 图遍历
"什么依赖于X?" 依赖查询
规划多步骤工作 建模为图变换
技能需要共享状态 读写本体对象

核心类型

# 智能体与人员
Person: { name, email?, phone?, notes? }
Organization: { name, type?, members[] }

# 工作
Project: { name, status, goals[], owner? }
Task: { title, status, due?, priority?, assignee?, blockers[] }
Goal: { description, target_date?, metrics[] }

# 时间与地点
Event: { title, start, end?, location?, attendees[], recurrence? }
Location: { name, address?, coordinates? }

# 信息
Document: { title, path?, url?, summary? }
Message: { content, sender, recipients[], thread? }
Thread: { subject, participants[], messages[] }
Note: { content, tags[], refs[] }

# 资源
Account: { service, username, credential_ref? }
Device: { name, type, identifiers[] }
Credential: { service, secret_ref }  # 切勿直接存储密钥

# 元数据
Action: { type, target, timestamp, outcome? }
Policy: { scope, rule, enforcement }

存储

默认路径:memory/ontology/graph.jsonl

{"op":"create","entity":{"id":"p_001","type":"Person","properties":{"name":"Alice"}}}
{"op":"create","entity":{"id":"proj_001","type":"Project","properties":{"name":"Website Redesign","status":"active"}}}
{"op":"relate","from":"proj_001","rel":"has_owner","to":"p_001"}

通过脚本或直接文件操作进行查询。对于复杂图结构,建议迁移到 SQLite。

仅追加规则

在处理现有的本体数据或 schema 时,应追加/合并变更,而非覆盖文件。这保留了历史记录,避免覆盖先前的定义。

工作流

创建实体

python3 scripts/ontology.py create --type Person --props '{"name":"Alice","email":"[email protected]"}'

查询

python3 scripts/ontology.py query --type Task --where '{"status":"open"}'
python3 scripts/ontology.py get --id task_001
python3 scripts/ontology.py related --id proj_001 --rel has_task

Read the full file on GitHub · 233 lines

Files

What ships with it

4 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. 1mo ago First seen · 233 lines · 104 tokens per session scan A f74bdb70072f

Subscribe to this mod's changes

ontology-zh is a skill published in the GitHub repository L-LesterYu/OpenClaw-hot-skills-zh (57 stars, last pushed 6mo ago), licensed MIT. It adds 104 tokens to every session and 1,793 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to ontology, differing in 62 lines, and is treated as a copy.

Related

Other skills, from other repositories

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn), including the Learn from conversations and Learn from Memory…

openclaw/openclaw · 79 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

Cortex

LifeOS memory, prior-session recall, and learning capture. USE WHEN capture this learning, document this learning, what did we learn recently, recent learnings, cortex, knowledge, knowledge base, search knowledge, what do we know about, archive, harvest, knowledge status, develop note, add to knowledge, add a people…

danielmiessler/LifeOS · 184 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens