med-pdf

med-pdf is a skill for Claude Code, Codex from realactivity/tula. It costs 96 tokens per session (930 once invoked), scanned A, original, Apache-2.0.

A tool that reads medical PDFs, images, and screenshots, such as lab results, radiology reports, discharge summaries, and pathology reports, and turns them into structured data.

In plain words
What is it for?
Use it to process MyChart or Epic exports, scan-based results, and other medical documents, or to compare results across visits and track changing values.
Why use it?
It removes the need to manually copy clinical information from documents before comparing or reviewing it. The extracted information stays in the workspace for further reasoning.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/realactivity/tula/med-pdf
Any agent
npx skills add realactivity/tula --skill med-pdf
Clone the repo
git clone --depth 1 https://github.com/realactivity/tula

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for med-pdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/realactivity/tula/med-pdf.svg)](https://agentmods.dev/skills/realactivity/tula/med-pdf)
Your own site
<a href="https://agentmods.dev/skills/realactivity/tula/med-pdf"><img src="https://agentmods.dev/badge/skills/realactivity/tula/med-pdf.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00096 $0.00930
Opus 5 $0.00048 $0.00465
Sonnet 5 $0.00019 $0.00186
Haiku 4.5 $0.00010 $0.00093

Measured 4d ago against content hash d958dd2a0af9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

med-pdf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/extract.mjs, scripts/parse_imaging.mjs, scripts/parse_labs.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/med-pdf/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

med-pdf

When to Use

✅ Use when:

  • The user sends a medical PDF (labs, radiology, discharge, pathology)
  • The user shares a screenshot/image of clinical results
  • The user asks to compare results across visits or trend a value
  • A MyChart/Epic export needs parsing before reasoning

When NOT to Use

❌ Don't use when:

  • The PDF is non-medical (insurance, EOB, billing)
  • The user wants to author a clinical message -> use epic-note
  • Anything that would send PHI outside the workspace

Setup

Profile. Resolve from the precedence in references/profile-schema.md (skill config -> env var -> ~/.openclaw/workspace/memory/profile.yaml). Use identity.short_name when addressing the user in summaries. The skill never contains the profile.

Workflow

  1. Extract - node {baseDir}/scripts/extract.mjs <input.pdf> <outDir>

    • outDir must be inside ~/.openclaw/workspace/. Suggested: ~/.openclaw/workspace/.med-pdf-cache/<slug>/.
    • Outputs text.txt, pageN.png, meta.json. Stdout JSON has numPages, hasText, textChars.
  2. Branch on hasText:

    • true -> skip OCR, feed text.txt to parsers.
    • false -> image-only (MyChart/Epic). Use the image tool on pageN.png for verbatim transcription. Save as text.txt, continue.
  3. Parse:

    • Imaging -> node {baseDir}/scripts/parse_imaging.mjs <outDir>
    • Labs -> node {baseDir}/scripts/parse_labs.mjs <outDir>
    • Both can run on a mixed document.
  4. Reason. Pull abnormal flags, compare to prior values, surface what matters for healthspan - see references/healthspan-priorities.md. Don't just summarize.

  5. Persist. Append to ~/.openclaw/workspace/memory/YYYY-MM-DD.md and update trends in MEMORY.md. PHI stays in workspace memory only.

Scripts

See references/scripts.md for per-script flags, output schemas, and dictionary maintenance for parse_labs.mjs.

Read the full file on GitHub · 95 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 95 lines · 96 tokens per session scan A d958dd2a0af9

Subscribe to this mod's changes

med-pdf is a skill published in the GitHub repository realactivity/tula (45 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 930 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

lab-report-walkthrough

Walk a person through their lab report — read the original document, organize results by panel, flag out-of-range values against the printed reference ranges, compare with their history, and explain in plain language. Use when the user uploads a lab report (PDF/image) or asks what their blood test results mean.

thetahealth/mirobody · 67 tokens

emergency-card

生成紧急情况下快速访问的医疗信息摘要卡片。当用户需要旅行、就诊准备、紧急情况或询问"紧急信息"、"医疗卡片"、"急救信息"时使用此技能。提取关键信息(过敏、用药、急症、植入物),支持多格式输出(JSON、文本、二维码),用于急救或快速就医。.

huifer/WellAlly-health · 92 tokens

wes-clinical-report-es

Generates professional clinical PDF reports in Spanish from WES (Whole Exome Sequencing) data with clinical interpretation, pharmacogenomic alerts, and follow-up recommendations.

ClawBio/ClawBio · 40 tokens

wes-clinical-report-en

Generates professional clinical PDF reports in English from WES (Whole Exome Sequencing) data with clinical interpretation summary, pharmacogenomic alerts, and follow-up recommendations.

ClawBio/ClawBio · 41 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens