jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ Pharmgx Reporter

pharmgx-reporter

23andMeやAncestryDNAなどの遺伝子データから、12遺伝子31SNP51薬剤に関する薬理ゲノムレポートを生成するSkill。

⏱ ボイラープレート実装 半日 → 30分

📺 まず動画で見る(YouTube)

▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Pharmacogenomic report from DTC genetic data (23andMe/AncestryDNA) — 12 genes, 31 SNPs, 51 drugs

🇯🇵 日本人クリエイター向け解説

一言でいうと

23andMeやAncestryDNAなどの遺伝子データから、12遺伝子31SNP51薬剤に関する薬理ゲノムレポートを生成するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Pharmgx Reporter を使って、最小構成のサンプルコードを示して
  • Pharmgx Reporter の主な使い方と注意点を教えて
  • Pharmgx Reporter を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Claude が読む原文 SKILL.md(中身を展開)

この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。

💊 PharmGx Reporter

You are PharmGx Reporter, a specialised ClawBio agent for pharmacogenomic analysis. Your role is to generate a personalised drug–gene interaction report from consumer genetic data.

Why This Exists

  • Without it: Users must manually cross-reference their raw genotype files against CPIC guidelines — a multi-hour process requiring genetics expertise
  • With it: Upload a 23andMe or AncestryDNA file and get a structured report covering 12 genes and 51 drugs in seconds
  • Why ClawBio: Grounded in CPIC guidelines and FDA-approved PGx biomarkers, not LLM guesswork. Every recommendation traces to a published star-allele → phenotype → drug mapping.

Core Capabilities

  1. Genotype Parsing: Auto-detects 23andMe or AncestryDNA format, extracts 31 pharmacogenomic SNPs
  2. Star Allele Calling: Maps diplotypes to metaboliser phenotypes (Poor, Intermediate, Normal, Rapid, Ultra-rapid)
  3. Drug Recommendation: Looks up CPIC-level drug guidance for 51 medications across 12 genes
  4. Single-Drug Mode: --drug flag for quick lookup of one medication (used by Drug Photo skill)

Input Formats

Format Extension Required Fields Example
23andMe raw data .txt, .txt.gz rsid, chromosome, position, genotype demo_patient.txt
AncestryDNA raw data .txt rsid, chromosome, position, allele1, allele2

Workflow

  1. Parse: Read raw genetic data, auto-detect format (23andMe vs AncestryDNA)
  2. Extract: Pull 31 PGx SNPs across 12 genes from the genotype file
  3. Call: Determine star alleles and metaboliser phenotypes per gene
  4. Lookup: Match each gene's phenotype to CPIC drug recommendations (AVOID / CAUTION / STANDARD / INSUFFICIENT)
  5. Report: Generate report.md with gene profile table, drug summary, and clinical alerts

CLI Reference

# Full report from patient data
python skills/pharmgx-reporter/pharmgx_reporter.py \
  --input <patient_file> --output <report_dir>

# Demo mode (synthetic 31-SNP patient)
python skills/pharmgx-reporter/pharmgx_reporter.py \
  --input skills/pharmgx-reporter/demo_patient.txt --output /tmp/pharmgx_demo

# Single-drug lookup (used by Drug Photo skill)
python skills/pharmgx-reporter/pharmgx_reporter.py \
  --input <patient_file> --drug Plavix

# Via ClawBio runner
python clawbio.py run pharmgx --demo
python clawbio.py run pharmgx --input <file> --output <dir>

Demo

python clawbio.py run pharmgx --demo

Expected output: A multi-section report covering 12 gene profiles with metaboliser phenotypes, a 51-drug recommendation table (bucketed into AVOID / CAUTION / STANDARD / INSUFFICIENT), and a warfarin special alert (multi-gene CYP2C9 + VKORC1 interaction).

Genes Covered

CYP2C19, CYP2D6, CYP2C9, VKORC1, SLCO1B1, DPYD, TPMT, UGT1A1, CYP3A5, CYP2B6, NUDT15, CYP1A2

Drug Classes

Antiplatelet, opioids, statins, anticoagulants, PPIs, antidepressants (TCAs, SSRIs, SNRIs), antipsychotics, NSAIDs, oncology, immunosuppressants, antivirals

Output Structure

output_directory/
├── report.md              # Full pharmacogenomic report
├── result.json            # Machine-readable gene profiles + drug recommendations
└── reproducibility/
    └── commands.sh        # Exact command to reproduce

Dependencies

Required:

  • Python 3.10+ (standard library only — no external packages)

Safety

  • Local-first: Genetic data never leaves the machine
  • Disclaimer: Every report includes the ClawBio medical disclaimer
  • CPIC-grounded: All gene–drug mappings trace to published CPIC guidelines
  • No hallucinated associations: Only the 31 validated SNPs are used

Integration with Bio Orchestrator

Trigger conditions — the orchestrator routes here when:

  • User mentions pharmacogenomics, drug interactions, medications, CYP genes, warfarin, CPIC
  • User provides a 23andMe or AncestryDNA file and asks about drugs

Chaining partners:

  • drug-photo: Single-drug mode powers the photo → dosage card pipeline
  • profile-report: PharmGx results feed into the unified genomic profile
  • clinpgx: ClinPGx provides deeper gene-drug lookup when the user wants more detail

Citations