Agent skill · Data & Analytics

pharmgkb-clinpgx

Query ClinPGx (PharmGKB) and CPIC for pharmacogenomics data. Use whenever the user asks about gene-drug interactions, pharmacogenomics clinical annotations, drug-metabolizing enzymes, CPIC guidelines, or variant-level PGx evidence for any gene symbol, drug name, rsID, or ClinPGx accession.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill pharmgkb --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 6
SKILL.md size: 3 KB
Bundled scripts: yes
Path: skills/drugclaw/pharmgkb/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# PharmGKB / ClinPGx Query Skill Queries two complementary APIs: - **ClinPGx API** (`api.clinpgx.org/v1`) — gene, chemical, variant detail - **CPIC API** (`api.cpicpgx.org/v1`) — gene-drug pairs, CPIC guideline levels (PostgREST) Auto-detects input entity type by pattern: | Input Pattern | Detected As | Data Sources | |---|---|---| | `PA128` | ClinPGx accession | gene or chemical detail + CPIC pairs | | `rs4244285` | dbSNP rsID | variant lookup | | `CYP2D6` | gene symbol (uppercase, 2-15 chars) | gene detail + CPIC pairs | | anything else | drug / free text | chemical detail + CPIC pairs | ## API | Function | Input | Returns | |---|---|---| | `search(entity)` | single entity string | dict with `genes`, `chemicals`, `variants`, `cpic_pairs`, `related` | | `search_batch(entities)` | list of entity strings | dict[str → search result] | | `summarize(result, entity)` | search result + label | compact text (one line per hit) | | `to_json(result)` | search result | indented JSON string | | `search_gene(symbol)` | gene symbol | list of gene dicts (ClinPGx) | | `search_drug(name)` | drug name | list of chemical dicts (ClinPGx) | | `search_variant(rsid)` | rsID string | list of variant dicts

What's inside
Steps it walks through
  1. API
  2. Usage
  3. Key Fields
  4. Data Sources
Ships with 5 files
  • README.md
  • __init__.py
  • example.py
  • pharmgkb_skill.py
  • retrieve.py
More from awesome-bio-agent-skills
All skills →
About this skill
What does the pharmgkb-clinpgx skill do?

Query ClinPGx (PharmGKB) and CPIC for pharmacogenomics data. Use whenever the user asks about gene-drug interactions, pharmacogenomics clinical annotations, drug-metabolizing enzymes, CPIC guidelines, or variant-level PGx evidence for any gene symbol, drug name, rsID, or ClinPGx accession.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill pharmgkb --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going