Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Query the Precision Medicine Knowledge Graph (PrimeKG) for multiscale biological data including genes, drugs, diseases, phenotypes, and more.
.claude/skills/k-dense-ai-primekg/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -31% | 0% |
PrimeKG is a precision medicine knowledge graph that integrates over 20 primary databases and high-quality scientific literature into a single resource. It contains over 100,000 nodes and 4 million edges across 29 relationship types, including drug-target, disease-gene, and phenotype-disease associations.
Key capabilities:
Data access: Programmatic access via query_primekg.py. Data is stored at C:\Users\eamon\Documents\Data\PrimeKG\kg.csv.
This skill should be used when:
Find identifiers for genes, drugs, or diseases.
pythonfrom scripts.query_primekg import search_nodes # Search for Alzheimer's disease nodes results = search_nodes("Alzheimer", node_type="disease") # Returns: [{"id": "EFO_0000249", "type": "disease", "name": "Alzheimer's disease", ...}]
Retrieve all connected nodes and relationship types.
pythonfrom scripts.query_primekg import get_neighbors # Get all neighbors of a specific disease ID neighbors = get_neighbors("EFO_0000249") # Returns: List of neighbors like {"neighbor_name": "APOE", "relation": "disease_gene", ...}
A high-level function to summarize associations for a disease.
pythonfrom scripts.query_primekg import get_disease_context # Comprehensive summary for a disease context = get_disease_context("Alzheimer's disease") # Access: context['associated_genes'], context['associated_drugs'], context['phenotypes']
The graph contains several key relationship types including:
protein_protein: Physical PPIsdrug_protein: Drug target/mechanism associationsdisease_gene: Genetic associationsdrug_disease: Indications and contraindicationsdisease_phenotype: Clinical signs and symptomsgwas: Genome-wide association studies evidenceget_neighbors, ensure you have the correct ID from search_nodes.get_disease_context for a broad overview before diving into specific genes or drugs.relation_type filter in get_neighbors to focus on specific evidence (e.g., only drug_protein).OpenTargets for deeper genetic evidence or Semantic Scholar for the latest literature context.scripts/query_primekg.py: Core functions for searching and querying the knowledge graph.kg.csv, downloaded from the PrimeKG Harvard Dataverse.export PRIMEKG_DATA=/path/to/kg.csv (default: data/PrimeKG/kg.csv).This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a manuscript, report, presentation, or code release, add the paper to the references or software section and tell the user you did so:
> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent > Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065. > https://doi.org/10.48550/arXiv.2609.00065
Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the latest arXiv version, so never append a version suffix such as v1. When network access is available, fetch https://arxiv.org/abs/2609.00065 (or http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take the author list, year, and version from that record. If the record lists a journal reference or publisher DOI, cite the published version instead.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 22,205 | 18,732 | -16% | 1 | 1 | 0% | 3,017 | 1,802 | -40% | 0 | 0 | — |
case-02 | fail→fail | 25,449 | 18,713 | -26% | 1 | 1 | 0% | 3,441 | 1,498 | -56% | 0 | 0 | — |
case-03 | fail→fail | 22,110 | 17,374 | -21% | 1 | 1 | 0% | 2,753 | 1,567 | -43% | 0 | 0 | — |
case-04 | pass→pass | 10,164 | 7,918 | -22% | 1 | 1 | 0% | 978 | 1,702 | +74% | 0 | 0 | — |
case-05 | pass→pass | 12,925 | 9,327 | -28% | 1 | 1 | 0% | 1,404 | 1,941 | +38% | 0 | 0 | — |
case-06 | pass→pass | 17,593 | 17,496 | -1% | 1 | 1 | 0% | 2,507 | 3,796 | +51% | 0 | 0 | — |
case-07 | fail→pass | 22,177 | 18,974 | -14% | 1 | 1 | 0% | 2,909 | 3,874 | +33% | 0 | 0 | — |
case-08 | fail→pass | 18,922 | 10,644 | -44% | 1 | 1 | 0% | 2,396 | 2,200 | -8% | 0 | 0 | — |
case-09 | fail→pass | 23,570 | 14,091 | -40% | 1 | 1 | 0% | 2,904 | 2,950 | +2% | 0 | 0 | — |
case-10 | fail→pass | 15,089 | 8,810 | -42% | 1 | 1 | 0% | 1,661 | 1,881 | +13% | 0 | 0 | — |
case-11 | fail→pass | 22,148 | 10,115 | -54% | 1 | 1 | 0% | 3,053 | 2,111 | -31% | 0 | 0 | — |
case-12 | fail→pass | 12,849 | 14,576 | +13% | 1 | 1 | 0% | 1,360 | 2,889 | +112% | 0 | 0 | — |
case-13 | pass→pass | 14,417 | 7,746 | -46% | 1 | 1 | 0% | 1,515 | 1,635 | +8% | 0 | 0 | — |
case-14 | fail→pass | 16,536 | 15,972 | -3% | 1 | 1 | 0% | 1,970 | 3,081 | +56% | 0 | 0 | — |
case-15 | pass→pass | 8,691 | 9,432 | +9% | 1 | 1 | 0% | 551 | 2,021 | +267% | 0 | 0 | — |
case-16 | fail→pass | 15,963 | 14,508 | -9% | 1 | 1 | 0% | 1,736 | 2,700 | +56% | 0 | 0 | — |
case-17 | fail→pass | 20,618 | 29,554 | +43% | 1 | 1 | 0% | 2,460 | 5,609 | +128% | 0 | 0 | — |
case-18 | pass→pass | 16,559 | 7,545 | -54% | 1 | 1 | 0% | 1,622 | 1,575 | -3% | 0 | 0 | — |
case-19 | fail→fail | 16,561 | 17,243 | +4% | 1 | 1 | 0% | 2,111 | 1,562 | -26% | 0 | 0 | — |
case-20 | fail→pass | 12,172 | 7,234 | -41% | 1 | 1 | 0% | 1,080 | 1,589 | +47% | 0 | 0 | — |
case-21 | fail→pass | 13,862 | 7,454 | -46% | 1 | 1 | 0% | 1,672 | 1,586 | -5% | 0 | 0 | — |
case-22 | fail→pass | 16,372 | 7,695 | -53% | 1 | 1 | 0% | 2,137 | 1,655 | -23% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +55 percentage points is the difference between those two pass rates over the 18 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/9/2026 | +36% |
Other measured skills in the registry, with their headline benchmark lift.