← 返回 Skills 市场
aipoch-ai

Drug Interaction Checker

作者 AIpoch · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
270
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install drug-interaction-checker
功能描述
Check for drug-drug interactions between multiple medications. Trigger when user asks about medication compatibility, "can I take X with Y", drug interaction...
使用说明 (SKILL.md)

Drug Interaction Checker

Check for interactions between multiple medications, including severity classification and mechanism explanations.

Features

  • Multi-drug analysis: Check interactions between 2+ medications simultaneously
  • Severity classification: Critical / Major / Moderate / Minor / Unknown
  • Mechanism explanation: Pharmacological basis for each interaction
  • Clinical guidance: Recommendations for management

Severity Levels

Level Description Action Required
Critical Life-threatening interaction Absolute contraindication
Major Significant risk, may need medical intervention Avoid combination or monitor closely
Moderate Moderate risk, may require dose adjustment Monitor for adverse effects
Minor Mild interaction, unlikely to cause issues Be aware, usually acceptable
Unknown Insufficient data Proceed with caution

Usage

Python Script

python scripts/main.py --drugs "Warfarin" "Aspirin" "Ibuprofen"

As a Module

from scripts.main import check_interactions

result = check_interactions(["Metformin", "Simvastatin", "Amlodipine"])

Parameters

Parameter Type Default Required Description
--drugs list - Yes List of drug names (generic or brand names accepted)
--format string text No Output format (text, json, markdown)
--include-mechanism flag true No Include pharmacological mechanism
--include-management flag true No Include clinical recommendations
--output, -o string - No Output file path

Output Format

{
  "drugs_checked": ["Drug A", "Drug B"],
  "interactions": [
    {
      "drug_pair": ["Drug A", "Drug B"],
      "severity": "Major",
      "mechanism": "Pharmacodynamic synergism...",
      "effect": "Increased bleeding risk",
      "recommendation": "Avoid combination or monitor INR closely"
    }
  ],
  "summary": {
    "critical": 0,
    "major": 1,
    "moderate": 0,
    "minor": 0
  }
}

Data Sources

This skill uses a curated drug interaction database stored in references/interactions_db.json. The database includes:

  • FDA-approved drug interaction data
  • Known metabolic pathways (CYP450 enzymes)
  • Pharmacodynamic interactions
  • Common supplement interactions

Limitations

  • Database may not include all possible drug combinations
  • Always consult healthcare professionals for medical decisions
  • Does not account for patient-specific factors (age, renal function, etc.)
  • Not a substitute for professional medical advice

Technical Difficulty

High - Requires extensive pharmacological knowledge database, accurate severity classification, and clear mechanism explanations.

References

See references/ directory for:

  • interactions_db.json - Drug interaction database
  • severity_criteria.md - Classification criteria
  • cyp450_substrates.json - Metabolic pathway data

Risk Assessment

Risk Indicator Assessment Level
Code Execution Python/R scripts executed locally Medium
Network Access No external API calls Low
File System Access Read input files, write output files Medium
Instruction Tampering Standard prompt guidelines Low
Data Exposure Output files saved to workspace Low

Security Checklist

  • No hardcoded credentials or API keys
  • No unauthorized file system access (../)
  • Output does not expose sensitive information
  • Prompt injection protections in place
  • Input file paths validated (no ../ traversal)
  • Output directory restricted to workspace
  • Script execution in sandboxed environment
  • Error messages sanitized (no stack traces exposed)
  • Dependencies audited

Prerequisites

# Python dependencies
pip install -r requirements.txt

Evaluation Criteria

Success Metrics

  • Successfully executes main functionality
  • Output meets quality standards
  • Handles edge cases gracefully
  • Performance is acceptable

Test Cases

  1. Basic Functionality: Standard input → Expected output
  2. Edge Case: Invalid input → Graceful error handling
  3. Performance: Large dataset → Acceptable processing time

Lifecycle Status

  • Current Stage: Draft
  • Next Review Date: 2026-03-06
  • Known Issues: None
  • Planned Improvements:
    • Performance optimization
    • Additional feature support
安全使用建议
This skill appears internally consistent and self-contained, but it executes a local Python script and uses a bundled database — before installing or running it: (1) quickly scan scripts/main.py for any network calls, subprocess.exec/eval/exec usage, or file reads outside the references/ directory; (2) run it in an isolated environment (container or VM) the first time; (3) verify the interaction data currency and provenance if you will rely on it clinically; and (4) do not treat results as definitive medical advice — confirm with a clinician for patient-specific decisions. If you want higher confidence, paste the full scripts/main.py here (or confirm it makes no external calls) so I can re-check for hidden I/O or exfiltration patterns.
功能分析
Type: OpenClaw Skill Name: drug-interaction-checker Version: 0.1.0 The drug-interaction-checker skill is a self-contained clinical tool designed to identify pharmacological interactions using local reference data. The primary logic in scripts/main.py is purely algorithmic, relying on internal dictionaries and JSON files (references/interactions_db.json) without any network access, shell execution (e.g., os.system), or sensitive file system operations. The SKILL.md instructions are well-defined and lack any prompt-injection attempts or requests for unauthorized data access.
能力评估
Purpose & Capability
Name/description (drug interaction checking) align with included assets: local interaction DB, CYP450 metadata, severity criteria, and a Python script. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructs running the bundled Python script or importing its module and references only the local references/ files. That scope is appropriate, but the runtime will execute code from scripts/main.py — the instructions correctly warn about sandboxing and input validation. Confirm the script doesn’t read arbitrary paths or call external endpoints before running.
Install Mechanism
No install spec or external downloads; dependencies are minimal (requirements.txt lists standard libs). This is low-risk and consistent with an instruction-only skill that includes a local script and data files.
Credentials
The skill requests no environment variables, credentials, or special config paths. All required data is bundled locally, which is proportional to the stated functionality.
Persistence & Privilege
Skill is not always-enabled and does not declare elevated persistence. It does execute local code when invoked but does not request to modify other skills or system-wide configurations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install drug-interaction-checker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /drug-interaction-checker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of Drug Interaction Checker. - Supports multi-drug interaction analysis with severity classification (Critical, Major, Moderate, Minor, Unknown). - Provides pharmacological mechanisms and clinical recommendations for each drug interaction. - Outputs results in multiple formats (text, JSON, markdown) via command-line or module usage. - Utilizes a curated local drug interaction database; includes FDA data and metabolic pathway info. - Includes clear documentation for usage, parameters, output format, limitations, and security practices.
元数据
Slug drug-interaction-checker
版本 0.1.0
许可证 MIT-0
累计安装 3
当前安装数 2
历史版本数 1
常见问题

Drug Interaction Checker 是什么?

Check for drug-drug interactions between multiple medications. Trigger when user asks about medication compatibility, "can I take X with Y", drug interaction... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 270 次。

如何安装 Drug Interaction Checker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install drug-interaction-checker」即可一键安装,无需额外配置。

Drug Interaction Checker 是免费的吗?

是的,Drug Interaction Checker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Drug Interaction Checker 支持哪些平台?

Drug Interaction Checker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Drug Interaction Checker?

由 AIpoch(@aipoch-ai)开发并维护,当前版本 v0.1.0。

💬 留言讨论