Agent skill

Chemical Structure Converter

by aipoch in aipoch/medical-research-skills

Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds.

MITAuto-check passedResearch & Science

Install Chemical Structure Converter

skills CLI
$ npx skills add aipoch/medical-research-skills --skill chemical-structure-converter -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills chemical-structure-converter --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/scientific-skills/Other/chemical-structure-converter .claude/skills/chemical-structure-converter && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
chemical-structure-converter
GitHub stars
1.9k
Token cost
~1.7k tokens
SKILL.md length
630 words
Files
3 (incl. scripts)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds.

  • Works in 3 steps: Multi-Format Conversion → SMILES Validation → Batch Processing
  • Tasks that involve Drug discovery and cheminformatics
  • SKILL.md covers Input Validation, Quick Check, Workflow and Core Capabilities, plus 7 more sections
  • Runs Python scripts from its folder; calls python; reaches pubchem.ncbi.nlm.nih.gov and chemspider.com

What it does

Chemical Structure Converter is an agent skill from aipoch/medical-research-skills. Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds. Supports SMILES validation, batch processing, structure standardization, and cheminformatics database preparation for drug discovery workflows.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `chemical-structure-converter_audit_result_v4.json` and `scripts/main.py`).

It sits in Research & Science, covering Drug discovery and cheminformatics and Data pipelines and ETL. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Drug discovery and cheminformatics
  • Tasks that involve Data pipelines and ETL

Example prompts

  • “/chemical-structure-converter”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Multi-Format Conversion
  2. SMILES Validation
  3. Batch Processing

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pubchem.ncbi.nlm.nih.gov
    • chemspider.com

    Also links to:

    • opensmiles.org
    • rdkit.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chemical Structure Converter loads about 1.7k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 630 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 630 words, ~1,708 tokens.

Download SKILL.mdSave it as .claude/skills/chemical-structure-converter/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
chemical-structure-converter
description
Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds. Supports SMILES validation, batch processing, structure standardization, and cheminformatics database preparation for drug discovery workflows.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Chemical Structure Converter

Interconvert between different chemical structure representations including IUPAC names, SMILES strings, molecular formulas, and common names. Essential for cheminformatics workflows, database standardization, and compound registration in drug discovery and chemical research.

Key Capabilities:

  • Multi-Format Conversion: IUPAC names, SMILES, InChI, molecular formulas
  • SMILES Validation: Validate SMILES syntax for structural correctness
  • Batch Processing: Process multiple compounds for database standardization
  • Identifier Lookup: Retrieve all available identifiers for known compounds
  • Structure Standardization: Normalize chemical representations for consistency

Input Validation

This skill accepts: compound names (common or IUPAC), SMILES strings, or InChI identifiers. Batch input via CSV or plain text list is also supported.

If the request does not involve converting or validating chemical structure identifiers — for example, asking to predict biological activity, perform docking, or interpret spectra — do not proceed. Instead respond:

"Chemical Structure Converter is designed to interconvert chemical identifiers (names, SMILES, formulas). Please provide a compound name or SMILES string. For other cheminformatics tasks, use a more appropriate tool."


Quick Check

bash
python -m py_compile scripts/main.py
python scripts/main.py --help

Workflow

  1. Confirm the input identifier type (name, SMILES, IUPAC) and desired output format.
  2. Validate that the request matches the documented scope; stop if the task requires unsupported assumptions.
  3. Run the script or apply the documented conversion path with only the inputs available.
  4. Return a structured result separating assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Fallback: If no identifier is provided, respond: "No chemical identifier provided. Please supply a compound name (--name), SMILES string (--smiles), or IUPAC name (--iupac). Cannot convert without an input identifier."


Core Capabilities

