Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

rdkit-general

FreeRuns bundled scriptsNot checked

Generates 2D chemical structure depictions (PNG/SVG), interactive HTML compound grids, standalone chemical applications/visualizers, and ChemDraw…

sharkrebelby sharkrebel★ 94 GitHub stars

About 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

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. Always execute skill scripts as uv run /path/to/script.py ... (or python3 /path/to/script.py ...); never run uv run python3 /path/to/script.py, as placing python3 after uv run bypasses the script's PEP 723 # /// script dependency block.
  2. User Notification: If .licenses/rdkit_general_LICENSE.txt does 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:

Core Rules

  • Run via uv run <script.py>: Execute every script directly as uv run <path/to/script.py> (without python3 after uv 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 the cheminformatics-core skill and use its curate_congeneric_corpus.py and descriptors.py workflows rather than writing custom Python scripts in /tmp or scratch/.

  • 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, or mermaid flowcharts (flowchart LR/TD boxes). Always render 2D structure depictions with scripts/draw_molecules.py (or render_mechanism.py for reactions) and format all tables and compound comparisons using GitHub Flavored Markdown (GFM). Read references/reporting_and_nomenclature_invariants.md when formatting technical reports, GFM tables, file:// links, or verifying IUPAC/stereochemical nomenclature.

  • Publication Visual Styling (scripts/compat.py): Prefer built-in --plot flags over writing freeform plotting code. Whenever you write custom Matplotlib/Seaborn code, import the styling helpers from scripts/compat.py, call set_safe_plot_style() before creating figures (layout="constrained"), use PUBLICATION_PALETTE colors, and call apply_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 axis
    

    Keep 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 --transparent with --dark-mode on scripts/draw_molecules.py when explicitly rendering light strokes onto a dark canvas. Use scripts/interactive_grid_viewer.py for interactive HTML compound grids ($\ge 5$ molecules).


1. Empirical Consistency & Full-Dataset Integrity

  • **Full Dataset Utilization (No Arbitrary Downsampling or Limits
Full SKILL.md on GitHub

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/chemdraw_cdxml_and_acs1996.mdreferences/descriptor_schema_and_canonicalization.mdreferences/rdkit_api_and_sanitization.mdreferences/rdkit_applications_and_visualizers.mdreferences/reporting_and_nomenclature_invariants.mdscripts/chemdraw_cdxml.pyscripts/compat.pyscripts/draw_molecules.pyscripts/interactive_grid_viewer.pyscripts/skill_paths.pyscripts/verify_chemical_nomenclature.py

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

Compare rdkit-general with