pydicom DICOM Toolkit
davila7/claude-code-templates
Reads, edits, anonymizes and converts DICOM medical imaging files with pydicom, including pixel data extraction and compressed transfer syntaxes.
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install maziyarpanahi/openmed coding-icd10 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/coding-icd10 .claude/skills/coding-icd10 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .claude/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install maziyarpanahi/openmed coding-icd10 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/coding-icd10 .agents/skills/coding-icd10 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .agents/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install maziyarpanahi/openmed coding-icd10 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/coding-icd10 .cursor/skills/coding-icd10 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .cursor/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/maziyarpanahi/openmed.git --path skills/coding-icd10--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install maziyarpanahi/openmed coding-icd10 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/coding-icd10 .gemini/skills/coding-icd10 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .gemini/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install maziyarpanahi/openmed coding-icd10Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/coding-icd10 .github/skills/coding-icd10 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .github/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add maziyarpanahi/openmed --skill coding-icd10 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install maziyarpanahi/openmed coding-icd10 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/maziyarpanahi/openmed.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/coding-icd10 .opencode/skills/coding-icd10 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "coding-icd10" agent skill from https://github.com/maziyarpanahi/openmed/tree/master/skills/coding-icd10 into .opencode/skills/coding-icd10/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "coding-icd10", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
coding-icd10Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review.
Working downstream of OpenMed's entity recognition, the skill takes the diagnosis and procedure spans OpenMed extracts and proposes candidate codes, explaining why each fits. It is decision support for a certified coder, not autonomous billing, and a human validates the final billable code. It also routes a span to the right chapter, gives an approximate ICD-9 cross-walk through GEMs, and can pre-fill encounter diagnoses for a coder's review queue.
The workflow extracts spans, routes each to a chapter using `references/icd10-chapters.md` (for example endocrine conditions to E00 through E89 and circulatory to I00 through I99), searches code text for candidates, and applies ICD-10-CM specificity rules such as laterality, acute versus chronic, episode of care and combination codes. Code data comes from public-domain CMS files loaded locally, or from a FHIR terminology server such as the NLM Clinical Tables endpoint. CPT and HCPCS codes are AMA-licensed and out of scope, and other skills are named for SNOMED mapping and HCC risk capture.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 252806a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
clinicaltables.nlm.nih.govhl7.orgAlso links to:
cms.govFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
ICD-10 Coding Assistant loads about 2k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 215 tokens; SKILL.md has 610 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from maziyarpanahi/openmed at commit 252806a, republished under its Apache-2.0 licence (© maziyarpanahi). 610 words, ~1,957 tokens.
.claude/skills/coding-icd10/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Suggest ICD-10-CM diagnosis codes (and ICD-10-PCS for inpatient procedures) for the diagnosis and procedure spans OpenMed extracts. This is decision support for a certified coder, not autonomous billing: OpenMed + this skill narrow the candidate set and explain why; a human validates the final, billable code.
ICD-10-CM and ICD-10-PCS are public domain. CMS publishes the complete annual code files, addenda, and indexes for free. (CPT/HCPCS procedure codes are AMA-licensed and restricted — out of scope here; obtain those separately under the user's own AMA license.)
references/icd10-chapters.md for code ranges).For clinical-meaning codes use mapping-to-snomed; for HCC/risk capture use
coding-hcc-risk-adjustment; this skill is for the ICD-10 classification.
Two complementary paths, both license-clean:
A) CMS files, loaded locally (public domain; you download once):
# CMS publishes the order/addenda file; load the code->description table.
# Columns: code (no dot), description; you insert the dot for display.
icd10cm = {} # "E1122" -> "Type 2 diabetes mellitus with diabetic chronic kidney disease"
with open("icd10cm_order_2025.txt", encoding="latin-1") as fh:
for line in fh:
code = line[6:13].strip()
billable = line[14] == "1" # '1' = valid billable code
long_desc = line[77:].strip()
if billable:
icd10cm[code] = long_desc
def search_local(term: str, limit: int = 5):
t = term.lower()
hits = [(c, d) for c, d in icd10cm.items() if t in d.lower()]
return sorted(hits, key=lambda cd: len(cd[1]))[:limit]B) A FHIR terminology server that hosts ICD-10-CM (public servers exist; e.g. an NLM Clinical Tables endpoint or your own HAPI/Ontoserver):
import requests
# NLM Clinical Tables (public, no key) — ICD-10-CM autocomplete/search:
def search_icd10cm(term: str, count: int = 7):
r = requests.get(
"https://clinicaltables.nlm.nih.gov/api/icd10cm/v3/search",
params={"sf": "code,name", "terms": term, "maxList": count}, timeout=10,
)
r.raise_for_status()
_total, codes, _extra, display = r.json()
return list(zip(codes, [d[1] for d in display])) # [(code, name), ...]
print(search_icd10cm("type 2 diabetes nephropathy"))references/icd10-chapters.md (e.g. endocrine → E00–E89, circulatory →
I00–I99). This shrinks the search space and catches obvious mis-hits.{system: "http://hl7.org/fhir/sid/icd-10-cm", code, display}
marked status: needs-coder-review, with OpenMed source offsets.openmed.analyze_text(..., output_format="dict") returns entities, each a dict
with text, label, confidence, start, end. Consume Disease/Pathology
spans:
import openmed
note = "Assessment: type 2 diabetes with diabetic nephropathy; CAP."
result = openmed.analyze_text(
note,
model_name="disease_detection_superclinical", # Disease category
output_format="dict",
)
DX_LABELS = {"DISEASE", "CONDITION", "PATHOLOGY"}
for ent in result["entities"]:
if ent["label"] in DX_LABELS:
candidates = search_icd10cm(ent["text"], count=5)
print(ent["text"], ent["start"], ent["end"],
f"(conf {ent['confidence']:.2f}) ->", candidates)
# surface as SUGGESTIONS for a coder — never auto-billKeep OpenMed's start/end offsets next to each suggested code so the coder can
jump to the exact supporting text. Store offsets and codes only — never the raw
note in your suggestion log.
.9/unspecified code.references/icd10-chapters.md© maziyarpanahi, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/coding-icd10 of maziyarpanahi/openmed.
Open the folder on GitHubat commit 252806a
ICD-10 Coding Assistant next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| ICD-10 Coding Assistant this skillmaziyarpanahi/openmed | 5.5k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| pydicom DICOM Toolkitdavila7/claude-code-templates | 32k | 11 repos | ~3.3k | Automated safety check: Pass | MIT | |
| Histolab Whole Slide Image Tilingdavila7/claude-code-templates | 32k | 12 repos | ~5.1k | Automated safety check: Pass | MIT | |
| NeuroKit2 Biosignal Processingdavila7/claude-code-templates | 32k | 12 repos | ~3k | Automated safety check: Pass | MIT | |
| PyHealth Clinical ML Toolkitdavila7/claude-code-templates | 32k | 12 repos | ~4.4k | Automated safety check: Pass | MIT | |
| Topic Model ConsolidationTyrealQ/q-skills | 108 | — | ~1k | Automated safety check: Pass | MIT |
davila7/claude-code-templates
Reads, edits, anonymizes and converts DICOM medical imaging files with pydicom, including pixel data extraction and compressed transfer syntaxes.
davila7/claude-code-templates
Processes digital pathology whole slide images with histolab: tissue detection, mask creation, tile extraction and dataset preparation for deep learning.
davila7/claude-code-templates
Processes physiological signals with NeuroKit2 in Python: ECG, PPG, EEG, EDA, respiration, EMG and EOG, including HRV, events and complexity measures.
davila7/claude-code-templates
Builds machine learning pipelines on clinical data with PyHealth: EHR datasets, prediction tasks, medical code mapping, healthcare models and evaluation.
TyrealQ/q-skills
Consolidates BERTopic, LDA or NMF topic output into a theory-driven classification framework and writes the final labels back to an Excel file.
K-Dense-AI/scientific-agent-skills
Supports Gtars for local genomic interval models and set algebra, overlaps and counts, consensus and coverage, tokenization, fragment processing, and refget/BEDbase planning across Python, Rust, and…
maziyarpanahi/openmed
Checks OpenMed de-identified clinical text against the 18 HIPAA Safe Harbor identifier categories and reports gaps and residual re-identification risk.
maziyarpanahi/openmed
Fills in a model card for an OpenMed clinical NER or de-identification model from its evaluation reports: intended use, metrics, subgroups and limitations.
maziyarpanahi/openmed
Walks a data pipeline against the HIPAA Privacy and Security Rule checklist and produces a gap report before it processes patient data.
maziyarpanahi/openmed
Maps OpenMed-extracted, terminology-coded conditions, drugs and measurements into OMOP CDM v5.4 tables for OHDSI and ATLAS analytics.
maziyarpanahi/openmed
Finds social risks such as housing instability or food insecurity in clinical notes and proposes matching ICD-10-CM Z-codes for a coder to confirm.
maziyarpanahi/openmed
Converts scanned faxes, images, CSV/TSV exports and C-CDA XML into clean text on-device, ready for OpenMed de-identification and named-entity recognition.
Works with
Categories
Suggests candidate ICD-10-CM diagnosis and ICD-10-PCS procedure codes for clinical text extracted by OpenMed, with rationale for a certified coder to review. Working downstream of OpenMed's entity recognition, the skill takes the diagnosis and procedure spans OpenMed extracts and proposes candidate codes, explaining why each fits. It is decision support for a certified coder, not autonomous billing, and a human validates the final billable code.
ICD-10 Coding Assistant fits situations like: coding a problem list into ICD-10-CM diagnosis codes; routing a diagnosis phrase to the correct ICD-10 chapter; cross-walking legacy ICD-9 codes with GEMs; pre-filling encounter diagnoses for a coder to review.
Run `npx skills add maziyarpanahi/openmed --skill coding-icd10 -a claude-code`. Or copy the skill folder (skills/coding-icd10 in maziyarpanahi/openmed) into .claude/skills/coding-icd10 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add maziyarpanahi/openmed --skill coding-icd10 -a codex`. Or copy the skill folder (skills/coding-icd10 in maziyarpanahi/openmed) into .agents/skills/coding-icd10 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add maziyarpanahi/openmed --skill coding-icd10 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/coding-icd10, .gemini/skills/coding-icd10, .github/skills/coding-icd10 and .opencode/skills/coding-icd10 in your project.
SKILL.md names no scripts, command-line tools or credentials: ICD-10 Coding Assistant is instructions for the agent only. Our summary lists: OpenMed for extracting diagnosis and procedure spans; CMS ICD-10-CM and ICD-10-PCS code files, or access to a FHIR terminology server; Python with requests for the lookup example.
SKILL.md names 3 domains. In commands or code: clinicaltables.nlm.nih.gov and hl7.org; the agent is likely to contact these when it follows the instructions. As links in the text: cms.gov. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
ICD-10 Coding Assistant is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 745 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with ICD-10 Coding Assistant: pydicom DICOM Toolkit (davila7/claude-code-templates, 32k stars), Histolab Whole Slide Image Tiling (davila7/claude-code-templates, 32k stars), NeuroKit2 Biosignal Processing (davila7/claude-code-templates, 32k stars) and PyHealth Clinical ML Toolkit (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
maziyarpanahi (a GitHub user) maintains it in maziyarpanahi/openmed, which has 5,452 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on October 6, 2026.
Source: maziyarpanahi/openmed on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.