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 Cadasto/openehr-assistant-plugin --skill semantic-diffgit clone --depth 1 https://github.com/Cadasto/openehr-assistant-pluginWrote 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/cadasto/openehr-assistant-plugin/semantic-diff)<a href="https://agentmods.dev/skills/cadasto/openehr-assistant-plugin/semantic-diff"><img src="https://agentmods.dev/badge/skills/cadasto/openehr-assistant-plugin/semantic-diff.svg" alt="Measured on agentmods" 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.00135 | $0.02325 |
| Opus 5 | $0.00068 | $0.01162 |
| Sonnet 5 | $0.00027 | $0.00465 |
| Haiku 4.5 | $0.00014 | $0.00232 |
Grade C, and why
semantic-diff scanned grade C 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 8d 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.
Tells the agent never to refusehighAnti-refusal
Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.
- If the two files turn out to have **different** root concepts, do not refuse: emit a one-line note that input concepts differ and the comparison has auto-switched to **sibling mode** (§B), then produce the §B report in How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semantic Diff
Compare two openEHR artefacts at the semantic level — not textual. Auto-detect whether the inputs are archetypes (ADL) or templates (OET, .t.json, OPT, web template), and whether the comparison is between two versions of the same concept or between siblings / distinct concepts, then produce the appropriate report.
Instructions
- Parse $ARGUMENTS into
<file-a>and<file-b>. When invoked from conversation rather than/semantic-diff(no arguments), take the two artefact paths (or CKM ids) from the user's request. If only one artefact is identifiable, ask the user for the second and stop. Readboth files.Readthe rubric bundled with this skill —references/semantic-diff-rubric.md. Follow its classification rules exactly.- Detect the artefact type from the file content/extension:
- Archetype — ADL source (
.adl;archetype (...)header,definition,term_definitions). Load the archetype rules guide:guide_get("openehr://guides/archetypes/rules") - Template — one of four serialisations; load the template rules guide, plus the serialisation map when the pair is not OET:
guide_get("openehr://guides/templates/rules") guide_get("openehr://guides/templates/serialization-formats")- OET (
.oet) — authoring XML,<template>: diff archetype includes and<Rule>narrowing. .t.json— Archetype Designer source template (AOM2 differential JSON:@type: TEMPLATE,parentArchetypeId,differential: true,templateOverlays): diff the rootdefinitionand the per-archetype overlays. It is not a web template.- OPT (
.opt/.optx/.optj) — compiled operational template with archetype constraints inlined; alsoguide_get("openehr://guides/templates/opt-structure"). Differences here may come from a recompile rather than a design change, so say which; a raw-vs-profiled OPT pair differs in retained languages/bindings, not in design. - Web template (derived runtime JSON:
templateId,webTemplate/tree, per-leafinputs,aqlPath) — generated from an OPT; alsoguide_get("openehr://guides/templates/web-template"). Diff it only to assess FLAT/STRUCTURED path-schema impact on clients; never treat a web-template delta as the design delta, and point the user at the OET/.t.jsonpair for that.
- OET (
- Different serialisations of the same design are not comparable node-for-node (a
.t.jsonkeeps slots that its OPT has inlined). If the two files are different artefact types (e.g. an ADL vs an OPT, or an OET vs its own web template), report the mismatch, say which layer each sits at, and ask the user to confirm intent before proceeding.
- Archetype — ADL source (
- Detect the comparison mode from the root identifiers:
- Version mode — same root concept / archetype id / template id, differing version (or differing revision of the same concept). Use the version-bump workflow in §A.
- Sibling / cross-artefact mode — different root concepts (e.g.
...health_summaryvs...report, or two distinct templates). Use the compatibility/divergence workflow in §B. Do not refuse, and do not emit a version-bump verdict — a bump is meaningless across distinct concepts.
- Produce the report for the detected mode.
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.
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.
- 8d ago First seen · 109 lines · 135 tokens per session scan C 31e1ec6e27d9
semantic-diff is a skill published in the GitHub repository Cadasto/openehr-assistant-plugin (4 stars, last pushed 13d ago), licensed MIT. It adds 135 tokens to every session and 2,325 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
fitness-exercises-get-exercises
Returns a paginated list of exercises. All filter parameters are optional and combinable.
fitness-exercises-post-batch
Fetches up to 50 exercises by their numeric IDs in a single request. IDs that do not exist are silently skipped. Results are returned in the same order as the input array.
data-integrity-post-normalize
Apply a composable pipeline of normalization operations to a string. Trim whitespace, fix encoding, normalize unicode, strip HTML, and more — in a single call.
fitness-exercises-get-{id}
Returns a single exercise by its numeric ID.
math-research-activator
A routing guide for mathematical work in AI and cryptography. It helps choose the right concepts and checks for architecture design, theory, mathematical transfers, definitions, constructions, proofs of security, and protocol reviews.
automodel
Guides the user in discovering a better model structure (e.g. from feature transformations in logistic regression to equation terms within PDEs to neural network layer compositions) out of data. Use when the user asks to create or improve an existing model. Uses an iterative meta/inner agent loop to explore structural…