Drug interaction checker

From vitaclaw/vitaclaw · View interactive version

Drug interaction checker is an AI agent skill from the GitHub repository vitaclaw/vitaclaw. Checks drug-drug interactions via the RxNorm API with automatic fallback to openFDA drug labels when RxNorm data is unavailable. Supports single-drug lookup, multi-drug batch checking, and FDA label retrieval. Use when the user wants to verify whether their medications interact.

How to use this skill

Skill file

Drug Interaction Checker Skill

Overview

This skill checks drug-drug interactions through the RxNorm Interaction API and automatically falls back to the openFDA drug label for interaction information when RxNorm has no data. It supports the following three query modes:

1. Single-Drug Interaction Query

Enter a single drug name to retrieve all known drug interactions for that drug, including the drugs involved, severity, and detailed descriptions.

2. Multi-Drug Interaction Check

Enter multiple drug names (2 or more) to check whether interactions exist among them. The system resolves each drug name to an RxCUI and then calls the RxNorm multi-drug interaction endpoint for batch checking.

3. FDA Label Fallback

When RxNorm does not contain interaction data for a given drug, the system automatically queries the Drug Interactions section of the openFDA drug label as a supplementary information source.

Usage

Run drug_interaction.py with one or more drug names (in English):

# Single-drug query
python drug_interaction.py osimertinib

# Multi-drug interaction check
python drug_interaction.py osimertinib rifampin ketoconazole

If no drug names are provided, the default query checks interactions among osimertinib, rifampin, and ketoconazole.

Output Format

Environment Variables

| Variable | Required | Description |

|----------|----------|-------------|

| OPENFDA_API_KEY | No | openFDA API Key; increases rate limits (works without a key as well) |

Notes

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.