Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Openbabel

ASecurity

Convert molecular file formats using Open Babel. Handles SMILES, mol2, sdf, pdb, xyz, cif, and 100+ other formats. Also performs 3D coordinate generation and hydrogen addition.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentpythongoshellbashapi

Works with

cliapi

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Hello-QM/catgo-LRG --skill openbabel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openbabel?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Openbabel
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hello-qm-openbabel-catgo-lrg/badge)](https://www.skillsdirectory.com/skills/hello-qm-openbabel-catgo-lrg)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: openbabel
description: >
  Convert molecular file formats using Open Babel. Handles SMILES, mol2, sdf, pdb,
  xyz, cif, and 100+ other formats. Also performs 3D coordinate generation and
  hydrogen addition.
compatibility: >
  Requires Open Babel installed (apt install openbabel or conda install openbabel).
  Python bindings optional (pip install openbabel-wheel).
catalog-hidden: true
---

# Open Babel — Molecular Format Conversion

## When to Use

- User needs to convert between molecular file formats (SMILES, mol2, sdf, pdb, xyz, cif)
- User wants to generate 3D coordinates from SMILES
- User needs to add/remove hydrogens
- User wants to perceive bond orders from a 3D structure
- User needs canonical SMILES or InChI identifiers

## Prerequisites

1. Open Babel installed (`obabel -V`)
2. For Python scripting: `openbabel` or `openbabel-wheel` package

## Workflow Steps — CLI

### Convert between formats

```
catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "convert_format",
  "command": "obabel input.mol2 -O output.pdb",
  "system_name": "format_convert"
})
```

## Common CLI Commands

### SMILES to 3D structure

```bash
obabel -:"CCO" -O ethanol.xyz --gen3d
# Generates 3D coordinates using force field optimization
```

### Add hydrogens

```bash
obabel input.pdb -O output.pdb -h
# -h adds hydrogens at pH 7.4
```

### Remove hydrogens

```bash
obabel input.pdb -O output.pdb -d
```

### Batch conversion

```bash
obabel *.mol2 -O output_.pdb -m
# -m produces one output file per input molecule
```

### Generate conformers

```bash
obabel input.sdf -O conformers.sdf --conformer --nconf 50 --writeconformers
```

### Get canonical SMILES

```bash
obabel input.mol2 -O output.smi -ocan
```

### Energy minimization

```bash
obabel input.xyz -O minimized.xyz --minimize --ff MMFF94 --steps 2500
```

## Supported Formats (most common)

| Format | Extension | Notes |
|---|---|---|
| SMILES | .smi | 1D string representation |
| SDF/MOL | .sdf, .mol | 2D/3D with bond orders |
| PDB | .pdb | Protein Data Bank format |
| MOL2 | .mol2 | Tripos format with charges |
| XYZ | .xyz | Simple Cartesian coordinates |
| CIF | .cif | Crystallographic Information File |
| CML | .cml | Chemical Markup Language |
| InChI | - | IUPAC identifier (use `-oinchi`) |
| POSCAR | .vasp | VASP structure (limited support) |
| GJF/COM | .gjf, .com | Gaussian input |

## Python API

```python
from openbabel import openbabel as ob

conv = ob.OBConversion()
conv.SetInFormat("smi")
conv.SetOutFormat("mol2")

mol = ob.OBMol()
conv.ReadString(mol, "c1ccccc1")  # benzene

# Generate 3D
builder = ob.OBBuilder()
builder.Build(mol)

# Force field optimization
ff = ob.OBForceField.FindForceField("MMFF94")
ff.Setup(mol)
ff.ConjugateGradients(500)
ff.GetCoordinates(mol)

conv.WriteFile(mol, "benzene.mol2")
```

## Parameter Guidance

| Flag | Purpose |
|---|---|
| `--gen3d` | Generate 3D coordinates from 2D/SMILES |
| `-h` | Add hydrogens |
| `-d` | Delete hydrogens |
| `--minimize` | Energy minimization with force field |
| `--ff MMFF94` | Force field: MMFF94, UFF, Ghemical |
| `-m` | Multiple output files (one per molecule) |
| `--conformer` | Conformer search |
| `-ocan` | Output canonical SMILES |

## Common Pitfalls

1. **No 3D coordinates from SMILES** — SMILES are 1D strings. Use `--gen3d` to create 3D structures.
2. **Bond order loss** — XYZ format has no bond information. Converting xyz to mol2 requires bond perception (`-b` flag).
3. **Wrong protonation** — default `-h` adds H at pH 7.4. Specify pH with `-p <pH>` if needed.
4. **Large molecule conformers** — `--gen3d` gives one conformation. For proper conformer sampling, use RDKit (`molecular/rdkit/SKILL.md`).
5. **Periodic structures** — Open Babel's support for periodic systems (CIF/POSCAR) is limited. Use pymatgen or ASE for crystals.
6. **Force field coverage** — MMFF94 covers organic molecules well but may not have parameters for transition metals.

Attribution

Hello-QMHello-QM
View sourceMore from Hello-QM →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →