regen-classes

regen-classes is a skill for Claude Code from openEHR/ai-plugins. It costs 22 tokens per session (929 once invoked), scanned A, original, Apache-2.0.

A generation skill that rebuilds class tables and UML diagrams from an openEHR BMM schema. UML diagrams are visual descriptions of classes and their relationships; the output is generated in a Docker container.

In plain words
What is it for?
Use it to generate class documentation and UML output for a named openEHR component and its dependencies.
Why use it?
It avoids manually keeping derived reference tables and diagrams in sync with schema changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the openehr-specs plugin — 12 skills, 3 agents shipped together

Good fit Use it to generate class documentation and UML output for a named openEHR component and its dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openehr/ai-plugins/regen-classes
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 openEHR/ai-plugins --skill regen-classes
Clone the repo
git clone --depth 1 https://github.com/openEHR/ai-plugins

Made for: Claude Code.

Or install openehr-specs, the plugin that ships this one along with the rest of its 12 skills, 3 agents.

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 regen-classes

README.md
[![agentmods](https://agentmods.dev/badge/skills/openehr/ai-plugins/regen-classes/github.svg)](https://agentmods.dev/skills/openehr/ai-plugins/regen-classes)
Your own site
<a href="https://agentmods.dev/skills/openehr/ai-plugins/regen-classes"><img src="https://agentmods.dev/badge/skills/openehr/ai-plugins/regen-classes/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 regen-classes

Your own site · 80×15
<a href="https://agentmods.dev/skills/openehr/ai-plugins/regen-classes"><img src="https://agentmods.dev/badge/skills/openehr/ai-plugins/regen-classes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 929 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.00022 $0.00929
Opus 5.5 $0.00009 $0.00372
Sonnet 5.5 $0.00004 $0.00186
Haiku 4.5 $0.00002 $0.00093

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

Security

Grade A, and why

regen-classes 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 7d 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.

plugins/openehr-specs/skills/regen-classes/SKILL.md · 50 lines

What it actually says

Regenerate the class tables and UML diagrams for $ARGUMENTS with bmm-publisher, from the BMM files in the component repo at the current directory, not from the copies bundled in the image (they lag the repos, and a run from a bundled id exits 0 while rendering the older model). The arguments are a schema id without .bmm.json (for example openehr_rm_1.2.0) plus any -d <dependency-schema-id> flags (RM depends on BASE: openehr_rm_1.2.0 -d openehr_base_1.3.0). The layouts and the placement into docs/UML/ are in the openehr-specs:class-generation skill; this wrapper covers generation only.

If $ARGUMENTS is empty, ask for the schema id and stop.

  1. Read manifest.json id (or take the directory name specifications-<id>). In the ITS-XML, ITS-BMM, ITS-JSON and ITS-REST repos, say that they hold no model of their own and that bmm-publisher is not run there, and stop. ITS-BMM regenerates its ODIN and YAML with its own make generate.
  2. Run docker --version. If Docker is missing, say it is required (the image and its dev container both run on it) and stop.
  3. Map each id to its file and Glob that it exists: the schema to computable/BMM/<id>.bmm.json, and a dependency openehr_<component>_<version> to the sibling clone's ../specifications-<COMPONENT>/computable/BMM/<id>.bmm.json (component upper-cased). If one is missing, name it and stop; never fall back to the bundled id.
  4. Write to ./out unless the user names another target. Ask before writing into a specifications-XX repo's docs/UML/.
  5. Pick the command by layout (step 2 of the class-generation workflow): legacy-adoc -o /app/output/UML/classes when the spec's chapters contain include::{uml_export_dir}/classes/ (the tables land in ./out/UML/classes), otherwise asciidoc. Mount each file read-only under /in/, pass the paths, and map output ownership to the host user (RM with BASE shown):
    docker run --rm --user $(id -u):$(id -g) \
      -v "$PWD/computable/BMM/openehr_rm_1.2.0.bmm.json":/in/openehr_rm_1.2.0.bmm.json:ro \
      -v "$PWD/../specifications-BASE/computable/BMM/openehr_base_1.3.0.bmm.json":/in/openehr_base_1.3.0.bmm.json:ro \
      -v ./out:/app/output \
      ghcr.io/openehr/bmm-publisher asciidoc -v /in/openehr_rm_1.2.0.bmm.json -d /in/openehr_base_1.3.0.bmm.json
    
    Add one mount and one -d /in/<id>.bmm.json per dependency. The -v log lists each file read: check that every one is under /in/.
  6. List what was produced (classes/, effective/, diagram SVGs). Do not commit. Generated files are never hand-edited: change the BMM and regenerate. To place the output, follow the class-generation skill.
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. 7d ago Changed · +4 lines 7c30e3d7d176
  2. 8d ago Changed · +10 lines a5d715628e28
  3. 9d ago First seen · 36 lines · 22 tokens per session scan A e6255d3f5af4

Subscribe to this mod's changes

regen-classes is a skill published in the GitHub repository openEHR/ai-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 929 once invoked, about $0.0001 per session on Opus 5.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-10-08.

Related

Other skills, from other repositories

pydicom

Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data. Applies to DICOM metadata, transfer syntaxes, compression plugins, frames, private elements, JSON, and bounded de-identification review.

K-Dense-AI/scientific-agent-skills · 52 tokens

clinical-reports

Creates safety-bounded draft structures and runs local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

K-Dense-AI/scientific-agent-skills · 55 tokens

pptx-posters

Creates and audits editable scientific posters in macro-free PowerPoint (.pptx) from author-approved local content and assets. Used when the requested deliverable is a PowerPoint research/conference poster and exact physical, printer, accessibility, provenance, and package-security checks are required.

K-Dense-AI/scientific-agent-skills · 59 tokens

nwb-conversion

Converts neuroscience acquisition data to Neurodata Without Borders files with NeuroConv and PyNWB, preserves metadata and timebases, checks evidence-based clock alignment, and produces schema validation, NWB Inspector findings and round-trip checks. Use for NWB conversion and synchronization of planar single-channel…

K-Dense-AI/scientific-agent-skills · 89 tokens

paper-figures

Extract figures from downloaded papers and include them in survey/review reports. Use when the report covers other groups' work and benefits from their architecture diagrams, experimental plots, or system schematics. Your brain prompt supplies the absolute path to the extract-figures script as {{EXTRACTFIGURES}} — use…

Muuuun/luxas · 79 tokens

sync-submission

Use when building, auditing or freezing a journal submission package from the canonical manuscript. Detects drift between the source and the per-journal submission copy, builds byte-preserving packages with manifests, and records current, stale or frozen status.

Aperivue/medsci-skills · 51 tokens