intent-driven-minimal-ontology-loading

intent-driven-minimal-ontology-loading is a skill for Codex from SuperChason/ontology-driven-ai-data-management-skills. It costs 86 tokens per session (1,410 once invoked), scanned A, original, MIT.

A method for loading only the ontology knowledge, facts, rules, and tools needed for the user’s current intent. An ontology is a structured model of the concepts and relationships in a business area.

In plain words
What is it for?
Use it to route requests to the right sub-model, choose graph or vector search, control time ranges and depth, and record what was loaded.
Why use it?
It reduces oversized context and prevents unrelated or conflicting knowledge from influencing an answer.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to route requests to the right sub-model, choose graph or vector search, control time ranges and depth, and record what was loaded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading
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 SuperChason/ontology-driven-ai-data-management-skills --skill intent-driven-minimal-ontology-loading
Clone the repo
git clone --depth 1 https://github.com/SuperChason/ontology-driven-ai-data-management-skills

Made for: 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 intent-driven-minimal-ontology-loading

README.md
[![agentmods](https://agentmods.dev/badge/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading/github.svg)](https://agentmods.dev/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading)
Your own site
<a href="https://agentmods.dev/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading"><img src="https://agentmods.dev/badge/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading/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 intent-driven-minimal-ontology-loading

Your own site · 80×15
<a href="https://agentmods.dev/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading"><img src="https://agentmods.dev/badge/skills/superchason/ontology-driven-ai-data-management-skills/intent-driven-minimal-ontology-loading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,410 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 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.00086 $0.01410
Opus 5 $0.00043 $0.00705
Sonnet 5 $0.00017 $0.00282
Haiku 4.5 $0.00009 $0.00141

Measured 4d ago against content hash 78d6bd006750, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

intent-driven-minimal-ontology-loading 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 4d 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.

skills/intent-driven-minimal-ontology-loading/SKILL.md · 105 lines

What it actually says

意图驱动的最小本体检索与加载

方法骨架

  • 根据当前用户意图只加载完成决策所需的最小本体、事实和工具。
  • 先把目标拆成边界清晰、互不重叠、可独立执行的意图。
  • 再将意图映射到子本体、事实时间窗、规则和Action能力。
  • 规则清晰、低容错任务优先图查询;模糊表达可先向量召回再图精查。
  • 加载范围随风险、上下文和任务进展渐进扩展,避免全量上下文冲突。
  • 输出应记录意图、加载版本、检索依据和未加载原因。

触发场景

用户会在什么情境下需要这个 Skill

  1. Agent上下文过长或本体加载过多
  2. 同一问法可能对应不同业务意图
  3. 需要设计子本体路由和图向量混合检索

语言信号

  • “只加载当前需要的本体”
  • “这个意图该路由到哪个子本体”
  • “图检索和向量检索怎么组合”
  • 英文信号:minimal ontology, intent routing, hybrid retrieval

与相邻 Skill 的区分

  • ontology-constraint-and-knowledge-injection:本 skill 决定取哪些知识;知识注入策略决定怎样把知识交给模型。
  • fact-reason-goal-explainable-decision:本 skill 负责运行时上下文选择;事实事理目标负责在上下文内完成决策。

执行步骤

按当前任务选择必要步骤;已有可靠成果直接复用:

  1. 解析意图

    • 动作:提取对象、目标、时间、范围、风险和期望输出,识别歧义。
    • 完成标准:意图可执行且不与其他子意图重叠;歧义已澄清。
  2. 建立路由

    • 动作:映射到最小子本体、事实源、规则集、Action和版本。
    • 完成标准:每项资源都能说明与当前决策的必要关系。
  3. 选择检索

    • 动作:规则明确时图精查;表达模糊时向量召回后图校验;需要历史经验时补充记忆。
    • 完成标准:检索策略与风险、清晰度和时效相匹配。
  4. 控制加载

    • 动作:设置Token预算、时间窗、层级深度和渐进扩展条件。
    • 完成标准:上下文只包含必要知识,冲突和过期版本已排除。
  5. 记录与校验

    • 动作:输出意图、资源、版本、查询、证据和未加载项,运行关键约束检查。
    • 完成标准:相同输入可复现加载结果,高风险缺项触发人工介入。

固定输出

  • 意图定义表:意图编号、原始表达、对象、目标、时间、范围、风险、期望输出和歧义状态
  • 子意图拆分与依赖表
  • 意图—资源路由表:子本体、事实源、时间窗、规则集、Action、版本、必要性证据和未加载原因
  • 检索策略表:图精查、向量召回、历史记忆或组合策略及校验方式
  • 加载边界与预算表:Token、时间窗、关系深度、资源数、停止条件和渐进扩展条件
  • 加载结果与约束检查记录:实际资源、版本、查询、证据、冲突、过期项和检查结果
  • 高风险缺失、人工介入与重现信息清单

相同输入应能重现意图、路由、版本和加载结果;意图未澄清或关键资源缺失时保留受阻状态。

使用边界

不要在以下情况使用

  • 意图尚未澄清却直接静默路由
  • 任务需要全域审计或全局一致性检查
  • 只在离线阶段设计知识资产分类

常见失败模式

  • 用全量模型重构适配企业业务:企业知识被压入模型参数,适配成本从局部语义治理升级为模型训练、维护和全量数据治理。
  • 一次性加载全量本体和超长上下文:有限上下文被低相关知识占据,关键规则的有效权重下降,冲突信息增加概率性选择空间。
  • 任务边界和本体粒度失配:建模单元没有绑定具体Agent任务及评价标准,模型边界与执行边界无法对齐。

使用折扣与复核要求

  • 最小加载可能漏掉未知关联,应为高风险任务设置扩展检索和人工复核。
  • 大模型生成形式结构无法直接证明业务语义正确,生产使用需保留专家确认、工具校验、真实用例和审计记录。

相关 Skills

  • depends-onfact-reason-action-business-loop

审计信息

  • 历史验证:v0.1.0 路由测试 6/6;v0.4.0 已通过输出契约结构校验,跨平台行为继续按版本抽样
  • 首次公开版本:2026-08-21
  • 来源说明:方法框架受《本体驱动的 AI 数据管理》启发;仓库不包含原书正文。
Files

What ships with it

3 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. 4d ago Changed 78d6bd006750
  2. 8d ago Changed · +7 lines 5d364e2fc703
  3. 12d ago First seen · 98 lines · 86 tokens per session scan A f7213e63ff63

Subscribe to this mod's changes

intent-driven-minimal-ontology-loading is a skill published in the GitHub repository SuperChason/ontology-driven-ai-data-management-skills (10 stars, last pushed 5d ago), licensed MIT. It adds 86 tokens to every session and 1,410 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

open-ontologies

AI-native ontology engineering using 50+ MCP tools backed by an in-memory Oxigraph triple store. Build, validate, query, and govern RDF/OWL ontologies with a generate-validate-iterate loop. Use when building ontologies, knowledge graphs, RDF data, SPARQL queries, BORO/4D modeling, SHACL validation, clinical…

fabio-rovai/open-ontologies · 110 tokens

mykg

Run mykg knowledge-graph commands inside Claude Code from one slash command /mykg. The user describes intent in natural language (extract, append, sync, resume, approve, walkthrough, parse-docs, fetch-web, query); the skill parses intent, builds the right mykg CLI command from the live --help output, confirms, runs…

SenolIsci/mykg · 175 tokens

ontology-ontology-architect

Design a domain ontology from evidence using layered modeling, stable concept definitions, explicit relations, SKOS-first structure, and selective OWL formalization with recorded modeling decisions.

Mokee04/ontology_research · 39 tokens

graphify

Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a graphify query first. Turns any input (code, docs, papers, images, videos) into a persistent knowledge graph with god nodes, community…

Graphify-Labs/graphify · 76 tokens

graph-mutation-plan

Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.

potpie-ai/potpie · 51 tokens

understand-knowledge

Analyze a Karpathy-pattern LLM wiki knowledge base and generate an interactive knowledge graph with entity extraction, implicit relationships, and topic clustering.

Egonex-AI/Understand-Anything · 32 tokens