Smiles molecular analysis

From XuShuwenn/RedAct · View interactive version

Smiles molecular analysis is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Given a SMILES string, compute molecular weight, detect key functional groups via SMARTS, and count all hydrogens with toolkit-backed verification and precise output formatting.

How to use this skill

Skill file

SMILES Molecular Analysis

Compute molecular weight (average atomic weights), identify common functional groups via SMARTS patterns, and count all hydrogens (explicit + implicit) from a SMILES string. Produce stable, precisely formatted outputs.

When to Use

Use this skill when asked to analyze a molecule from a SMILES string to report:

Core Workflow

  1. Parse the SMILES with a cheminformatics toolkit (e.g., RDKit):
  1. Molecular weight (average mass):
  1. Hydrogen count (explicit + implicit):
  1. Functional group detection (presence-only):
  1. Output formatting (exact lines):

Verification

Perform these checks before finalizing:

Optional cross-checks:

Common Pitfalls

Success Criteria

Optional Script Usage

A helper script is provided to perform the full analysis with RDKit.

Examples:

The script writes exactly three lines in the required format to the specified output file.

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.