scotthartley

Chem SVG Cdxml — Design skill for Claude Code

Design community

A Claude Code skill that generates chemical structures, mechanisms, and synthetic schemes in SVG format.

How to install Chem SVG Cdxml

This entry records only its repository, not the path inside it, so there is no exact command to give. Open scotthartley/chem-svg-cdxml and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Chem SVG Cdxml does

A Claude Code skill that generates chemical structures, mechanisms, and synthetic schemes in SVG format. It tries to emulate ACS style as closely as possible. The emphasis is on editability of the SVG products.

Alternatives in Design

  • Rowan Autosearch — Agent-driven molecular optimization over chemical space, using Rowan for property scoring and RDKit for constr 22 ★
  • Acs Chem SVG — A Claude Code skill that generates chemical structures, mechanisms, and synthetic schemes in SVG format
  • Algorithmic Art — Create generative art using p5.js with seeded randomness, flow fields, and particle systems 94.1k ★

README

chem-svg-cdxml

A [Claude Code](https://code.claude.com) skill that draws chemical structures, reaction schemes, arrow-pushing mechanisms, and catalytic cycles in the style of ChemDraw's *ACS Document 1996* setting as editable **SVG**, with a **CDXML** copy to open in ChemDraw. (Not affiliated with or endorsed by the American Chemical Society; "ACS Document 1996" is the name of a ChemDraw style.)

Ask in plain language:

Draw the full arrow-pushing mechanism for the nitration of benzene with HNO3 and H2SO4: formation of the nitronium ion, attack by benzene, the resonance structures of the sigma complex, and deprotonation to nitrobenzene.

and Claude writes a short YAML spec, validates the chemistry and the electron bookkeeping, renders it, looks at the rendered image, fixes what it sees, and hands back `.svg`, `.cdxml`, `.yaml` and `.png` files:

![Nitration of benzene: mechanism with curved arrows, lone pairs and a bracketed set of resonance structures](docs/images/nitration.png)

![A three-step synthesis scheme with conditions and bold compound numbers](docs/images/synthesis.png)

What it draws

  • **Structures** from SMILES: rings, double and triple bonds, wedges and hashes, heteroatom labels with H counts and charges.

  • **Abbreviations:** groups (Ph, Bn, Boc, Ts, TBS, …), formulas (OMe, CO₂Me, NO₂, Bpin, …), ligands (PPh₃, PCy₃, …; other ligand text such as dppf as a label) and your own definitions. Labels reverse when the bond leaves to the right (MeO, MeO₂C).

  • **Chairs:** a cyclohexane, pyranose or piperidine ring drawn as a chair, with axial and equatorial groups from the SMILES stereo and the bulkier groups equatorial; where bonds cross, the rear one gets a gap, as in ChemDraw.

    ![Chair conformers: cis-4-tert-butylcyclohexanol, menthol, β-D-glucopyranose and axial methylcyclohexane](docs/images/chairs.png)

  • **Lewis structures** of small acyclic molecules: every atom labeled, all lone pairs drawn, and bonds as shared dot pairs, or as