ai-plugins AGENTS.md

Repository instructions for openEHR/ai-plugins, a collection of AI-assistant add-ons for people writing openEHR specifications. openEHR is a standard and community for sharing electronic health-record data.

In plain words
What is it for?
Use them when developing or maintaining the repository’s Claude Code and Cursor plugins, their shared skills, manifests, documentation, and related files.
Why use it?
They give contributors the repository structure, purpose, and conventions needed to make compatible changes. The plugins support specification work but are not the specifications themselves.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/openehr/ai-plugins/agents-md
Clone the repo
git clone --depth 1 https://github.com/openEHR/ai-plugins

Made for: Codex, OpenCode.

Per session 1,364 This file is loaded in full into every session.
When invoked 1,364 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01364 $0.01364
Opus 5 $0.00682 $0.00682
Sonnet 5 $0.00273 $0.00273
Haiku 4.5 $0.00136 $0.00136

Measured 2d ago against content hash 20381bd98f9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ai-plugins AGENTS.md 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 2d 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.

AGENTS.md · 73 lines

How it starts

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

ai-plugins

AI-assistant plugins for openEHR — official plugin marketplace of the openEHR Foundation.

Repository Purpose

This repo contains AI-assistant plugins that support openEHR work — packaged as a dual Claude Code and Cursor plugin marketplace; the skill content (SKILL.md, an open cross-tool format) is the canonical artifact, and each assistant gets a thin manifest layer (.claude-plugin/, .cursor-plugin/) around the same skills, so further assistants can be added the same way. It is not a specification repository — it provides AI-assisted tooling for authors working in specifications-XX repos.

Structure

ai-plugins/
├── .claude-plugin/marketplace.json    # Claude Code marketplace manifest
├── .cursor-plugin/marketplace.json    # Cursor marketplace manifest
├── docs/                              # Contributor and user documentation
└── plugins/<plugin-name>/             # One directory per plugin
    ├── .claude-plugin/plugin.json     # Claude Code plugin manifest
    ├── .cursor-plugin/plugin.json     # Cursor plugin manifest
    ├── README.md                      # Plugin purpose, install, and component inventory
    ├── skills/<skill-name>/           # Knowledge/workflow skills (model- or user-invoked)
    │   ├── SKILL.md                   # Skill definition (YAML frontmatter + body)
    │   └── references/                # Optional supplementary content
    ├── agents/<agent>.md              # Autonomous subagents (context-isolated, multi-file)
    └── commands/<command>.md          # User-invoked action commands (disable-model-invocation)

Current plugins: openehr-specs — 7 skills (spec authoring, review, governance, content patterns, amendment records, ITS-REST, BMM class generation), 3 subagents (spec-reviewer, xref-auditor, identifier-grounding), and 3 commands (amend, regen-classes, publish).

Key Conventions

  • Plugin names: openehr-<domain> (mandatory prefix — flat global namespace); skill names: terse activity nouns with no prefix (auto-namespaced as <plugin>:<skill>).
  • Component choice follows the nature of the work: skills = knowledge/workflows (model- or user-invoked); commands (commands/) = user-initiated actions, marked disable-model-invocation: true so they don't compete with knowledge-skill triggering; subagents (agents/) = context-heavy, multi-file, or adversarial work that would otherwise pollute the main context. Commands/agents reference their sibling knowledge skill rather than duplicating it.
  • Skill description frontmatter is lean (~50–75 words): one what+scope sentence → a few representative triggers → short "Not for …" anti-triggers routing to the right sibling/plugin.
  • Keep each SKILL.md body a lean overview (quick-reference + pointers); push bulky detail (tables, templates, format specs) into references/ so it loads only on demand.
  • Versions must stay in sync across both plugin manifests (.claude-plugin/ and .cursor-plugin/), both marketplace entries, and the release tag ({name}--v{version}).
  • Never invent identifiers, paths, class names, or conventions — ground everything in published openEHR specifications. To verify, read the spec's Markdown twin: take any specifications.openehr.org/...page.html URL and swap .html.md.
  • Do not duplicate community tooling (e.g. CKM/clinical modeling is covered by Cadasto's plugins); this repo covers ground the Foundation owns.

Read the full file on GitHub · 73 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. 2d ago First seen · 73 lines · 1,364 tokens per session scan A 20381bd98f9e

Subscribe to this mod's changes

ai-plugins AGENTS.md is an instructions file published in the GitHub repository openEHR/ai-plugins (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,364 tokens to every session, about $0.0068 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.