drug-ligand-prep
Skill174 starsChanged 6 months agoMITView on GitHub
Prepare small-molecule ligands for docking and analysis via optional state enumeration, 3D conformer generation, MMFF/UFF minimization, and export to SDF + AutoDock PDBQT.
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-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- 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, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use the script to process SMILES/SDF files and enumerate protonation/tautomer states.
- Very specific: line 34
Use the mcp_drugdisc_convert_to_pdbqt tool to generate the final 3D docking input.
≈ “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
Ligand Preparation
Goal
To prepare small-molecule ligands for molecular docking and downstream analysis by:
- optionally enumerating relevant ligand ionization states and tautomers,
- generating 3D conformers with RDKit ETKDG (via MCP),
- minimizing with MMFF94/UFF (via MCP),
- exporting a docking-ready PDBQT (AutoDock-Vina) and an optimized SDF (via MCP).
This skill combines script-based state enumeration with MCP-based 3D generation to ensure reproducibility.
Instructions
1. Enumerate States (Optional Batch Processing)
Use the script to process SMILES/SDF files and enumerate protonation/tautomer states. This outputs 2D SDFs.
# Env: drugdisc-agent
python .agents/skills/drug-ligand-prep/scripts/prepare_ligand.py \
--smiles_file ligands.smi \
--enumerate_protomers \
--output_dir ligand_states/2. Generate 3D Conformer and PDBQT (using MCP)
Use the mcp_drugdisc_convert_to_pdbqt tool to generate the final 3D docking input.
From a single SMILES:
mcp_drugdisc_convert_to_pdbqt(
input_data="CC(=O)Oc1ccccc1C(=O)O",
input_type="smiles",
output_path="aspirin.pdbqt",
num_confs=50
)From an SDF (e.g. output of Step 1):
mcp_drugdisc_convert_to_pdbqt(
input_data="ligand_states/ligand_001.sdf",
input_type="sdf",
output_path="ligand_001.pdbqt",
num_confs=20
)Examples
Prepare Ibuprofen
- Enumerate inputs (if needed):
python .agents/skills/drug-ligand-prep/scripts/prepare_ligand.py \ --smiles "CC(C)Cc1ccc(cc1)[C@@H](C)C(=O)O" \ --name ibuprofen \ --output_dir prep_stages/ - Generate PDBQT:
mcp_drugdisc_convert_to_pdbqt( input_data="prep_stages/ibuprofen.sdf", input_type="sdf", output_path="prep_stages/ibuprofen.pdbqt", num_confs=50 )
Constraints
- Environment: Requires
drugdisc-agent. - 3D/PDBQT: Delegated to
mcp_drugdisc_convert_to_pdbqt(Meeko/RDKit). - State Enumeration: The script handles batch enumeration of protonation/tautomer states, but 3D generation is done by the MCP tool.
Author: Matthew Cox Contact: GitHub @mcox3406
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.

