smiles-validation

smiles-validation is a skill for Claude Code, Codex from synthetic-sciences/openscience. It costs 24 tokens per session (454 once invoked), scanned A, original, Apache-2.0.

Strict SMILES validation, structural comparison, and modification verification. Catches invalid LLM-generated molecules.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/synthetic-sciences/openscience/smiles-validation
Any agent
npx skills add synthetic-sciences/openscience --skill smiles-validation
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smiles-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthetic-sciences/openscience/smiles-validation.svg)](https://agentmods.dev/skills/synthetic-sciences/openscience/smiles-validation)
Your own site
<a href="https://agentmods.dev/skills/synthetic-sciences/openscience/smiles-validation"><img src="https://agentmods.dev/badge/skills/synthetic-sciences/openscience/smiles-validation.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.00454
Opus 5 $0.00012 $0.00227
Sonnet 5 $0.00005 $0.00091
Haiku 4.5 $0.00002 $0.00045

Measured today against content hash 351b7c62cfbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

smiles-validation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/cli/skills/chemistry/smiles-validation/SKILL.md · 63 lines

What it actually says

SMILES Validation

Overview

LLMs frequently generate invalid SMILES or produce molecules that don't match their stated reasoning. This skill provides strict validation, structural comparison, and modification verification.

Key checks:

  • Parse validation: RDKit sanitization, valence checking, parenthesis/bracket balance
  • Structural comparison: Tanimoto similarity, scaffold preservation, MCS analysis
  • Modification verification: Confirm claimed structural changes exist in the actual molecule
  • Classification: Categorize changes as optimization (>0.6 similarity), significant modification (0.4-0.6), or de novo design (<0.4)

When to Use This Skill

  • After molecule generation: Validate every SMILES before reporting results
  • Optimization verification: Confirm proposed modifications match the actual structure
  • Batch validation: Check a library of generated molecules for validity
  • Quality control: Ensure reproducibility of molecular designs

Installation

pip install rdkit-pypi

Core Workflows

1. Validate a Single SMILES

python scripts/validate.py --smiles "c1ccccc1"

2. Compare Original vs Modified

python scripts/validate.py --original "c1ccccc1" --proposed "c1ccc(O)cc1" --check-modification "Added hydroxyl group"

3. Batch Validation

python scripts/validate.py --input generated_molecules.csv --output validation_report.json

Script Reference

Script Purpose Key Outputs
validate.py SMILES validation, comparison, and modification checking JSON report with validity, similarity, scaffold match, modification verification
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 63 lines · 24 tokens per session scan A 351b7c62cfbf

Subscribe to this mod's changes

smiles-validation is a skill published in the GitHub repository synthetic-sciences/openscience (3,432 stars, last pushed today), licensed Apache-2.0. It adds 24 tokens to every session and 454 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

pepflex

Use when working with PepFlex for in silico peptide screening and evolutionary optimization. Handles peptide population management, mutation, crossover, custom evaluation pipelines, and multi-round evolutionary simulation.

Kdevos12/ALKYL · 38 tokens

chem-brainstorm

Use at the start of any computational chemistry task to structure thinking, map available tools, and generate concrete hypotheses. Covers molecule evaluation, hypothesis building, reaction assessment, and pipeline design. Flexible guide — adapt depth to problem complexity.

Kdevos12/ALKYL · 50 tokens

generative-design

Use when designing or evaluating generative models for de novo drug/molecule design. Covers molecular generation theory and evaluation (MOSES/GuacaMol), SELFIES + language models, RL-based optimization with REINVENT 4, JT-VAE and graph-based generation, and structure-based 3D generation (DiffSBDD, Pocket2Mol…

Kdevos12/ALKYL · 78 tokens

homology-modeling

Use when building a 3D protein structure from sequence (no experimental structure available). Covers comparative homology modeling (MODELLER), AI-based prediction (AlphaFold2/ColabFold/ESMFold), model quality assessment (DOPE, pLDDT, Ramachandran), template search (HHblits, BLAST, Biopython), and structure preparation…

Kdevos12/ALKYL · 87 tokens

lit-rescue

Last-resort skill. Invoke when no obvious or coherent solution is available and hallucination risk is high. Searches peer-reviewed literature and validated sources (Perplexity, bioRxiv, PubMed) before attempting an answer. Generalist — applies to any domain.

Kdevos12/ALKYL · 57 tokens

uncertainty-qsar

Use when building QSAR/ML models that need calibrated uncertainty estimates. Covers epistemic vs aleatoric uncertainty theory, conformal prediction with MAPIE (guaranteed coverage), Gaussian processes with Tanimoto kernel, deep uncertainty (MC dropout, deep ensembles, Laplace), and applicability domain (AD)…

Kdevos12/ALKYL · 80 tokens