Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

PrimeKG — Claude Code skill: query the drug and disease graph

Wraps the PrimeKG precision-medicine CSV in pandas helpers, so the agent can look up typed nodes, neighbours, disease summaries and short paths without leaving the repo.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add K-Dense-AI/scientific-agent-skills --skill primekg -a claude-code
Open on GitHub

What primekg does

The skill points an agent at PrimeKG, a graph of genes, drugs, diseases and phenotypes assembled from public resources. Three pandas helpers do the work: search_nodes, get_neighbors, get_disease_context. Each node is identified by id, type and source, so the agent resolves candidates first and only then walks edges.

Nothing is queried remotely. You download kg.csv from Dataverse and point PRIMEKG_DATA at it; the fallback path is data/PrimeKG/kg.csv. Python 3.11+ and pandas are required. The module reads the whole file for every query, so keep several GB of RAM free. That is the weak spot: on a small machine you will want an indexed local store built from the pinned file instead of repeated full scans.

Relation labels have to match what is stored. disease_protein, contraindication and disease_phenotype_positive all exist; a generic drug_disease or gwas does not, and the phenotype node type is spelled effect/phenotype. The helper returns no publications, clinical text, confidence scores or approval status. A path is a hypothesis, not evidence, which matters the moment you try to cite it.

What it helps with

  • resolve a disease name to one typed node before traversal
  • pull a gene's neighbours with the relation label intact
  • keep indications apart from contraindications and off-label records
  • summarise genes, drugs and phenotypes for a single disease
  • check the pinned CSV checksum before running an analysis

Example prompts for the agent

  • Find the PrimeKG disease node matching "Alzheimer" and show me its id, type and source before anything else.
  • List the neighbours of the selected node under relation `indication`, with the original rows from `edge_rows`.
  • Give me the disease context: associated genes, drugs and phenotypes, and split drug records into indication, contraindication and off-label.

How to install primekg

1Skills CLI (Vercel)

npx skills add K-Dense-AI/scientific-agent-skills --skill primekg -a claude-code

2Manually: put the files in place

~/.claude/skills/primekg/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/primekg/

From the same set120

The whole set →
scientific-visualization K-Dense-AI Generates and audits publication-ready scientific figures in Matplotlib, Seaborn, and Plotly, focusing on truthful data encoding and accessibility. Claude Code CX Codex Cursor +1 2,400installs scientific-writing K-Dense-AI This skill drafts and audits scientific manuscripts and reports while tying claims to verified evidence. Use it for sections, references, declarations, and submission checks. Claude Code CX Codex Cursor +1 2,400installs statistical-analysis K-Dense-AI Runs hypothesis tests with assumption checking, effect sizes, and APA-formatted reports. Covers t-tests, ANOVA, correlation, regression, non-parametric and Bayesian methods. Claude Code CX Codex Cursor +1 2,300installs scientific-brainstorming K-Dense-AI Structures early-stage research ideation through independent idea generation, transparent scoring, and adversarial review. Useful for ranking hypotheses without premature consensus. Claude Code CX Codex Cursor +1 2,300installs literature-review K-Dense-AI This skill searches and synthesizes research literature, checks citations, and prepares Markdown or PDF reviews. Use it for reproducible searches and screening. Claude Code CX Codex Cursor +1 2,300installs scientific-critical-thinking K-Dense-AI Evaluates scientific claims, research methodology, and evidence quality. Applies GRADE and Cochrane Risk of Bias frameworks. Claude Code CX Codex Cursor +1 2,300installs scientific-schematics K-Dense-AI Creates PNG drafts of scientific diagrams and runs a separate quality review. Use it for neural network architectures, flowcharts, system diagrams, and biological pathways. Claude Code CX Codex Cursor +1 2,200installs scikit-learn K-Dense-AI A skill for Python machine learning tasks: classification, regression, clustering, preprocessing, and building ML pipelines with scikit-learn 1.9.1. Claude Code CX Codex Cursor +1 2,200installs

Similar

sr-screener Imbad0202 Applies protocol-driven screening to study records for reviews. It manages double-blind screening of titles, abstracts, and full texts. Claude Code CX Codex Cursor +1 449installs typst-author jihe520 Generates, edits, and troubleshoots Typst markup while enforcing syntax rules and formatting checks. Keeps agents grounded against hallucinations. Claude Code CX Codex Cursor +1 1,800installs mathmodel-figure-templates jihe520 Runs packaged Python and matplotlib scripts to generate publication-grade scientific figures. Useful when you need Taylor diagrams, ROC curves, or correlation grids quickly. Claude Code CX Codex Cursor +1 1,700installs anysearch anysearch-ai This skill gives an agent web search, domain-specific queries, parallel batch search, and page extraction. Use it when a task needs current information or a claim needs checking. Claude Code CX Codex Cursor +1 38,500installs academic-paper Imbad0202 This skill runs a 12-agent academic pipeline across 11 modes. It guides projects from literature searches and outlines to citation audits and rebuttal reviews. Claude Code CX Codex Cursor +1 10,800installs nature-figure Yuan1z0825 A skill that builds, revises and audits scientific figures for manuscripts in Python or R. Useful when plots go to submission, not to a report. Claude Code CX Codex Cursor +1 18,700installs academic-paper-reviewer Imbad0202 This skill reviews an academic paper through five role-based perspectives. Use it for peer review, revision checks, or a focused methodology assessment. Claude Code CX Codex Cursor +1 9,800installs nature-polishing Yuan1z0825 A skill that polishes, translates and tightens existing academic prose. Facts, terminology and evidence boundaries stay intact. Claude Code CX Codex Cursor +1 17,400installs

Questions about primekg

How do I install PrimeKG in Claude Code?

Run npx skills add K-Dense-AI/scientific-agent-skills --skill primekg -a claude-code. The skill file lands at ~/.claude/skills/primekg/SKILL.md.

What does PrimeKG do?

It answers questions against a local copy of the PrimeKG CSV: typed node lookup, direct associations, disease context, and paths of one or two hops with relation names and provenance kept.

Does it work without downloading the CSV?

No. The skill makes no remote graph queries, so you need kg.csv on disk plus Python 3.11+ and pandas. Expect to give up several GB of RAM while it parses.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor