clinpgx-database

davila7/claude-code-templates · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/davila7/claude-code-templates --skill clinpgx-database
0 commentsdiscussion
summary

ClinPGx (Clinical Pharmacogenomics Database) is a comprehensive resource for clinical pharmacogenomics information, successor to PharmGKB. It consolidates data from PharmGKB, CPIC, and PharmCAT, providing curated information on how genetic variation affects medication response. Access gene-drug pairs, clinical guidelines, allele functions, and drug labels for precision medicine applications.

skill.md

ClinPGx Database

Overview

ClinPGx (Clinical Pharmacogenomics Database) is a comprehensive resource for clinical pharmacogenomics information, successor to PharmGKB. It consolidates data from PharmGKB, CPIC, and PharmCAT, providing curated information on how genetic variation affects medication response. Access gene-drug pairs, clinical guidelines, allele functions, and drug labels for precision medicine applications.

When to Use This Skill

This skill should be used when:

  • Gene-drug interactions: Querying how genetic variants affect drug metabolism, efficacy, or toxicity
  • CPIC guidelines: Accessing evidence-based clinical practice guidelines for pharmacogenetics
  • Allele information: Retrieving allele function, frequency, and phenotype data
  • Drug labels: Exploring FDA and other regulatory pharmacogenomic drug labeling
  • Pharmacogenomic annotations: Accessing curated literature on gene-drug-disease relationships
  • Clinical decision support: Using PharmDOG tool for phenoconversion and custom genotype interpretation
  • Precision medicine: Implementing pharmacogenomic testing in clinical practice
  • Drug metabolism: Understanding CYP450 and other pharmacogene functions
  • Personalized dosing: Finding genotype-guided dosing recommendations
  • Adverse drug reactions: Identifying genetic risk factors for drug toxicity

Installation and Setup

Python API Access

The ClinPGx REST API provides programmatic access to all database resources. Basic setup:

uv pip install requests

API Endpoint

BASE_URL = "https://api.clinpgx.org/v1/"

Rate Limits:

  • 2 requests per second maximum
  • Excessive requests will result in HTTP 429 (Too Many Requests) response

Authentication: Not required for basic access

Data License: Creative Commons Attribution-ShareAlike 4.0 International License

For substantial API use, notify the ClinPGx team at [email protected]

Core Capabilities

1. Gene Queries

Retrieve gene information including function, clinical annotations, and pharmacogenomic significance:

import requests

# Get gene details
response = requests.get("https://api.clinpgx.org/v1/gene/CYP2D6")
gene_data = response.json()

# Search for genes by name
response = requests.get("https://api.clinpgx.org/v1/gene",
                       params={"q": "CYP"})
genes = response.json()

Key pharmacogenes:

  • CYP450 enzymes: CYP2D6, CYP2C19, CYP2C9, CYP3A4, CYP3A5
  • Transporters: SLCO1B1, ABCB1, ABCG2
  • Other metabolizers: TPMT, DPYD, NUDT15, UGT1A1
  • Receptors: OPRM1, HTR2A, ADRB1
  • HLA genes: HLA-B, HLA-A

2. Drug and Chemical Queries

Retrieve drug information including pharmacogenomic annotations and mechanisms:

# Get drug details
response = requests.get("https://api.clinpgx.org/v1/chemical/PA448515")  # Warfarin
drug_data = response.json()

# Search drugs by name
response = requests.get("https://api.clinpgx.org/v1/chemical",
                       params={"name": "warfarin"})
drugs = response.json()

Drug categories with pharmacogenomic significance:

  • Anticoagulants (warfarin, clopidogrel)
  • Antidepressants (SSRIs, TCAs)
  • Immunosuppressants (tacrolimus, azathioprine)
  • Oncology drugs (5-fluorouracil, irinotecan, tamoxifen)
  • Cardiovascular drugs (statins, beta-blockers)
  • Pain medications (codeine, tramadol)
  • Antivirals (abacavir)

3. Gene-Drug Pair Queries

Access curated gene-drug relationships with clinical annotations:

# Get gene-drug pair information
response = requests.get("https://api.clinpgx.org/v1/geneDrugPair",
                       params={"gene": "CYP2D6", "drug": "codeine"})
pair_data = response.json()

# Get all pairs for a gene
response = requests.get("https://api.clinpgx.org/v1/geneDrugPair",
                       params={"gene": "CYP2C19"})
all_pairs = response.json()

Clinical annotation sources:

  • CPIC (Clinical Pharmacogenetics Implementation Consortium)
  • DPWG (Dutch Pharmacogenetics Working Group)
  • FDA (Food and Drug Administration) labels
  • Peer-reviewed literature summary annotations

4. CPIC Guidelines

Access evidence-based clinical practice guidelines:

# Get CPIC guideline
response = requests.get("https://api.clinpgx.org/v1/guideline/PA166104939")
guideline = response.json()

# List all CPIC guidelines
response = requests.get("https://api.clinpgx.org/v1/guideline",
                       params={"source": "CPIC"})
guidelines = response.json()

