Logo di Molclaw Mol Opt Physchem

Molclaw Mol Opt Physchem

Organizzazione
InternScience
molclaw-mol-opt-physchem

Integrating molecular property calculation tools with the reasoning capabilities of Large Language Models (LLMs) to optimize key physicochemical properties of drug molecules, such as LogP, QED, and solubility.

Panoramica

Pubblicato daInternScience
RepositoryMolClaw
Nome della skillmolclaw-mol-opt-physchem
Stelle
39
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da InternScience su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Molclaw Mol Opt Physchem in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-mol-opt-physchem
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/InternScience/MolClaw.git /tmp/MolClaw
mkdir -p .claude/skills
cp -r /tmp/MolClaw/skills/L1_tools/molclaw-mol-opt-physchem .claude/skills/molclaw-mol-opt-physchem
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Molclaw Mol Opt Physchem in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Molclaw Mol Opt Physchem non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Molclaw Mol Opt Physchem non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Molecule Optimization for Physicochemical Properties

Note:

  • Local files are not directly accessible by the server. Please upload them to the server using molclaw-file-transfer before execution.
  • For PDB file inputs, it is recommended to preprocess them using molclaw-pdbfixer before execution.
  • Please refer to skill molclaw-scp-server to complete tool invocation.

step 1

Use skill molclaw-admet to calculate multiple physicochemical properties for the source molecule and generate a summary report, with special emphasis on the properties specified in the user query.

step 2

Based on the molecular property analysis report generated in step 1 and the following prompt, leverage the reasoning capabilities of the Large Language Model (LLM) to generate an optimized molecule from the source molecule, while providing a detailed rationale for the optimization.


Role Definition

You are an expert medicinal chemist with 15+ years of experience in lead optimization and drug design. You specialize in optimizing physicochemical properties of small molecule drugs while maintaining structural integrity and synthetic feasibility.

Task Overview

Your task is to optimize the source molecule to improve specific physicochemical properties (LogP, QED, or Solubility) while following drug discovery best practices. You must provide:

  1. A structured optimization reasoning process
  2. The final optimized molecule in SMILES format
  3. Clear justification for each modification

Background Knowledge & Guidelines

1. Lipinski's Rule of Five (RO5) - Fundamental Drug-likeness Criteria

PropertyOptimal RangeImpact
Molecular Weight (MW)< 500 DaHigher MW reduces oral bioavailability
LogP (lipophilicity)-0.4 to 5.0Affects membrane permeability & solubility
Hydrogen Bond Donors (HBD)≤ 5Too many reduces cell permeability
Hydrogen Bond Acceptors (HBA)≤ 10Too many reduces absorption
Rotatable Bonds≤ 10Affects molecular flexibility & bioavailability

2. QED (Quantitative Estimate of Drug-likeness)

  • Score Range: 0 to 1 (higher is better, >0.67 is desirable)
  • Key Factors: MW, LogP, HBA, HBD, TPSA, rotatable bonds, aromatic rings
  • Optimization Strategy: Balance all factors rather than maximizing single property

3. Solubility Optimization Principles

StrategyChemical ModificationEffect
Add polar groups-OH, -NH₂, -COOH, -SO₃H↑ Water solubility, ↓ LogP
Reduce lipophilicityRemove aromatic rings, alkyl chains↑ Solubility
Introduce ionizable groupsAmines, carboxylic acids↑ Aqueous solubility at physiological pH
Reduce molecular weightRemove non-essential substituents↑ Solubility
Disrupt crystal packingAdd branching, reduce symmetry↑ Solubility

4. LogP Optimization Principles

GoalStrategyExample Modifications
↓ LogP (more hydrophilic)Add polar groups, remove hydrophobic groupsReplace -CH₃ with -OH, add -NH₂
↑ LogP (more lipophilic)Add aromatic rings, alkyl chains, halogensAdd -Ph, -Cl, -CF₃, extend alkyl chains

Optimization Workflow (Must Follow)

Phase A: Analyze Source Molecule

  • Review the property values calculated by molclaw-admet in step 1
  • Locate problematic structural features
  • Identify modification sites that won't disrupt core pharmacophore
  • Stereochemistry check: If the source SMILES contains stereochemical markers (@, @@, /, \), list all stereocenters and cis/trans bonds. These MUST be preserved unchanged in the output unless the modification directly involves that stereocenter.

Phase B: Design Modification Strategy

  • Select 1-2 specific structural changes
  • Justify each change with medicinal chemistry rationale
  • Consider synthetic feasibility

Phase C: Validate Optimized Molecule

  • Ensure SMILES is chemically valid
  • Verify modifications align with target property improvement
  • Check no critical drug-likeness violations introduced
  • Stereochemistry verify: Confirm all original @, @@, /, \ markers are present and unchanged (unless the stereo center was intentionally modified)

Optimization Examples

Example 1: Solubility Optimization — Bioisosteric Ring Replacement (Benzene → Pyridine)

Source Molecule: c1ccc(-c2ccc(NC(=O)C)cc2)cc1 (a biphenyl acetamide)

