class-generation

class-generation is a skill for Claude Code from openEHR/ai-plugins. It costs 136 tokens per session (2,163 once invoked), scanned A, original, Apache-2.0.

A documentation generator for openEHR models. It uses BMM schema files—the structured source that describes classes and their properties—to create class tables and UML diagrams.

In plain words
What is it for?
Regenerating class-definition tables, effective views, and UML class or package diagrams in openEHR specification repositories.
Why use it?
It keeps class documentation in sync with the model, so developers do not have to update tables and diagrams by hand after schema changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

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

Good fit Regenerating class-definition tables, effective views, and UML class or package diagrams in openEHR specification repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openehr/ai-plugins/class-generation
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 class-generation
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 class-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/openehr/ai-plugins/class-generation/github.svg)](https://agentmods.dev/skills/openehr/ai-plugins/class-generation)
Your own site
<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.

agentmods 80×15 button for class-generation

Your own site · 80×15
<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>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,163 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.00136 $0.02163
Opus 5.5 $0.00054 $0.00865
Sonnet 5.5 $0.00027 $0.00433
Haiku 4.5 $0.00014 $0.00216

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

Security

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.

plugins/openehr-specs/skills/class-generation/SKILL.md · 147 lines

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 .mdzip UML models. That mechanism is retired; bmm-publisher is the current BMM-based generator.

  • 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)

Read the full file on GitHub · 147 lines

Files

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.

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 · +9 lines · +3 tokens per session 9ed9af3e0afe
  2. 8d ago Changed · +11 lines 171d959909d3
  3. 9d ago Changed · +9 lines · +9 tokens per session 6baa7898b58a
  4. 1mo ago First seen · 118 lines · 124 tokens per session scan A 940c09ddf4ff

Subscribe to this mod's changes

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.

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