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 openEHR/ai-plugins --skill class-generationgit clone --depth 1 https://github.com/openEHR/ai-pluginsWrote 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/openehr/ai-plugins/class-generation)<a href="https://agentmods.dev/skills/openehr/ai-plugins/class-generation"><img src="https://agentmods.dev/badge/skills/openehr/ai-plugins/class-generation/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.
<a href="https://agentmods.dev/skills/openehr/ai-plugins/class-generation"><img src="https://agentmods.dev/badge/skills/openehr/ai-plugins/class-generation.svg" alt="Reviewed on agentmods" width="80" 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.00136 | $0.02163 |
| Opus 5.5 | $0.00054 | $0.00865 |
| Sonnet 5.5 | $0.00027 | $0.00433 |
| Haiku 4.5 | $0.00014 | $0.00216 |
Grade A, and why
class-generation 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.
How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
openEHR Class Documentation Generation (BMM)
Treat the per-class definition tables and the UML class/package diagrams embedded in
specifications-XX documents as generated output, never hand-written. Generate them from the
component's BMM (Basic Meta-Model) schema, serialised as
P_BMM JSON, with the
bmm-publisher CLI tool.
Replaces MagicDraw. Class tables and diagrams were historically extracted from MagicDraw
.mdzipUML models. That mechanism is retired;bmm-publisheris the current BMM-based generator.
Related Skills
- bmm-authoring — write or change the BMM schema itself, and check it before generating
- authoring — document scaffolding and repo layout; explains where generated class docs are included
- review — the ADOC-03 check enforces that class tables are generated, not hand-written
- content-patterns — prose around classes (semantics, rationale) that the generated tables do not cover
For the full command, option, and schema reference, see references/bmm-publisher.md.
When to Regenerate
Regenerate class documentation when:
- A component's BMM schema changes (new/renamed/removed classes, properties, functions, or types)
- A spec needs its
docs/UML/classes/tables refreshed before a release - Class diagrams (SVGs) are stale relative to the model
Installation
Run the tool from its Docker image, which bundles all openEHR BMM schemas and the plantuml CLI, so
no local PHP, Composer, or checkout is needed.
# Discover commands
docker run --rm ghcr.io/openehr/bmm-publisher list
To run from a cloned bmm-publisher checkout instead, see "Local development" in
references/bmm-publisher.md.
Core Commands
| Command | Use for |
|---|---|
legacy-adoc |
Flat per-class definition tables for the legacy docs/UML/classes layout; -o <container-dir> sets the target, e.g. /app/output/UML/classes |
asciidoc (adoc) |
Class, effective (flattened), and definition tables plus rendered SVG class/package diagrams (current layout) |
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.
- 7d ago Changed · +9 lines · +3 tokens per session 9ed9af3e0afe
- 8d ago Changed · +11 lines 171d959909d3
- 9d ago Changed · +9 lines · +9 tokens per session 6baa7898b58a
- 1mo ago First seen · 118 lines · 124 tokens per session scan A 940c09ddf4ff
class-generation is a skill published in the GitHub repository openEHR/ai-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 136 tokens to every session and 2,163 once invoked, about $0.0005 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-08-31.
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.
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.
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.
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…
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…
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.