Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Drug Photo

ASecurity

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

17 stars
0 votes
0 copies
0 views
Added 9/4/2026
researchpythongobashgitapi

Works with

cliapi

Security Analysis

A100/100

Scanned 9/4/2026

Install to Claude Code

$npx -y skills add gabrielmoreira/agent-skills-mirror --skill drug-photo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Drug Photo?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Drug Photo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-drug-photo-agent-skills-mirror/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-drug-photo-agent-skills-mirror)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
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
  author: Manuel Corpas
  tags:
  - pharmacogenomics
  - computer-vision
  - drug-identification
  - dosage-guidance
  openclaw:
    requires:
      bins:
      - python3
    always: false
    emoji: 📸
    homepage: https://github.com/ClawBio/ClawBio
    os:
    - darwin
    - linux
    trigger_keywords:
    - drug photo
    - medication photo
    - pill photo
    - drug image
---

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

Attribution

gabrielmoreiragabrielmoreira
View sourceMore from gabrielmoreira →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Competitor Analysis

This skill provides comprehensive analysis of competitor SEO and GEO strategies, revealing what's working in your market and identifying opportunities to outperform the competition.

1823 votes

Deep Research

Universal deep research agent team. 13-agent pipeline for rigorous academic research on any topic. 8 modes: full research, quick brief, paper review, lit-review, fact-check, three-way literature scan, Socratic guided research dialogue, and systematic review with optional meta-analysis. Covers research question formulation, Socratic mentoring, methodology design, systematic literature search, source verification, cross-source synthesis, risk of bias assessment, meta-analysis, APA 7.0 report co...

492472 votes

Paperclip Distill

Use when an operation issue is a Paperclip cursor-window, distill, or backfill — `operationType: "distill"` or `"backfill"` and the body references a Paperclip source bundle for a project or root issue. Turn raw Paperclip activity into a wiki-insightful project page, decisions log, and history note. This skill exists specifically to replace the stiff, datestamp-heavy templated output that the deterministic distiller produces.

813271 votes

Academic Pipeline

Orchestrator for the full academic research pipeline: research -> write -> integrity check -> review -> revise -> re-review -> re-revise -> final integrity check -> finalize. Coordinates deep-research, academic-paper, and academic-paper-reviewer into a seamless 10-stage workflow with mandatory, coverage-bounded integrity checks, two-stage peer review, and auditable quality-assurance artifacts. Triggers on: academic pipeline, research to paper, full paper workflow, paper pipeline, end-to-end p...

492471 votes

Exa Search

Semantic search, similar content discovery, and structured research using Exa API

304951 votes
View all in research →