validate

validate is a skill for Claude Code, Codex from pregHosh/Solitarius-mcp. It costs 34 tokens per session (1,454 once invoked), scanned A, original, Apache-2.0.

A validation workflow for SMILES files and REINVENT4 TOML configuration files. It uses RDKit, a chemistry toolkit, to check molecular structures and applies generator-specific checks.

In plain words
What is it for?
Checking .smi, .smiles, .csv, and .toml inputs for REINVENT4, LibINVENT, LinkINVENT, or Mol2Mol jobs.
Why use it?
It catches invalid molecules, duplicates, missing required fields, and configuration problems before a training or optimization job starts.

Skill for Claude CodeCodex

Part of the solitarius-mcp plugin — 7 skills, 1 MCP server shipped together

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/preghosh/solitarius-mcp/validate
Any agent
npx skills add pregHosh/Solitarius-mcp --skill validate
Clone the repo
git clone --depth 1 https://github.com/pregHosh/Solitarius-mcp

Made for: Claude Code, Codex.

Or install solitarius-mcp, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

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 validate

README.md
[![agentmods](https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/validate.svg)](https://agentmods.dev/skills/preghosh/solitarius-mcp/validate)
Your own site
<a href="https://agentmods.dev/skills/preghosh/solitarius-mcp/validate"><img src="https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/validate.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original 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.00034 $0.01454
Opus 5 $0.00017 $0.00727
Sonnet 5 $0.00007 $0.00291
Haiku 4.5 $0.00003 $0.00145

Measured 4d ago against content hash 5d0ca98858b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

validate 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 4d ago.

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.

skills/validate/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REINVENT4 Input Validation

Validate SMILES files and TOML configs using Python/RDKit directly. No MCP server needed — requires RDKit and the toml package.

Workflow

1. Resolve paths

readlink -f <relative_path>

2. Detect file type

From $ARGUMENTS:

  • .smi, .csv, .smiles → SMILES validation (Step 3a)
  • .toml → TOML config validation (Step 3b)
  • If ambiguous, ask the user

3a. SMILES validation

Run this Python snippet (adapt the path and generator):

from rdkit import Chem
from collections import Counter

path = "/absolute/path/to/file.smi"  # or .csv
generator = "reinvent"  # reinvent | libinvent | linkinvent | mol2mol

smiles_list = []
with open(path) as f:
    for line in f:
        tok = line.strip().split()
        if tok:
            smiles_list.append(tok[0])

errors, dupes = [], Counter()
valid = []
for i, smi in enumerate(smiles_list, 1):
    mol = Chem.MolFromSmiles(smi)
    if mol is None:
        errors.append((i, smi, "invalid SMILES"))
        continue
    can = Chem.MolToSmiles(mol)
    # Generator-specific checks
    if generator == "libinvent" and "[*:0]" not in smi:
        errors.append((i, smi, "missing [*:0] attachment point"))
        continue
    if generator == "linkinvent" and "|" not in smi:
        errors.append((i, smi, "linkinvent requires two fragments separated by |"))
        continue
    valid.append(can)
    dupes[can] += 1

dup_count = sum(v - 1 for v in dupes.values() if v > 1)
print(f"Total: {len(smiles_list)}, Valid: {len(valid)}, Invalid: {len(errors)}, Duplicates: {dup_count}")
for idx, smi, reason in errors[:10]:
    print(f"  Line {idx}: {smi!r} — {reason}")

Report all findings. If invalid entries or duplicates exist, offer to write a cleaned file:

seen = set()
cleaned = []
for smi in smiles_list:
    mol = Chem.MolFromSmiles(smi)
    if mol is None:
        continue
    can = Chem.MolToSmiles(mol)
    if can not in seen:
        seen.add(can)
        cleaned.append(can)

out_path = path.replace(".smi", "_cleaned.smi")
with open(out_path, "w") as f:
    f.write("\n".join(cleaned) + "\n")
print(f"Wrote {len(cleaned)} molecules to {out_path}")

Read the full file on GitHub · 177 lines

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. 4d ago First seen · 177 lines · 34 tokens per session scan A 5d0ca98858b3

Subscribe to this mod's changes

validate is a skill published in the GitHub repository pregHosh/Solitarius-mcp (0 stars, last pushed 26d ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,454 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

text-based-molecule-editing

Modify molecules based on natural language descriptions using MolT5/BioT5 models. Use this skill when: (1) User wants to modify a molecule to improve specific properties (solubility, potency, etc.), (2) User provides a molecule and asks to "make it more X" or "improve Y", (3) User wants to generate molecule variants…

PharMolix/OpenBioMed · 128 tokens

biomed-research

Use when answering biomedical research questions that need source-backed evidence from local MCP servers, including gene, disease, drug, variant, phenotype, study, or clinical-trial questions.

nickzren/biomed-agent · 39 tokens

tooluniverse

Access 1000+ scientific tools through ToolUniverse for drug discovery, protein analysis, genomics, literature search, clinical data, ADMET prediction, molecular docking, and more. Use when the user needs biomedical or scientific research capabilities.

AgentTeam-TaichuAI/ScienceClaw · 51 tokens

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters…

synthetic-sciences/openscience · 67 tokens

drug-design

End-to-end drug discovery pipeline orchestration. Deterministic Python script that auto-chains structure prediction, pocket detection, de novo design, docking, scoring, and ADMET filtering into reproducible workflows.

synthetic-sciences/openscience · 44 tokens

pocket-detection

Multi-method binding pocket detection and druggability assessment. Grid-based, fpocket, and P2Rank detection with druggability scoring, visualization, and cross-structure comparison.

synthetic-sciences/openscience · 41 tokens