Agent skill

Drug Photo

by ClawBio in ClawBio/ClawBio

Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance

MITAuto-check passedResearch & Science

Install Drug Photo

skills CLI
$ npx skills add ClawBio/ClawBio --skill drug-photo -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ClawBio/ClawBio drug-photo --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ClawBio/ClawBio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/drug-photo .claude/skills/drug-photo && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
drug-photo
GitHub stars
1.2k
Used in
2 other repos
Token cost
~1.4k tokens
SKILL.md length
478 words
Files
16
Skills in repo
104
Repo updated
First seen
Licence
MIT

At a glance

Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance

  • Works in 4 steps: Drug Identification: Claude vision… → Fuzzy Matching: Brand/generic name… → Genotype Lookup: Reads real 23andMe data… → …
  • Research & Science work in your project
  • SKILL.md covers Why This Exists, Core Capabilities, Workflow and Supported Drugs (51), plus 9 more sections
  • Calls python

What it does

Drug Photo is an agent skill from ClawBio/ClawBio. Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files (for example `demo-images/INDEX.md`).

It sits in Research & Science. The repository describes itself as: 🦖 ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free. The licence is MIT.

When your agent uses it

  • Research & Science work in your project

Example prompts

  • “/drug-photo”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit dece754. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • cpicpgx.org
    • fda.gov

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Drug Photo loads about 1.4k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 478 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ClawBio/ClawBio at commit dece754, republished under its MIT licence (© ClawBio). 478 words, ~1,371 tokens.

Download SKILL.mdSave it as .claude/skills/drug-photo/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
drug-photo
description
Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance
license
MIT
metadata.version
0.1.0
metadata.author
Manuel Corpas
metadata.tags
pharmacogenomics, computer-vision, drug-identification, dosage-guidance

📸 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:

GeneExample Drugs
CYP2C19Clopidogrel (Plavix), Omeprazole (Prilosec), Sertraline (Zoloft), Voriconazole
CYP2D6Codeine, Tamoxifen (Nolvadex), Fluoxetine (Prozac), Metoprolol (Lopressor)
CYP2C9Phenytoin, Celecoxib (Celebrex), Meloxicam
CYP2C9+VKORC1Warfarin (Coumadin) — multi-gene
SLCO1B1Simvastatin (Zocor), Atorvastatin (Lipitor)
DPYDFluorouracil (5-FU), Capecitabine (Xeloda)
TPMTAzathioprine (Imuran), Mercaptopurine
UGT1A1Irinotecan (Camptosar)
CYP3A5Tacrolimus (Prograf)
CYP2B6Efavirenz (Sustiva)
CYP1A2Clozapine (Clozaril)
NUDT15Thiopurines
Show full SKILL.md (208 more words)Show less

Classification Labels

LabelMeaning
STANDARD DOSINGGenotype supports recommended dose
USE WITH CAUTIONDose adjustment or monitoring may be needed
AVOID — DO NOT USEGenotype contraindicates this drug
INSUFFICIENT DATAGene 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

© ClawBio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files in skills/drug-photo of ClawBio/ClawBio.

  • SKILL.md
  • demo-images/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

Open the folder on GitHubat commit dece754

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in ClawBio/ClawBio, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Drug Photo next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Drug Photo compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Drug Photo this skillClawBio/ClawBio1.2k2 repos~1.4kAutomated safety check: PassMIT
Hypothesis Generationspacering-net/codeg3.9k14 repos~3.6kAutomated safety check: NotesMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Nature Paper CardYuan1z0825/nature-skills47k2 repos~2.1kAutomated safety check: PassApache-2.0
Content Research Writerweapp-tailwindcss/weapp-tailwindcss1.9k25 repos~3.5kAutomated safety check: PassMIT
Last30daysmvanhorn/last30days-skill64k—~7.9kAutomated safety check: NotesMIT

