Agent skill

Pharma DB Tools

by DrugClaw in DrugClaw/DrugClaw

Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex.

Apache-2.0Auto-check passedResearch & Science

Install Pharma DB Tools

skills CLI
$ npx skills add DrugClaw/DrugClaw --skill pharma-db-tools -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DrugClaw/DrugClaw pharma-db-tools --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DrugClaw/DrugClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pharma/pharma-db-tools .claude/skills/pharma-db-tools && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pharma-db-tools
GitHub stars
126
Token cost
~1.4k tokens
SKILL.md length
345 words
Files
2
Skills in repo
25
Repo updated
First seen
Licence
Apache-2.0

At a glance

Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex.

  • Works in 7 steps: Save both a machine-readable result file… → Report the exact database, mode,… → Prefer exact identifiers when available:… → …
  • The user asks to look up compounds
  • SKILL.md covers Environment Check, Bundled Asset, Quick Start and Working Rules, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Pharma DB Tools is an agent skill from DrugClaw/DrugClaw. Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex. Use when the user asks to look up compounds, measured binding affinities, regulatory labels or adverse events, clinical trials, or drug-discovery literature from public APIs and curated exports.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `templates/pharma_db_lookup.py`).

It sits in Research & Science, covering Drug discovery and cheminformatics, Academic paper search and Clinical and healthcare research. The repository describes itself as: 💊 AI Research Assistant for Accelerated Drug Discovery. 🦞. The licence is Apache-2.0.

When your agent uses it

  • The user asks to look up compounds
  • Measured binding affinities
  • Regulatory labels
  • Clinical trials

Example prompts

  • “/pharma-db-tools”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Save both a machine-readable result file and a summary JSON.
  2. Report the exact database, mode, identifier, filters, and endpoint used.
  3. Prefer exact identifiers when available: PubChem CID, ChEMBL id, NCT id, DOI.
  4. Return direct stable links when the upstream database exposes them.
  5. Distinguish clearly between compound metadata, activity measurements, regulatory evidence, clinical-study records, and literature hits.
  6. If the API returns no hits, say that explicitly instead of inferring a scientific conclusion.
  7. Treat these sources as evidence surfaces for prioritization and review, not as experimental proof.

What it can do on your machine

Read from SKILL.md and the folder at commit 960a6e0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pharma DB Tools loads about 1.4k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 345 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DrugClaw/DrugClaw at commit 960a6e0, republished under its Apache-2.0 licence (© DrugClaw). 345 words, ~1,427 tokens.

Download SKILL.mdSave it as .claude/skills/pharma-db-tools/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pharma-db-tools
description
Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex. Use when the user asks to look up compounds, measured binding affinities, regulatory labels or adverse events, clinical trials, or drug-discovery literature from public APIs and curated exports.
source
drugclaw
updated_at
2026-03-11

Pharma DB Tools

Use this skill when the user asks for public drug-discovery database lookups rather than local cheminformatics analysis.

Typical triggers:

  • compound lookup by name, CID, SMILES, or ChEMBL id
  • public bioactivity or target-association lookup from ChEMBL
  • measured drug-target affinity lookup from BindingDB by UniProt, compound, or local TSV export
  • FDA labeling, adverse-event, NDC, approval, recall, or shortage data
  • ClinicalTrials.gov study search, status review, or NCT lookup
  • OpenAlex literature retrieval for drug, target, modality, or institution queries

Environment Check

The bundled template uses Python plus HTTP APIs. Check first.

bash
which python3 || true
python3 - <<'PY'
mods = ["requests"]
for name in mods:
    try:
        __import__(name)
        print(f"{name}: ok")
    except Exception as exc:
        print(f"{name}: missing ({exc})")
PY

If outbound network access is blocked, say so explicitly before claiming the lookup ran.

Bundled Asset

Use the reusable template instead of rewriting API snippets every time:

  • templates/pharma_db_lookup.py

Supported sources:

  • pubchem
  • chembl
  • bindingdb
  • openfda
  • clinicaltrials
  • openalex

Quick Start

bash
python3 templates/pharma_db_lookup.py pubchem \
  --query imatinib \
  --output pharma/pubchem_imatinib.csv \
  --summary pharma/pubchem_imatinib.json
bash
python3 templates/pharma_db_lookup.py chembl \
  --mode molecule \
  --chembl-id CHEMBL941 \
  --output pharma/chembl_imatinib.csv \
  --summary pharma/chembl_imatinib.json
bash
python3 templates/pharma_db_lookup.py bindingdb \
  --tsv BindingDB_All.tsv \
  --uniprot-id P00519 \
  --affinity-type Ki \
  --max-nm 1000 \
  --output pharma/bindingdb_abl1.csv \
  --summary pharma/bindingdb_abl1.json
bash
python3 templates/pharma_db_lookup.py openfda \
  --endpoint label \
  --query imatinib \
  --output pharma/fda_imatinib_label.csv \
  --summary pharma/fda_imatinib_label.json
