Repurposedrugs
Skill BioTender-max/awesome-bio-agent-skills/skills/drugclaw/repurposedrugs
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.From its SKILL.md
npx -y skills add BioTender-max/awesome-bio-agent-skills --skill repurposedrugsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.3 KB, 304 tokens by cl100k_base, as published. Nobody here has run it
RepurposeDrugs Query Skill
Search canonical drug-disease repurposing rows. Auto-detects query type by pattern:
| Input Pattern | Detected As | Match Logic |
|---|---|---|
34567890 | PMID | exact on pmid |
| anything else | free text | substring on drug OR disease |
API
| Function | Input | Returns |
|---|---|---|
load_data(path) | CSV path | list[dict] |
search(rows, entity) | single entity string | list[dict] |
search_batch(rows, entities) | list of entity strings | dict[str, list[dict]] |
summarize(hits, entity) | rows + label | compact text |
to_json(hits) | rows | list[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
What ships with it: 5 files
10.1 KB alongside SKILL.md, 4 of them executable
- example.pyruns2.5 KB
- __init__.pyruns162 B
- README.md1.6 KB
- repurposedrugs_skill.pyruns5.0 KB
- retrieve.pyruns818 B