ontology

ontology is a skill for Claude Code, Codex from tony/skills. It costs 31 tokens per session (1,341 once invoked), scanned A, a copy of scholar-ontology, MIT.

A complete workflow for turning a repository, set of repositories, or written corpus into an ontology, controlled vocabulary, and evidence record.

In plain words
What is it for?
It helps gather sources, extract terms, define types, challenge classifications, and render a supported study.
Why use it?
It makes a corpus's terminology structured and checkable instead of leaving it as an informal summary that can become outdated.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the scholar plugin — 10 skills shipped together

Good fit It helps gather sources, extract terms, define types, challenge classifications, and render a supported study.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/ontology
View source ↗ tony/skills
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 tony/skills --skill ontology
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Or install scholar, the plugin that ships this one along with the rest of its 10 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/ontology"><img src="https://agentmods.dev/badge/skills/tony/skills/ontology.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,341 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 88% 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.00031 $0.01341
Opus 5.5 $0.00012 $0.00536
Sonnet 5.5 $0.00006 $0.00268
Haiku 4.5 $0.00003 $0.00134

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

Security

Grade A, and why

ontology 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.

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

88% identical to scholar-ontology — 42 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.

plugins/scholar/skills/ontology/SKILL.md · 126 lines

How it starts

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

/scholar:ontology

Distil what a corpus calls things into a type hierarchy, a controlled vocabulary, and an evidence layer. The product is a study directory, not a document, and every claim in it either cites a pinned source or carries a command that reproduces its number.

A study passes when a reader who was not present can disagree with a specific claim, find what it rests on, and re-derive it. A summary cannot be checked, does not compose, and rots without saying so.

Read ../../references/evidence-tiers.md before starting; it decides what each claim must carry. Read ../../references/citation.md for citation fields and ../../references/source-pins.md for repository pins. ../../references/stage-gates.md states each stage's exit condition.

User arguments: $ARGUMENTS

Read ../../references/output-contract.md before writing study files.

Survey the workspace

Run ls notes/ontology/ to list existing studies. A failure means there are none. <subject> and the default study follow "The study directory" in ../../references/stage-gates.md.

Stages

Five stages, run in order. Stage skills are invoked by name only, so the model cannot call them. To run a stage, read ../<stage>/SKILL.md (for example ../gather/SKILL.md) and follow it. A user resumes a study by invoking a stage directly.

  1. gather: resolve and pin the corpus, inventory it, and record what was read and what was skipped, into sources.jsonl.
  2. extract: harvest the terms the corpus uses, with a citation and a locator each, into terms.jsonl.
  3. distill: build the three layers: source-supported types, memberships, and the controlled vocabulary.
  4. contest: judge the ontology adversarially, one candidate at a time, recording the kills.
  5. render: write brief.md and the evidence documents, and gate the brief.

For prose, follow ../annotate/SKILL.md before extract to produce quotations with stable locators.

Run the stages silently: no stage's own ## Output report or next-step panel. Report once, at the end, in the shape under Output. A stage whose gate fails stops the run: reply with the contract's failed-gate shape for that stage and run no later stage.

Read the full file on GitHub · 126 lines

Files

What ships with it

1 file 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 Changed · +1 lines b921ff3d98d1
  2. 1mo ago Changed · +8 lines f2f9eb74f95d
  3. 3mo ago First seen · 117 lines · 31 tokens per session scan A aafccffd6eb0

Subscribe to this mod's changes

ontology is a skill published in the GitHub repository tony/skills (0 stars, last pushed 5d ago), licensed MIT. It adds 31 tokens to every session and 1,341 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to scholar-ontology, differing in 42 lines, and is treated as a copy.

Related

ontology compared with skills from other repositories

ontology next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ontologytony/skillsSkill05d agoMITA31Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code