/atomistic-skills:drug-binding-site-definitionfrom Atomistic Skills
Defines a standardized docking search box (center coordinates + dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or saved JSON. Supports three modes: ligand-based, residue-based, and reload from file.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To produce a standardized docking / simulation box definition (center coordinates + box dimensions in Angstroms) that downstream skills such as drug-docking-vina and drug-complex-system-builder can consume directly.
Use this decision tree to pick the appropriate approach:
Do you have a reference ligand positioned in the binding site?
|-- YES --> Mode A (co-crystal ligand)
|-- NO
Do you know the key binding-site residues (from literature, mutagenesis, etc.)?
|-- YES --> Mode B (residue list)
|-- NO
Do you have a closely related protein with a known binding site?
|-- YES --> Superimpose structures, transfer the ligand,
| then use Mode A on the transferred ligand.
| (See "When You Have No Binding-Site Information" below.)
|-- NO --> Run computational pocket prediction first
(see "When You Have No Binding-Site Information" below),
then feed results into Mode A or B.
If you already have a saved box JSON from a prior run, use Mode C to reload it.
If you have a reference ligand already positioned in the binding site (PDB, SDF, MOL2, or PDBQT), compute the box automatically:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/define_binding_site.py \
--mode ligand \
--ligand_file docking/inputs/reference_ligand.sdf \
--padding 6.0 \
--min_size 20.0 \
--output_json docking/inputs/binding_site.json
Key parameters:
--padding: buffer added to the ligand bounding box on each side (default 6.0 A). Use 4-5 A for tight/buried pockets, 8-10 A for shallow or allosteric sites.--min_size: minimum box edge length per axis (default 20.0 A).The ligand must be in the same coordinate frame as the receptor. If it comes from a different crystal structure, superimpose first.
When no co-crystal ligand is available but you know the key binding-site residues (e.g., from literature or mutagenesis data):
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/define_binding_site.py \
--mode residues \
--protein_file protein_prepared.pdb \
--residues "A:ASP25,A:THR26,A:GLY27,A:ILE50,A:ASP124,A:THR125,A:GLY126" \
--padding 8.0 \
--min_size 20.0 \
--output_json docking/inputs/binding_site.json
Residue format: comma-separated chain:resname+resid (e.g., A:ASP25). You can omit the chain prefix (e.g., 25,26,27,50) only if the protein contains a single chain; for multi-chain structures always include the chain ID to avoid ambiguity.
Re-use a previously computed box:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/define_binding_site.py \
--mode json \
--input_json docking/inputs/binding_site.json
This validates the JSON and prints the box to stdout for inspection.
The output JSON has the following schema:
{
"center_x": 16.0,
"center_y": 25.0,
"center_z": 2.0,
"size_x": 22.0,
"size_y": 24.0,
"size_z": 20.0,
"padding": 6.0,
"min_size": 20.0,
"mode": "ligand",
"source": "reference_ligand.sdf"
}
All coordinates and dimensions are in Angstroms.
Always verify that the box covers the expected pocket before docking. If PyMOL is available, use the included visualization script to render the box as a wireframe overlay:
${CLAUDE_SKILL_DIR}/../../venv/run cpu+pymol python ${CLAUDE_SKILL_DIR}/scripts/visualize_box.py \
--protein docking/inputs/protein_prepared.pdb \
--box docking/inputs/binding_site.json \
--ligand_resname MK1 \
--output docking/inputs/box_visualization.png
This produces a ray-traced PNG showing the protein (cartoon), ligand (yellow sticks), and docking box (red wireframe). The --ligand_resname flag is optional; omit it if no ligand is present.
If no viewer is available, at minimum sanity-check that the box center falls near the expected pocket by comparing coordinates to known active-site residues in the PDB.
If you have a protein structure but no co-crystal ligand and no literature on binding-site residues, you need to identify candidate pockets before defining a docking box.
If a homologous protein (>30% sequence identity) has a co-crystal structure, superimpose your target onto the template and extract the ligand coordinates in your target's reference frame. Then use Mode A on the transferred ligand. This is often the most reliable approach when a good template exists.
Open-source tools can identify probable binding pockets from protein geometry alone:
Pocket prediction is a starting point, not ground truth. Always cross-reference predicted sites against any available functional data (conservation scores, mutagenesis, known mechanism) before committing to a docking box.
If no structural or functional clues exist, you can define a box that covers the entire protein surface. This is computationally expensive and less reliable. To generate a whole-protein box, use Mode B with all surface residues, or manually set a large box (40-60 A per side) centered on the protein centroid. Treat blind docking results as hypothesis-generating, not definitive.
binding_site_orthosteric.json, binding_site_allosteric.json).This target is a homodimer; make sure you use the biological assembly containing both chains.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/define_binding_site.py \
--mode ligand \
--ligand_file hiv_docking/inputs/indinavir_ref.sdf \
--padding 6.0 \
--output_json hiv_docking/inputs/binding_site.json
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/define_binding_site.py \
--mode residues \
--protein_file hiv_docking/inputs/1HSG_prepared.pdb \
--residues "A:ASP25,A:THR26,A:GLY27,A:ALA28,A:ILE50" \
--padding 8.0 \
--output_json hiv_docking/inputs/binding_site.json
grep "^HETATM" ligand.pdb | wc -l for PDB, or open in a viewer). Convert to SDF using Open Babel if needed: obabel ligand.mol2 -O ligand.sdf.27A), non-standard numbering, or mismatched chain IDs. Run grep "^ATOM" protein.pdb | awk '{print $5, $6}' | sort -u to see available chain + residue ID combinations.--padding or verify that the ligand/residues are actually in the pocket you intended.cpu (cpu+pymol for visualize_box.py).chain:resid specification.Author: Matthew Cox Contact: GitHub @mcox3406
examples/hiv1-protease/1HSG_protein.pdb (opens in a new tab)examples/hiv1-protease/1HSG_raw.pdb (opens in a new tab)examples/hiv1-protease/MK1_ligand.pdb (opens in a new tab)examples/hiv1-protease/README.md (opens in a new tab)examples/hiv1-protease/binding_site_ligand.json (opens in a new tab)examples/hiv1-protease/binding_site_residues.json (opens in a new tab)examples/hiv1-protease/box_visualization.png (opens in a new tab)scripts/define_binding_site.py (opens in a new tab)scripts/visualize_box.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
docking-box, binding-site, grid-box, drug-discovery, molecular-docking
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.Other plugins' skills for the same job