Kegg api

From aipoch/medical-research-skills · View interactive version

Kegg api is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Access the KEGG database API to retrieve biological data (genes, pathways, compounds, drugs). Invoke when the user asks to search, list, or get details from KEGG.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

KEGG API Skill

This skill allows querying the KEGG (Kyoto Encyclopedia of Genes and Genomes) database via its REST API.

When to Use

Key Features

Dependencies

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Evidence Insight/kegg-api"
python -m py_compile scripts/kegg_client.py
python scripts/kegg_client.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/kegg_client.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

Operations

  1. info: Display database statistics.
  1. list: List entry identifiers.
  1. find: Search for entries.
  1. get: Retrieve entry details.
  1. conv: Convert identifiers.
  1. link: Find related entries.
  1. ddi: Drug-drug interactions.

Usage

Run the python script scripts/kegg_client.py.

python scripts/kegg_client.py <operation> <args...> [--option <opt>]

Examples


# Get info about pathways
python scripts/kegg_client.py info pathway

# Find genes related to "insulin" in humans (hsa)
python scripts/kegg_client.py find hsa insulin

# Get details for a specific gene
python scripts/kegg_client.py get hsa:3630

# Link genes to pathways
python scripts/kegg_client.py link pathway hsa:3630

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/kegg_client.py --help

Expected output format:

Result file: kegg_api_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.