RepurposeDrugs Query Skill

SkillDatabases & data

Query the RepurposeDrugs single-agent drug repurposing database. Use whenever the user asks about drug-disease repurposing associations, clinical trial phases for repurposed drugs, or wants to look up any entity (drug name, disease name, NCT ID) in RepurposeDrugs.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the RepurposeDrugs Query Skill skill

What this skill tells your AI

The instructions your AI receives, as published by qsong-github/drugclaw in skills/drug_repurposing/repurposedrugs/SKILL.md and read by ahel’s review.

Search canonical drug-disease repurposing rows. Auto-detects query type by pattern:

Input PatternDetected AsMatch Logic
34567890PMIDexact on pmid
anything elsefree textsubstring on drug OR disease

API

FunctionInputReturns
load_data(path)CSV pathlist[dict]
search(rows, entity)single entity stringlist[dict]
search_batch(rows, entities)list of entity stringsdict[str, list[dict]]
summarize(hits, entity)rows + labelcompact text
to_json(hits)rowslist[dict]

Usage

See if __name__ == "__main__" block in example.py for runnable examples.

Data

  • Source: RepurposeDrugs normalized full-package output
  • URL: https://repurposedrugs.org/
  • Local file: repurposedrugs.csv
  • Columns: drug, disease, score, status, pmid
  • Path: resources_metadata/drug_repurposing/RepurposeDrugs/repurposedrugs.csv

Signals

GitHub stars
116
Forks
3
Last commit
Aug 2026
Advanced
Item type
skill
Key
repurposedrugs-query
Source
github.com/qsong-github/drugclaw