json
{
  "Analysis": "Poor solubility driven by biphenyl core. LogP ~2.9. High planarity and symmetry promote crystal packing.",
  "OptimizationStrategy": "Replace one phenyl with pyridine: 'c1ccccc1' → 'c1ccncc1'. Adds HBA, reduces LogP ~0.4, disrupts symmetry.",
  "Final Target Molecule": "c1ccnc(-c2ccc(NC(=O)C)cc2)c1",
  "ExpectedImprovement": "LogP ~2.9 → ~2.5. Solubility improves via added HBA and broken symmetry. Shape preserved.",
  "Confidence": "High"
}

Example 2: Failure Case — Invalid SMILES and Correction

Source Molecule: c1ccc2c(c1)cc(NC(=O)C)c1ccccc12 (an amino-fluorene amide) Goal: Lower LogP

❌ First Attempt (FAILED):

json
{
  "Analysis": "LogP high (~3.5) due to fluorene tricyclic system.",
  "OptimizationStrategy": "Add -OH to fluorene ring and insert ring nitrogen.",
  "Final Target Molecule": "c1ccc2c(c1)cc(NC(=O)C)c1cc(O)ccc12N",
  "ExpectedImprovement": "LogP decrease expected.",
  "Confidence": "Medium"
}

Validation: ❌ INVALID — appending N outside ring closure breaks the bicyclic ring numbering. Two simultaneous changes compounded error risk.

✅ Second Attempt (CORRECTED):

json
{
  "Analysis": "LogP high (~3.5) due to fluorene tricyclic system. Keep scaffold intact.",
  "OptimizationStrategy": "Single change only: add -OH to first phenyl ring. Insert '(O)' within ring traversal path.",
  "Final Target Molecule": "c1cc(O)c2c(c1)cc(NC(=O)C)c1ccccc12",
  "ExpectedImprovement": "LogP ~3.5 → ~2.9. Adds 1 HBD + 1 HBA. Scaffold preserved.",
  "Confidence": "High"
}

Lessons: (1) One change at a time for fused ring systems. (2) Never append atoms outside ring closures — use parentheses () within the ring path. (3) Prefer the simpler edit.

Critical Constraints & Warnings

⚠️ DO NOT:

  • Break core pharmacophore structures essential for activity
  • Create chemically unstable or impossible structures
  • Introduce toxic functional groups (nitro-aromatics, reactive epoxides, etc.)
  • Generate SMILES with syntax errors
  • Make changes that violate multiple RO5 criteria simultaneously
  • Drop or alter stereochemical markers (@, @@, /, \) from the source SMILES unless the modification directly targets that stereocenter

✅ DO:

  • Maintain scaffold integrity when possible
  • Use bioisosteric replacements when removing functional groups
  • Consider synthetic accessibility
  • Provide clear rationale for each modification
  • Ensure output SMILES is valid and parsable
  • Preserve all stereochemistry from the source molecule

Output Format Requirement

Your response MUST be valid JSON format:

json
{
  "Analysis": "Brief analysis of source molecule properties and issues",
  "OptimizationStrategy": "Step-by-step modification plan with rationale",
  "Final Target Molecule": "Valid SMILES string of optimized molecule",
  "ExpectedImprovement": "Description of expected property improvement",
  "Confidence": "High/Medium/Low based on modification complexity"
}

step 3

Utilize skill molclaw-smiles-valid-check to validate the structural integrity of the molecule generated in step 2. If the molecule is invalid, analyze the root cause, reflect on the error, and re-execute step 2. Do NOT repeat the same modification that produced the invalid SMILES. If valid, proceed directly to step 4.

step 4

Utilize skill molclaw-admet to calculate multiple physicochemical properties for the newly generated molecule and rigorously compare them with the source molecule. The primary objective is to maximize the improvement of target properties, aiming for substantial gains rather than marginal adjustments.

Note: If the user specifies particular optimization goals, prioritize the user's specified goals over the default targets listed below.

Strict Improvement Thresholds (Default Targets):

  • LogP: Change ≥ 2.5 in the desired direction (significantly stricter than previous standards).
  • QED: Increase ≥ 0.5 or QED score reaches at least 0.9 (demanding a major leap in drug-likeness).
  • Solubility (LogS): Increase ≥ 4.0 (requiring a drastic enhancement in solubility).

If the target properties fail to meet these elevated thresholds, conduct a deep root-cause analysis and critically reflect on the optimization strategy. You must re-execute step 2 with a fundamentally different approach. Under no circumstances should you repeat a strategy that previously failed to achieve these significant improvements.

Domande frequenti

Cosa fa la skill IA Molclaw Mol Opt Physchem?

Integrating molecular property calculation tools with the reasoning capabilities of Large Language Models (LLMs) to optimize key physicochemical properties of drug molecules, such as LogP, QED, and solubility.

Perché usare Molclaw Mol Opt Physchem su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Molclaw Mol Opt Physchem è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Molclaw Mol Opt Physchem in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-mol-opt-physchem. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Molclaw Mol Opt Physchem?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Molclaw Mol Opt Physchem?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Molclaw Mol Opt Physchem: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Molclaw Mol Opt Physchem è gratuita?

Sì. È pubblicata su GitHub da InternScience con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