analyze

analyze is a skill for Claude Code from pregHosh/Solitarius-mcp. It costs 45 tokens per session (2,414 once invoked), scanned A, original, Apache-2.0.

A workflow for evaluating a collection of generated molecules with RDKit and pandas. It checks chemical validity, properties, drug-likeness, scaffold diversity, structural alerts, and similarity to reference molecules.

In plain words
What is it for?
Analyzing sampling or reinforcement-learning CSV and SMILES outputs, including physicochemical summaries, duplicate or invalid structures, scaffold patterns, alerts, and optional reference comparisons.
Why use it?
It turns a generated SMILES file into quality and diversity information that is easier to review. Reference molecules can help measure novelty and similarity to known compounds.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument.

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

Good fit Analyzing sampling or reinforcement-learning CSV and SMILES outputs, including physicochemical summaries, duplicate or invalid structures, scaffold patterns, alerts, and optional reference comparisons.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/preghosh/solitarius-mcp/analyze
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.

Any agent
npx skills add pregHosh/Solitarius-mcp --skill analyze
Clone the repo
git clone --depth 1 https://github.com/pregHosh/Solitarius-mcp

Made for: Claude Code.

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 analyze

README.md
[![agentmods](https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/analyze.svg)](https://agentmods.dev/skills/preghosh/solitarius-mcp/analyze)
Your own site
<a href="https://agentmods.dev/skills/preghosh/solitarius-mcp/analyze"><img src="https://agentmods.dev/badge/skills/preghosh/solitarius-mcp/analyze.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00045 $0.02414
Opus 5 $0.00023 $0.01207
Sonnet 5 $0.00009 $0.00483
Haiku 4.5 $0.00005 $0.00241

Measured 7d ago against content hash e3e0fb36b8db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

analyze 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 7d 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/analyze/SKILL.md · 246 lines

How it starts

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

REINVENT4 Molecule Analysis

Evaluate generated molecules using Python/RDKit/pandas directly. No MCP server needed — requires RDKit, pandas, and optionally umap-learn.

Workflow

1. Resolve paths

readlink -f <relative_path>

2. Identify inputs

  • smiles_file (required): sampling CSV or .smi file. Use $0 if provided. SMILES column auto-detected from CSV headers (first column containing "smiles", case-insensitive).
  • ref_smiles_file (optional): reference / known-active SMILES for novelty and similarity. Use $1 if provided.
  • output_dir: default <stem>_analysis/ next to the input file.

3. Load molecules

import pandas as pd
from rdkit import Chem
from pathlib import Path

path = Path("/absolute/path/to/sampling.csv")

if path.suffix == ".csv":
    df = pd.read_csv(path)
    smi_col = next((c for c in df.columns if "smiles" in c.lower()), df.columns[0])
    raw_smiles = df[smi_col].dropna().astype(str).tolist()
else:
    raw_smiles = [l.split()[0] for l in path.read_text().splitlines() if l.strip()]

mols, valid_smiles = [], []
for smi in raw_smiles:
    mol = Chem.MolFromSmiles(smi)
    if mol:
        mols.append(mol)
        valid_smiles.append(Chem.MolToSmiles(mol))

print(f"Total: {len(raw_smiles)}, Valid: {len(mols)} ({100*len(mols)/max(len(raw_smiles),1):.1f}%)")

4. Physicochemical properties

from rdkit.Chem import Descriptors, rdMolDescriptors
import numpy as np

props = []
for mol in mols:
    props.append({
        "mw":      Descriptors.MolWt(mol),
        "logp":    Descriptors.MolLogP(mol),
        "tpsa":    Descriptors.TPSA(mol),
        "hbd":     rdMolDescriptors.CalcNumHBD(mol),
        "hba":     rdMolDescriptors.CalcNumHBA(mol),
        "rotbonds":rdMolDescriptors.CalcNumRotatableBonds(mol),
        "rings":   rdMolDescriptors.CalcNumRings(mol),
    })

df_props = pd.DataFrame(props)
print(df_props.describe().round(2))

5. Druglikeness

from rdkit.Chem import QED

qeds = [QED.qed(mol) for mol in mols]

# Lipinski RO5
def lipinski(mol):
    return (Descriptors.MolWt(mol) <= 500 and Descriptors.MolLogP(mol) <= 5 and
            rdMolDescriptors.CalcNumHBD(mol) <= 5 and rdMolDescriptors.CalcNumHBA(mol) <= 10)

ro5_pass = sum(1 for mol in mols if lipinski(mol))
print(f"QED — mean: {np.mean(qeds):.3f}, median: {np.median(qeds):.3f}")
print(f"Lipinski RO5 pass: {ro5_pass}/{len(mols)} ({100*ro5_pass/max(len(mols),1):.1f}%)")

Read the full file on GitHub · 246 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. 7d ago First seen · 246 lines · 0 tokens per session scan A e3e0fb36b8db

Subscribe to this mod's changes

analyze is a skill published in the GitHub repository pregHosh/Solitarius-mcp (0 stars, last pushed 29d ago), licensed Apache-2.0. It adds 45 tokens to every session and 2,414 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