ground-zeroshot
Skill204 starsChanged 5 months agoMITView on GitHub
Ground CXR findings using MI2 zero-shot classification. Returns per-finding probabilities bucketed into positive/possible for the agent to use when writing the report.
In this repository3 other files it gives its agents.
- ground-adapterSkill
- helpSkill
- write-reportSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Do not retry on success.
- Very specific: line 22
Assemble the label list: Read the canonical label list from below and use those strings verbatim.
- Very specific: line 24
Call the classifier: Call mcp_medimageinsig_zeroshot_classify with file_path = absolute path and labels = assembled list.
- Distinctive: line 26
Bucket the scores: Use these cutoffs:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ground-zeroshot
Calls the MI2 zero-shot classifier and returns bucketed per-finding probabilities. Does not write a report — the agent produces the report using the write-report skill after grounding.
Budget
- Tool calls: 1 — exactly one
mcp_medimageinsig_zeroshot_classifycall per image. - Do not retry on success.
How to use
- Resolve the image. If
image_pathis an http(s) URL, pass it through to the tool unchanged — do NOT download it,curlit, or turn it into a local file; the MCP server fetches URLs itself. Otherwise it is a local path: the MCP tool runs in a different working directory, so if it is not absolute, resolve it viarealpath; if it can't be resolved, ask the user. - Assemble the label list. Read the canonical label list from below and use those strings verbatim. Append any caller-provided
extra_labels. - Call the classifier. Call
mcp_medimageinsig_zeroshot_classifywithfile_path= absolute path andlabels= assembled list. One call per image. - Bucket the scores. Use these cutoffs:
- ≥ 0.20 → positive
- 0.08 – 0.20 → possible
- < 0.08 → absent (omit)
- Return the findings. Return the positive and possible labels with their raw scores. Do not write a report. The agent decides what to do next.
NIH ChestX-ray14 labels (MI2 format)
Pass these strings as the labels argument to zeroshot_classify.
Format is "<modality> <body_part> <view> <condition>" — MI2 is sensitive to
this structure, do not reword.
x-ray chest anteroposterior Atelectasis
x-ray chest anteroposterior Cardiomegaly
x-ray chest anteroposterior Consolidation
x-ray chest anteroposterior Edema
x-ray chest anteroposterior Effusion
x-ray chest anteroposterior Emphysema
x-ray chest anteroposterior Fibrosis
x-ray chest anteroposterior Hernia
x-ray chest anteroposterior Infiltration
x-ray chest anteroposterior Mass
x-ray chest anteroposterior Nodule
x-ray chest anteroposterior Pleural_Thickening
x-ray chest anteroposterior Pneumonia
x-ray chest anteroposterior PneumothoraxDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

