drug-retrosynthesis
Skill174 starsChanged 6 months agoMITView on GitHub
Predict synthetic accessibility and retrosynthetic pathways for novel molecules using the IBM RXN API.
- Reads credentials
- Installs packages
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-property-unitsSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Ensure you have the valid canonical SMILES string for the target material or chemical you wish to synthesize.
- Distinctive: line 28
Use the wrapper script to submit the SMILES string to the IBM RXN API.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
drug-retrosynthesis
Goal
To predict the retrosynthetic pathways and synthetic accessibility of novel small molecules (such as undocumented fluorinated gases) using the state-of-the-art transformer models provided by IBM RXN for Chemistry.
Instructions
1. Identify Target Molecule
Ensure you have the valid canonical SMILES string for the target material or chemical you wish to synthesize.
2. Set Up the IBM RXN Environment
Because IBM RXN is a cloud-hosted API, you must have an API Key.
- Sign up for a free IBM RXN account at https://rxn.res.ibm.com/
- Generate an API Key in your user profile.
- Export the key in your terminal session before running the skill script:
export RXN_API_KEY="your-api-key-here"3. Run Retrosynthesis Evaluation
Use the wrapper script to submit the SMILES string to the IBM RXN API. The script will poll the server and return the predicted pathway and a confidence score for synthetic feasibility.
# Env: drugdisc-agent
python .agents/skills/drug-retrosynthesis/scripts/evaluate_ibm_rxn.py "target_smiles" --steps 3Examples
Evaluating the synthetic pathway for a fluorinated gas analog (e.g., 2,3,3,3-tetrafluoropropene: FC(F)(F)C(F)=C):
# Env: drugdisc-agent
export RXN_API_KEY="api-key-here"
python .agents/skills/drug-retrosynthesis/scripts/evaluate_ibm_rxn.py "FC(F)(F)C(F)=C" --steps 3Constraints
- Environments: Requires the
drugdisc-agentconda environment. - Dependencies: The script relies on the
rxn4chemistrypython library (pip install rxn4chemistry). If not installed, the script will gracefully exit with instructions. - Rate Limits: The IBM RXN free tier has API limits. Do not use this in a high-throughput loop for thousands of molecules without a premium tier.
- Sourcing Constraints: This tool does not directly check commercial availability of the proposed precursors. You must manually verify if the starting materials proposed by IBM RXN are commercially available.
References
- Schwaller, P. et al., "Predicting retrosynthetic pathways using a combined linguistic model and hyper-graph exploration strategy," Chemical Science, 2020. DOI:10.1039/C9SC05033H
- IBM RXN for Chemistry: https://rxn.res.ibm.com/
Author: Sathya Edamadaka Contact: GitHub @snme
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.

