Skip to content
Back to skills

Ddinter

ASecurity

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.

  • 230 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 6, 2026
ai-agentsapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill ddinter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ddinter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ddinter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-ddinter/badge)](https://www.skillsdirectory.com/skills/biotender-max-ddinter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: DDInter
description: >
  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.
---

# DDInter Query Skill

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

| Input Pattern | Detected As | Match Logic |
|---|---|---|
| `DDInter582` | DDInter ID | exact on `DDInterID_A` or `DDInterID_B` |
| anything else | drug name | exact then substring on `Drug_A` / `Drug_B` |

## API

| Function | Input | Returns |
|---|---|---|
| `search(entity)` | drug name or DDInter ID | `list[dict]` |
| `search_batch(entities)` | list of entity strings | `dict[str, list[dict]]` |
| `get_interactions_between(drug_a, drug_b)` | two drug names | `list[dict]` |
| `summarize(hits, entity)` | hit list + label | compact text |
| `to_json(hits)` | hit list | `list[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.

Files in this skill

  • README.md991 B
  • SKILL.md1.5 KB
  • __init__.py134 B
  • ddinter_skill.py4.9 KB
  • example.py8 KB
  • retrieve.py767 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.