/medimageinsight:write-reportfrom medimageinsight
Reads a chest X-ray end-to-end: grounds findings with MedImageInsight, then writes a structured radiologist report (Indication, Technique, Findings, Impression). Invoke for any write/draft CXR report request.
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /medimageinsight:write-report still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Runs the full CXR report flow: resolve the image, ground findings with MedImageInsight, then write a structured radiologist report. Invoke as: write-report <zeroshot|adapter|none> <image> [indication].
Grounding is at most one tool call per image, made inside the grounding skill. Report-writing itself calls no tools. Do not retry on success.
Print this checklist and work through it in order, checking off each step as you go.
Announce the checklist — print it so the user sees the plan before you begin.
Resolve the image — if image is an http(s) URL, use it as-is (do not check the filesystem). Otherwise turn it into an absolute path and confirm the file exists using your tools; if it does not resolve to a real file, STOP and ask the user for a valid path or URL. Note indication and any priors.
Pick the grounding method — use method if given, otherwise default to zeroshot. none means an unaided read with no grounding.
Ground the findings — open the grounding skill for the chosen method and follow it exactly:
zeroshot → ground-zeroshotadapter → ground-adapternone → skip; read the image unaided.Follow the linked skill's own steps to get the per-finding calls — do not call the MI2 tools directly and do not invent the label set. If grounding errors, STOP (see On error).
Write the report — using the findings, write it in the exact format in Report format below.
Emit the output envelope — see Output.
Use this section structure, in this order, with all-caps headers:
INDICATION:
TECHNIQUE:
FINDINGS:
IMPRESSION:
Not provided.Frontal chest radiograph.Borrow phrasings from references/phrase-bank.md.
Right lower lobe pneumonia.possible or differential includes.cannot exclude.No pleural effusion or pneumothorax.The report must read as the radiologist's direct interpretation of the image. Do not mention the tools, models, classifiers, scores, thresholds, or any system internals used to produce the findings.
The skill emits exactly this envelope — <info> holds the grounding details (method, evidence, confidence); <report> holds the clean radiologist report. Match this structure exactly:
<output>
<info>
Grounding: zeroshot
Evidence: Consolidation 0.62 (positive), Pneumonia 0.48 (positive), Effusion 0.06 (absent)
Confidence: medium
Note: research/educational example, not for clinical use.
</info>
<report>
INDICATION: Cough and fever.
TECHNIQUE: Frontal AP chest radiograph.
FINDINGS: Patchy opacity in the right lower lobe, compatible with consolidation. The remaining lungs are clear. No pleural effusion or pneumothorax. Cardiomediastinal silhouette is within normal limits for technique. No acute osseous abnormality. No support devices.
IMPRESSION:
1. Right lower lobe consolidation, compatible with pneumonia.
2. No pleural effusion or pneumothorax.
</report>
</output>
Grounding — none, zeroshot, or adapter (head).Evidence — the per-finding calls/scores from grounding, or unaided read for none.Confidence — low, medium, or high, derived from the grounding evidence and image quality. Use low when image quality limits the read, and note that in FINDINGS.<report> — the clean report only: no <info> content, no method/model/score talk.If image resolution or grounding fails, STOP. In plain prose, say what failed and the likely fix (for example: run setup, or check that the image path is correct and reachable). Emit NO <output>, <info>, or <report> block — not even an empty one. Never retry blindly or write an ungrounded report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Read when SKILL.md points to them.
4 skills in this plugin
/ground-adapterGround CXR findings using the trained MI2 adapter. Returns per-finding positive/possible/negative calls for the agent to use when writing the report./ground-zeroshotGround CXR findings using MI2 zero-shot classification. Returns per-finding probabilities bucketed into positive/possible for the agent to use when writing the report./helpEntry point for the MedImageInsight plugin, covering the getting-started walkthrough, how the skills work, what MI2 is, and troubleshooting.npx claudepluginhub microsoft/healthcareai-examples --plugin medimageinsightOther plugins' skills for the same job