drug-photo
Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
Skill by Manuel Corpas
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/clawbio-drug-photo
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/drug-photo
What's inside
- Skill name
drug-photo- Description
- Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
- License
- MIT
- Metadata
- author: Manuel Corpas · version: 0.1.0
- Instructions
- 125 lines in SKILL.md · view on GitHub
Files (16)
- SKILL.md
- 00-00-warfarin.jpg · demo-images/
- 00-01-warfarin.jpg · demo-images/
- 00-02-warfarin.jpg · demo-images/
- 00-03-warfarin.jpg · demo-images/
- INDEX.md · demo-images/
- clopidogrel.jpg · demo-images/
- codeine.jpg · demo-images/
- fluoxetine.jpg · demo-images/
- metoprolol.jpg · demo-images/
- omeprazole.jpg · demo-images/
- sertraline.jpg · demo-images/
- simvastatin.jpg · demo-images/
- tacrolimus.jpg · demo-images/
- tamoxifen.jpg · demo-images/
- warfarin.jpg · demo-images/
SKILL.md (first lines)
# 📸 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
From ClawBio/ClawBio, MIT.
More from ClawBio/ClawBio
- 0.825score
polars-bio
ClawBio (adapted from K-Dense scientific-agent-skills/polars-bio)
Fast genomic interval operations (overlap, nearest, merge, coverage, cluster, complement, subtract, count-overlaps), multi-format bioinformatics I/O…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ena-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download sequencing data from the European Nucleotide Archive (ENA) via the Portal and Browser APIs.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gi-expression
ClawBio + Genomic Intelligence
Predict tissue / cell-type expression (log TPM + TPM) from 9,198–500,000 bp of DNA around a TSS, at least 4,599 bp each side (anything but exactly 9,198 bp…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
geo-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the NCBI Gene Expression Omnibus (GEO).
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ukb-ppp-region-fetch
ClawBio
Fetch a regional slice of plasma pQTL summary statistics from the UK Biobank Pharma Proteomics Project (UKB-PPP; Sun 2023 Nature) for a specific (protein…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
eqtl-catalogue-region-fetch
ClawBio
Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
protocols-io
ClawBio Contributors
Search, browse, and retrieve scientific protocols from protocols.io via REST API.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gwas-sumstats-harmonize
AlsammanAlsamman
Harmonize GWAS summary statistics from any common format (GWAS-Catalog SSF, PLINK 1.9/2, REGENIE, METAL, BOLT, SAIGE) to one canonical table (SNP CHR BP EA…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
prs-applicability-gate
Rinat Rizvanov
Deterministic gate for ONE already-computed polygenic score result and ONE person: returns SUPPORTED (raw score, standardised score and reference percentile…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
pride-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the PRIDE Archive, EMBL-EBI's proteomics identifications database, via the PRIDE Archive REST API v3.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
wgs-prs
David de Lorenzo
End-to-end WGS to polygenic risk score pipeline.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
biostudies-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from EMBL-EBI BioStudies, the database that describes biological studies and links their data across collections…
SkillAFreshness: A★ 1.2KClaude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 1,166
- Forks
- 288
- Open issues
- 27
- Last commit (this folder)
- Apr 24, 2026 (6 months ago)
- Last release
- Sep 11, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.1.0
- License
- MIT
- Repository
- github.com/ClawBio/ClawBio
- Website
- clawbio.github.io/ClawBio/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Manuel Corpas
- 0.819score
rare-high-impact-variants
Manuel Corpas
Count rare, high-impact loss-of-function variants carried in a VCF, annotated with molecular consequence and population allele frequency
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
profile-report
Manuel Corpas
Unified personal genomic profile report — reads a PatientProfile JSON and synthesizes all skill results into a single "Your Genomic Profile" document.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.815score
genome-compare
Manuel Corpas
Compare your genome to George Church (PGP-1) and estimate ancestry composition via IBS and EM admixture
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.815score
pharmgx-reporter
Manuel Corpas
Pharmacogenomic report from DTC genetic data (23andMe/AncestryDNA) — 12 genes, 31 SNPs, 51 drugs
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.815score
claw-ancestry-pca
Manuel Corpas
Ancestry decomposition PCA against the Simons Genome Diversity Project
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.815score
archaic-introgression
Manuel Corpas
Detect Neanderthal and Denisovan introgression segments from modern human genomes
SkillAFreshness: A★ 1.2KClaude Code +9
Cite this page
drug-photo skill. Agent Mart. https://agentmart.dev/skills/clawbio-drug-photo (last updated 2026-10-24)