Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rdkit-general

БесплатноЗапускает вложенные скриптыНе проверен

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

sharkrebelот sharkrebel★ 94 звезды на GitHub

Об этом скилле

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
Полный SKILL.md на GitHub

Установить rdkit-general в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

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

Что делает скилл rdkit-general?

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.

Как установить скилл rdkit-general?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rdkit-general запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить rdkit-general с