chembl-database
Skill0 starsChanged 25 days agoApache-2.0View on GitHub
Query the ChEMBL database for bioactive molecules, drug targets, bioactivity data, approved drugs, and chemical structures. Use when the user asks about compounds, targets, IC50/Ki values, drug mechanisms, or structure searches.
12 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- BrightGold70/skillstheir own version, first seen Nov 8, 2026
- 1stANUNNAKI/majlisedited, first seen Nov 8, 2026
- MarieLynneBlock/arcanum-artifextheir own version, first seen Nov 1, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- garri333/Skillstheir own version, first seen Oct 11, 2026
- wu-yc/LabClawtheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 2
- google-deepmind/science-skills★ 3.4k100% same
- BeyondTheProtocol/polaris★ 47100% same
Edited · 2
- 1stANUNNAKI/majlis★ 298% same
- uppifyagency/boilerplate-saas-2026★ 199% same
Wrote their own version · 8
- wu-yc/LabClaw★ 1.1ksame name
- LeonChaoX/qinyan-academic-skills★ 910same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- MarieLynneBlock/arcanum-artifex★ 4same name
- BrightGold70/skills★ 1same name
- garri333/Skills★ 1same name
- yf8578/claude-skills-collection★ 1same name
- davidanthonyn/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- vector-geneSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-atlas-website-linksSkill
- alphagenome-single-variant-analysisSkill
- alphagenome-variant-impact-scoreSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- credentialsSkill
- dbsnp-databaseSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- ensembl-databaseSkill
- foldseek-structural-searchSkill
- gnomad-databaseSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- interpro-databaseSkill
- jaspar-databaseSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- ncbi-sequence-fetchSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- pdb-databaseSkill
- predictingthepastSkill
- protein-sequence-msaSkill
- protein-sequence-similarity-searchSkill
- pubchem-databaseSkill
- pubmed-databaseSkill
- pymolSkill
- quickgo-databaseSkill
- reactome-databaseSkill
- string-databaseSkill
- ucsc-conservation-and-tfbsSkill
- unibind-databaseSkill
- uniprot-databaseSkill
- uvSkill
- workflow-skill-creatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. - Very specific: line 15
User Notification: If .licenses/chembl_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently …
- Distinctive: line 35
Notification: If this skill is used, ensure this is mentioned in the output.
- Distinctive: line 40
All ChEMBL API queries use one script with subcommands:
- Very specific: line 188
All list endpoints support --limit and --offset for pagination:
- Distinctive: line 206
All remaining endpoints follow the same pattern:
- Very specific: line 273
Use status --output /tmp/status.json to verify the API is available.
- Distinctive: line 274
Search for targets, molecules, or drugs using the relevant subcommand.
- Distinctive: line 275
Read the output JSON file to extract IDs and data.
- Distinctive: line 276
Use IDs from search results to fetch detailed records.
- Very specific: line 278
Use --normalize when comparing values across studies.
- Very specific: line 279
Use similarity or substructure for server-side structure-based queries.
- Very specific: line 282
Use target --filter target_components__accession=<UniProt> to cross- reference with UniProt.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ChEMBL Database Query
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/chembl_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://chembl.gitbook.io/chembl-interface-documentation/about, then (2) create the file recording the notification text and timestamp.
Core Rules
- [!IMPORTANT] Use the Utility Scripts: You MUST ALWAYS use the provided
utility script
scripts/chembl_api.pyfor all ChEMBL API interactions, including checking status. NEVER usecurlor custom Python requests to query the ChEMBL API directly. This ensures rate limit is enfoced and also retries on network errors. - Output to File (Required): The
--outputflag is required for every subcommand. All JSON results are written to the specified file. After running the command, read the output file with jq or your own code to extract the data. List results are typically wrapped in a JSON array keyed by the endpoint name (e.g.,molecules,activities). - Notification: If this skill is used, ensure this is mentioned in the output.
Utility Script
All ChEMBL API queries use one script with subcommands:
uv run scripts/chembl_api.py <subcommand> --output <file> [options]1. Check API Status
uv run scripts/chembl_api.py status --output /tmp/status.json2. Molecule Queries
Fetch by ChEMBL ID: bash uv run scripts/chembl_api.py molecule --id
CHEMBL25 --output /tmp/mol.json
Search by name: bash uv run scripts/chembl_api.py molecule --search
"aspirin" --limit 3 --output /tmp/mol_search.json
Batch fetch: bash uv run scripts/chembl_api.py molecule --ids
"CHEMBL25;CHEMBL1642" --limit 10 --output /tmp/mol_batch.json
Filter by properties: bash uv run scripts/chembl_api.py molecule --filter
molecule_properties__mw_freebase__lte=500 --limit 5 --output
/tmp/mol_filter.json
Filter by range: bash uv run scripts/chembl_api.py molecule --filter
molecule_properties__mw_freebase__range=150,200 --limit 5 --output
/tmp/mol_range.json
Download SDF structure file: bash uv run scripts/chembl_api.py molecule
--id CHEMBL25 --dl_format sdf --output /tmp/aspirin.sdf
Tip: SDF/MOL files can be passed directly to tools like PyMOL or RDKit for 3D visualization and analysis.
3. Target Queries
Search for targets: bash uv run scripts/chembl_api.py target --search
"EGFR" --limit 5 --output /tmp/targets.json
Fetch by ID: bash uv run scripts/chembl_api.py target --id CHEMBL203
--output /tmp/egfr.json
4. Bioactivity Data
Fetch activity by ID: bash uv run scripts/chembl_api.py activity --id 31863
--output /tmp/act.json
Search activities: bash uv run scripts/chembl_api.py activity --search
"EGFR" --limit 5 --output /tmp/act_search.json
Filter activities for a target: bash uv run scripts/chembl_api.py activity
--filter target_chembl_id=CHEMBL203 standard_type=IC50 --limit 10 --output
/tmp/egfr_ic50.json
Normalize bioactivity units to nM: bash uv run scripts/chembl_api.py
activity --filter target_chembl_id=CHEMBL203 standard_type=IC50 --limit 5
--normalize --output /tmp/egfr_normalized.json
Important: Bioactivity values come in various units (nM, µM, pM). Use
--normalizeto convert all values to nM for consistent comparison. Each record will includenormalized_value_nMandnormalization_note.
5. Drug Information
Fetch drug details: bash uv run scripts/chembl_api.py drug --id CHEMBL25
--output /tmp/drug.json
Drug indications: bash uv run scripts/chembl_api.py drug_indication
--filter molecule_chembl_id=CHEMBL25 --limit 10 --output /tmp/indications.json
Filter indications by phase: bash uv run scripts/chembl_api.py
drug_indication --filter molecule_chembl_id=CHEMBL25 max_phase_for_ind=4.0
--limit 10 --output /tmp/approved_indications.json
Drug warnings: bash uv run scripts/chembl_api.py drug_warning --limit 5
--output /tmp/warnings.json
Mechanisms of action: bash uv run scripts/chembl_api.py mechanism --filter
molecule_chembl_id=CHEMBL25 --limit 5 --output /tmp/mech.json
6. Structure-Based Searches
Note: Both similarity and substructure searches are performed server-side on ChEMBL's pre-indexed database. They do not require a local RDKit installation.
Similarity search (SMILES + threshold): bash uv run scripts/chembl_api.py
similarity --smiles "CC(=O)Oc1ccccc1C(=O)O" --similarity 85 --limit 5 --output
/tmp/similar.json
Substructure search (SMILES): bash uv run scripts/chembl_api.py
substructure --smiles "c1ccccc1" --limit 5 --output /tmp/substruct.json
7. Compound Image
Download a 2D structure image (SVG by default, scalable for publication):
uv run scripts/chembl_api.py image --id CHEMBL25 --output /tmp/chembl25.svgOptions:
--dimensions: Image size in pixels (max 500, default 500).--engine: Rendering engine (default: rdkit).--img_format: Output format —svg(default, vector) orpng(raster).
8. Cross-Referencing with Other Databases
ChEMBL integrates with UniProt, Ensembl, PubChem, and other databases. Common cross-referencing patterns:
Find a ChEMBL target from a UniProt accession: bash uv run
scripts/chembl_api.py target --filter target_components__accession=P00533
--limit 5 --output /tmp/uniprot_target.json
Resolve any ChEMBL ID to its entity type: bash uv run scripts/chembl_api.py
chembl_id_lookup --id CHEMBL203 --output /tmp/lookup.json
Look up cross-reference sources: bash uv run scripts/chembl_api.py
xref_source --limit 10 --output /tmp/xrefs.json
Tip: Use the
target_componentendpoint to find UniProt accessions, gene names, and protein sequences for any ChEMBL target.
9. Pagination
All list endpoints support --limit and --offset for pagination:
# First page: 2 results starting at offset 0
uv run scripts/chembl_api.py molecule --limit 2 --offset 0 --output /tmp/page1.json
# Second page: next 2 results starting at offset 2
uv run scripts/chembl_api.py molecule --limit 2 --offset 2 --output /tmp/page2.jsonThe response includes page_meta with total_count, limit, offset, next,
and previous links. Use successive --offset values to page through large
result sets.
10. Other Endpoints
All remaining endpoints follow the same pattern:
uv run scripts/chembl_api.py <subcommand> --output <file> [--id ID | --ids ID1;ID2 | --search QUERY] [--limit N] [--offset N] [--filter KEY=VAL ...]Key subcommands at a glance:
molecule(searchable: true): Molecules/compounds — the primary entry pointtarget(searchable: true): Drug targets (proteins, organisms, etc.)activity(searchable: true): Bioactivity data (IC50, Ki, EC50, etc.)drug(searchable: false): Approved drugsmechanism(searchable: false): Mechanisms of actionassay(searchable: true): Assay descriptionssimilarity(searchable: false): Similarity search (special)substructure(searchable: false): Substructure search (special)image(searchable: false): Compound image download (special)
Full subcommand list:
activity_supp(searchable: false): Supplementary activity dataassay_class(searchable: false): Assay classificationsatc_class(searchable: false): ATC drug classificationsbinding_site(searchable: false): Binding site informationbiotherapeutic(searchable: false): Biotherapeutic moleculescell_line(searchable: false): Cell line detailschembl_id_lookup(searchable: true): ChEMBL ID resolutionchembl_release(searchable: false): Database release infocompound_record(searchable: false): Compound recordscompound_structural_alert(searchable: false): Structural alertsdocument(searchable: true): Literature documentsdocument_similarity(searchable: false): Document similaritydrug_indication(searchable: false): Drug indicationsdrug_warning(searchable: false): Drug safety warningsgo_slim(searchable: false): GO slim termsmetabolism(searchable: false): Metabolism datamolecule_form(searchable: false): Molecule forms (salts/parents)organism(searchable: false): Organismsprotein_classification(searchable: true): Protein classificationssource(searchable: false): Data sourcestarget_component(searchable: false): Target protein componentstarget_relation(searchable: false): Target relationshipstissue(searchable: false): Tissue typesxref_source(searchable: false): Cross-reference sourcesstatus(searchable: false): API status check (special)
Common Options
--output FILE: Required. Output file path for JSON results.--id ID: Fetch a single record by ID.--ids ID1;ID2;...: Batch fetch multiple records.--search QUERY: Free-text search (only for searchable endpoints, marked ✓).--limit N: Max results to return (default: 5).--offset N: Pagination offset.--filter KEY=VAL: Filter parameters (can specify multiple).--normalize: (activity only) Normalize values to nM.--dl_format sdf|mol: (molecule only) Download structure file.
Reference
- API Endpoints Reference: See references/api_endpoints.md for the full list of endpoints and filter operators.
Workflow
- Use
status --output /tmp/status.jsonto verify the API is available. - Search for targets, molecules, or drugs using the relevant subcommand.
- Read the output JSON file to extract IDs and data.
- Use IDs from search results to fetch detailed records.
- Query
activitywith filters to get bioactivity data for targets/molecules. Use--normalizewhen comparing values across studies. - Use
similarityorsubstructurefor server-side structure-based queries. - Download compound images with
imageor structure files withmolecule --dl_format sdf. - Use
target --filter target_components__accession=<UniProt>to cross- reference with UniProt.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

