Skip to content

Knowledge graph query skill for PrimeKG CSVs with typed entity resolution, association retrieval, and short path enumeration.

CCM score
73 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers pinned PrimeKG workflows: artifact verification by checksum, typed node search, association lookup, disease context summaries, and one- or two-hop undirected paths
  • Includes the search_nodes, get_neighbors, get_disease_context, and find_paths helpers, with exact relation names such as indication, contraindication, and disease_phenotype_negative
  • Enforces identity keys of (id, type, source) and rejects ambiguous bare IDs, while keeping contraindications separate from treatment support
  • Designed for reproducible biological hypothesis generation where relation meaning and data provenance must be preserved

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill primekg -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PrimeKG Knowledge Graph

When to use

Use for reproducing PrimeKG analyses, resolving entities in a specific graph artifact, or exploring recorded gene, drug, disease, phenotype, anatomy, and pathway associations. A path supports a research hypothesis; it does not establish causality, treatment efficacy, a prescribing recommendation, or a diagnostic conclusion.

PrimeKG upstream now recommends OptimusKG for new work. This skill remains scoped to PrimeKG CSVs; the helper is not an OptimusKG client. Published PrimeKG integrates 20 resources, with approximately 129,000 nodes and 4.05 million undirected relationships. CSVs contain reverse rows, so row counts differ from distinct undirected relationship counts. Count the actual pinned artifact.

1. Pin and verify the input

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Data Science & Analytics, Research & Academic, Databases
First seen
Jun 3, 2026

Questions

What does the primekg skill do?

The primekg skill queries a pinned Precision Medicine Knowledge Graph CSV for typed gene, drug, disease, and phenotype nodes, direct associations, disease context, and one- or two-hop paths. It keeps relation names and data provenance intact so hypotheses can be traced back to the source artifact.

How do I install the primekg skill?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill primekg -y in your project to install it. Once installed, the primekg skill lets your agent resolve entities, retrieve associations, and summarize disease context from a downloaded PrimeKG CSV.

What does the primekg skill need to run locally?

The primekg skill requires Python 3.11 or newer and pandas. Local queries also need a downloaded PrimeKG kg.csv file and several gigabytes of available RAM, because the helper reads the whole CSV for each query.

Which skills lead the Data Science & Analytics category next to primekg?

The other top skills in this category are azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. The primekg skill differs by focusing on biomedical knowledge graph lookups over a versioned PrimeKG release.

More from k-dense-ai/scientific-agent-skills

All 132