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.
git clone --depth 1 https://github.com/Cadasto/openehr-assistant-pluginWrote 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/commands/cadasto/openehr-assistant-plugin/ckm-search)<a href="https://agentmods.dev/commands/cadasto/openehr-assistant-plugin/ckm-search"><img src="https://agentmods.dev/badge/commands/cadasto/openehr-assistant-plugin/ckm-search/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/commands/cadasto/openehr-assistant-plugin/ckm-search"><img src="https://agentmods.dev/badge/commands/cadasto/openehr-assistant-plugin/ckm-search.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.00021 | $0.00710 |
| Opus 5 | $0.00010 | $0.00355 |
| Sonnet 5 | $0.00004 | $0.00142 |
| Haiku 4.5 | $0.00002 | $0.00071 |
Grade A, and why
ckm-search 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 9d 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 — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/ckm-search
Search the openEHR Clinical Knowledge Manager for reusable archetypes or templates. Reuse first: prefer published CKM artefacts over authoring new ones.
Instructions
- Parse $ARGUMENTS:
- If it starts with
archetypeortemplate, that keyword selects the kind; the rest is the query. - Otherwise infer the kind from the query (a whole-form / document concept usually means a template; a single clinical concept usually means an archetype). When unclear, search archetypes by default and offer to search templates too.
- If the query is ambiguous, ask 1-2 clarifying questions before searching.
- Never invent CIDs, archetype IDs, or template metadata.
- If it starts with
- Search:
- Archetypes →
ckm_archetype_search. To scope to a structural class, pass the optionalrmClassfilter (e.g.COMPOSITION,OBSERVATION,CLUSTER) — surface it when the user wants only siblings of one RM type, or parsesrm:<RM_CLASS>from$ARGUMENTS. If recall is low, retry with broader or alternative phrasings (synonyms, drop qualifiers) — CKM matches against all search words. - Templates →
ckm_template_search.
- Archetypes →
- Present up to 15 candidates as a table, and state the envelope's
total(matches before the result cap) so a capped list does not read as the whole result set:- Archetypes: CID, Archetype ID, RM Type, Version, Status — highlight published vs draft.
- Templates: CID, Display Name, Status.
- Ask the user to select a candidate, and the preferred output format:
- Archetype: ADL (default), XML, or mindmap.
- Template: OET (design-time, default) or OPT (operational, flattened constraints).
- Retrieve the selection with
ckm_archetype_getorckm_template_get, passing the CID from the search hit (ckm_archetype_getalso accepts a fullopenEHR-…archetype-id; a concept or display name is rejected). Present it in a code block with a brief explanation:- Archetype: purpose and clinical concept; use/misuse guidance; key sections and notable constraints. Use
guide_adl_idiom_lookupto explain ADL patterns if needed. - Template: design intent and clinical context; archetypes used and their roles; notable constraints and narrowing decisions. For an OET, optionally use
ckm_archetype_geton referenced archetypes for context.
- Archetype: purpose and clinical concept; use/misuse guidance; key sections and notable constraints. Use
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.
- 9d ago First seen · 36 lines · 21 tokens per session scan A db8338e1a902
ckm-search is a command published in the GitHub repository Cadasto/openehr-assistant-plugin (4 stars, last pushed 14d ago), licensed MIT. It adds 21 tokens to every session and 710 once invoked, about $0.0001 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.
Other commands, from other repositories
research
Start or resume an academic research project — idea through literature, methodology, writing, feedback, and publishing.
export-latex
Export the current paper draft to production-ready LaTeX (.tex) and PDF using the arxiv-style template. Converts draft.md + references.bib + figures/ into a complete LaTeX project with resolved citations, tables, and figures. Compiles to PDF automatically.
co-change
List files that historically co-change with a target (git log heuristic; COCHANGE-style).
create-scene
Create a single animated scene for mathematical visualization.
audit-paper
Audit a paper's empirical claims against the linked code repository — catches MISMATCH, MISSING, and PARTIAL claims before submission.
checklist
Generate a custom checklist for the current feature based on user requirements.