pubchem-database
Skill0 starsChanged 25 days agoApache-2.0View on GitHub
Query PubChem, search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for cheminformatics. Use when a user asks about a specific chemical, drug, or molecule.
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★ 296% same
- uppifyagency/boilerplate-saas-2026★ 198% 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
- chembl-databaseSkill
- 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
- pubmed-databaseSkill
- pymolSkill
- quickgo-databaseSkill
- reactome-databaseSkill
- string-databaseSkill
- ucsc-conservation-and-tfbsSkill
- unibind-databaseSkill
- uniprot-databaseSkill
- uvSkill
- workflow-skill-creatorSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
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/pubchem_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently …
- Distinctive: line 36
Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly.
- Distinctive: line 39
Read the generated JSON output file, and process it with jq or code.
- Distinctive: line 40
Verify Facts: ALWAYS verify information retrieved from memory with a database query if the user asks for a specific fact that can be …
- Distinctive: line 43
Notification: If this skill is used, ensure this is mentioned in the output.
- Distinctive: line 148
If direct resolution by name or formula fails (e.g., for complex compounds or specific ions):
- Distinctive: line 151
Search for parent/neutral molecule: If searching for an ion or salt, try searching for the neutral parent compound.
- Distinctive: line 153
Deconstruct complex formulas: If a complex formula returns no results, try searching for major components or ligands.
- Distinctive: line 155
Use substructure or similarity search: If you have a SMILES string or can generate one for a component, use it to find related compounds.
“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
PubChem Database
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/pubchem_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://pubchem.ncbi.nlm.nih.gov/docs/citation-guidelines and https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest, then (2) create the file recording the notification text and timestamp.
Quick Start
PubChem queries are executed via a robust Python wrapper script to respect terms-of-service and handle complex JSON parsing. This script allows safe multi-agent use of APIs.
Example: Resolve a chemical name to its Compound ID (CID)
uv run scripts/pubchem_api.py resolve --name "aspirin" --output result.jsonCore Rules
- Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce the required rate limit gracefully.
- Read the generated JSON output file, and process it with jq or code.
- Verify Facts: ALWAYS verify information retrieved from memory with a database query if the user asks for a specific fact that can be checked in PubChem. Do not rely solely on internal knowledge.
- Notification: If this skill is used, ensure this is mentioned in the output.
Core Capabilities
1. Compound Resolution (Name or InChI to Identifiers) Convert chemical/trade names or InChI strings into PubChem CIDs, SMILES, and InChIKeys.
uv run scripts/pubchem_api.py resolve --name "ibuprofen" --output result.json
# OR
uv run scripts/pubchem_api.py resolve --inchi "InChI=1S/C3/c1-3-2/i1+1" --output result.json2. Physical & Chemical Property Retrieval Fetch computed properties (e.g., MolecularWeight, XLogP, TPSA).
uv run scripts/pubchem_api.py properties --cid 2244 --output result.json3. Synonyms and Trade Names Find alternative names and brand names.
uv run scripts/pubchem_api.py synonyms --cid 2244 --output result.jsonAdvanced Context
4. Safety and Hazard Information (GHS) Retrieve Global Harmonized System hazard statements and handling precautions (uses PUG-View).
uv run scripts/pubchem_api.py safety --cid 2244 --output result.json5. Drug and Medication Information Fetch FDA pharmacology data, mechanism of action, and therapeutic uses (uses PUG-View).
uv run scripts/pubchem_api.py pharmacology --cid 2244 --output result.json6. Custom Heading (PUG-View) Retrieve any specific heading from the PUG-View system (e.g., 'Geometry', 'Crystal Structures').
uv run scripts/pubchem_api.py view --cid 3939 --heading "Crystal Structures" --output result.json7. Image Generation Retrieve 2D chemical structure images. The script returns a Markdown-formatted image link.
uv run scripts/pubchem_api.py image --cid 2244 --output result.jsonComplex Search & Biology
8. Structure-Based Searching (Similarity & Substructure) Find molecules similar to a SMILES string or containing a specific substructure.
uv run scripts/pubchem_api.py similarity --smiles "CC(=O)OC1=CC=CC=C1C(=O)O" --output result.jsonand
uv run scripts/pubchem_api.py substructure --smiles "C1=CC=CC=C1" --output result.json9. BioAssay & Target Interactions Identify genes or proteins a chemical interacts with.
uv run scripts/pubchem_api.py assays --cid 2244 --output result.jsonAdvanced Usage & Workflows
10. Cross-references (Xrefs) Fetch identifiers cross-referenced with a CID (e.g., PatentID, PubMedID).
uv run scripts/pubchem_api.py xrefs --cid 2244 --type "PatentID" --output result.json11. Property Range Search Find CIDs within a specific property range.
Supported features include: molecular_weight, heavy_atom_count, xlogp,
tpsa, h_bond_donor_count, h_bond_acceptor_count, rotatable_bond_count,
exact_mass, monoisotopic_mass, and complexity.
uv run scripts/pubchem_api.py range --feature molecular_weight --min 400.0 --max 400.05 --output result.json12. Custom PUG-REST Query Execute a raw path against the PUG-REST API.
uv run scripts/pubchem_api.py query --path "compound/cid/2244/xrefs/PatentID/JSON" --output result.jsonFallback Search Strategies
If direct resolution by name or formula fails (e.g., for complex compounds or specific ions):
- Search for parent/neutral molecule: If searching for an ion or salt, try searching for the neutral parent compound.
- Deconstruct complex formulas: If a complex formula returns no results, try searching for major components or ligands.
- Use substructure or similarity search: If you have a SMILES string or can generate one for a component, use it to find related compounds.
Complex Queries and Multi-Step Tasks
- Custom/Complex Queries: For more details, read references/endpoints.md to construct raw PUG-REST URLs.
- Multi-Step Tasks: For complex tasks like drug discovery pipelines, follow the checklists in references/workflows.md.
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.

