agentleFS
learningmatter-mitlearningmatter-mit/AtomisticSkills/.agents/skills/drug-ligand-prep/SKILL.md

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.

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
  1. Distinctive:

    Use the script to process SMILES/SDF files and enumerate protonation/tautomer states.

    line 22
  2. Very specific:

    Use the mcp_drugdisc_convert_to_pdbqt tool to generate the final 3D docking input.

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ligand Preparation

Goal

To prepare small-molecule ligands for molecular docking and downstream analysis by:

  1. optionally enumerating relevant ligand ionization states and tautomers,
  2. generating 3D conformers with RDKit ETKDG (via MCP),
  3. minimizing with MMFF94/UFF (via MCP),
  4. 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

  1. 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/
  2. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.