rdkit
Helps your agent work with molecules. It can read information about them, calculate properties, and find similar molecules. It's useful for those working with chemistry who want to analyze or create new substances.
What it does
RDKit is a tool for scientists working with molecules. It helps analyze and manipulate chemical structures, calculate properties, and understand how they relate.
When to use it
- ✓When researching new drugs.
- ✓When studying how molecules interact.
- ✓When creating models of chemical compounds.
Example of what to ask your AI
“Calculate the molecular weight and LogP for the molecule with SMILES 'CCO'.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You provide information about a molecule (like its formula or name), and RDKit uses its algorithms to calculate properties or perform searches. It can generate visual representations or numerical data about the molecule.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkitOr download just the file:
curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/rdkit/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
RDKit Cheminformatics Toolkit
Overview
RDKit is a comprehensive cheminformatics library providing Python APIs for molecular analysis and manipulation. This skill provides guidance for reading/writing molecular structures, calculating descriptors, fingerprinting, substructure searching, chemical reactions, 2D/3D coordinate generation, and molecular visualization. Use this skill for drug discovery, computational chemistry, and cheminformatics research tasks.
Tested stable baseline (reviewed 2026-10-01): RDKit 2026.03.6, distributed as rdkit==2026.3.6 on PyPI; this is the current stable GitHub/PyPI release. Official installation docs continue to recommend conda-forge for most users, while cross-platform PyPI wheels are published under the rdkit package name. rdkit-pypi is the old PyPI package name and should only appear when maintaining legacy environments.
Installation and Setup
Use uv when installing into an existing Python environment:
uv pip install "rdkit==2026.3.6"
For reproducible chemistry environments, especially when mixing compiled scientific packages, conda-forge remains the upstream recommendation:
conda create -c conda-forge -n my-rdkit-env rdkit
conda activate my-rdkit-env
Avoid installing both conda rdkit and PyPI rdkit/rdkit-pypi into the same environment unless you are deliberately debugging packaging behavior. Mixed installs can make it unclear which binary extension is being imported.
Core Capabilities
Twelve capability areas, each with worked code, are documented in references/core_capabilities.md:
| # | Area | Covers |
|---|---|---|
| 1 | Molecular I/O and creation | SMILES, MOL files and blocks, InChI, SDF and SMILES suppliers, multithreaded reading, writers |
| 2 | Sanitization and validation | disabling automatic sanitization, manual and partial sanitization, detecting problems first |
| 3 | Analysis and properties | atom and bond iteration, ring information and SSSR, chirality and stereochemistry, fragments |
| 4 | Descriptors | MW, LogP, TPSA, H-bond donors/acceptors, rotatable bonds, aromatic rings, bulk calculation, drug-likeness |
| 5 | Fingerprints and similarity | topological, Morgan/ECFP via rdFingerprintGenerator, MACCS, atom pair, torsion, Avalon; Tanimoto and other metrics; Butina clustering |
| 6 | Substructure searching | SMARTS queries, match retrieval, and a library of common patterns |
| 7 | Chemical reactions | reaction SMARTS, applying reactions, reaction fingerprints |
| 8 | 2D and 3D coordinates | depiction, template alignment, ETKDG embedding, force-field optimization, RMSD, constrained embedding |
| 9 | Visualization | single and grid images, substructure highlighting, custom drawer options, Jupyter integration, fingerprint bit environments |
| 10 | Molecular modification | explicit hydrogens, Kekulization, aromaticity, substructure replacement, charge neutralization |
| 11 | Hashes and standardization | Murcko scaffold and canonical hashes, regioisomer hashes, randomized SMILES for augmentation |
| 12 | Pharmacophore and 3D features | feature factories and feature extraction |
Worked workflows and the performance, thread-safety, and version-sensitivity notes are in references/workflows_and_best_practices.md.
Prefer portable exchange formats (SMILES, SDF) for shared data; for local caches RDKit's binary molecule representation avoids generic pickle.
Preserve chemical meaning
Canonical isomeric SMILES records one molecular graph under a particular RDKit
version. It does not merge tautomers, choose a pH-dependent protonation state,
remove salts, or resolve unspecified stereo. Preserve the original structure and
source ID before any explicit standardization policy. Similarity 1.0 is not an
identity test: fingerprints collide and the bundled search ignores chirality
unless --chirality is selected. See the tested identity/standardization example
in references/workflows_and_best_practices.md.
The helpers retain one-based source IDs through invalid-record filtering, reject empty molecules, and perform no implicit salt stripping or neutralization. SMILES files have no header; RDKit parses a SMILES/CXSMILES structure followed by an optional name. Text outputs retain enhanced stereo groups as CXSMILES;
…
FAQ
What is SMILES?
SMILES is a way to represent chemical structures using a simple text string.
What are molecular descriptors like MW and LogP?
MW (Molecular Weight) is the total weight of a molecule. LogP is a measure of how soluble a molecule is in fat versus water.
What is 'substructure search'?
It's like searching for a specific piece (substructure) within a larger molecule.
Details
Original description by the author
Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.
Popularity
- GitHub stars
- 51k
- Ranking position
- #1961
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
13c-metabolic-flux
Estimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
K-Dense-AI/scientific-agent-skills
adaptyv
Designs protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
K-Dense-AI/scientific-agent-skills
aeon
Performs machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
K-Dense-AI/scientific-agent-skills
alphagenome
Looks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
K-Dense-AI/scientific-agent-skills
Similar skills
pytorch-patterns
Helps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
affaan-m/ECC
evm-token-decimals
Helps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
affaan-m/ECC
knowledge-agent
Creates and queries knowledge bases using AI. It allows asking questions about past work or compiling expertise on a topic.
thedotmack/claude-mem