mcpbeat Sign in

Openbabel Agent Skill

> A versatile CLI tool for converting molecular file formats, generating 3D atomic coordinates from SMILES, rendering 2D chemical structure images, and preparing or extracting structures for computational workflows. USE WHEN you need to convert between chemical file formats (e.g., xyz, pdb, mol, smi, gjf), generate 3D structures from SMILES using `--gen3d`, render molecule images (PNG/SVG), or extract geometries from simulation logs to build new inputs.

849 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
118
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/jinzhezenggroup/computational-chemistry-agent-skills --skill openbabel

The instruction itself

10 sections, as written by the author

Open Babel

This skill provides practical Open Babel command patterns for common chemistry data tasks.

Quick Start

Check installation through uvx:

uvx --from openbabel obabel -V

Typical conversion syntax:

uvx --from openbabel obabel input.ext -i<input_format> -o<output_format> -O output.ext

Core Tasks

1) File format conversion

Convert XYZ to PDB:

uvx --from openbabel obabel C.xyz -ixyz -opdb -O C.pdb

Open Babel supports a large set of chemistry formats (e.g., xyz, mol, mol2, pdb, smi, Gaussian gjf/log/fchk, etc.).

2) Build structures from SMILES

Generate methane (3D coordinates required):

uvx --from openbabel obabel -:C --gen3d -omol -O C.mol

Generate a single carbon atom:

uvx --from openbabel obabel -:[C] --gen3d -omol -O C.mol

Generate methyl radical:

uvx --from openbabel obabel -:[CH3] --gen3d -omol -O CH3.mol

> Important: quote SMILES when they contain brackets or special characters.

Equivalent explicit form:

uvx --from openbabel obabel -:"[C]([H])([H])[H]" --gen3d -omol -O CH3.mol

3) Export SMILES from one or more structure files

uvx --from openbabel obabel C.mol C.mol2 C.pdb C.xyz --osmi -O C.smi

4) Render 2D structure images

Generate PNG:

uvx --from openbabel obabel -:"C([C@@H](C(=O)O)N)S" -opng -O cys.png

Generate SVG:

uvx --from openbabel obabel -:"C([C@@H](C(=O)O)N)S" -osvg -O cys.svg

Convert Gaussian log directly to image:

uvx --from openbabel obabel phosphate.log -ilog -opng -O phosphate.png

5) Gaussian workflow helper

Generate Gaussian input from SMILES, then patch header with sed:

uvx --from openbabel obabel -:CC --gen3d -ogjf | sed "1c %nproc=28\n#opt b3lyp/6-31g(d,p)" > CC.gjf

Generate next-step input from a previous Gaussian log:

uvx --from openbabel obabel CC.log -ilog -ogjf | sed "1c %nproc=28\n#freq b3lyp/6-31g(d,p)" > CC2.gjf

Agent Checklist

When using this skill for users:

  • Confirm source file(s) and desired target format.
  • Prefer explicit -i and -o format flags for reproducibility.
  • Add --gen3d when converting SMILES to coordinate-bearing structures.
  • Quote SMILES strings that contain brackets/parentheses.
  • For Gaussian workflows, verify route section and resource lines (%nproc, method/basis) after generation.
  • Use uvx --from openbabel obabel ... consistently to minimize local dependency setup.

References

  • Open Babel project: https://openbabel.org/
  • Open Babel GitHub: https://github.com/openbabel/openbabel
  • openbabel package: https://pypi.org/project/openbabel/

Other skills for the same job

different authors, same section of the catalogue
Canvas Design
by anthropics
vendor ×13

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

1388k tokens
Algorithmic Art
by anthropics
vendor ×10

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

15k tokens scripts
Image Enhancer
by frostant
×6

Improves the quality of images, especially screenshots, by enhancing resolution, sharpness, and clarity. Perfect for preparing images for presentations, documentation, or social media posts.

635 tokens
Video Downloader
by CommandCodeAI
×4

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

671 tokens
Histolab
by christophacham
×3

Lightweight WSI tile extraction and preprocessing. Use for basic slide processing tissue detection, tile extraction, stain normalization for H&E images. Best for simple pipelines, dataset preparation, quick tile-based analysis. For advanced spatial proteomics, multiplexed imaging, or deep learning pipelines use pathml.

18k tokens
Omero Integration
by christophacham
×3

Microscopy data management platform. Access images via Python, retrieve datasets, analyze pixels, manage ROIs/annotations, batch processing, for high-content screening and microscopy workflows.

32k tokens
Pydicom
by christophacham
×3

Python library for working with DICOM (Digital Imaging and Communications in Medicine) files. Use this skill when reading, writing, or modifying medical imaging data in DICOM format, extracting pixel data from medical images (CT, MRI, X-ray, ultrasound), anonymizing DICOM files, working with DICOM metadata and tags, converting DICOM images to other formats, handling compressed DICOM data, or processing medical imaging datasets. Applies to tasks involving medical image analysis, PACS systems, radiology workflows, and healthcare imaging applications.

13k tokens scripts
Transformers
by christophacham
×3

This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning models on custom datasets.

13k tokens

How to use it

Copy the folder

Take jinzhezenggroup/openbabel from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference uvx. Without those the skill loads but fails at the first command.