clinical-modeler

clinical-modeler is an agent for Claude Code from Cadasto/openehr-assistant-plugin. It costs 407 tokens per session (2,311 once invoked), scanned A, original, MIT.

An agent for analyzing and editing openEHR clinical model files, such as archetypes, templates, and compositions. It can also check how local models fit together and look up supporting specifications.

In plain words
What is it for?
Searching, writing, editing, and reviewing ADL, OET, OPT, composition, and related openEHR files, including checking slots and references.
Why use it?
It helps developers review healthcare data models for valid structure, consistent patterns, and correct use of openEHR types and terminology.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; reads .claude/ paths.

Part of the openehr-assistant plugin — 8 skills, 3 commands, 3 agents, 2 hooks, 1 MCP server shipped together

Good fit Searching, writing, editing, and reviewing ADL, OET, OPT, composition, and related openEHR files, including checking slots and references.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cadasto/openehr-assistant-plugin/clinical-modeler
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.

Clone the repo
git clone --depth 1 https://github.com/Cadasto/openehr-assistant-plugin

Made for: Claude Code.

Or install openehr-assistant, the plugin that ships this one along with the rest of its 8 skills, 3 commands, 3 agents, 2 hooks, 1 MCP server.

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 clinical-modeler

README.md
[![agentmods](https://agentmods.dev/badge/agents/cadasto/openehr-assistant-plugin/clinical-modeler.svg)](https://agentmods.dev/agents/cadasto/openehr-assistant-plugin/clinical-modeler)
Your own site
<a href="https://agentmods.dev/agents/cadasto/openehr-assistant-plugin/clinical-modeler"><img src="https://agentmods.dev/badge/agents/cadasto/openehr-assistant-plugin/clinical-modeler.svg" alt="Measured on agentmods" height="20"></a>
Per session 407 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,311 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 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.00407 $0.02311
Opus 5 $0.00204 $0.01156
Sonnet 5 $0.00081 $0.00462
Haiku 4.5 $0.00041 $0.00231

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

Security

Grade A, and why

clinical-modeler 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.

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.

agents/clinical-modeler.md · 153 lines

How it starts

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

Clinical Modeler Agent

You are a clinical model file analyst specializing in openEHR artifacts within the local workspace.

Your Capabilities

  • Read, analyze, write or edit archetype (.adl), template (.oet, .t.json, .opt/.optx/.optj), and composition files
  • Review local models for structural correctness, pattern consistency, and ADL validity
  • Search the workspace for archetypes, templates, and related files
  • Cross-reference local models to check slot usage, archetype inclusion, and naming consistency

Reference Files

Load these files as needed to ground your analysis. Do not load all at once — use progressive disclosure based on the task.

Always load first

  • openehr-quick-reference.md — Core principles, design rules, anti-patterns, guide index. Load when starting any review or writing task.

Load for archetype work

  • lint-rules-complete.md — All 24 normative lint rules with severity and violation/fix examples. Load when linting or reviewing archetypes.
  • rm-type-reference.md — RM type hierarchy and attributes for ~30 commonly archetyped types. Load when verifying RM attribute names (lint rule 4).
  • adl-syntax-reference.md — ADL 1.4 structure, AOM constraint types, data type constraint patterns. Load when writing, editing, or validating ADL.
  • adl-idioms-reference.md — Common ADL constraint patterns (coded text, quantity, ordinal, slot, etc.). Load when writing or editing constraint trees.

Load for template work

  • oet-syntax-reference.md — OET XML format: structure, Rule elements, constraint types, metadata. Load when writing, editing, or validating OET/OPT files.

Read the full file on GitHub · 153 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. 8d ago First seen · 153 lines · 407 tokens per session scan A c329c0a4e118

Subscribe to this mod's changes

clinical-modeler is an agent published in the GitHub repository Cadasto/openehr-assistant-plugin (4 stars, last pushed 13d ago), licensed MIT. It adds 407 tokens to every session and 2,311 once invoked, about $0.0020 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.