MIF: Skill for Claude Code

.claude/skills/ontology-manager/SKILL.md

ontology-manager is a skill for Claude Code from modeled-information-format/MIF. It costs 118 tokens per session (1,935 once invoked), scanned A, original, MIT.

A toolkit for creating, checking, examining, and converting MIF ontology files. An ontology is a structured description of the kinds of things in a domain and how they relate.

In plain words
What is it for?
Scaffolding new ontologies, validating YAML, inspecting entities and relationships, and converting between YAML, JSON, and JSON-LD.
Why use it?
It helps keep ontology files in the required format and catches invalid structure or content before the files are used.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is modeled-information-format/MIF's own configuration. It tells Claude Code how to work on MIF itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MIF configures →

Reuse

Borrowing it

Nothing to install: this file belongs to modeled-information-format/MIF. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/modeled-information-format/MIF/main/.claude/skills/ontology-manager/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/modeled-information-format/MIF

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/modeled-information-format/mif/ontology-manager"><img src="https://agentmods.dev/badge/skills/modeled-information-format/mif/ontology-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 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.00118 $0.01935
Opus 5 $0.00059 $0.00967
Sonnet 5 $0.00024 $0.00387
Haiku 4.5 $0.00012 $0.00194

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

Security

Grade A, and why

ontology-manager 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 8d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/convert_format.sh, scripts/inspect_ontology.sh, scripts/scaffold_ontology.sh, …), 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.

.claude/skills/ontology-manager/SKILL.md · 269 lines

How it starts

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

MIF Ontology Manager

Manage MIF ontology definition files using yq, jq, and bundled shell scripts. All operations are grounded in the MIF ontology JSON Schema at schema/ontology/ontology.schema.json.

Prerequisites

# Required
brew install yq jq    # or equivalent package manager
# Optional (for JSON Schema validation)
pip install jsonschema
# Optional (for JSON-LD conversion)
pip install pyyaml

Workflow Decision Tree

User wants to...
|
+-> Create a new ontology
|   scaffold_ontology.sh <id> <ver> [--extends mif-base]
|   Then edit the generated YAML to add domain content.
|
+-> Validate an ontology
|   validate_ontology.sh <file.yaml> [schema.json]
|
+-> Inspect ontology contents
|   inspect_ontology.sh <file.yaml> [--section X] [--json]
|   Sections: entities, namespaces, traits, relationships, discovery
|
+-> Convert formats
|   convert_format.sh yaml2json <in.yaml> [out.json]
|   convert_format.sh json2yaml <in.json> [out.yaml]
|   convert_format.sh yaml2jsonld <in.yaml> [out.jsonld]
|
+-> Understand the schema
|   Read references/schema-reference.md
|
+-> Add entity types / traits / relationships / patterns
    Use yq commands documented below.

Scripts

All scripts are in scripts/ relative to this skill directory. Set SKILL_DIR to this skill's path before running.

scaffold_ontology.sh

Generate a new ontology skeleton with valid structure.

# Standalone ontology
bash "$SKILL_DIR/scripts/scaffold_ontology.sh" \
  my-domain 0.1.0 > my-domain.ontology.yaml

# Extending mif-base
bash "$SKILL_DIR/scripts/scaffold_ontology.sh" \
  my-domain 0.1.0 --extends mif-base \
  > my-domain.ontology.yaml

# Extending multiple parents
bash "$SKILL_DIR/scripts/scaffold_ontology.sh" \
  my-domain 0.1.0 --extends mif-base,shared-traits \
  > my-domain.ontology.yaml

validate_ontology.sh

Validate ontology YAML for correctness.

# Basic validation (syntax, required fields, formats)
bash "$SKILL_DIR/scripts/validate_ontology.sh" my.ontology.yaml

# With JSON Schema validation
bash "$SKILL_DIR/scripts/validate_ontology.sh" my.ontology.yaml \
  schema/ontology/ontology.schema.json

Read the full file on GitHub · 269 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. 8d ago First seen · 269 lines · 118 tokens per session scan A 3e67c52654c8

Subscribe to this mod's changes

ontology-manager is a skill published in the GitHub repository modeled-information-format/MIF (12 stars, last pushed 6d ago), licensed MIT. It adds 118 tokens to every session and 1,935 once invoked, about $0.0006 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.