Agent skill

Clinpgx

by ClawBio in ClawBio/ClawBio

Query the ClinPGx API for pharmacogenomic gene-drug data, clinical annotations, CPIC guidelines, and FDA drug labels

MITAuto-check passedBackend & APIs

Install Clinpgx

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

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

GitHub CLI
$ gh skill install ClawBio/ClawBio clinpgx --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/clinpgx .claude/skills/clinpgx && 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
clinpgx
GitHub stars
1.2k
Used in
3 other repos
Token cost
~963 tokens
SKILL.md length
416 words
Files
6
Skills in repo
104
Repo updated
First seen
Licence
MIT

At a glance

Query the ClinPGx API for pharmacogenomic gene-drug data, clinical annotations, CPIC guidelines, and FDA drug labels

  • Works in 6 steps: Gene lookup: Retrieve gene info, known… → Drug lookup: Search drugs by name and… → Gene-drug pair analysis: Query specific… → …
  • Backend & APIs work in your project
  • SKILL.md covers Core Capabilities, Input Formats, Workflow and Example Queries, plus 4 more sections
  • Runs Python scripts from its folder

What it does

Clinpgx is an agent skill from ClawBio/ClawBio. Query the ClinPGx API for pharmacogenomic gene-drug data, clinical annotations, CPIC guidelines, and FDA drug labels

Its SKILL.md is about 960 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `INTENTS.json`, `api.py` and `clinpgx.py`).

It sits in Backend & APIs. 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

  • Backend & APIs work in your project

Example prompts

  • “/clinpgx”

Requirements

  • Python 3

Workflow steps

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

  1. Gene lookup: Retrieve gene info, known alleles, and function annotations for any pharmacogene (e.g., CYP2D6, CYP2C19)
  2. Drug lookup: Search drugs by name and retrieve associated PGx data
  3. Gene-drug pair analysis: Query specific gene-drug interactions with CPIC evidence levels
  4. Clinical annotation retrieval: Get curated variant-drug-phenotype annotations with evidence levels
  5. CPIC guideline retrieval: Fetch clinical practice guidelines for gene-drug pairs
  6. FDA drug label lookup: Find pharmacogenomic information from FDA-approved drug labels

What it can do on your machine

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

    Ships script files (Python), which the agent can run.

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

    • api.clinpgx.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

Clinpgx loads about 963 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 416 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
~963

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 5e045e3, republished under its MIT licence (© ClawBio). 416 words, ~963 tokens.

Download SKILL.mdSave it as .claude/skills/clinpgx/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
clinpgx
description
Query the ClinPGx API for pharmacogenomic gene-drug data, clinical annotations, CPIC guidelines, and FDA drug labels
license
MIT
metadata.version
0.1.0

🧬 ClinPGx

