DDInter Query Skill

SkillDatabases & data

Query the DDInter drug-drug interaction database. Use whenever the user asks about drug-drug interactions, DDI severity levels, or wants to look up interactions for a drug name or DDInter ID.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the DDInter Query Skill skill

What this skill tells your AI

The instructions your AI receives, as published by qsong-github/drugclaw in skills/ddi/ddinter/SKILL.md and read by ahel’s review.

Search DDInter interaction records by drug name or DDInter ID. Auto-detects input type:

Input PatternDetected AsMatch Logic
DDInter582DDInter IDexact on DDInterID_A or DDInterID_B
anything elsedrug nameexact then substring on Drug_A / Drug_B

API

FunctionInputReturns
search(entity)drug name or DDInter IDlist[dict]
search_batch(entities)list of entity stringsdict[str, list[dict]]
get_interactions_between(drug_a, drug_b)two drug nameslist[dict]
summarize(hits, entity)hit list + labelcompact text
to_json(hits)hit listlist[dict]
list_drugs()—sorted unique drug names

Usage

See if __name__ == "__main__" block in 20_DDInter.py for runnable examples covering: single drug search, DDInter ID lookup, pairwise interaction check, batch search, and JSON output.

Key Fields

Each interaction row contains: DDInterID_A, Drug_A, DDInterID_B, Drug_B, Level (Major / Moderate / Minor).

Data

  • Source: 8 CSV files partitioned by ATC code (ddinter_downloads_code_{A,B,D,H,L,P,R,V}.csv)
  • Path: resources_metadata/ddi/DDInter/
  • Citation: Xiong G, et al. Nucleic Acids Res. 2025;53(D1):D1356. DDInter 2.0.

Signals

GitHub stars
116
Forks
3
Last commit
Aug 2026
Advanced
Item type
skill
Key
ddinter
Source
github.com/qsong-github/drugclaw