OpenParable
Skip to content
← Back to skills

Druglib Reviews

Research
druglib-reviews

Druglib Reviews is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query the DrugLib.com Drug Review Dataset (UCI #461). Use whenever the user asks about patient drug reviews, drug effectiveness ratings, side-effect profiles, or condition-specific treatment experiences from DrugLib.com.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/drugs_com_reviews/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/druglib-reviews, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

DrugLib Reviews Query Skill

Search patient drug reviews by drug name or medical condition. Auto-detects entity type and routes to the appropriate field.

Input PatternDetected AsMatch Logic
single/two-word term (e.g. lamictal)drug namesubstring on urlDrugName
multi-word or medical keyword (e.g. bipolar disorder)conditionsubstring on condition

Condition keywords that trigger condition routing: disease, disorder, syndrome, infection, pain, cancer, diabetes, hypertension, depression, anxiety, asthma, arthritis, migraine, allergy, insomnia, nausea, obesity, acne, gerd, copd.

API

FunctionInputReturns
load_reviews()—list[dict] (cached)
search(entity)single entity stringlist[dict]
search_batch(entities)list of entity stringsdict[str, list[dict]]
summarize(hits, entity)list[dict] + labelcompact LLM-readable text
to_json(hits)list[dict]list[dict] (JSON-serialisable)

Usage

See if __name__ == "__main__" block in 16_DRUGLIB_REVIEWS.py for runnable examples covering: drug name search, condition search, batch search, and JSON output.

Data

  • Source: Drug Review Dataset (Druglib.com), UCI ML Repository #461
  • Citation: Kallumadi, S. & Gräßer, F. (2018). Drug Reviews (Druglib.com) [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C55G6J
  • License: CC BY 4.0
  • Files: drugLibTrain_raw.tsv, drugLibTest_raw.tsv (TSV, merged at load)
  • Path: DATA_DIR variable in 16_DRUGLIB_REVIEWS.py
  • Columns:
ColumnTypeDescription
urlDrugNamestrDrug name (lowercase, URL-style)
ratingint 0–9Overall patient satisfaction
effectivenessstrHighly / Considerably / Moderately / Marginally Effective, Ineffective
sideEffectsstrNo / Mild / Moderate / Severe / Extremely Severe Side Effects
conditionstrMedical condition being treated
benefitsReviewstrFree-text review of benefits
sideEffectsReviewstrFree-text review of side effects
commentsReviewstrFree-text general comments