Skip to content
Back to skills

Drugs Com Reviews

ASecurity

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.

  • 230 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentsapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill drugs_com_reviews --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Drugs Com Reviews?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Drugs Com Reviews
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-drugs-com-reviews/badge)](https://www.skillsdirectory.com/skills/biotender-max-drugs-com-reviews)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: druglib-reviews
description: >
  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.
---

# 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 Pattern | Detected As | Match Logic |
|---|---|---|
| single/two-word term (e.g. `lamictal`) | drug name | substring on `urlDrugName` |
| multi-word or medical keyword (e.g. `bipolar disorder`) | condition | substring 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

| Function | Input | Returns |
|---|---|---|
| `load_reviews()` | — | list[dict] (cached) |
| `search(entity)` | single entity string | list[dict] |
| `search_batch(entities)` | list of entity strings | dict[str, list[dict]] |
| `summarize(hits, entity)` | list[dict] + label | compact 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**:

| Column | Type | Description |
|---|---|---|
| `urlDrugName` | str | Drug name (lowercase, URL-style) |
| `rating` | int 0–9 | Overall patient satisfaction |
| `effectiveness` | str | Highly / Considerably / Moderately / Marginally Effective, Ineffective |
| `sideEffects` | str | No / Mild / Moderate / Severe / Extremely Severe Side Effects |
| `condition` | str | Medical condition being treated |
| `benefitsReview` | str | Free-text review of benefits |
| `sideEffectsReview` | str | Free-text review of side effects |
| `commentsReview` | str | Free-text general comments |

Files in this skill

  • README.md1.3 KB
  • SKILL.md2.4 KB
  • __init__.py168 B
  • drugs_com_reviews_skill.py5.2 KB
  • example.py6.4 KB
  • retrieve.py739 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.