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.
npx skills add richfrem/agent-plugins-skills --skill building-ontologiesgit clone --depth 1 https://github.com/richfrem/agent-plugins-skillsWrote 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.
[](https://agentmods.dev/skills/richfrem/agent-plugins-skills/building-ontologies)<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/building-ontologies"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/building-ontologies/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.
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/building-ontologies"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/building-ontologies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.01124 |
| Opus 5.5 | $0.00031 | $0.00450 |
| Sonnet 5.5 | $0.00015 | $0.00225 |
| Haiku 4.5 | $0.00008 | $0.00112 |
Grade A, and why
building-ontologies 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Ontologies
Produces one ontology file that every system shares: the RAG corpus, the knowledge graph, the MCP tools and the skills. It stops the same thing having different names in each system, and it guards actions that change state.
Contents
Constraints
- Competency questions first. Collect 5-10 operational questions or decisions the ontology must answer before modelling anything. Every entity, attribute, relationship, metric and action carries
serves: [CQ ids]. Anything that serves no question is deleted, not kept "for later". - TBox and ABox stay apart. The ontology file holds the schema only: definitions, relationships, rules, actions. Instance data (real customers, orders, rows) lives elsewhere and is referenced by
abox.source. Never embed instances in the file. - Semantic layer names the world: canonical entities, cross-system synonyms, one
source_of_truthper attribute, typed directed relationships, lifecycle states, metric definitions. - Kinetic layer names what may change it: each action maps to one MCP tool or API, lists closed-world preconditions, a post-condition state transition and a human approval gate.
- Open-world meaning vs closed-world checks.
axioms(subclass, equivalence, disjointness) define meaning and allow inference.guardsandinvariantsare strict pass/fail checks that must pass before an action runs. Never use an axiom as a gate: missing data is "unknown" under open-world rules and would let the action through. - You draft, a person validates. Every element carries
evidence(source citations) andstatus(observed,reportedorinferred). Thereviewfield (validated,correctedorrejected, with who and when) is set only after a human expert has decided; never set it yourself. Report how many elements are unreviewed, and never promote the ontology into a system of record while any are. - Never invent a source of truth, tool name or approver. Ask the user, or record
unknownand stop before any action is marked executable.
What ships with it
9 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.
- assets/ontology-template.yaml 4.8 KB
- evals/evals.json 1.4 KB
- evals/results.tsv 60 B
- evals/task-success.json 3.4 KB
- references/acceptance-criteria.md 2.3 KB
- references/owl-shacl-patterns.md 2.4 KB
- references/semantic-vs-kinetic.md 3.2 KB
- scripts/constants.py 1.6 KB runs code
- scripts/validate_ontology.py 20 KB runs code
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.
- 2d ago First seen · 52 lines · 77 tokens per session scan A 136d69ad9f40
building-ontologies is a skill published in the GitHub repository richfrem/agent-plugins-skills (8 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 1,124 once invoked, about $0.0003 per session on Opus 5.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-11-29.
building-ontologies compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| building-ontologiesrichfrem/agent-plugins-skills | Skill | 8 | yesterday | MIT | A | 77 | Claude Code |
| phoenix-arize-setupa5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 20 | Claude Code |
| pinecone-integrationa5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 20 | Claude Code |
| rag-embedding-generationa5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 18 | Claude Code |
| claw-metagenomicsaAAaqwq/AGI-Super-Team | Skill | 123 | yesterday | MIT | A | 21 | Claude Code |
| benchmarkserejaris/personal-corp-os | Skill | 251 | 9d ago | MIT | A | 163 | Claude Code |
| agent-prompt-engineeringmtarcure/claude-vibe-squad | Skill | 227 | 1mo ago | MIT | A | 57 | Claude Code, Codex |