Autodock Vina logo

Autodock Vina

Organization
K-Dense-AI
autodock-vina

Structure-based docking with AutoDock Vina, Vinardo, and AutoDock4 through the Meeko toolchain. Use this skill to define a docking box, prepare receptors and ligands as PDBQT, run single or batch docking, rescore, and interpret affinities, poses, and ligand efficiency. Covers box definition from a reference ligand or pocket residues, protonation and tautomer decisions, flexible side chains, exhaustiveness and seeds, redocking validation, and virtual screening over compound libraries. Also trigger on vina, smina, gnina, mk_prepare_ligand, mk_prepare_receptor, mk_export, scrub.py, PDBQT, autogrid4, docking box, or binding-pose prediction.

Overview

PublisherK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill nameautodock-vina
Stars
51
Forks
5
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by K-Dense-AI on GitHub. Read the source before you install it.

Installation

Install the Autodock Vina AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/autodock-vina
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skills.git /tmp/drug-discovery-agent-skills
mkdir -p .claude/skills
cp -r /tmp/drug-discovery-agent-skills/skills/autodock-vina .claude/skills/autodock-vina
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Autodock Vina in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Autodock Vina on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Autodock Vina is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AutoDock Vina

Classical, CPU-only, physics-style docking: put a ligand in a defined box and search for the pose that minimises an empirical scoring function. Unlike diffdock, it returns a score you can rank with; unlike boltz, it needs a receptor structure and a defined site, and runs on a laptop.

Docs: autodock-vina.readthedocs.io · meeko.readthedocs.io Checked against: Vina 1.2.7, Meeko 0.7.1.

Read references/receptor-preparation.md and references/ligand-preparation.md before running anything — that is where accuracy is won. Read references/scoring-and-interpretation.md before reporting a number, and references/troubleshooting.md when something fails.

Before anything else: what the score is

Vina's "affinity" in kcal/mol is an empirical scoring function with roughly 2–3 kcal/mol error — about two orders of magnitude in Kd. It is useful for enriching a library and for predicting a pose. It is not a predicted binding free energy, it is not comparable across targets or across scoring functions, and a −9.5 and a −8.2 are not distinguishable. Report it as what it is.

It also scales with heavy-atom count, so a library ranked by raw score puts the biggest molecules on top. Rank with ligand efficiency alongside; the parser computes it.

The workflow

bash
# 1. box, from the co-crystal ligand of a holo structure
python skills/autodock-vina/scripts/make_box.py 1iep.cif \
    --reference-ligand STI --out box.txt --box-pdb box.pdb

# 2. receptor and ligand PDBQT (Meeko, external)
mk_prepare_receptor.py -i receptor_H.pdb -o receptor -p -v \
    --box_center 15.190 53.903 16.917 --box_size 20 20 20
scrub.py ligands.smi -o ligands_3d.sdf --ph 7.4

# 3. dock
python skills/autodock-vina/scripts/dock_batch.py run \
    --receptor receptor.pdbqt --config box.txt --ligands ligands_3d.sdf \
    --exhaustiveness 32 --seed 42 --workers 8 --out-dir docking/

