rdkit-general
FreeRuns bundled scriptsNot checkedGenerates 2D chemical structure depictions (PNG/SVG), interactive HTML compound grids, standalone chemical applications/visualizers, and ChemDraw…
by sharkrebel★ 94 GitHub starsAbout this skill
RDKit General Foundation (rdkit-general)
Overview
rdkit-general provides 2D molecular depictions (scripts/draw_molecules.py),
sortable interactive HTML structure grids
(scripts/interactive_grid_viewer.py), ChemDraw .cdxml/.cdx document
conversion (scripts/chemdraw_cdxml.py), programmatic IUPAC and stereochemical
nomenclature verification (scripts/verify_chemical_nomenclature.py), shared
RDKit version compatibility and plotting helpers (scripts/compat.py), and
architectural patterns for building standalone chemical applications,
dashboards, and visualizers on top of the cheminformatics-* skill suite
(references/rdkit_applications_and_visualizers.md).
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH. Always execute skill scripts asuv run /path/to/script.py ...(orpython3 /path/to/script.py ...); never runuv run python3 /path/to/script.py, as placingpython3afteruv runbypasses the script's PEP 723# /// scriptdependency block.- User Notification: If
.licenses/rdkit_general_LICENSE.txtdoes not already exist in the workspace root then (1) prominently notify the user of the terms of use for the tools and data sources this skill relies on, then (2) create the file recording the notification text and timestamp:- OPSIN (Apache 2.0, https://opsin.ch.cam.ac.uk) and PubChem PUG
REST (https://pubchem.ncbi.nlm.nih.gov/docs/citation-guidelines), used
by
scripts/verify_chemical_nomenclature.py - RDKit: BSD 3-Clause License (Landrum et al.)
- OPSIN (Apache 2.0, https://opsin.ch.cam.ac.uk) and PubChem PUG
REST (https://pubchem.ncbi.nlm.nih.gov/docs/citation-guidelines), used
by
Core Rules
Run via
uv run <script.py>: Execute every script directly asuv run <path/to/script.py>(withoutpython3afteruv run) so inline PEP 723 metadata resolves dependencies (rdkit,polite-http,pandas, etc.).Write results to a file: Pass
--output(or--output_csv/--output_json/--output_sdf) so large result sets stay out of the context window, then read back only what you need.Never invent chemistry: Do not report a descriptor, price, CAS number, binding affinity, or vendor that a script did not actually return. Cite the data source in the deliverable.
Do not modify skill scripts in place, and never write scratch scripts for series harvesting or curation: Run existing scripts in
scripts/(--help) directly. For harvesting ChEMBL/PubMed literature, merging patent tables, aligning/coalescing assay columns, splitting cohorts, computing physicochemical descriptors, and plotting chemical space distributions, read thecheminformatics-coreskill and use itscurate_congeneric_corpus.pyanddescriptors.pyworkflows rather than writing custom Python scripts in/tmporscratch/.No ASCII Structures, Monospace Tables, or Mermaid Chemical/SAR Diagrams: Never render chemical structures, scaffolds, lead-optimization progressions (
Lead A -> Precursor B -> Drug C), reaction schemes, or property tables using ASCII art, monospace code blocks, ormermaidflowcharts (flowchart LR/TDboxes). Always render 2D structure depictions withscripts/draw_molecules.py(orrender_mechanism.pyfor reactions) and format all tables and compound comparisons using GitHub Flavored Markdown (GFM). Readreferences/reporting_and_nomenclature_invariants.mdwhen formatting technical reports, GFM tables,file://links, or verifying IUPAC/stereochemical nomenclature.Publication Visual Styling (
scripts/compat.py): Prefer built-in--plotflags over writing freeform plotting code. Whenever you write custom Matplotlib/Seaborn code, import the styling helpers fromscripts/compat.py, callset_safe_plot_style()before creating figures (layout="constrained"), usePUBLICATION_PALETTEcolors, and callapply_publication_spines(ax)on every subplot axis:from compat import PUBLICATION_PALETTE, apply_publication_spines, set_safe_plot_style set_safe_plot_style() # Call before plt.subplots(..., layout="constrained"); call apply_publication_spines(ax) on every axisKeep default opaque white backgrounds (
clearBackground = True) or wrap 2D depictions in a white.chem-svg-well(background: #ffffff; border-radius: 8px; padding: 8px;) so ACS 1996 black (#000000) bonds remain legible in both light and dark UIs; only pair--transparentwith--dark-modeonscripts/draw_molecules.pywhen explicitly rendering light strokes onto a dark canvas. Usescripts/interactive_grid_viewer.pyfor interactive HTML compound grids ($\ge 5$ molecules).
1. Empirical Consistency & Full-Dataset Integrity
- **Full Dataset Utilization (No Arbitrary Downsampling or Limits
Install rdkit-general in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the rdkit-general skill do?
Generates 2D chemical structure depictions (PNG/SVG), interactive HTML compound grids, standalone chemical applications/visualizers, and ChemDraw (.cdxml/.cdx) documents using ACS 1996 publication styling; validates IUPAC/stereochemical nomenclature and provides shared RDKit version compatibility helpers.
How do I install the rdkit-general skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the rdkit-general skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic