pharma-pharmacology-agent

Pharmacology agent for ADME/PK profiling of drug candidates from SMILES. Computes drug-likeness (Lipinski Ro5, Veber rules), QED, SA Score, ADME predictions (BBB permeability, aqueous solubility, GI absorption, CYP3A4 inhibition, P-gp substrate, plasma protein binding), and PAINS alerts. Chains from chemistry-query for SMILES input. Triggers on pharmacology, ADME, PK/PD, drug likeness, Lipinski, absorption, distribution, metabolism, excretion, BBB, solubility, bioavailability, lead optimization, drug profiling.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pharma-pharmacology-agent" with this command: npx skills add Cheminem/pharma-pharmacology-agent

Pharma Pharmacology Agent v1.1.0

Overview

Predictive pharmacology profiling for drug candidates using RDKit descriptors and validated rule-based heuristics. Provides comprehensive ADME assessment, drug-likeness scoring, and risk flagging — all from a SMILES string.

Key capabilities:

  • Drug-likeness: Lipinski Rule of Five, Veber oral bioavailability rules
  • Scores: QED (Quantitative Estimate of Drug-likeness), SA Score (Synthetic Accessibility)
  • ADME predictions: BBB permeability, aqueous solubility (ESOL), GI absorption (Egan), CYP3A4 inhibition risk, P-glycoprotein substrate, plasma protein binding
  • Safety: PAINS (Pan-Assay Interference) filter alerts
  • Risk assessment: Automated flagging of pharmacological concerns
  • Standard chain output: JSON schema compatible with all downstream agents

Quick Start

# Profile a molecule from SMILES
exec python scripts/chain_entry.py --input-json '{"smiles": "CC(=O)Oc1ccccc1C(=O)O", "context": "user"}'

# Chain from chemistry-query output
exec python scripts/chain_entry.py --input-json '{"smiles": "<canonical_smiles>", "context": "from_chemistry"}'

Scripts

scripts/chain_entry.py

Main entry point. Accepts JSON with smiles field, returns full pharmacology profile.

Input:

{"smiles": "CN1C=NC2=C1C(=O)N(C(=O)N2C)C", "context": "user"}

Output schema:

{
  "agent": "pharma-pharmacology",
  "version": "1.1.0",
  "smiles": "<canonical>",
  "status": "success|error",
  "report": {
    "descriptors": {"mw": 194.08, "logp": -1.03, "tpsa": 61.82, "hbd": 0, "hba": 6, "rotb": 0, "arom_rings": 2, "heavy_atoms": 14, "mr": 51.2},
    "lipinski": {"pass": true, "violations": 0, "details": {...}},
    "veber": {"pass": true, "tpsa": {...}, "rotatable_bonds": {...}},
    "qed": 0.5385,
    "sa_score": 2.3,
    "adme": {
      "bbb": {"prediction": "moderate", "confidence": "medium", "rationale": "..."},
      "solubility": {"logS_estimate": -1.87, "class": "high", "rationale": "..."},
      "gi_absorption": {"prediction": "high", "rationale": "..."},
      "cyp3a4_inhibition": {"risk": "low", "rationale": "..."},
      "pgp_substrate": {"prediction": "unlikely", "rationale": "..."},
      "plasma_protein_binding": {"prediction": "moderate-low", "rationale": "..."}
    },
    "pains": {"alert": false}
  },
  "risks": [],
  "recommend_next": ["toxicology", "ip-expansion"],
  "confidence": 0.85,
  "warnings": [],
  "timestamp": "ISO8601"
}

ADME Prediction Rules

PropertyMethodThresholds
BBB permeabilityClark's rules (TPSA/logP)TPSA<60+logP 1-3 = high; TPSA<90 = moderate
SolubilityESOL approximationlogS > -2 high; > -4 moderate; else low
GI absorptionEgan egg modellogP<5.6 and TPSA<131.6 = high
CYP3A4 inhibitionRule-basedlogP>3 and MW>300 = high risk
P-gp substrateRule-basedMW>400 and HBD>2 = likely
Plasma protein bindinglogP correlationlogP>3 = high (>90%)

Chaining

This agent is designed to receive output from chemistry-query:

chemistry-query (name→SMILES+props) → pharma-pharmacology (ADME profile) → toxicology / ip-expansion

The recommend_next field always includes ["toxicology", "ip-expansion"] for pipeline continuation.

Tested With

All features verified end-to-end with RDKit 2024.03+:

MoleculeMWlogPLipinskiKey Findings
Caffeine194.08-1.03✅ Pass (0 violations)High solubility, moderate BBB, QED 0.54
Aspirin180.041.31✅ Pass (0 violations)Moderate solubility, SA 1.58 (easy), QED 0.55
Sotorasib560.234.48✅ Pass (1 violation: MW)Low solubility, CYP3A4 risk, high PPB
Metformin129.10-1.03✅ Pass (0 violations)High solubility, low BBB, QED 0.25
Invalid SMILESGraceful JSON error
Empty inputGraceful JSON error

Error Handling

  • Invalid SMILES: Returns status: "error" with descriptive warning
  • Missing input: Clear error message requesting smiles or name
  • All errors produce valid JSON (never crashes)

Resources

  • references/api_reference.md — API and methodology references

Changelog

v1.1.0 (2026-02-14)

  • Initial production release with full ADME profiling
  • Lipinski, Veber, QED, SA Score, PAINS
  • BBB, solubility, GI absorption, CYP3A4, P-gp, PPB predictions
  • Automated risk assessment
  • Standard chain output schema
  • Comprehensive error handling
  • End-to-end tested with diverse molecules

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Chemistry Query

Chemistry agent skill for PubChem API queries (compound info/properties, structures/SMILES/images, synthesis routes/references) + RDKit cheminformatics (SMIL...

Registry SourceRecently Updated
4780Profile unavailable
Automation

Workflow Automator

Workflow Automator - command-line tool for everyday use

Registry SourceRecently Updated
Automation

Scheduler

Scheduler - command-line tool for everyday use

Registry SourceRecently Updated
Automation

Deck Narrative Planner

把材料转成 PPT/Deck 叙事结构,生成每页一句标题、证据需求与过渡逻辑。;use for presentation, deck, storytelling workflows;do not use for 直接生成花哨视觉稿, 编造证据.

Registry SourceRecently Updated
40Profile unavailable