AGENT SKILL

胸片报告生成(MI2适配器)

write-report-adapter

基于训练好的 MedImageInsight (MI2) 适配器撰写胸部 X 光(CXR)报告。当适配器可用且需要起草 CXR 报告时调用——先获取基于视觉的逐项阳性/可疑/阴性判定,再将正文撰写交给 `write-report-simple` 处理。

License 许可
MIT
最近更新
2026-09-02
Stars
★ 6
Forks
0

01 前言 Front Matter

name
write-report-adapter
description
Write a chest X-ray report grounded in the trained MedImageInsight (MI2) adapter. Invoke whenever drafting a CXR report when the adapter is available — get vision-grounded per-finding positive/possible/negative calls, then delegate the prose to `write-report-simple`.
argument-hint
- image_path: required path to the CXR image (PNG or JPEG) - head: optional adapter head — "mlp" (default) or "svm"

03 SKILL.md 正文

write-report-adapter

Two-step skill: (1) call the trained MI2 adapter to get per-finding positive/possible/negative calls for the image, then (2) hand those off to the existing write-report-simple skill to produce the actual report. The report itself never mentions MI2, the adapter, or any classifier — it reads as the radiologist's direct read of the image.

Budget

  • Tool calls: 1 — exactly one mcp_medimageinsig_adapter_classify call per image.
  • Output: ≤ 200 words for the full report.
  • Do not re-invoke skills already used in this turn.
  • Do not retry tool calls on success.

How to use

  1. Resolve the image to an absolute path. The MCP tool runs in a different working directory than the agent. If image_path is not absolute, resolve it (e.g. via realpath) before calling the tool. If you can't resolve it, ask the user.

  2. Get calls from the adapter.

    • Call mcp_medimageinsig_adapter_classify with file_path = the absolute path from step 1, and head = the caller's head if provided (otherwise omit; defaults to mlp).
    • The adapter returns {label: "positive" | "possible" | "negative"} — already bucketed using per-class operating points fit during training (Youden-J for rule-in, sens90 for rule-out). No further thresholding.
  3. Hand off to write-report-simple. Invoke the write-report-simple skill (already in the workspace skill drawer at .github/skills/write-report-simple/). Pass:

    • findings: the list of labels with call "positive" or "possible", using the original adapter label names. Omit negatives.

    The downstream skill derives confidence from the positive/possible mix. The adapter's possible label maps to hedged language (possible, differential includes, cannot exclude) in the report.

  4. Return what write-report-simple returns. Do not re-wrap, re-format, or annotate the report. The downstream skill emits the <confidence> and <report> blocks; pass them through unchanged.

Critical rule

The report must not mention MI2, the adapter, classifier scores, or any model output. That's the responsibility of write-report-simple (which has the rule baked in), but it's worth restating here: this skill exists to ground the report in vision-model evidence, not to surface that evidence in the prose. If you want to attribute or caveat the model in the chat reply outside the <report> tags, that's fine.

04 同仓库更多 Skills

microsoft
microsoft/siim-workshop-2026

结合病历的胸片报告生成

write-report-with-ehr

基于训练好的 MedImageInsight (MI2) 适配器以及患者电子病历(EHR)记录,撰写上下文感知的胸部 X 光报告。新增 COMPARISON(对比)章节,并使用最近一次的既往报告来指出间期变化。

医师临床文档处理与决策支持
★ 6
microsoft
microsoft/siim-workshop-2026

患者电子病历(EHR)查询

lookup-patient-history

为给定的胸部 X 光片加载合成的患者电子病历(EHR)记录(人口统计学信息、现病史 HPI、问题列表、用药、设备、既往影像检查及报告)。在需要患者病史的上下文感知报告流程中,作为第一步调用。不进行模型调用。

医师临床文档处理与决策支持
★ 6
microsoft
microsoft/siim-workshop-2026

胸片报告生成(MI2零样本)

write-report-zeroshot

基于 MedImageInsight (MI2) 零样本分类器评分撰写胸部 X 光(CXR)报告。当 MI2 可用且需要起草 CXR 报告时调用——先获取基于视觉的逐项概率,再将正文撰写交给 `write-report-simple` 处理。

医师临床文档处理与决策支持
★ 6
microsoft
microsoft/siim-workshop-2026

胸片报告生成(MI2适配器)

write-report-adapter

基于训练好的 MedImageInsight (MI2) 适配器撰写胸部 X 光(CXR)报告。当适配器可用且需要起草 CXR 报告时调用——先获取基于视觉的逐项阳性/可疑/阴性判定,再将正文撰写交给 `write-report-simple` 处理。

医师临床文档处理与决策支持
★ 6
microsoft
microsoft/siim-workshop-2026

胸片报告生成(MI2零样本)

write-report-zeroshot

基于 MedImageInsight (MI2) 零样本分类器评分撰写胸部 X 光(CXR)报告。当 MI2 可用且需要起草 CXR 报告时调用——先获取基于视觉的逐项概率,再将正文撰写交给 `write-report-simple` 处理。

医师临床文档处理与决策支持
★ 6
microsoft
microsoft/siim-workshop-2026

胸部 X 光报告撰写

write-report-simple

TODO

医师临床文档处理与决策支持
★ 6