primekg

primekg is a skill for Claude Code, Codex from K-Dense-AI/scientific-agent-skills. It costs 62 tokens per session (2,252 once invoked), scanned A, original, MIT.

A task guide for PrimeKG, a precision-medicine knowledge graph linking genes, drugs, diseases, and symptoms with biological and clinical relationships. A knowledge graph stores entities and the connections between them so they can be queried together.

In plain words
What is it for?
Use it to find gene, drug, disease, and phenotype relationships, explore disease context, investigate drug targets, or look for possible drug-repurposing links.
Why use it?
It brings information from many biological databases and research sources into one connected dataset, reducing the need to search each source separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find gene, drug, disease, and phenotype relationships, explore disease context, investigate drug targets, or look for possible drug-repurposing links.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-dense-ai/scientific-agent-skills/primekg
About the project

Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.

K-Dense-AI/scientific-agent-skills · 58,946 stars · on GitHub · arxiv.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add K-Dense-AI/scientific-agent-skills --skill primekg
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for primekg

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/primekg/github.svg)](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/primekg)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/primekg"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/primekg/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for primekg

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/primekg"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/primekg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 21 Oct 2026
  • Snyk pass 21 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.02252
Opus 5.5 $0.00025 $0.00901
Sonnet 5.5 $0.00012 $0.00450
Haiku 4.5 $0.00006 $0.00225

Measured 1mo ago against content hash b20698944fa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

primekg scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query_primekg.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl --fail --location --output kg.csv \
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • primekg — 95% identical, 187 lines differ
skills/primekg/SKILL.md · 171 lines

How it starts

The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

The official dataset remained V2.1, published 2022-05-02, at the 2026-10-01 review. Its kg.csv has Dataverse file ID 6180620, size 981751236 bytes, and provider MD5 aac8191d4fbc5bf09cdf8c3c78b4e75f. The record declares CC0 1.0; upstream construction code is MIT. These are distinct from this skill's retained license declaration and from terms of individual source resources used in a rebuild.

Use the artifact and API reference to obtain metadata, verify the file checksum, or distinguish kg.csv, kg_grouped.csv, features, and PyTDC. The 2023 construction/OMIM updates in GitHub do not make the published 2022 artifact a 2023 dataset. Record DOI, version, filename, file ID, checksum, retrieval date, and any subset/rebuild steps with every result.

The helper makes no remote graph queries. Download the CSV deliberately after checking storage and RAM. This full-download example is illustrative; validation used small HTTP byte ranges and synthetic data, not the 982 MB file:

curl --fail --location --output kg.csv \
  'https://dataverse.harvard.edu/api/access/datafile/6180620'
export PRIMEKG_DATA="$PWD/kg.csv"

Read the full file on GitHub · 171 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +52 lines · +30 tokens per session b20698944fa5
  2. 2mo ago Changed · +2 lines ab79ecc8db7e
  3. 2mo ago First seen · 117 lines · 32 tokens per session scan A f001c21bce1b

Subscribe to this mod's changes

primekg is a skill published in the GitHub repository K-Dense-AI/scientific-agent-skills (58,946 stars, last pushed 7d ago), licensed MIT. It adds 62 tokens to every session and 2,252 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

primekg compared with skills from other repositories

primekg next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
primekgK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA62Claude Code, Codex
discovery-toolboxdekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA122Claude Code
discovery-directordekan-aleksandr/biodiscovery-skillsSkill113mo agoMITA114Claude Code
notebooksfmschulz/omics-skillsSkill11yesterdayMITA29Claude Code
bio-annotationfmschulz/omics-skillsSkill11yesterdayMITA38Claude Code, Codex
bio-viromicsfmschulz/omics-skillsSkill11yesterdayMITA79Claude Code, Codex
polars-dovmedfmschulz/omics-skillsSkill11yesterdayMITA57Claude Code, Codex