class-generation SKILL.md skillA

class-generation from openehr/ai-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add openehr/ai-plugins/class-generation@git:20261009.a9028b9

Pins git:20261009.a9028b9 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
openehr/ai-plugins
Path
plugins/openehr-specs/skills/class-generation/SKILL.md
Versions recorded
8
Latest version
git:20261009.a9028b9, committed Oct 9, 2026
First version recorded
Jun 5, 2026
Size
8,117 bytes
Repository stars
3
License
Apache-2.0

Generate openEHR class documentation — class-definition tables, effective views, and UML class/package diagrams — from BMM schemas with `bmm-publisher`, for `specifications-XX` repos. This skill should be used when the user asks to regenerate or refresh class tables or diagrams, run bmm-publisher, generate class docs from BMM/P_BMM, or replace hand-written or MagicDraw-derived class docs. Not for editing the BMM itself (use bmm-authoring), spec prose (use content-patterns), document…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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](https://specifications.openehr.org/releases/LANG/latest/bmm_persistence.html) JSON, with the
[`bmm-publisher`](https://github.com/openEHR/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.

## 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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add openehr/ai-plugins/class-generation@sha256:9ed9af3e0afe7457

The line at the top of this page pins the label git:20261009.a9028b9, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4stgfhpst2iuac44.svg)](https://markdownregistry.com/a/art_4stgfhpst2iuac44)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 8 versions of this file, between Jun 5, 2026 and Oct 9, 2026, about one every 18 days.

versioncommittedcommitsizeaudit
git:20261009.a9028b9 latest2026-10-09 a9028b9 8,117 BA view · diff
git:20261009.45315cf2026-10-09 45315cf 7,695 BA view · diff
git:20261009.0877cb62026-10-09 0877cb6 8,035 BA view · diff
git:20261009.ba8a2582026-10-09 ba8a258 7,613 BA view · diff
git:20261008.21e68072026-10-08 21e6807 7,294 BA view · diff
git:20261007.405e68d2026-10-07 405e68d 6,284 BA view · diff
git:20261007.d0970472026-10-07 d097047 6,286 BA view · diff
git:20260605.b66fd152026-06-05 b66fd15 5,579 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (8117 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

openehr/ai-plugins · 3 stars · license Apache-2.0 · pushed 2026-10-16 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4stgfhpst2iuac44
GET https://markdownregistry.com/api/v1/resolve?ref=openehr/ai-plugins/class-generation
GET https://markdownregistry.com/api/v1/blob/9ed9af3e0afe745700308582483308b46e475b19acd378b7490f7cb1eb63eeba

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from openehr/ai-plugins

CLAUDE.md@.claude CLAUDE.md file
openehr/ai-plugins · .claude/CLAUDE.md
git:20260605.b66fd15 · audit B · 3 stars
AGENTS.md AGENTS.md file
openehr/ai-plugins · AGENTS.md
git:20261009.0877cb6 · audit A · 3 stars
amendment-record SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/amendment-record/SKILL.md · Author or update amendment records in openEHR specification documents: the `master00-amendment_record.adoc` table in…
git:20261008.b2a84a7 · audit A · 3 stars
authoring SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/authoring/SKILL.md · Create or edit openEHR specification AsciiDoc sources, `manifest.json` spec entries, and boilerplate includes in…
git:20261009.45315cf · audit A · 3 stars
bmm-authoring SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/bmm-authoring/SKILL.md · Create or edit an openEHR component's BMM schema, the P_BMM JSON in `computable/BMM/` of a `specifications-XX` repo…
git:20261009.a9028b9 · audit A · 3 stars
content-patterns SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/content-patterns/SKILL.md · Patterns for writing openEHR specification prose (package overviews, class/concept semantics, design rationale…
git:20261007.34fb7a5 · audit A · 3 stars
governance SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/governance/SKILL.md · Manage openEHR specification governance: releases, change requests (CR/PR), versioning, and lifecycle states (Planning…
git:20261007.d097047 · audit A · 3 stars
its-rest SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/its-rest/SKILL.md · Create, edit, or review the openEHR ITS-REST API sources (OpenAPI 3.0 YAML + Markdown) in the `specifications-ITS-REST`…
git:20261007.405e68d · audit A · 3 stars
publish SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/publish/SKILL.md · Build a local HTML preview of an openEHR specification component with the published AA_GLOBAL publishing image
git:20261007.bc42916 · audit A · 3 stars
regen-classes SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/regen-classes/SKILL.md · Regenerate BMM-derived class tables and UML diagrams for a component via bmm-publisher
git:20261009.0877cb6 · audit A · 3 stars
review SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/review/SKILL.md · Review an openEHR specification document for quality, completeness, and convention compliance in `specifications-XX`…
git:20261007.d097047 · audit A · 3 stars
scaffold SKILL.md skill
openehr/ai-plugins · plugins/openehr-specs/skills/scaffold/SKILL.md · Initialise a specification repository, or bring an existing one up to the current standard file set (AGENTS.md, .claude…
git:20261009.bef1673 · audit A · 3 stars

Every file in openehr/ai-plugins

Browse by kind, by grade A, or by owner.