1. Multi-Format Conversion
python
from scripts.main import ChemicalStructureConverter
converter = ChemicalStructureConverter()
data = converter.name_to_identifiers("aspirin")
# → IUPAC: 2-acetoxybenzoic acid, SMILES: CC(=O)Oc1ccccc1C(=O)O, Formula: C9H8O4, MW: 180.16
From → ToUse Case
Name → SMILESLiterature to database
SMILES → IUPACMachine to human readable
IUPAC → SMILESChemical registration
SMILES → FormulaQuick MW calculation
2. SMILES Validation
python
is_valid, message = converter.validate_smiles("CC(=O)Oc1ccccc1C(=O)O")
# → True, "Valid SMILES syntax"
CheckExample Error
ParenthesesC(=O — missing closing
Ring closuresC1CC — ring not closed
Atom validity@ — invalid character
3. Batch Processing
python
for compound in compound_list:
    data = converter.name_to_identifiers(compound)
    if not data:
        print(f"Warning: '{compound}' not found in database")

CLI Usage

text
# Convert by compound name
python scripts/main.py --name aspirin

# Convert SMILES to IUPAC
python scripts/main.py --smiles "CC(=O)Oc1ccccc1C(=O)O"

# Validate SMILES
python scripts/main.py --smiles "CCO" --validate

# List all compounds
python scripts/main.py --list

Parameters

ParameterTypeRequiredDescription
--name, -nstringNoCompound name
--smiles, -sstringNoSMILES string
--iupac, -istringNoIUPAC name
--validateflagNoValidate SMILES syntax
--list, -lflagNoList available compounds

Show full SKILL.md (269 more words)Show less

Output Requirements

Every final response must make these explicit:

  • Objective or requested deliverable
  • Inputs used (identifier type and value) and assumptions introduced
  • Conversion method applied
  • Core result: all available identifiers (SMILES, IUPAC, formula, MW)
  • Constraints and risks (local database limited; novel compounds may not be found)
  • Unresolved items and next-step checks (validate against PubChem for critical work)

Error Handling

  • If no identifier is provided, list the required input options and request clarification.
  • If a compound is not found in the local database, flag it and provide direct lookup URLs: https://pubchem.ncbi.nlm.nih.gov/compound/{compound_name} and https://www.chemspider.com/Search.aspx?q={compound_name}. For programmatic lookup, query the PubChem REST API: https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/{name}/JSON. The script should automatically query this endpoint when a compound is not found locally.
  • If scripts/main.py fails, report the failure point and provide manual fallback guidance.
  • Do not fabricate SMILES strings, molecular weights, or identifiers.
  • Batch mode: Include a summary line: X/N compounds converted successfully, Y failed (list failed compound names).
  • Database versioning: The local compound database version is tracked in DB_VERSION in scripts/main.py. To add compounds, update the COMPOUND_DB dict and increment DB_VERSION.

Common Pitfalls

  • Ambiguous names: Use CAS numbers or specific synonyms for unambiguous lookup
  • Stereochemistry omitted: Specify @/@@ in SMILES for chiral compounds
  • Hydrates vs anhydrous: Always specify form (e.g., "caffeine anhydrous")
  • Duplicate entries: Deduplicate by canonical SMILES when building databases
  • Character encoding: Use UTF-8 for IUPAC names with special characters

SMILES Quick Reference

  • C = aliphatic carbon, c = aromatic carbon
  • = = double bond, # = triple bond
  • () = branching, [] = explicit valence/charge
  • @ = anticlockwise (S), @@ = clockwise (R)

References

Known Limitation: Local database contains common compounds only. Integrate PubChem API for production use.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in scientific-skills/Other/chemical-structure-converter of aipoch/medical-research-skills.

  • SKILL.md
  • chemical-structure-converter_audit_result_v4.json
  • scripts/main.py

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Chemical Structure Converter next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Chemical Structure Converter compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chemical Structure Converter this skillaipoch/medical-research-skills1.9k—~1.7kAutomated safety check: PassMIT
MolecodeAtomFlow-AI/MoleCode306—~1.9kAutomated safety check: PassMIT
Drug DiscoveryTommy-yw/RunbookHermes5461 repos~2.3kAutomated safety check: PassMIT
DiffDock Molecular DockingK-Dense-AI/scientific-agent-skills48k1 repos~3kAutomated safety check: NotesMIT
Biomedical Analysis Dispatchxjtulyc/MedgeClaw6171 repos~2kAutomated safety check: PassNone
Biopipelineslocbp-uzh/biopipelines109—~2.4kAutomated safety check: PassMIT

Similar skills

  • Molecode

    AtomFlow-AI/MoleCode

    A skill your agent uses for deterministic molecule understanding, graph-level editing, generation, and validation with MoleCode — an explicit Mermaid graph in which every atom and bond is a typed…

    306 GitHub stars~1.9k tokensUpdated 4 mo ago
    Research & ScienceAuto-check passed
  • Drug Discovery

    Tommy-yw/RunbookHermes

    Pharmaceutical research assistant for drug discovery workflows.

    546 GitHub starsUsed in 1 repo~2.3k tokens
    Research & ScienceAuto-check passed
  • DiffDock Molecular Docking

    K-Dense-AI/scientific-agent-skills

    Predicts how small molecules bind to a protein with DiffDock, covering batch docking, pose ranking by confidence and checks on the results; not for binding affinity.

    48k GitHub starsUsed in 1 repo~3k tokens
    Research & ScienceAuto-check: notes
  • Routes bioinformatics, drug discovery, clinical and multi-omics tasks from a chat interface to Claude Code sessions running K-Dense scientific skills, with a live dashboard per task.

    617 GitHub starsUsed in 1 repo~2k tokens
    Research & ScienceAuto-check passed
  • Biopipelines

    locbp-uzh/biopipelines

    Design and run computational protein and ligand workflows on a GPU: binder and enzyme design, de novo backbone generation, inverse folding and sequence redesign, structure prediction, protein-ligand…

    109 GitHub stars~2.4k tokensUpdated 10 days ago
    Research & ScienceAuto-check passed
  • Retrieves chemical compound information from PubChem and ChEMBL with disambiguation, cross-referencing, and quality assessment.

    1.1k GitHub starsUsed in 2 repos~2.3k tokens
    Research & ScienceAuto-check passed

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Questions about Chemical Structure Converter

What does Chemical Structure Converter do?

Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds. Chemical Structure Converter is an agent skill from aipoch/medical-research-skills. Convert between IUPAC names, SMILES strings, molecular formulas, and common names for chemical compounds.

When should I use Chemical Structure Converter?

Chemical Structure Converter fits situations like: tasks that involve Drug discovery and cheminformatics; tasks that involve Data pipelines and ETL.

How do I install Chemical Structure Converter in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill chemical-structure-converter -a claude-code`. Or copy the skill folder (scientific-skills/Other/chemical-structure-converter in aipoch/medical-research-skills) into .claude/skills/chemical-structure-converter in your project. Claude Code loads it when a task matches its description.

How do I install Chemical Structure Converter in Codex?

Run `npx skills add aipoch/medical-research-skills --skill chemical-structure-converter -a codex`. Or copy the skill folder (scientific-skills/Other/chemical-structure-converter in aipoch/medical-research-skills) into .agents/skills/chemical-structure-converter in your project. Codex loads it when a task matches its description.

Can I use Chemical Structure Converter in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill chemical-structure-converter -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chemical-structure-converter, .gemini/skills/chemical-structure-converter, .github/skills/chemical-structure-converter and .opencode/skills/chemical-structure-converter in your project.

What does Chemical Structure Converter need to run?

Going by SKILL.md and its folder, Chemical Structure Converter needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Chemical Structure Converter access the network?

SKILL.md names 4 domains. In commands or code: pubchem.ncbi.nlm.nih.gov and chemspider.com; the agent is likely to contact these when it follows the instructions. As links in the text: opensmiles.org and rdkit.org. This is read from the text; nothing was executed.

Is Chemical Structure Converter safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Chemical Structure Converter use?

Chemical Structure Converter is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chemical Structure Converter use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chemical Structure Converter?

Skills that share tags, products or a category with Chemical Structure Converter: Molecode (AtomFlow-AI/MoleCode, 306 stars), Drug Discovery (Tommy-yw/RunbookHermes, 546 stars), DiffDock Molecular Docking (K-Dense-AI/scientific-agent-skills, 48k stars) and Biomedical Analysis Dispatch (xjtulyc/MedgeClaw, 617 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chemical Structure Converter?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.