CPIC guideline components:

  • Gene-drug pairs covered
  • Clinical recommendations by phenotype
  • Evidence levels and strength ratings
  • Supporting literature
  • Downloadable PDFs and supplementary materials
  • Implementation considerations

Example guidelines:

  • CYP2D6-codeine (avoid in ultra-rapid metabolizers)
  • CYP2C19-clopidogrel (alternative therapy for poor metabolizers)
  • TPMT-azathioprine (dose reduction for intermediate/poor metabolizers)
  • DPYD-fluoropyrimidines (dose adjustment based on activity)
  • HLA-B*57:01-abacavir (avoid if positive)

5. Allele and Variant Information

Query allele function and frequency data:

# Get allele information
response = requests.get("https://api.clinpgx.org/v1/allele/CYP2D6*4")
allele_data = response.json()

# Get all alleles for a gene
response = requests.get("https://api.clinpgx.org/v1/allele",
                       params={"gene": "CYP2D6"})
alleles = response.json()

Allele information includes:

  • Functional status (normal, decreased, no function, increased, uncertain)
  • Population frequencies across ethnic groups
  • Defining variants (SNPs, indels, CNVs)
  • Phenotype assignment
  • References to PharmVar and other nomenclature systems

Phenotype categories:

  • Ultra-rapid metabolizer (UM): Increased enzyme activity
  • Normal metabolizer (NM): Normal enzyme activity
  • Intermediate metabolizer (IM): Reduced enzyme activity
  • Poor metabolizer (PM): Little to no enzyme activity

6. Variant Annotations

Access clinical annotations for specific genetic variants:

# Get variant information
response = requests.get("https://api.clinpgx.org/v1/variant/rs4244285")
variant_data = response.json()

# Search variants by position (if supported)
response = requests.get("https://api.clinpgx.org/v1/variant",
                       params={"chromosome": "10", "position": "94781859"})
variants = response.json()

Variant data includes:

  • rsID and genomic coordinates
  • Gene and functional consequence
  • Allele associations
  • Clinical significance
  • Population frequencies
  • Literature references

7. Clinical Annotations

Retrieve curated literature annotations (formerly PharmGKB clinical annotations):

# Get clinical annotations
response = requests.get("https://api.clinpgx.org/v1/clinicalAnnotation",
                       params={"gene": "CYP2D6"})
annotations = response.json()

# Filter by evidence level
response = requests.get("https://api.clinpgx.org/v1/clinicalAnnotation",
                       params={"evidenceLevel": "1A"})
high_evidence = response.json()

Evidence levels (from highest to lowest):

  • Level 1A: High-quality evidence, CPIC/FDA/DPWG guidelines
  • Level 1B: High-quality evidence, not yet guideline
  • Level 2A: Moderate evidence from well-designed studies
  • Level 2B: Moderate evidence with some limitations
  • Level 3: Limited or conflicting evidence
  • Level 4: Case reports or weak evidence

8. Drug Labels

Access pharmacogenomic information from drug labels:

# Get drug labels with PGx information
response = requests.get("https://api.clinpgx.org/v1/drugLabel",
                       params={"drug": "warfarin"})
labels = response.json()

# Filter by regulatory source
response = requests.get("https://api.clinpgx.org/v1/drugLabel",
                       params={"source": "FDA"})
fda_labels = response.json()

Label information includes:

  • Testing recommendations
  • Dosing guidance by genotype
  • Warnings and precautions
  • Biomarker information
  • Regulatory source (FDA, EMA, PMDA, etc.)

9. Pathways

Explore pharmacokinetic and pharmacodynamic pathways:

# Get pathway information
response = requests.get("https://api.clinpgx.org/v1/pathway/PA146123006")  # Warfarin pathway
pathway_data = response.json()

# Search pathways by drug
response = requests.get("https://api.clinpgx.org/v1/pathway",
                       params={"drug": "warfarin"})
pathways = response.json()

Pathway diagrams show:

  • Drug metabolism steps
  • Enzymes and transporters involved
  • Gene variants affecting each step
how to use clinpgx-database

How to use clinpgx-database on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add clinpgx-database
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/davila7/claude-code-templates --skill clinpgx-database

The skills CLI fetches clinpgx-database from GitHub repository davila7/claude-code-templates and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/clinpgx-database

Reload or restart Cursor to activate clinpgx-database. Access the skill through slash commands (e.g., /clinpgx-database) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.566 reviews
  • Harper Tandon· Dec 28, 2024

    Solid pick for teams standardizing on skills: clinpgx-database is focused, and the summary matches what you get after install.

  • Tariq Agarwal· Dec 28, 2024

    clinpgx-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Omar Okafor· Dec 16, 2024

    Keeps context tight: clinpgx-database is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Daniel Anderson· Dec 16, 2024

    Registry listing for clinpgx-database matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ganesh Mohane· Dec 12, 2024

    clinpgx-database is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • William Kapoor· Dec 4, 2024

    clinpgx-database is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Ishan Rahman· Nov 23, 2024

    I recommend clinpgx-database for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Zara Flores· Nov 23, 2024

    clinpgx-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Diya Garcia· Nov 19, 2024

    clinpgx-database has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Nia Singh· Nov 19, 2024

    clinpgx-database is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 66

1 / 7