drugbank-query
Query a locally downloaded DrugBank database. Use whenever the user asks about drug information, drug targets, drug-drug interactions, drug categories, or wants to look up any entity (DrugBank ID, drug name, CAS number, synonym) in DrugBank.
npx skills add BioTender-max/awesome-bio-agent-skills --skill drugbank --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# DrugBank Local Query Skill Search local DrugBank data by any entity. Auto-detects query type: | Input Pattern | Detected As | Match Logic | |---|---|---| | `DB00945` | DrugBank ID | exact on `drugbank_id` | | anything else | free text | substring on `name`, `synonyms`, `cas_number` | ## Data - **Base dir**: `resources_metadata/drug_knowledgebase/DrugBank/` - **Files**: - `full database.xml` — rich fields: description, targets, interactions, categories, synonyms, groups - `drugbank vocabulary.csv` — lightweight: DrugBank ID, name, CAS, synonyms - **Auto-select**: prefers XML if present, falls back to vocabulary CSV ## API | Function | Input | Returns | |---|---|---| | `load(path)` | file path (XML or TSV/CSV, auto-detected) | `list[dict]` | | `search(data, entity)` | single entity string | `list[dict]` | | `search_batch(data, entities)` | list or comma-separated string | `dict[str, list[dict]]` | | `summarize(hits, entity)` | hit list + label | compact text | | `to_json(hits)` | hit list | JSON string | ## Usage ```python from 07_DrugBank import load, search, search_batch, summarize, to_json data = load() # auto-selects XML or CSV # single query hits = search(data, "aspirin") prin
- Data
- API
- Usage
What does the drugbank-query skill do?
Query a locally downloaded DrugBank database. Use whenever the user asks about drug information, drug targets, drug-drug interactions, drug categories, or wants to look up any entity (DrugBank ID, drug name, CAS number, synonym) in DrugBank.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill drugbank --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
