报告撰写
write-report
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 204
- Forks
- 54
02 资源文件 1
- 参考文档references/phrase-bank.md5.5 KB
03 SKILL.md 正文
write-report
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].
Budget
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.
Workflow
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
imageis 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. Noteindicationand any priors. -
[ ] Pick the grounding method — use
methodif given, otherwise default tozeroshot.nonemeans 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.
Report format
Use this section structure, in this order, with all-caps headers:
INDICATION:
TECHNIQUE:
FINDINGS:
IMPRESSION:
- INDICATION — one short sentence on clinical context. If none was provided, write:
Not provided. - TECHNIQUE — one sentence describing the study (view, technique). Default:
Frontal chest radiograph. - FINDINGS — impersonal declarative sentences. Mention all standard structures (lungs, pleura, heart, mediastinum, bones, any devices) even when normal.
- IMPRESSION — numbered, prioritized by clinical significance. One concise statement per number. Hedging language permitted.
- Plain text only — no markdown. The all-caps section labels are the only headers.
Borrow phrasings from references/phrase-bank.md.
Style rules
- FINDINGS states observations; IMPRESSION states interpretations.
- Do not use markdown formatting, plain text only. No bold, italics, or lists.
- Match hedge strength to evidence:
- High evidence or high scores: state directly.
Right lower lobe pneumonia. - Moderate: use
possibleordifferential includes. - Low but non-zero: use
cannot exclude. - Absent: omit, or state the negative if clinically relevant.
- High evidence or high scores: state directly.
- State negatives explicitly. Group them:
No pleural effusion or pneumothorax. - No padding, filler, or clinical disclaimers.
- Present tense.
Critical rule
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.
Output
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, oradapter (head).Evidence— the per-finding calls/scores from grounding, orunaided readfornone.Confidence—low,medium, orhigh, derived from the grounding evidence and image quality. Uselowwhen image quality limits the read, and note that in FINDINGS.<report>— the clean report only: no<info>content, no method/model/score talk.
On error
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.
04 同仓库更多 Skills
MedImageInsight 插件帮助入口
help
MedImageInsight 插件的入口,涵盖入门指南、各技能的工作方式、MI2 是什么以及故障排查。
MI2 零样本胸片发现验证
ground-zeroshot
使用 MI2 零样本分类对 CXR(胸部 X 光)发现进行核实验证。返回每项发现的概率,并归入 positive/possible(阳性/可能)两类,供 Agent 撰写报告时使用。
MI2 适配器胸片发现验证
ground-adapter
使用训练好的 MI2 适配器对 CXR(胸部 X 光)发现进行核实验证。返回每项发现的 positive/possible/negative(阳性/可能/阴性)判定,供 Agent 撰写报告时使用。