ontology-mapper

ontology-mapper is a skill for Claude Code from HeshamFS/materials-simulation-skills. It costs 141 tokens per session (4,510 once invoked), scanned B, original, Apache-2.0.

A tool for mapping materials-science descriptions to standard ontology entries. An ontology is a shared vocabulary that defines types of things and their properties, such as crystal structures and lattice measurements.

In plain words
What is it for?
Use it to classify materials, crystal systems, Bravais lattices, space groups, lattice parameters, and sample descriptions for registered ontologies.
Why use it?
It turns varied terms such as FCC copper or BCC iron into consistent annotations and can include confidence scores for the matches.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ontology plugin — 3 skills shipped together , and of full

Good fit Use it to classify materials, crystal systems, Bravais lattices, space groups, lattice parameters, and sample descriptions for registered ontologies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heshamfs/materials-simulation-skills/ontology-mapper
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 HeshamFS/materials-simulation-skills --skill ontology-mapper
Clone the repo
git clone --depth 1 https://github.com/HeshamFS/materials-simulation-skills

Made for: Claude Code.

Or install ontology, the plugin that ships this one along with the rest of its 3 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-mapper

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/heshamfs/materials-simulation-skills/ontology-mapper"><img src="https://agentmods.dev/badge/skills/heshamfs/materials-simulation-skills/ontology-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00141 $0.04510
Opus 5.5 $0.00056 $0.01804
Sonnet 5.5 $0.00028 $0.00902
Haiku 4.5 $0.00014 $0.00451

Measured 3d ago against content hash 195439e58c54, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ontology-mapper scanned grade B with 1 finding 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 3d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/concept_mapper.py, scripts/crystal_mapper.py, scripts/sample_annotator.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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- Minimal tool surface (Read, Grep, Glob only) means the agent cannot execute arbitrary commands or modify the filesystem
skills/ontology/ontology-mapper/SKILL.md · 292 lines

How it starts

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

Ontology Mapper

Goal

Translate real-world materials science descriptions into standardized ontology annotations. Given terms like "FCC copper" or structured data like {"material": "iron", "structure": "BCC", "lattice_a": 2.87}, produce the corresponding ontology classes and properties for any registered ontology.

Requirements

  • Python 3.10+
  • No external dependencies (Python standard library only)
  • Requires ontology-explorer's summary JSON and ontology_registry.json
  • Per-ontology mapping config (<name>_mappings.json) for ontology-specific synonyms and labels

Inputs to Gather

Input Description Example
Ontology Ontology name from registry cmso, asmo
Term(s) Natural-language materials concept(s) "unit cell", "FCC,copper,lattice"
Crystal system One of the 7 crystal systems cubic, hexagonal
Bravais lattice Lattice type (symbol or common name) FCC, cF, BCC
Space group Space group number (1-230) 225
Lattice parameters a, b, c in angstroms; alpha, beta, gamma in degrees a=3.615
Sample description JSON dict with material properties {"material":"copper","structure":"FCC"}

Decision Guidance

What do you need to map?
├── A concept or term to find its ontology class
│   └── concept_mapper.py --ontology <name> --term "<term>"
├── Crystal structure parameters to ontology terms
│   └── crystal_mapper.py --ontology <name> --bravais <type> --space-group <N> --a <val>
├── A full sample description to ontology annotations
│   └── sample_annotator.py --ontology <name> --sample '<json>'
└── Multiple terms at once
    └── concept_mapper.py --ontology <name> --terms "term1,term2,term3"

Ontology scope — crystal/sample annotation is CMSO-only. crystal_mapper.py and sample_annotator.py emit crystal-structure vocabulary (Crystalline Material, Crystal Structure, Unit Cell, Space Group, lattice properties). This vocabulary is defined by CMSO. ASMO is a simulation-methods ontology and does not define any crystal/sample classes — so for ASMO use the concept-mapping path (concept_mapper.py, which resolves terms like DFT, NPT, timestep, PBE to real ASMO classes) only. If sample_annotator.py/crystal_mapper.py is run with an ontology whose summary lacks the required classes (e.g. --ontology asmo), each unresolvable term is flagged in results.validation_warnings and given confidence: 0.0 rather than silently emitting an invalid term.

Read the full file on GitHub · 292 lines

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. 3d ago Changed · +24 lines 195439e58c54
  2. 1mo ago First seen · 268 lines · 141 tokens per session scan B 445f9beb7db6

Subscribe to this mod's changes

ontology-mapper is a skill published in the GitHub repository HeshamFS/materials-simulation-skills (83 stars, last pushed 4d ago), licensed Apache-2.0. It adds 141 tokens to every session and 4,510 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

personal-genomics

Analyse personal DNA / genome files for pharmacogenomics, disease risk, carrier status, ancestry and traits. Use whenever the user mentions DNA or genome analysis, a raw genome file, gene names, drug-gene interactions, or wants to combine multiple DNA sources.

sammcj/agentic-coding · 56 tokens

sbce

Spec-driven BCE workflow where one capability spec equals one business component (same name) and the spec is the boundary contract. Invoked as /sbce new|apply (or by intent), it drives declare → converge; the stack's own test loop is the oracle for "done". new accepts a BC name or a natural-language feature…

AdamBien/airails · 215 tokens

web-components

Architecture and coding rules for single-page applications using web components, BCE layering, lit-html templating, unidirectional Redux-style state management (reduction.js, standards-based), and standards-based client-side routing (Navigation API + URLPattern). Web standards and web platform first, minimal external…

AdamBien/airails · 160 tokens

search-math-results

Find program-conditioned math results, constructions, examples, counterexamples, analogies, and background references. Use when the current active program needs repair, mutation, analogy, a program shift, or carefully gated obstruction search.

frenzymath/Danus · 48 tokens

javascript-conventions

Generic, composable JavaScript (ECMAScript) code conventions — modules, declarations, functions, collections, asynchrony, errors, JSDoc types, naming, and the Baseline lookup that decides which language and standard-library features may be used. Technology-neutral within the JavaScript world; meant to be composed with…

AdamBien/airails · 200 tokens

enterprisifier

Deliberately overengineer code by adding as many patterns, indirections, modules, anti-corruption layers, abstractions, and encapsulations as possible. Zero dependency on implementation. Use when asked to overengineer, enterprisify, enterprise-ify, abstract, add layers, add patterns, or make code "production-ready" in…

AdamBien/airails · 131 tokens