ontology-mapper

ontology-mapper is a skill for Claude Code from HeshamFS/materials-simulation-skills. It costs 141 tokens per session (4,172 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,172 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.04172
Opus 5 $0.00071 $0.02086
Sonnet 5 $0.00028 $0.00834
Haiku 4.5 $0.00014 $0.00417

Measured 10d ago against content hash 445f9beb7db6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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 · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 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 · 268 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. 10d 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 (66 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 141 tokens to every session and 4,172 once invoked, about $0.0007 per session on Opus 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

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

check-referenced-statements

Validate externally referenced theorems by querying arXiv theorem search first and Codex's built-in web search second. Use when a markdown proof cites statements from external papers.

frenzymath/Danus · 41 tokens

verify-sequential-statements

Verify a markdown proof in the order it is written. Use when the task is to check local correctness, theorem applicability, and reasoning gaps statement by statement through a paper-style proof.

frenzymath/Danus · 42 tokens

construct-counterexamples

Construct candidate counterexamples to test a proposed conjecture, lemma, or intermediate claim by keeping the assumptions true while making the claimed conclusion fail. Use when a proposed conjecture/claim feels fragile or unproved, or when you are stuck in reasoning and want to see where the assumptions take effect…

frenzymath/Danus · 66 tokens

obtain-immediate-conclusions

Derive immediate mathematical consequences from a theorem statement or subgoal. Use when starting a new problem, branch, or subgoal, or when cheap progress or a cleaner reformulation is needed before deeper proof search.

frenzymath/Danus · 49 tokens

propose-subgoal-decomposition-plans

Propose multiple subgoal decomposition plans for the current theorem using the information already gathered. Use when enough information has been collected from examples, counterexamples, search results, and previous failures to break the problem into several materially different plans.

frenzymath/Danus · 55 tokens