pharmgkb-skill — Codex skill: what it does, how to install
Submits compact requests to the PharmGKB API and returns brief summaries for genes, variants, and drug dosing.
npx skills add openai/plugins --skill pharmgkb-skill -a codexWhat pharmgkb-skill does
This skill queries the PharmGKB API using the bundled scripts/rest_request.py script. It accepts a JSON payload from standard input with a base URL and an endpoint path, then formats the output into markdown summaries.
It works with endpoints for genes, variants, clinical annotations, and dosing guidelines. List and search queries use max_items=10 to keep model context small. When complete server responses are required, setting save_raw=true writes the raw payload to disk and returns the file path.
You need Python installed alongside the local script. Install this if you frequently look up pharmacogenomics data inside your coding assistant; skip it if you only make occasional lookups in a browser.
What it helps with
- Fetch details for a gene or variant by accession identifier
- Retrieve clinical annotations for linked chemicals
- Query pharmacogenomic dosing guidelines
- Save raw PharmGKB API payloads directly to disk
Example prompts for the agent
- Look up clinical annotations for chemical PA449726 in PharmGKB
- Fetch gene data for PA36679 using pharmgkb-skill
- Get dosing guidelines for variant PA166158545 and save the raw response
How to install pharmgkb-skill
1Skills CLI (Vercel)
npx skills add openai/plugins --skill pharmgkb-skill -a codex2Manually: put the files in place
.agents/skills/pharmgkb-skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add openai/plugins --skill pharmgkb-skill -a claude-code2Manually: put the files in place
~/.claude/skills/pharmgkb-skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/pharmgkb-skill/
Manually: put the files in place
.cursor/skills/pharmgkb-skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install openai/plugins pharmgkb-skill2Manually: put the files in place
.github/skills/pharmgkb-skill/SKILL.mdPlatform CLI
gemini skills install https://github.com/openai/plugins --path plugins/life-science-research/skills/pharmgkb-skillManually: put the files in place
.devin/skills/pharmgkb-skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set201
The whole set →Similar
Questions about pharmgkb-skill
How to install pharmgkb-skill in Codex?
Run npx skills add openai/plugins --skill pharmgkb-skill -a codex.
What does pharmgkb-skill do?
It queries the PharmGKB REST API via a Python script and outputs compact summaries for genes, variants, and drug guidelines.
What are the runtime requirements for this skill?
It requires a local Python environment and the scripts/rest_request.py script provided with the package.