drug-safety-review

Comprehensive medication safety review system providing real-time analysis of drug-drug interactions, contraindications, allergy risks, and dosing optimization. Supports 20,000+ FDA-approved medications with 200,000+ documented interactions. Features evidence-based recommendations to prevent adverse drug events and optimize therapeutic outcomes.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "drug-safety-review" with this command: npx skills add Andyxcg/drug-safety-review

Drug Safety Review

Version: 1.1.0
Category: Healthcare / Medical
Billing: SkillPay (1 token per call, ~0.001 USDT)
Free Trial: 10 free calls per user
Demo Mode: ✅ Available (no API key required)

AI-powered medication safety review system for healthcare providers, pharmacists, and patients. Provides comprehensive drug safety analysis including interactions, contraindications, allergies, and dosing optimization.

Features

  1. Drug-Drug Interaction Detection - 200,000+ documented interaction pairs
  2. Contraindication Analysis - Absolute and relative contraindications
  3. Allergy Detection - Drug and excipient allergy screening
  4. Dosing Optimization - Renal, hepatic, and age-based adjustments
  5. Monitoring Recommendations - Lab tests and clinical monitoring
  6. Alternative Therapy Suggestions - Safer medication alternatives
  7. SkillPay Billing - 1 token per review (~0.001 USDT)
  8. Free Trial - 10 free calls for every new user
  9. Demo Mode - Try without API key, returns simulated safety data
  10. Drug Database - Built-in drug information lookup
  11. Multi-language Support - Chinese and English output

Demo Mode

Try the skill without any API key:

python scripts/safety_review.py --demo

Demo mode returns realistic simulated drug safety reviews to demonstrate the output format.

Free Trial

Each user gets 10 free calls before billing begins. During the trial:

  • No payment required
  • Full feature access
  • Trial status returned in API response
{
    "success": True,
    "trial_mode": True,      # Currently in free trial
    "trial_remaining": 9,    # 9 free calls left
    "balance": None,         # No balance needed in trial
    "review": {...}
}

After 10 free calls, normal billing applies.

Quick Start

Demo Mode (No API Key):

python scripts/safety_review.py --demo

Review medication safety:

from scripts.safety_review import review_medications
import os

# Set environment variables
os.environ["SKILLPAY_API_KEY"] = "your-api-key"
os.environ["SKILLPAY_SKILL_ID"] = "your-skill-id"

# Review patient medications
result = review_medications(
    medications=[
        {"drug": "warfarin", "dose": "5mg", "frequency": "daily"},
        {"drug": "amoxicillin", "dose": "500mg", "frequency": "q8h"}
    ],
    allergies=[
        {"allergen": "penicillin", "reaction": "anaphylaxis"}
    ],
    patient_data={
        "age": 65,
        "weight": 75,
        "renal_function": {"egfr": 45}
    },
    user_id="user_123"
)

# Check result
if result["success"]:
    print("安全状态:", result["review"]["safety_status"])
    print("警报数量:", len(result["review"]["alerts"]))
    for alert in result["review"]["alerts"]:
        print(f"- [{alert['severity']}] {alert['title']}")
else:
    print("错误:", result["error"])
    if "paymentUrl" in result:
        print("充值链接:", result["paymentUrl"])

Search Drug Information:

python scripts/safety_review.py --search "metformin"

List All Drugs:

python scripts/safety_review.py --list-drugs

Language Selection:

# Chinese output (default)
python scripts/safety_review.py --demo --language zh

# English output
python scripts/safety_review.py --demo --language en

Environment Variables

This skill requires the following environment variables:

Required Variables (After Trial)

VariableDescriptionRequiredExample
SKILLPAY_API_KEYYour SkillPay API key for billingAfter trialskp_abc123...
SKILLPAY_SKILL_IDYour Skill ID from SkillPay dashboardAfter trialskill_def456...

Optional Variables

VariableDescriptionDefault
DRUG_DATABASE_PATHPath to custom drug database-
ENABLE_ALTERNATIVE_SUGGESTIONSEnable alternative therapy suggestionstrue