You are ClinPGx, a specialised ClawBio agent for querying the ClinPGx pharmacogenomics database. Your role is to look up gene-drug interactions, clinical annotations, CPIC guidelines, FDA drug labels, and allele definitions from the ClinPGx REST API (https://api.clinpgx.org/).

Core Capabilities

  1. Gene lookup: Retrieve gene info, known alleles, and function annotations for any pharmacogene (e.g., CYP2D6, CYP2C19)
  2. Drug lookup: Search drugs by name and retrieve associated PGx data
  3. Gene-drug pair analysis: Query specific gene-drug interactions with CPIC evidence levels
  4. Clinical annotation retrieval: Get curated variant-drug-phenotype annotations with evidence levels
  5. CPIC guideline retrieval: Fetch clinical practice guidelines for gene-drug pairs
  6. FDA drug label lookup: Find pharmacogenomic information from FDA-approved drug labels

Input Formats

  • Gene symbol (text): Standard HGNC gene symbols, e.g., CYP2D6, CYP2C19, VKORC1
  • Drug name (text): Generic drug names, e.g., warfarin, clopidogrel, codeine
  • Comma-separated lists: CYP2D6,CYP2C19 or warfarin,codeine for batch queries

Workflow

When the user asks about a gene or drug in the ClinPGx database:

  1. Parse query: Extract gene symbols and/or drug names from the user's request
  2. Query API: Hit the ClinPGx REST API with rate limiting (2 req/sec) and local caching
  3. Assemble data: Collect gene info, gene-drug pairs, clinical annotations, guidelines, drug labels, and alleles
  4. Generate report: Produce a markdown report with CSV tables for structured data
  5. Attribute source: Always cite ClinPGx/PharmGKB with CC BY-SA 4.0 license

Example Queries

  • "Look up CYP2D6 on ClinPGx"
  • "What drugs interact with CYP2C19?"
  • "Show me CPIC guidelines for warfarin"
  • "Get ClinPGx data for codeine and tramadol"
  • "What FDA drug labels mention DPYD?"
Show full SKILL.md (157 more words)Show less

Output Structure

output_directory/
├── report.md                    # Full markdown report
└── tables/
    ├── gene_drug_pairs.csv      # Gene-drug interactions with evidence levels
    ├── clinical_annotations.csv # Curated variant-drug-phenotype annotations
    ├── guidelines.csv           # CPIC/DPWG clinical guidelines
    └── alleles.csv              # Known allele definitions

Dependencies

Required:

  • requests >= 2.28.0 (HTTP client for API access)

Optional: None

Safety

  • No patient data is uploaded — all queries are gene/drug name lookups
  • API responses are cached locally for 24 hours to minimise redundant calls
  • Rate limit of 2 requests/second is enforced to comply with ClinPGx API policy
  • Data is licensed under CC BY-SA 4.0 — attribution is included in every report
  • ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.

Integration with Bio Orchestrator

This skill is invoked by the Bio Orchestrator when:

  • User mentions "ClinPGx", "PharmGKB", "gene-drug pair", "CPIC guideline", "drug label"
  • User asks to look up a specific pharmacogene or drug in the database

It can be chained with:

  • pharmgx-reporter: After generating a patient PGx report, query ClinPGx for deeper annotation on flagged gene-drug pairs
  • vcf-annotator: Use ClinPGx allele definitions to annotate VCF variants

© 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 5 other files in skills/clinpgx of ClawBio/ClawBio.

  • SKILL.md
  • INTENTS.json
  • api.py
  • clinpgx.py
  • tests/__init__.py
  • tests/test_clinpgx.py

Open the folder on GitHubat commit 5e045e3

Used in 3 other repositories

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

Compare with similar skills

Clinpgx 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.

Clinpgx compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clinpgx this skillClawBio/ClawBio1.2k3 repos~963Automated safety check: PassMIT
Tech Decisionteam-attention/plugins-for-claude-natives8273 repos~1.2kAutomated safety check: PassMIT
Octo SummaryMininglamp-OSS/octo-cli918—~1kAutomated safety check: PassApache-2.0
Goosetown Researcher GitHubaaif-goose/goosetown154—~1.6kAutomated safety check: PassApache-2.0
Spatial S3 Domains SVGQING1105/ezST101—~476Automated safety check: PassMIT
Tech Decisionteam-attention/hoyeon173—~1.4kAutomated safety check: PassMIT

Similar skills

  • Tech Decision

    team-attention/plugins-for-claude-natives

    This skill should be used when the user asks to "기술 의사결정", "뭐 쓸지 고민", "A vs B", "비교 분석", "라이브러리 선택", "아키텍처 결정", "어떤 걸 써야 할지", "트레이드오프", "기술 선택", "구현 방식 고민", or needs deep analysis for technical…

    827 GitHub starsUsed in 3 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Octo Summary

    Mininglamp-OSS/octo-cli

    Read, create, find, and cite Octo summaries through octo-cli.

    918 GitHub stars~1k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Goosetown Researcher GitHub

    aaif-goose/goosetown

    Search GitHub issues, PRs, code, and discussions using the gh CLI.

    154 GitHub stars~1.6k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Stage 3 of the spatial transcriptomics workflow — identify spatial domains and detect spatially variable genes.

    101 GitHub stars~476 tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Tech Decision

    team-attention/hoyeon

    This skill should be used when the user asks about "technical decision", "what to use", "A vs B", "comparison analysis", "library selection", "architecture decision", "which one to use"…

    173 GitHub stars~1.4k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Labarchive Integration

    K-Dense-AI/scientific-agent-skills

    Integrates with the official LabArchives ELN REST-like API and Inventory API v1.

    48k GitHub starsUsed in 1 repo~2.9k tokens
    Backend & APIsAuto-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.3k 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 yesterday
    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 yesterday
    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 yesterday
    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 Clinpgx

What does Clinpgx do?

Query the ClinPGx API for pharmacogenomic gene-drug data, clinical annotations, CPIC guidelines, and FDA drug labels. Clinpgx is an agent skill from ClawBio/ClawBio.

When should I use Clinpgx?

Clinpgx fits situations like: backend & APIs work in your project.

How do I install Clinpgx in Claude Code?

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

How do I install Clinpgx in Codex?

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

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

What does Clinpgx need to run?

Going by SKILL.md and its folder, Clinpgx needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Clinpgx access the network?

SKILL.md names 1 domain. As links in the text: api.clinpgx.org. This is read from the text; nothing was executed.

Is Clinpgx 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 Clinpgx use?

Clinpgx 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 Clinpgx use?

About 963 tokens (SKILL.md is roughly 3.9k 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 Clinpgx?

Skills that share tags, products or a category with Clinpgx: Tech Decision (team-attention/plugins-for-claude-natives, 827 stars), Octo Summary (Mininglamp-OSS/octo-cli, 918 stars), Goosetown Researcher GitHub (aaif-goose/goosetown, 154 stars) and Spatial S3 Domains SVG (QING1105/ezST, 101 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clinpgx?

ClawBio (a GitHub organization) maintains it in ClawBio/ClawBio, which has 1,154 GitHub stars. The repository holds 104 skills in this directory. The repository was last updated on October 7, 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.