Skip to content
Back to skills

Mecddi

ASecurity

Query the MecDDI mechanism-based drug-drug interaction database. Use whenever the user asks about drug-drug interactions, DDI mechanisms (PK/PD), enzyme or transporter-mediated interactions, or wants to look up interacting drug pairs by drug name or MecDDI drug ID. Trigger on keywords like DDI, drug interaction, MecDDI, mechanism-based interaction, pharmacokinetic interaction, pharmacodynamic interaction, or any query involving two drugs that may interact.

  • 230 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agentsgoapidatabase

Works with

  • cli
  • 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 mecddi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mecddi?

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

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

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: mecddi-query
description: >
  Query the MecDDI mechanism-based drug-drug interaction database. Use whenever
  the user asks about drug-drug interactions, DDI mechanisms (PK/PD), enzyme or
  transporter-mediated interactions, or wants to look up interacting drug pairs
  by drug name or MecDDI drug ID. Trigger on keywords like DDI, drug interaction,
  MecDDI, mechanism-based interaction, pharmacokinetic interaction, pharmacodynamic
  interaction, or any query involving two drugs that may interact.
---

# MecDDI Query Skill

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

| Input Pattern | Detected As | Match Logic |
|---|---|---|
| `D0123` | MecDDI Drug ID | exact on `A_Drug_ID` / `B_Drug_ID` |
| anything else | free text | substring on `A_Drug_Name` / `B_Drug_Name` |

## Mechanism Categories (7 files)

| Category | Type |
|---|---|
| Affected Gastrointestinal Absorption | PK |
| Affected Cellular Transport | PK |
| Affected Organization Distribution | PK |
| Affected Intra/Extra-Hepatic Metabolism | PK |
| Affected Excretion Pathways | PK |
| Pharmacodynamic Additive Effects | PD |
| Pharmacodynamic Antagonistic Effects | PD |

## API

| Function | Input | Returns |
|---|---|---|
| `load_mecddi(data_dir)` | directory path | list[dict] (all records) |
| `search(records, entity)` | single entity string | list[dict] |
| `search_batch(records, entities)` | list of strings | dict[str, list[dict]] |
| `summarize(hits, entity)` | hits + label | compact text for LLM |
| `to_json(hits)` | list[dict] | JSON string |

## Data

- **Source**: 7 TSV files downloaded from <https://mecddi.idrblab.net/download>
- **Path**: `DATA_DIR` variable in `19_MecDDI.py` (default: `resources_metadata/ddi/MecDDI`)
- **Columns**: `A_Drug_ID`, `A_Drug_Name`, `B_Drug_ID`, `B_Drug_Name`, `Mechanism_Category`

## Usage

See `if __name__ == "__main__"` block in `19_MecDDI.py` for runnable examples covering:

1. **Single drug name** → `search(data, "Atropine")`
2. **Single drug ID** → `search(data, "D0123")`
3. **Batch query** → `search_batch(data, ["Meclizine", "Isocarboxazid", "D0853"])`
4. **JSON output** → `to_json(hits)`
5. **LLM-friendly summary** → `summarize(hits, entity)`

Files in this skill

  • README.md1.1 KB
  • SKILL.md2.2 KB
  • __init__.py130 B
  • example.py4.1 KB
  • mecddi_skill.py3.1 KB
  • retrieve.py793 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.