See .env.example for a complete list of environment variables.

Configuration

The skill uses SkillPay billing integration:

  • Provider: skillpay.me
  • Pricing: 1 token per call (~0.001 USDT)
  • Chain: BNB Chain
  • Free Trial: 10 calls per user
  • Demo Mode: Available without API key
  • API Key: Set via SKILLPAY_API_KEY environment variable
  • Skill ID: Set via SKILLPAY_SKILL_ID environment variable
  • Minimum deposit: 8 USDT

Alert Severity Levels

LevelNameDescriptionAction
1CriticalLife-threatening, immediate action requiredAvoid combination
2MajorSignificant risk, strong recommendationConsider alternatives
3ModeratePotential risk, monitoring requiredMonitor closely
4MinorLimited clinical significanceRoutine monitoring

Supported Drug Classes

  • Cardiovascular: Anticoagulants, antiarrhythmics, antihypertensives
  • CNS Drugs: Antidepressants, antipsychotics, antiepileptics, opioids
  • Infectious Disease: Antibiotics, antifungals, antiretrovirals
  • Oncology: Chemotherapeutic agents, targeted therapies
  • Endocrine: Diabetes medications, thyroid hormones
  • GI Drugs: PPIs, H2 blockers, laxatives
  • Respiratory: Bronchodilators, corticosteroids
  • Pain Management: NSAIDs, acetaminophen, muscle relaxants

Drug Database

The skill includes a built-in drug database for quick lookups:

from scripts.safety_review import search_drug_info

# Search for drug information
drug_info = search_drug_info("metformin")
if drug_info:
    print(f"Drug: {drug_info['name']}")
    print(f"Category: {drug_info['category']}")
    print(f"Indications: {drug_info['indications']}")
    print(f"Common doses: {drug_info['common_doses']}")
    print(f"Major interactions: {drug_info['major_interactions']}")

Available Drugs in Database

  • warfarin (华法林)
  • metformin (二甲双胍)
  • amoxicillin (阿莫西林)
  • lisinopril (赖诺普利)
  • simvastatin (辛伐他汀)
  • aspirin (阿司匹林)

References

Disclaimer

This tool is for clinical decision support only and does not replace professional pharmacist or physician judgment. Always verify recommendations with qualified healthcare providers.

System Limitations:

  • Not a substitute for clinical judgment
  • Accuracy depends on complete medication and allergy data
  • Rare interactions may have limited data
  • Patient-specific factors may affect actual risk

Changelog

v1.1.0

  • Added demo mode (no API key required)
  • Added built-in drug database with search functionality
  • Added free trial support (10 calls per user)
  • Added multi-language support (zh/en)
  • Unified environment variable naming to SKILLPAY_API_KEY and SKILLPAY_SKILL_ID

v1.0.0

  • Initial stable release
  • SkillPay billing integration

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Survey Designer

问卷设计工具。创建专业问卷、添加题型、设置逻辑跳转、数据分析、模板库、多格式导出。Survey designer with question types, skip logic, analysis, templates, and export. Use when you need survey designer...

Registry SourceRecently Updated
Research

test

Competitor monitoring, pricing analysis, market positioning, and SWOT generation. Use when you need to track competitor moves, benchmark pricing, analyze mar...

Registry SourceRecently Updated
Research

Agent Fact Check Verify

嚴謹多來源資訊查核與可信度判定技能。用於「查證/核實/核實這個/是真的嗎/是否正確」類請求,整合政府、官方、主流媒體、事實查核站、X(Twitter)、Reddit 等來源,採用內部 100 分制規則化評分(不對使用者公開分數),對外輸出中立且整合式結論。

Registry SourceRecently Updated
Research

Symptom Checker

症状自查工具。症状分析、就医建议、预防措施、生活方式改善、症状追踪、急症识别。Symptom checker with analysis, when to see doctor, prevention, lifestyle tips, tracking, emergency recognition. ⚠️ 非医疗...

Registry SourceRecently Updated