Similar skills

  • Hypothesis Generation

    spacering-net/codeg

    Structured hypothesis formulation from observations. An agent skill from spacering-net/codeg.

    3.9k GitHub starsUsed in 14 repos~3.6k tokens
    Research & ScienceAuto-check: notes
  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Nature Paper Card

    Yuan1z0825/nature-skills

    Builds a structured deep-reading card for one scientific paper, covering methods, how experiments support claims, limitations and research ideas, with a script to prepare the source.

    47k GitHub starsUsed in 2 repos~2.1k tokens
    Research & ScienceAuto-check passed
  • Content Research Writer

    weapp-tailwindcss/weapp-tailwindcss

    Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section.

    1.9k GitHub starsUsed in 25 repos~3.5k tokens
    Research & ScienceAuto-check passed
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Peer Review

    spacering-net/codeg

    Structured manuscript/grant review with checklist-based evaluation.

    3.9k GitHub starsUsed in 17 repos~5.9k tokens
    Research & ScienceAuto-check: notes

More from ClawBio/ClawBio

All 104 skills in this repo
  • Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~4.7k tokens
    Auto-check passed
  • Xena Tcga Gene Query

    ClawBio/ClawBio

    Query TCGA tumor biology through the ucscxenatoolspy API. An agent skill from ClawBio/ClawBio.

    1.2k GitHub stars~4.7k tokensUpdated 2 days ago
    Auto-check passed
  • Fetch a region of GWAS summary statistics from the NHGRI-EBI GWAS Catalog harmonised collection via tabix-on-FTP.

    1.2k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Dnasp

    ClawBio/ClawBio

    Population genetics of pre-aligned DNA sequences or multi-sample VCFs using selected DnaSP 6 methods.

    1.2k GitHub stars~5.1k tokensUpdated 2 days ago
    Auto-check passed
  • Compute pairwise r² between a lead variant and every variant in a window using the 1000 Genomes Phase 3 GRCh38 reference panel, ancestry-stratified.

    1.2k GitHub stars~3.9k tokensUpdated 2 days ago
    Auto-check passed
  • Ncbi Datasets

    ClawBio/ClawBio

    Download genomes, genes, virus sequences, and taxonomy data from NCBI using the datasets and dataformat CLI tools.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed

Questions about Drug Photo

What does Drug Photo do?

Medication photo to personalised PGx dosage card via Claude vision — snap a pill, get genotype-informed guidance. Drug Photo is an agent skill from ClawBio/ClawBio.

When should I use Drug Photo?

Drug Photo fits situations like: research & Science work in your project.

How do I install Drug Photo in Claude Code?

Run `npx skills add ClawBio/ClawBio --skill drug-photo -a claude-code`. Or copy the skill folder (skills/drug-photo in ClawBio/ClawBio) into .claude/skills/drug-photo in your project. Claude Code loads it when a task matches its description.

How do I install Drug Photo in Codex?

Run `npx skills add ClawBio/ClawBio --skill drug-photo -a codex`. Or copy the skill folder (skills/drug-photo in ClawBio/ClawBio) into .agents/skills/drug-photo in your project. Codex loads it when a task matches its description.

Can I use Drug Photo in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ClawBio/ClawBio --skill drug-photo -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drug-photo, .gemini/skills/drug-photo, .github/skills/drug-photo and .opencode/skills/drug-photo in your project.

What does Drug Photo need to run?

Going by SKILL.md and its folder, Drug Photo needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Drug Photo access the network?

SKILL.md names 2 domains. As links in the text: cpicpgx.org and fda.gov. This is read from the text; nothing was executed.

Is Drug Photo safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Drug Photo use?

Drug Photo is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Drug Photo use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Drug Photo?

Skills that share tags, products or a category with Drug Photo: Hypothesis Generation (spacering-net/codeg, 3.9k stars), GitHub Deep Research (bytedance/deer-flow, 84k stars), Nature Paper Card (Yuan1z0825/nature-skills, 47k stars) and Content Research Writer (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Drug Photo?

ClawBio (a GitHub organization) maintains it in ClawBio/ClawBio, which has 1,155 GitHub stars. The repository holds 104 skills in this directory. The repository was last updated on October 9, 2026.

Source: ClawBio/ClawBio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.