bash
python3 templates/pharma_db_lookup.py clinicaltrials \
  --condition "non-small cell lung cancer" \
  --intervention osimertinib \
  --status RECRUITING \
  --output pharma/osimertinib_trials.csv \
  --summary pharma/osimertinib_trials.json
bash
python3 templates/pharma_db_lookup.py openalex \
  --query "KRAS G12C inhibitor resistance" \
  --limit 20 \
  --output pharma/openalex_kras_g12c.csv \
  --summary pharma/openalex_kras_g12c.json

Working Rules

  1. Save both a machine-readable result file and a summary JSON.
  2. Report the exact database, mode, identifier, filters, and endpoint used.
  3. Prefer exact identifiers when available: PubChem CID, ChEMBL id, NCT id, DOI.
  4. Return direct stable links when the upstream database exposes them.
  5. Distinguish clearly between compound metadata, activity measurements, regulatory evidence, clinical-study records, and literature hits.
  6. If the API returns no hits, say that explicitly instead of inferring a scientific conclusion.
  7. Treat these sources as evidence surfaces for prioritization and review, not as experimental proof.

Common Patterns

PubChem compound lookup by CID
bash
python3 templates/pharma_db_lookup.py pubchem \
  --cid 5291 \
  --output pharma/pubchem_5291.csv \
  --summary pharma/pubchem_5291.json
ChEMBL activity rows for a target
bash
python3 templates/pharma_db_lookup.py chembl \
  --mode activity \
  --target-id CHEMBL203 \
  --standard-type IC50 \
  --limit 25 \
  --output pharma/egfr_ic50.csv \
  --summary pharma/egfr_ic50.json
BindingDB measured affinities from a local export
bash
python3 templates/pharma_db_lookup.py bindingdb \
  --tsv BindingDB_All.tsv \
  --compound-name imatinib \
  --affinity-type Ki \
  --limit 25 \
  --output pharma/imatinib_bindingdb.csv \
  --summary pharma/imatinib_bindingdb.json
openFDA adverse-event aggregation
bash
python3 templates/pharma_db_lookup.py openfda \
  --endpoint event \
  --query pembrolizumab \
  --output pharma/pembro_events.csv \
  --summary pharma/pembro_events.json
ClinicalTrials.gov study detail
bash
python3 templates/pharma_db_lookup.py clinicaltrials \
  --nct-id NCT04280705 \
  --output pharma/nct04280705.csv \
  --summary pharma/nct04280705.json
OpenAlex author- or institution-scoped literature
bash
python3 templates/pharma_db_lookup.py openalex \
  --author "Jennifer Doudna" \
  --limit 20 \
  --output pharma/doudna_works.csv \
  --summary pharma/doudna_works.json

Output Expectations

Good answers should mention:

  • which database and endpoint were queried
  • the exact identifier or text query
  • how many hits were returned
  • the key IDs, names, phases, activities, warnings, affinity values, or citation counts
  • the saved output paths
  • any rate-limit, schema, or network caveats

For UniProt, PDB, AlphaFold, ClinVar, Ensembl, GEO, KEGG, Reactome, STRING, or OpenTargets, activate bio-db-tools. For DrugBank, ADMET, QSAR, descriptors, or structure-aware affinity work, activate chem-tools. For datamol, molfeat, PyTDC, or medchem-style library workflows, activate pharma-ml-tools. For docking, receptor preparation, or virtual screening execution, activate docking-tools.

© DrugClaw, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/pharma/pharma-db-tools of DrugClaw/DrugClaw.

  • SKILL.md
  • templates/pharma_db_lookup.py

Open the folder on GitHubat commit 960a6e0

Compare with similar skills

Pharma DB Tools next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pharma DB Tools compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pharma DB Tools this skillDrugClaw/DrugClaw126—~1.4kAutomated safety check: PassApache-2.0
Biomedical Analysis Dispatchxjtulyc/MedgeClaw6171 repos~2kAutomated safety check: PassNone
Drug Researchlamm-mit/scienceclaw2463 repos~1.7kAutomated safety check: PassApache-2.0
Hcls Build Agentaws-samples/amazon-bedrock-agents-healthcare-lifesciences274—~885Automated safety check: PassMIT-0
Medical Research ToolkitFreedomIntelligence/OpenClaw-Medical-Skills3.1k1 repos~2.4kAutomated safety check: PassNone
Pubmed Databasegoogle-deepmind/science-skills3.2k2 repos~2.1kAutomated safety check: NotesApache-2.0