# 4. read the results, with the sanity checks
python skills/autodock-vina/scripts/parse_vina_output.py docking/*_out.pdbqt \
    --config box.txt --summary

dock_batch.py check verifies the toolchain first; --dry-run prints every command without running it.

The box is the parameter that matters

Too small and the correct pose cannot fit. Too large and the search dilutes — the exhaustiveness budget is fixed, so doubling the volume halves the sampling density and quietly degrades every result.

bash
# see what is bound before choosing
python skills/autodock-vina/scripts/make_box.py 1iep.cif --list-ligands
# component  chain  resseq  atoms
# STI        A      201     37

python skills/autodock-vina/scripts/make_box.py 1iep.cif --reference-ligand STI
# center_x = 15.190   size_x = 18.664
# center_y = 53.903   size_y = 26.739
# center_z = 16.917   size_z = 23.526

Four ways to define it, in descending order of reliability: --reference-ligand (a bound ligand in a holo structure), --residues A:790,A:797,A:855 (known pocket residues), --center/--size (explicit), and --chain (blind docking, which rarely reproduces a known pose — the script warns).

Ligand auto-selection skips waters, ions, buffers, and cryoprotectants, so the box does not land on a sulfate. Write --box-pdb and load it next to the receptor in PyMOL; looking at the box takes ten seconds and catches the coordinate mix-ups that produce a whole campaign of nonsense.

Reading results, including the failure flags

bash
python skills/autodock-vina/scripts/parse_vina_output.py out.pdbqt --config box.txt
ligand  rank  affinity_kcal_mol  ligandEfficiency  heavyAtoms  rmsd_lb  atEdge
lig1    1     -12.5              -0.34             37          0.000
lig1    2     -12.2              -0.33             37          1.234    +x
lig1    3     -9.1               -0.25             37          3.456

# warning: pose atoms within 1 A of the box wall (+x) -- the search was clipped
# warning: best and second pose differ by only 0.30 kcal/mol
  • atEdge invalidates a score. A pose touching the wall means the optimum may lie outside the box. Enlarge or recentre and re-dock. Passing --config is what enables this check, and it is the reason to pass it.
  • A sub-0.5 kcal/mol gap between the top two poses means the ranking is not a discrimination.
  • rmsd_lb/rmsd_ub are measured from the best pose, so a large spread means several distinct binding modes and a small one means the search kept converging — that is a good sign.

Settings that are not the defaults

  • --exhaustiveness 32, not 8. The AutoDock documentation says so itself for the imatinib tutorial. The default was tuned for small rigid ligands in a tight box.
  • --seed. The search is stochastic; without a fixed seed the run is not reproducible, and a ranking that changes between seeds is not a ranking.
  • --scoring vinardo is worth trying when Vina's poses look wrong. Scores from different functions are not comparable with each other.

Validate before you trust

Redock the co-crystal ligand into its own structure and measure RMSD to the crystal pose. Under 2 Å means the box, the protonation, and the receptor preparation can reproduce a known answer. Above that, fix the setup before docking anything unknown. Then cross-dock ligands from other structures of the same target — that predicts screening performance far better than self-docking.

One run, one hour, and it is the only calibration the method offers.

Where this fails

Metalloenzymes, highly charged pockets, water-mediated binding, induced fit needing backbone movement, covalent inhibitors, ligands with more than ~15 rotatable bonds, and fragments. In those cases say the method does not apply rather than reporting a score anyway. references/troubleshooting.md covers each and names the alternatives (smina, gnina, AutoDock-GPU, covalent protocols).

Composing with the rest of the bundle

  • uniprot-rcsb → here: find and check the structure, confirm the site residues are actually resolved, and download the coordinates.
  • binding-site-analysis → before: is the pocket worth docking into at all, and where exactly is it? pocket_box.py --format vina writes this skill's box config directly.
  • chemical-space → before: purchasable compounds to dock, and a costed screening cascade.
  • free-energy-perturbation → after: rigorous ΔΔG on the tens of compounds worth it.
  • medchem / rdkit / datamol → here: triage and standardise the library first. Docking 20,000 PAINS wastes the compute and pollutes the hit list.
  • molecular-dynamics → after: run the top poses; a pose that leaves the site in 10 ns was not a pose.
  • boltz → alongside: a trained affinity head answers a different question from a physics-style score, and agreement between the two is worth more than either alone.
  • diffdock → alternative: diffusion-based pose generation with no box, but no affinity.
  • chembl → validation: known actives against your target, for decoy enrichment.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Autodock Vina AI skill do?

Structure-based docking with AutoDock Vina, Vinardo, and AutoDock4 through the Meeko toolchain. Use this skill to define a docking box, prepare receptors and ligands as PDBQT, run single or batch docking, rescore, and interpret affinities, poses, and ligand efficiency. Covers box definition from a reference ligand or pocket residues, protonation and tautomer decisions, flexible side chains, exhaustiveness and seeds, redocking validation, and virtual screening over compound libraries. Also trigger on vina, smina, gnina, mk_prepare_ligand, mk_prepare_receptor, mk_export, scrub.py, PDBQT, auto...

Why use Autodock Vina on TypingMind?

Because you install it once and use it with any model. Autodock Vina is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Autodock Vina in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/autodock-vina. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Autodock Vina?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Autodock Vina?

As many as you like. As long as a model supports skills, you can use Autodock Vina with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Autodock Vina AI skill free?

Yes. It is published on GitHub by K-Dense-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