drug-photo
Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
Best use case
drug-photo is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
Teams using drug-photo should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/drug-photo/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How drug-photo Compares
| Feature / Agent | drug-photo | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 📸 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 1. **Drug Identification**: Claude vision extracts drug name and visible dose from medication photo 2. **Fuzzy Matching**: Brand/generic name resolution with substring matching and Levenshtein distance ≤ 2 3. **Genotype Lookup**: Reads real 23andMe data (gzip-compressed `.txt.gz` supported) for the relevant gene 4. **Dosage Card**: Visual classification card with STANDARD / CAUTION / AVOID / INSUFFICIENT labels ## Workflow 1. **Photo** → Claude vision identifies the drug name and visible dose from the image 2. **Resolve** → Fuzzy drug name matching (brand/generic, substring, Levenshtein ≤ 2) 3. **Genotype** → Reads real 23andMe data (gzip-compressed `.txt.gz` supported) 4. **Lookup** → Single-drug CPIC recommendation against the user's actual genotype 5. **Card** → Visual dosage card with classification, dose context, and FDA references ## Supported Drugs (51) All drugs from the CPIC guideline set across 12 genes: | Gene | Example Drugs | |------|---------------| | CYP2C19 | Clopidogrel (Plavix), Omeprazole (Prilosec), Sertraline (Zoloft), Voriconazole | | CYP2D6 | Codeine, Tamoxifen (Nolvadex), Fluoxetine (Prozac), Metoprolol (Lopressor) | | CYP2C9 | Phenytoin, Celecoxib (Celebrex), Meloxicam | | CYP2C9+VKORC1 | Warfarin (Coumadin) — multi-gene | | SLCO1B1 | Simvastatin (Zocor), Atorvastatin (Lipitor) | | DPYD | Fluorouracil (5-FU), Capecitabine (Xeloda) | | TPMT | Azathioprine (Imuran), Mercaptopurine | | UGT1A1 | Irinotecan (Camptosar) | | CYP3A5 | Tacrolimus (Prograf) | | CYP2B6 | Efavirenz (Sustiva) | | CYP1A2 | Clozapine (Clozaril) | | NUDT15 | Thiopurines | ## Classification Labels | Label | Meaning | |-------|---------| | STANDARD DOSING | Genotype supports recommended dose | | USE WITH CAUTION | Dose adjustment or monitoring may be needed | | AVOID — DO NOT USE | Genotype contraindicates this drug | | INSUFFICIENT DATA | Gene not profiled or phenotype unmapped | ## CLI Reference ```bash # 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 ```bash 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: ``` clawbio(skill="drugphoto", mode="demo", drug_name="Plavix", visible_dose="75mg") ``` ## Integration with Bio Orchestrator **Trigger conditions** — the orchestrator routes here when: - User sends a photo of a medication or pill - User asks "what does this drug do for my genotype" **Chaining partners**: - `pharmgx-reporter`: Drug Photo is powered by PharmGx Reporter's single-drug mode ## Citations - [CPIC Guidelines](https://cpicpgx.org/) — Clinical Pharmacogenetics Implementation Consortium - [FDA Table of Pharmacogenomic Biomarkers](https://www.fda.gov/drugs/science-and-research-drugs/table-pharmacogenomic-biomarkers-drug-labeling) — FDA-approved PGx drug labels
Related Skills
torchdrug
Graph-based drug discovery toolkit. Molecular property prediction (ADMET), protein modeling, knowledge graph reasoning, molecular generation, retrosynthesis, GNNs (GIN, GAT, SchNet), 40+ datasets, for PyTorch-based ML on molecules, proteins, and biomedical graphs.
tooluniverse-gwas-drug-discovery
Transform GWAS signals into actionable drug targets and repurposing opportunities. Performs locus-to-gene mapping, target druggability assessment, existing drug identification, safety profile evaluation, and clinical trial matching. Use when discovering drug targets from GWAS data, finding drug repurposing opportunities from genetic associations, or translating GWAS findings into therapeutic leads.
tooluniverse-drug-target-validation
Comprehensive computational validation of drug targets for early-stage drug discovery. Evaluates targets across 10 dimensions (disambiguation, disease association, druggability, chemical matter, clinical precedent, safety, pathway context, validation evidence, structural insights, validation roadmap) using 60+ ToolUniverse tools. Produces a quantitative Target Validation Score (0-100) with GO/NO-GO recommendation. Use when users ask about target validation, druggability assessment, target prioritization, or "is X a good drug target for Y?"
tooluniverse-drug-research
Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections. Covers identity, chemistry, pharmacology, targets, clinical trials, safety, pharmacogenomics, and ADMET properties. Use when users ask about drugs, medications, therapeutics, or need drug profiling, safety assessment, or clinical development research.
tooluniverse-drug-repurposing
Identify drug repurposing candidates using ToolUniverse for target-based, compound-based, and disease-driven strategies. Searches existing drugs for new therapeutic indications by analyzing targets, bioactivity, safety profiles, and literature evidence. Use when exploring drug repurposing opportunities, finding new indications for approved drugs, or when users mention drug repositioning, off-label uses, or therapeutic alternatives.
tooluniverse-drug-drug-interaction
Comprehensive drug-drug interaction (DDI) prediction and risk assessment. Analyzes interaction mechanisms (CYP450, transporters, pharmacodynamic), severity classification, clinical evidence grading, and provides management strategies. Supports single drug pairs, polypharmacy analysis (3+ drugs), and alternative drug recommendations. Use when users ask about drug interactions, medication safety, polypharmacy risks, or need DDI assessment for clinical decision support.
modern-drug-rehab-computer
Comprehensive knowledge system for addiction recovery environments, supporting both residential and outpatient (IOP/PHP) patients. Expert in evidence-based treatment modalities (CBT, DBT, MI, EMDR, MAT), recovery resources, coping strategies, crisis intervention, family systems, and holistic wellness. Activate on "rehab", "addiction recovery", "substance abuse", "treatment center", "IOP", "PHP", "detox", "sobriety support", "MAT", "Suboxone", "methadone", "12 step", "SMART Recovery". NOT for prescribing medications (consult medical professionals), emergency overdose situations (call 911), or replacing licensed counselors/therapists.
drugbank-search
Search DrugBank comprehensive drug database with natural language queries. Drug mechanisms, interactions, and safety data powered by Valyu.
drugbank-database
Access and analyze comprehensive drug information from the DrugBank database including drug properties, interactions, targets, pathways, chemical structures, and pharmacology data. This skill should be used when working with pharmaceutical data, drug discovery research, pharmacology studies, drug-drug interaction analysis, target identification, chemical similarity searches, ADMET predictions, or any task requiring detailed drug and drug target information from DrugBank.
drug-labels-search
Search FDA drug labels with natural language queries. Official drug information, indications, and safety data via Valyu.
drug-discovery-search
End-to-end drug discovery platform combining ChEMBL compounds, DrugBank, targets, and FDA labels. Natural language powered by Valyu.
zinc-database
Access ZINC (230M+ purchasable compounds). Search by ZINC ID/SMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.