archetype-lint

archetype-lint is a skill for Claude Code from Cadasto/openehr-assistant-plugin. It costs 130 tokens per session (1,540 once invoked), scanned A, original, MIT.

A checker for openEHR archetypes, which are reusable definitions of clinical information in electronic health records. It evaluates them against 24 rules and labels problems as errors, warnings, or information.

In plain words
What is it for?
Use it to validate or review an archetype, check compliance with openEHR rules, and identify issues that could make it invalid or unsafe.
Why use it?
It finds structural, terminology, and design problems before an archetype is published or reused. The permissive mode allows warnings during early work, while strict mode requires them to be addressed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to validate or review an archetype, check compliance with openEHR rules, and identify issues that could make it invalid or unsafe.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cadasto/openehr-assistant-plugin/archetype-lint
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 Cadasto/openehr-assistant-plugin --skill archetype-lint
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 archetype-lint

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cadasto/openehr-assistant-plugin/archetype-lint"><img src="https://agentmods.dev/badge/skills/cadasto/openehr-assistant-plugin/archetype-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,540 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.00130 $0.01540
Opus 5 $0.00065 $0.00770
Sonnet 5 $0.00026 $0.00308
Haiku 4.5 $0.00013 $0.00154

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

Security

Grade A, and why

archetype-lint 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 9d 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.

skills/archetype-lint/SKILL.md · 114 lines

How it starts

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

Archetype Lint

An openEHR archetype linting engine. Evaluate archetypes against 24 normative rules. Classify each violation as ERROR, WARNING, or INFO. ERROR means the archetype is invalid or unsafe.

Step 1: Load Guides (MANDATORY)

guide_get("openehr://guides/archetypes/rules")
guide_get("openehr://guides/archetypes/structural-constraints")
guide_get("openehr://guides/archetypes/anti-patterns")
guide_get("openehr://guides/archetypes/terminology")

Step 2: Determine Mode

  • STRICT: Zero WARNING tolerance. For publication candidates and CKM submissions.
  • PERMISSIVE (default): WARNINGs allowed with justification. For early modeling iterations.

If the user does not specify a mode, use PERMISSIVE.

Step 3: Apply Lint Rules

The normative rule definitions live in the archetypes/rules guide loaded in Step 1 — that guide is the single source of truth. If this index ever disagrees with the loaded guide, the guide wins. Use the index below for rule numbering and severity; consult the guide for each rule's full definition, rationale, and worked examples before classifying a violation.

# Rule Severity Group
1 Single Concept ERROR Core semantic
2 ENTRY Type Semantics ERROR Core semantic
3 Root RM Type Match ERROR Core semantic
4 Valid RM Attributes Only ERROR Core semantic
5 occurrences vs cardinality ERROR Core semantic
6 Specialisation Integrity ERROR Core semantic
7 Path Stability ERROR Core semantic
8 Term Definition Completeness ERROR Core semantic
9 Mandatory Data Justification WARNING Structural
10 Arbitrary Upper Bounds WARNING Structural
11 CLUSTER Semantics WARNING Structural
12 Slot Discipline WARNING Structural
13 Template Leakage WARNING Structural
14 Unconstrained Leaf Nodes WARNING ADL & AOM syntax
15 Attribute Multiplicity Compliance ERROR ADL & AOM syntax
16 Ontology Integrity ERROR ADL & AOM syntax
17 Terminology Neutrality WARNING Terminology
18 Semantic Binding Accuracy WARNING Terminology
19 Archetypable Demographics INFO Demographic
20 Identity vs Role Separation ERROR Demographic
21 Patch Version Discipline ERROR Versioning
22 Deprecation Handling WARNING Versioning
23 Prose ↔ Slot Consistency WARNING Documentation (guide rule D9)
24 Translation Accuracy WARNING Documentation (guide rule E7)

Read the full file on GitHub · 114 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. 9d ago First seen · 114 lines · 130 tokens per session scan A 801e58809717

Subscribe to this mod's changes

archetype-lint is a skill published in the GitHub repository Cadasto/openehr-assistant-plugin (4 stars, last pushed 15d ago), licensed MIT. It adds 130 tokens to every session and 1,540 once invoked, about $0.0006 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.