dismech: Skill for Claude Code

.claude/skills/create-definitions-from-ohdsi/SKILL.md

create-definitions-from-ohdsi is a skill for Claude Code from monarch-initiative/dismech. It costs 68 tokens per session (397 once invoked), scanned A, original, BSD-3-Clause.

A converter that turns OHDSI/ATLAS cohort definitions and FHIR, CQL, or OMOP rules into dismech definition blocks. OHDSI is a common system for representing health data, and ATLAS is its tool for building patient cohorts.

In plain words
What is it for?
Use it to convert exported ATLAS cohort JSON, draft phenotype algorithms, map healthcare rules, and validate the resulting disorder definition.
Why use it?
It avoids rewriting computable patient-selection logic by hand into the format used by the dismech knowledge base.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is monarch-initiative/dismech's own configuration. It tells Claude Code how to work on dismech itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dismech configures →

Reuse

Borrowing it

Nothing to install: this file belongs to monarch-initiative/dismech. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/monarch-initiative/dismech/main/.claude/skills/create-definitions-from-ohdsi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/monarch-initiative/dismech

Made for: Claude Code.

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 create-definitions-from-ohdsi

README.md
[![agentmods](https://agentmods.dev/badge/skills/monarch-initiative/dismech/create-definitions-from-ohdsi/github.svg)](https://agentmods.dev/skills/monarch-initiative/dismech/create-definitions-from-ohdsi)
Your own site
<a href="https://agentmods.dev/skills/monarch-initiative/dismech/create-definitions-from-ohdsi"><img src="https://agentmods.dev/badge/skills/monarch-initiative/dismech/create-definitions-from-ohdsi/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 create-definitions-from-ohdsi

Your own site · 80×15
<a href="https://agentmods.dev/skills/monarch-initiative/dismech/create-definitions-from-ohdsi"><img src="https://agentmods.dev/badge/skills/monarch-initiative/dismech/create-definitions-from-ohdsi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 397 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00068 $0.00397
Opus 5 $0.00034 $0.00198
Sonnet 5 $0.00014 $0.00079
Haiku 4.5 $0.00007 $0.00040

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

Security

Grade A, and why

create-definitions-from-ohdsi 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ohdsi_cohort_to_definition.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/create-definitions-from-ohdsi/SKILL.md · 42 lines

What it actually says

Create Definitions From OHDSI

Use this skill to convert OHDSI/ATLAS cohort definitions into dismech definitions blocks and to map FHIR/CQL logic into the same structure.

Quick start

  1. Export an ATLAS/WebAPI cohort definition JSON.
  2. Generate a YAML fragment:
uv run python .claude/skills/create-definitions-from-ohdsi/scripts/ohdsi_cohort_to_definition.py /path/to/cohort.json --wrap
  1. Paste the fragment into the target disorder file under definitions.
  2. Normalize to dismech norms (add evidence snippets, scope, criteria set names, and any available term objects).
  3. Validate:
just validate kb/disorders/<Disease>.yaml

Workflow guardrails

  • Keep logic concise: express cohort entry, inclusion rules, and exit criteria in criteria_sets.
  • Use minimum_required for numeric logic; put temporal logic in description.
  • Add evidence snippets from abstracts when the algorithm is derived from a publication.
  • Only add term objects when the CURIE is in a configured prefix (ICD10CM, NCIT, HP, etc.).

References

  • Mapping guide: references/model-mapping.md (FHIR/OHDSI/CQL to dismech)

Scripts

  • scripts/ohdsi_cohort_to_definition.py: Convert ATLAS/WebAPI cohort JSON to a dismech definition fragment.
    • Use --wrap to emit a top-level definitions key.
Files

What ships with it

2 files 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. 10d ago First seen · 42 lines · 68 tokens per session scan A e96d48620493

Subscribe to this mod's changes

create-definitions-from-ohdsi is a skill published in the GitHub repository monarch-initiative/dismech (60 stars, last pushed today), licensed BSD-3-Clause. It adds 68 tokens to every session and 397 once invoked, about $0.0003 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-30.