Similar skills

  • Routes bioinformatics, drug discovery, clinical and multi-omics tasks from a chat interface to Claude Code sessions running K-Dense scientific skills, with a live dashboard per task.

    617 GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Drug Research

    lamm-mit/scienceclaw

    Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.

    246 GitHub starsUsed in 3 repos~1.7k tokens
    Research & ScienceAuto-check passed
  • Hcls Build Agent

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    A skill your agent uses when a developer wants to build a new healthcare or life sciences agent, structure tools and system prompts for an HCLS workflow, or create a Strands agent with…

    274 GitHub stars~885 tokensUpdated 8 days ago
    Research & ScienceAuto-check passed
  • Medical Research Toolkit

    FreedomIntelligence/OpenClaw-Medical-Skills

    Query 14+ biomedical databases for drug repurposing, target discovery, clinical trials, and literature research.

    3.1k GitHub starsUsed in 1 repo~2.4k tokens
    Research & ScienceAuto-check passed
  • Pubmed Database

    google-deepmind/science-skills

    Search PubMed for scientific literature, including published clinical trials.

    3.2k GitHub starsUsed in 2 repos~2.1k tokens
    Research & ScienceAuto-check: notes
  • Transform GWAS signals into actionable drug targets and repurposing opportunities.

    1.1k GitHub starsUsed in 2 repos~4.7k tokens
    Research & ScienceAuto-check passed

More from DrugClaw/DrugClaw

All 25 skills in this repo
  • Bio DB Tools

    DrugClaw/DrugClaw

    Query public biology databases and APIs including UniProt, RCSB PDB, AlphaFold DB, ClinVar, dbSNP, gnomAD, Ensembl, GEO, InterPro, KEGG, OpenTargets, Reactome, and STRING.

    126 GitHub stars~1.4k tokensUpdated 6 mo ago
    Auto-check passed
  • Grn Tools

    DrugClaw/DrugClaw

    Gene regulatory network workflow guide for transcriptomics and single-cell expression matrices using Arboreto, GRNBoost2, and GENIE3.

    126 GitHub stars~692 tokensUpdated 6 mo ago
    Auto-check passed
  • Knowledge Graph Tools

    DrugClaw/DrugClaw

    Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING PPI, and Reactome pathway APIs, then…

    126 GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Literature Review Tools

    DrugClaw/DrugClaw

    Research-literature workflow guide for evidence-matrix assembly, citation-table normalization, structured review synthesis, and research-gap mapping.

    126 GitHub stars~923 tokensUpdated 6 mo ago
    Auto-check passed
  • Medical Data Tools

    DrugClaw/DrugClaw

    Medical data workflow guide for DICOM metadata inspection and basic de-identification, physiological signal analysis with NeuroKit2, and cohort-table profiling for clinical research datasets.

    126 GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Omics Tools

    DrugClaw/DrugClaw

    Omics and single-cell workflow guide for AnnData, Scanpy-style dataset profiling, PyDESeq2-oriented count checks, pysam alignment inspection, and pyOpenMS mass-spectrometry summaries.

    126 GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Pharma DB Tools

What does Pharma DB Tools do?

Query public drug-discovery and translational-research databases including PubChem, ChEMBL, BindingDB, openFDA, ClinicalTrials.gov, and OpenAlex. Pharma DB Tools is an agent skill from DrugClaw/DrugClaw.gov, and OpenAlex.

When should I use Pharma DB Tools?

Pharma DB Tools fits situations like: the user asks to look up compounds; measured binding affinities; regulatory labels; clinical trials.

How do I install Pharma DB Tools in Claude Code?

Run `npx skills add DrugClaw/DrugClaw --skill pharma-db-tools -a claude-code`. Or copy the skill folder (skills/pharma/pharma-db-tools in DrugClaw/DrugClaw) into .claude/skills/pharma-db-tools in your project. Claude Code loads it when a task matches its description.

How do I install Pharma DB Tools in Codex?

Run `npx skills add DrugClaw/DrugClaw --skill pharma-db-tools -a codex`. Or copy the skill folder (skills/pharma/pharma-db-tools in DrugClaw/DrugClaw) into .agents/skills/pharma-db-tools in your project. Codex loads it when a task matches its description.

Can I use Pharma DB Tools in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DrugClaw/DrugClaw --skill pharma-db-tools -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pharma-db-tools, .gemini/skills/pharma-db-tools, .github/skills/pharma-db-tools and .opencode/skills/pharma-db-tools in your project.

What does Pharma DB Tools need to run?

Going by SKILL.md and its folder, Pharma DB Tools needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Pharma DB Tools access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pharma DB Tools safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pharma DB Tools use?

Pharma DB Tools is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pharma DB Tools use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pharma DB Tools?

Skills that share tags, products or a category with Pharma DB Tools: Biomedical Analysis Dispatch (xjtulyc/MedgeClaw, 617 stars), Drug Research (lamm-mit/scienceclaw, 246 stars), Hcls Build Agent (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars) and Medical Research Toolkit (FreedomIntelligence/OpenClaw-Medical-Skills, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pharma DB Tools?

DrugClaw (a GitHub organization) maintains it in DrugClaw/DrugClaw, which has 126 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on March 23, 2026.

Source: DrugClaw/DrugClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.