kegg-query

kegg-query is a skill for Claude Code, Codex from PharMolix/OpenBioMed. It costs 82 tokens per session (1,822 once invoked), scanned A, original, MIT.

A lookup skill for KEGG, a biomedical database covering drugs, genes, compounds, diseases, and biological pathways. It retrieves drug details and relationships between these records.

In plain words
What is it for?
It helps look up drug names, efficacy, targets, metabolism, drug interactions, pathway genes and compounds, and disease-related drugs or treatment targets.
Why use it?
It avoids manually searching separate biomedical sources when investigating how a drug works, what it targets, or how it relates to diseases and pathways.

Skill for Claude CodeCodex

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

Good fit It helps look up drug names, efficacy, targets, metabolism, drug interactions, pathway genes and compounds, and disease-related drugs or treatment targets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pharmolix/openbiomed/kegg-query
About the project

OpenBioMed is an agent platform and toolkit collection for biomedical research and drug discovery, covering areas such as molecular design, protein analysis, and single-cell data analysis. It is intended for researchers and provides the biomedical skills listed in the catalogue as workflows for Claude Code.

PharMolix/OpenBioMed · 1,105 stars · on GitHub

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 PharMolix/OpenBioMed --skill kegg-query
Clone the repo
git clone --depth 1 https://github.com/PharMolix/OpenBioMed

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 kegg-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/pharmolix/openbiomed/kegg-query/github.svg)](https://agentmods.dev/skills/pharmolix/openbiomed/kegg-query)
Your own site
<a href="https://agentmods.dev/skills/pharmolix/openbiomed/kegg-query"><img src="https://agentmods.dev/badge/skills/pharmolix/openbiomed/kegg-query/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 kegg-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/pharmolix/openbiomed/kegg-query"><img src="https://agentmods.dev/badge/skills/pharmolix/openbiomed/kegg-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,822 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • 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.00082 $0.01822
Opus 5 $0.00041 $0.00911
Sonnet 5 $0.00016 $0.00364
Haiku 4.5 $0.00008 $0.00182

Measured 12d ago against content hash 6446ac8fd55f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

kegg-query scanned grade A with 0 findings 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 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (examples/disease_discovery.py, examples/drug_lookup.py, examples/pathway_analysis.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kegg-query/SKILL.md · 202 lines

How it starts

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

KEGG Query

Query the KEGG (Kyoto Encyclopedia of Genes and Genomes) database for comprehensive biomedical information.

When to Use

  • Drug Lookup: Retrieve drug efficacy, targets, metabolism, drug-drug interactions
  • Pathway Analysis: Get pathway genes, compounds, modules, and related pathways
  • Disease Discovery: Find disease-associated drugs, genes, and therapeutic targets

Workflow

Use Case 1: Drug Information Lookup

Fetch comprehensive drug information from KEGG DRUG database.

from scripts.kegg_api import kegg_find, kegg_get, parse_drug_entry

# Step 1: Search for drug by name
results = kegg_find("drug", "aspirin")
# Returns: [("dr:D00109", "Aspirin (JP18/USP); Acetylsalicylic acid; ...")]

# Step 2: Get full entry
drug_id = "dr:D00109"  # or just "D00109"
entry = kegg_get(drug_id)
drug_info = parse_drug_entry(entry)

Output includes: Names, formula, efficacy, diseases, targets, pathways, metabolism, DDI.

See examples/drug_lookup.py for complete implementation.

Use Case 2: Pathway Analysis

Analyze KEGG pathways to retrieve genes, compounds, and modules.

from scripts.kegg_api import kegg_get, parse_pathway_entry

# Get pathway by ID (e.g., hsa00010 for Glycolysis)
entry = kegg_get("hsa00010")
pathway = parse_pathway_entry(entry)

# Access parsed data
print(f"Genes: {len(pathway['genes'])}")      # 50+ genes
print(f"Compounds: {len(pathway['compounds'])}")  # 30+ compounds

Output includes: Description, genes with KO/EC annotations, compounds, modules, related pathways.

See examples/pathway_analysis.py for complete implementation.

Use Case 3: Disease-Drug-Target Discovery

Discover therapeutic targets and drugs for diseases.

from scripts.kegg_api import kegg_find, kegg_get, parse_disease_entry

# Step 1: Search for disease
results = kegg_find("disease", "diabetes")
# Returns multiple matches including Type 2 diabetes (H00409)

# Step 2: Get disease details
entry = kegg_get("ds:H00409")
disease = parse_disease_entry(entry)

# Access drugs and targets
print(f"Drugs: {len(disease['drugs'])}")    # 60+ drugs
print(f"Genes: {len(disease['genes'])}")    # 20+ genes

Read the full file on GitHub · 202 lines

Files

What ships with it

5 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. 12d ago First seen · 202 lines · 82 tokens per session scan A 6446ac8fd55f

Subscribe to this mod's changes

kegg-query is a skill published in the GitHub repository PharMolix/OpenBioMed (1,105 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 1,822 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

bulkrna-enrichment

Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when the input is single-cell (use sc-enrichment); the input is spatial (use spatial-enrichment); metabolite pathways (use metabolomics-pathway-enrichment).

TianGzlab/OmicsClaw · 59 tokens

spatial-enrichment

Load when running pathway / gene-set enrichment per cluster on a preprocessed spatial AnnData via Enrichr (over-representation), GSEA (preranked), or ssGSEA (per-cell scores). Skip when ranking spatially variable genes (use spatial-genes); comparing pathways across conditions (use spatial-condition).

TianGzlab/OmicsClaw · 69 tokens

metabolomics-pathway-enrichment

Load when running over-representation analysis (ORA) on a metabolite list via Fisher's exact test against a built-in 9-pathway DEMO dictionary, BH-FDR adjusted. Skip when needing real KEGG / Reactome (this skill is demo-only); mummichog / fella topology methods (CLI accepts them but only ORA runs).

TianGzlab/OmicsClaw · 84 tokens

proteomics-enrichment

Load when running over-representation analysis (ORA) on a list of proteins via Fisher's exact test against a built-in 8-pathway DEMO dictionary, with BH-FDR correction. Skip when needing a real pathway database (this skill is demo-only) (use bulkrna-enrichment); rank-based GSEA.

TianGzlab/OmicsClaw · 70 tokens

enrichment

Functional enrichment and pathway analysis including GSEA, ORA, ssGSEA, GSVA, and decoupler-based activity inference.

inflexa-ai/inflexa · 29 tokens

spatial-enrichment

Pathway and gene set enrichment analysis for spatial transcriptomics data.

ShangBioLab/SpatialClaw · 18 tokens