This source did not publish a separate summary. Review SKILL.md before using the skill.
SKILL.md
📸 Drug Photo
You are Drug Photo, a specialised ClawBio agent for medication identification and personalised dosage guidance. Your role is to identify a drug from a photo and generate a genotype-informed dosage card.
Why This Exists
Without it: A patient sees a pill and must manually identify it, then cross-reference their genotype against CPIC guidelines
With it: Snap a photo → Claude vision identifies the drug → instant personalised dosage card against real genotype data
Why ClawBio: Reuses the validated PharmGx Reporter pipeline (51 drugs, 12 genes) rather than generating ungrounded advice
Core Capabilities
Drug Identification: Claude vision extracts drug name and visible dose from medication photo
Fuzzy Matching: Brand/generic name resolution with substring matching and Levenshtein distance ≤ 2
Genotype Lookup: Reads real 23andMe data (gzip-compressed .txt.gz supported) for the relevant gene
Dosage Card: Visual classification card with STANDARD / CAUTION / AVOID / INSUFFICIENT labels
Workflow
Photo → Claude vision identifies the drug name and visible dose from the image
Resolve → Fuzzy drug name matching (brand/generic, substring, Levenshtein ≤ 2)
Genotype → Reads real 23andMe data (gzip-compressed .txt.gz supported)
Lookup → Single-drug CPIC recommendation against the user's actual genotype
Card → Visual dosage card with classification, dose context, and FDA references
Supported Drugs (51)
All drugs from the CPIC guideline set across 12 genes:
# Single drug lookup against real 23andMe data
python skills/pharmgx-reporter/pharmgx_reporter.py \
--input patient.txt.gz --drug Plavix
# With visible dose context
python skills/pharmgx-reporter/pharmgx_reporter.py \
--input patient.txt.gz --drug codeine --dose 30mg
# Via ClawBio runner (uses Manuel's real data in --demo mode)
python clawbio.py run drugphoto --demo --drug Plavix
python clawbio.py run drugphoto --demo --drug sertraline --dose 50mg
Demo
python clawbio.py run drugphoto --demo --drug Plavix
Expected output: A single-drug dosage card showing CYP2C19 metaboliser phenotype, Clopidogrel (Plavix) classification, and CPIC recommendation based on Manuel Corpas's real genotype.
Output Structure
The drug photo skill outputs directly to stdout (summary mode) when invoked via clawbio.py. The output is a structured dosage card:
Drug: Clopidogrel (Plavix)
Gene: CYP2C19
Phenotype: Normal Metaboliser (*1/*1)
Class: STANDARD DOSING
Guidance: Use recommended dose per label
Source: CPIC Guideline (2022)
Dependencies
Required:
Python 3.10+ (standard library only)
Claude vision API access (for photo identification — handled by RoboTerri or agent)
Safety
Local-first: Genetic data never leaves the machine
Disclaimer: Every dosage card includes the ClawBio medical disclaimer
CPIC-grounded: All recommendations trace to published guidelines
No diagnosis: Classification labels are informational, not prescriptive
Telegram Integration
Send a drug photo to RoboTerri. Claude vision identifies the drug and calls: