rdkit — Claude Code skill: what it does, how to install
Guides coding agents through cheminformatics tasks in Python, including SMILES parsing, descriptor calculations, and 3D coordinate generation.
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a claude-codeWhat rdkit does
This skill guides agents through Python cheminformatics. It covers parsing SMILES and SDF formats, validating structures, and computing properties such as LogP and TPSA.
The reference covers Morgan fingerprints and SMARTS queries. It also details ETKDG 3D coordinate embedding. Checking the return code of EmbedMolecule is critical. A value of -1 indicates embedding failure. Sending a failed conformer to force-field optimization breaks the run.
Workflows require the rdkit Python package. It was tested on version 2026.03.6 with Python 3.13. No network access or API credentials are required after setup. Mixing conda and pip installs causes binary extension conflicts.
What it helps with
- parse and sanitize molecular structures from SMILES and SDF files
- calculate molecular descriptors including LogP, TPSA, and molecular weight
- execute substructure searches using SMARTS query patterns
- generate 3D conformers with ETKDG and optimize geometries
Example prompts for the agent
- Calculate LogP, TPSA, and molecular weight for these SMILES strings using RDKit
- Generate 3D coordinates for this molecule using ETKDG and check for embedding failures
- Search this SDF file for substructures matching the specified SMARTS pattern
How to install rdkit
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a claude-code2Manually: put the files in place
~/.claude/skills/rdkit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/rdkit/
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a codex2Manually: put the files in place
.agents/skills/rdkit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a cursor2Manually: put the files in place
.cursor/skills/rdkit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install K-Dense-AI/scientific-agent-skills rdkit2Manually: put the files in place
.github/skills/rdkit/SKILL.md1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a gemini-cli2Platform CLI
gemini skills install https://github.com/K-Dense-AI/scientific-agent-skills --path skills/rdkitManually: put the files in place
.devin/skills/rdkit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set120
The whole set →Similar
Questions about rdkit
How to install rdkit in Claude Code?
Run npx skills add K-Dense-AI/scientific-agent-skills --skill rdkit -a claude-code in your terminal. You can also install it manually by saving the skill to ~/.claude/skills/rdkit/SKILL.md.
What does the rdkit skill do?
It provides patterns and instructions for Python cheminformatics. The agent handles descriptor calculation, SMARTS substructure matching, fingerprint generation, and 3D coordinates.
What prerequisites are required?
You need Python with the rdkit package installed. The skill operates locally and does not require API keys or internet access.