Structural isomer counting

From XuShuwenn/RedAct · View interactive version

Structural isomer counting is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Determine the number of constitutional isomers for simple molecular formulas by parsing, validating (via degree of unsaturation), and applying curated lookups for supported classes (e.g., small acyclic alkanes).

How to use this skill

Skill file

Structural (Constitutional) Isomer Counting

Reusable workflow to count constitutional isomers for simple molecular formulas. The skill emphasizes robust input parsing, formula validation via degree of unsaturation (DBE), and a conservative lookup strategy (e.g., acyclic alkanes) to avoid including stereoisomers.

When to Use

Activate this skill when a task requires:

Core Workflow

  1. Acquire Input
  1. Parse and Normalize the Formula
  1. Validate Compound Class with DBE
  1. Apply Curated Lookup (Supported Class)
  1. Decide on Unsupported Cases
  1. Format and Write Output

Verification

Before finalizing:

Common Pitfalls

Optional Script Usage

Use scripts/chem_formula_utils.py to:

Example CLI usage:

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.