Agent skill

Variant Pharmacogenomics

by InternScience in InternScience/scp

Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions.

MITAuto-check passed

Install Variant Pharmacogenomics

skills CLI
$ npx skills add InternScience/scp --skill variant-pharmacogenomics -a claude-code

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

GitHub CLI
$ gh skill install InternScience/scp variant-pharmacogenomics --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/InternScience/scp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/variant-pharmacogenomics .claude/skills/variant-pharmacogenomics && 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
variant-pharmacogenomics
GitHub stars
169
Used in
1 other repo
Token cost
~564 tokens
SKILL.md length
9 words
Files
1
Skills in repo
73
Repo updated
First seen
Licence
MIT

At a glance

Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions.

  • Reaches api.clinpgx.org and pharmgkb.org

What it does

Variant Pharmacogenomics is an agent skill from InternScience/scp. Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions.

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/variant-pharmacogenomics”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit cea5398. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are tex and python).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.clinpgx.org
    • pharmgkb.org

    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

Variant Pharmacogenomics loads about 564 tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 9 words of instructions outside code blocks.

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

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 InternScience/scp at commit cea5398, republished under its MIT licence (© InternScience). 9 words, ~564 tokens.

Download SKILL.mdSave it as .claude/skills/variant-pharmacogenomics/SKILL.md (or your agent's skills folder).
name
variant-pharmacogenomics
description
Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions.
license
MIT license
metadata.skill-author
PJLab

PharmGKB (clinPGx) — Pharmacogenomic Annotations

Usage

Tool Description
tex
Query PharmGKB clinical annotations API to find drug-gene-variant interactions.
Database: PharmGKB / clinPGx (https://www.pharmgkb.org/)
API: GET https://api.clinpgx.org/v1/data/clinicalAnnotation?location.fingerprint={rsid}&view=base
Args:
    rs_id (str): dbSNP rsID (e.g. "rs7412")
Return:
    Clinical annotations: related drugs (chemicals), evidence level (1A/1B/2A/2B/3/4),
    related diseases, gene (APOE etc.), phenotype categories (efficacy/toxicity/dosage/PK),
    related guidelines and FDA labels.

Return Fields Explanation:
    - relatedChemicals: 关联的药物/化合物名称和 PharmGKB ID
    - levelOfEvidence.term: 证据级别 (1A=最强, 有CPIC/DPWG指南; 4=最弱, 个案报告)
    - location.genes: 变异所在基因
    - relatedDiseases: 关联疾病
    - types: 注释类型 (Efficacy=疗效, Toxicity=毒性, Dosage=剂量, PK=药代动力学)
    - relatedGuidelines: 关联的用药指南 (CPIC, DPWG 等)
    - relatedLabels: 关联的 FDA 药品标签
Query Example
python
import requests

rs_id = "rs7412"
url = f"https://api.clinpgx.org/v1/data/clinicalAnnotation?location.fingerprint={rs_id}&view=base"
resp = requests.get(url, timeout=30).json()

if isinstance(resp, dict) and "data" in resp:
    annotations = resp["data"]
elif isinstance(resp, list):
    annotations = resp
else:
    annotations = []

print(f"[PharmGKB] {rs_id} 药物基因组注释数: {len(annotations)}")

for i, ann in enumerate(annotations):
    # 药物
    drugs = [c.get("name", "") for c in ann.get("relatedChemicals", [])]
    # 证据级别
    evidence = ann.get("levelOfEvidence", {}).get("term", "N/A")
    # 基因
    genes = [g.get("symbol", "") for g in ann.get("location", {}).get("genes", [])]
    # 疾病
    diseases = [d.get("name", "") for d in ann.get("relatedDiseases", [])]
    # 注释类型
    ann_types = ann.get("types", [])

    print(f"\n  [{i+1}] 药物: {drugs}")
    print(f"       证据级别: {evidence}")
    print(f"       基因: {genes}")
    print(f"       类型: {ann_types}")
    if diseases:
        print(f"       疾病: {diseases}")

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

Files

Just SKILL.md in skills/variant-pharmacogenomics of InternScience/scp.

Open the folder on GitHubat commit cea5398

Used in 2 other repositories

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

Compare with similar skills

Variant Pharmacogenomics 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.

Variant Pharmacogenomics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Variant Pharmacogenomics this skillInternScience/scp1691 repos~564Automated safety check: PassMIT
Annotating Variantsmaziyarpanahi/openmed5.5k—~2.1kAutomated safety check: PassApache-2.0
Variant Annotationaipoch/medical-research-skills2k—~3.5kAutomated safety check: PassMIT
Bio Variant AnnotationFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.9kAutomated safety check: PassNone
Bio Clinical Databases PharmacogenomicsFreedomIntelligence/OpenClaw-Medical-Skills3.1k—~1.9kAutomated safety check: PassNone
Variant AnnotationClawBio/ClawBio1.2k1 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Annotating Variants

    maziyarpanahi/openmed

    Annotates VCF variants and normalizes HGVS nomenclature with public, license-free annotators (Ensembl VEP REST, VEP/SnpEff/ANNOVAR offline) and links variants to gnomAD population frequencies and…

    5.5k GitHub stars~2.1k tokensUpdated today
    Research & ScienceAuto-check passed
  • Variant Annotation

    aipoch/medical-research-skills

    Query and annotate gene variants from ClinVar and dbSNP databases.

    2k GitHub stars~3.5k tokensUpdated 22 days ago
    Research & ScienceAuto-check passed
  • Bio Variant Annotation

    FreedomIntelligence/OpenClaw-Medical-Skills

    Comprehensive variant annotation using bcftools annotate/csq, VEP, SnpEff, and ANNOVAR.

    3.1k GitHub starsUsed in 1 repo~2.9k tokens
    Auto-check passed
  • Bio Clinical Databases Pharmacogenomics

    FreedomIntelligence/OpenClaw-Medical-Skills

    Query PharmGKB and CPIC for drug-gene interactions, pharmacogenomic annotations, and dosing guidelines.

    3.1k GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Variant Annotation

    ClawBio/ClawBio

    Annotate VCF variants with Ensembl VEP REST, ClinVar significance, gnomAD/population frequency context, and prioritized variant ranking.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Research & ScienceAuto-check passed
  • Clinpgx Database

    davila7/claude-code-templates

    Access ClinPGx pharmacogenomics data (successor to PharmGKB).

    32k GitHub starsUsed in 11 repos~5.2k tokens
    Backend & APIsAuto-check passed

More from InternScience/scp

All 73 skills in this repo
  • Given an rsID, query multiple databases (dbSNP, FAVOR, GWAS Catalog, ClinVar, gnomAD, PharmGKB, ClinGen) for comprehensive annotation.

    169 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Calculate atmospheric parameters including Coriolis parameter, geostrophic wind, heat index, potential temperature, and dewpoint for meteorology and climate science.

    169 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Biomedical Web Search

    InternScience/scp

    Search biomedical literature and web content using Tavily search engine for research and clinical information.

    169 GitHub starsUsed in 1 repo~598 tokens
    Auto-check passed
  • Calculate buoyancy forces and acceleration for fluid mechanics and hydrodynamics analysis.

    169 GitHub starsUsed in 1 repo~540 tokens
    Auto-check passed
  • Capacitance Calculation

    InternScience/scp

    Calculate electrical capacitance from geometric parameters and dielectric properties for circuit design.

    169 GitHub starsUsed in 1 repo~537 tokens
    Auto-check passed
  • Chembl Molecule Search

    InternScience/scp

    Search ChEMBL database for molecule information by name to retrieve bioactivity data and chemical structures.

    169 GitHub starsUsed in 1 repo~757 tokens
    Auto-check passed

Questions about Variant Pharmacogenomics

What does Variant Pharmacogenomics do?

Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions. Variant Pharmacogenomics is an agent skill from InternScience/scp. Query PharmGKB (clinPGx) for pharmacogenomic clinical annotations — how a variant affects drug response, dosing, and adverse reactions.

How do I install Variant Pharmacogenomics in Claude Code?

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

How do I install Variant Pharmacogenomics in Codex?

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

Can I use Variant Pharmacogenomics 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 InternScience/scp --skill variant-pharmacogenomics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/variant-pharmacogenomics, .gemini/skills/variant-pharmacogenomics, .github/skills/variant-pharmacogenomics and .opencode/skills/variant-pharmacogenomics in your project.

What does Variant Pharmacogenomics need to run?

SKILL.md names no scripts, command-line tools or credentials: Variant Pharmacogenomics is instructions for the agent only. Our summary lists: Python 3.

Does Variant Pharmacogenomics access the network?

SKILL.md names 2 domains. In commands or code: api.clinpgx.org and pharmgkb.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Variant Pharmacogenomics 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 Variant Pharmacogenomics use?

Variant Pharmacogenomics 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 Variant Pharmacogenomics use?

About 564 tokens (SKILL.md is roughly 2.3k 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 Variant Pharmacogenomics?

Skills that share tags, products or a category with Variant Pharmacogenomics: Annotating Variants (maziyarpanahi/openmed, 5.5k stars), Variant Annotation (aipoch/medical-research-skills, 2k stars), Bio Variant Annotation (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars) and Bio Clinical Databases Pharmacogenomics (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Variant Pharmacogenomics?

InternScience (a GitHub organization) maintains it in InternScience/scp, which has 169 GitHub stars. The repository holds 73 skills in this directory. The repository was last updated on June 3, 2026.

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