Skip to content

compound-profiler

Profile small molecules from SMILES or SDF (MW, cLogP, TPSA, HBD, HBA, rotatable bonds, Lipinski, Veber, PAINS and Brenk alerts, QED) and interpret developability risks. Declines toxin and chemical-weapon requests. Use for hit and lead triage.

Stage Discovery
Tier 1 (deterministic tool)
Standards Lipinski 2001 (Adv Drug Deliv Rev 46:3), Veber 2002 (J Med Chem 45:2615), PAINS (Baell and Holloway 2010), Brenk 2008
Minimum pharmaskills 0.3.0
Inputs smiles or sdf, compound names, project context
Outputs profile json, profile md
Verified by chem profile, chem alerts

Draft for qualified review. Not a validated system and not 21 CFR Part 11 compliant.

Install only this skill: pharmaskills skills install --agent claude-code --skill compound-profiler (see Install).

Purpose

Give a medicinal chemist or project team a quick, reproducible physicochemical and drug-likeness profile of small molecules, with structural alerts, and an honest reading of what the flags do and do not mean. The deterministic pharmaskills chem tools (RDKit) compute every descriptor; you interpret. Everything is a draft for qualified human review and flags are screening aids, not statements of safety or activity.

When to use / when not to use

Use for hit triage, lead series comparison, library filtering and early developability review of drug-like small molecules.

Do not use for: toxins, chemical-weapon agents or their precursors, pathogen enhancement or any request to design, optimise or improve harmful compounds (see the refusal policy below); peptides and biologics (descriptors are not meaningful); activity or safety predictions presented as fact.

Inputs

Required: SMILES strings, or a .smi or .sdf file (one record per molecule, optional name). Ask once for anything missing, then proceed with stated assumptions and [DATA NEEDED: ...] placeholders (for example [DATA NEEDED: intended route and target product profile]).

Optional: target product profile (oral or not), project series names, project-specific property limits. State the region or context assumed (default: oral small-molecule drug discovery under general ICH-aligned practice).

If pharmaskills is not installed, tell the user to run uv tool install pharmaskills, then provide template-only guidance (templates/profile.md) with no computed values, marked unverified. Check pharmaskills --version against min_pharmaskills.

Workflow

  1. Screen the request. Apply the refusal policy first. If the request seeks a toxin, a chemical-weapon agent, a precursor, or ways to make a compound more harmful, stop: write out/refusal.md (what you decline, why, what you can do instead) and do not run any tool.
  2. Prepare the input. One molecule per line SMILES name. Do not repair or guess invalid structures.
  3. Profile: pharmaskills chem profile --file compounds.smi --out out/profile.json (or --smiles "<SMILES>"). Exit 2 with error rows means invalid SMILES; report each and continue with the valid ones. Exit 2 with refused: true means the tool's own hazard guard triggered: relay its message, produce no descriptors and do not retry with variants.
  4. Alerts only (optional): pharmaskills chem alerts --file compounds.smi.
  5. Interpret with references/interpretation.md: Lipinski violations (MW over 500, cLogP over 5, HBD over 5, HBA over 10), Veber (rotatable bonds up to 10, TPSA up to 140), PAINS families A, B, C (assay interference, "review"), Brenk (reactive or unwanted groups, "info"), QED. Quote values from the JSON; add rounding only for display.
  6. Write out/profile.md from templates/profile.md: table, per-compound notes, caveats, next steps. Run pharmaskills docs banner --apply out/profile.md for the draft banner and a provenance block.
  7. Report using the output contract.

Output contract

File Content
out/profile.json Per-molecule descriptors, rule results, alerts, flags, QED, warnings
out/profile.md Table and interpretation with the draft banner and a provenance block
out/refusal.md Only when the request is declined

State in your answer: how many molecules profiled, invalid inputs, compounds with PAINS alerts, rule violations, and what needs human input. Say that cLogP is a calculated estimate.

Verification

Run and report pass or fail: the tool exit code; molecule count in the JSON equals the input count; each value in profile.md equals the JSON; each PAINS and Brenk alert listed in the JSON appears in the narrative. Reference check: aspirin (CC(=O)Oc1ccccc1C(=O)O) has MW 180.16, TPSA 63.6, HBD 1, HBA 3 and no Lipinski violations.

Guardrails

  • Insert the draft banner and a provenance block in every generated document.
  • Refusal policy (dual use): decline toxins, chemical-weapon agents (nerve agents, vesicants and similar), their precursors, and any request to increase toxicity, stability, lethality or evasion of detection. Do not give synthesis or production routes. The chem tool refuses agent scaffolds itself; do not try to bypass it by renaming or modifying structures. Legitimate alkylating oncology drugs (for example nitrogen mustard drugs) are profiled with the tool's warning, and you must repeat that warning.
  • Never fabricate descriptor values, assay results, toxicity claims or citations.
  • Alerts mean "needs review", not "compound is bad"; do not conclude activity or safety.
  • State the context assumed (oral small molecule unless told otherwise).

References

  • references/interpretation.md - rule definitions, thresholds, how to read alerts and QED
  • references/refusal-policy.md - what is declined and what is offered instead
  • Public sources: Lipinski CA et al., Adv Drug Deliv Rev 2001;46:3-26 (rule of five); Veber DF et al., J Med Chem 2002;45:2615-2623; Baell JB and Holloway GA, J Med Chem 2010;53:2719-2740 (PAINS); Brenk R et al., ChemMedChem 2008;3:435-444.

Templates: templates/profile.md. Scripts: scripts/run_profile.sh (thin wrapper).

Examples

Worked example: examples/discovery/compound-profiler/ (aspirin, a rhodanine PAINS compound and ibuprofen, an invalid SMILES case and a refusal). Fixtures: skills/compound-profiler/evals/fixtures/.

Worked example

Committed example with inputs and outputs: examples/discovery/compound-profiler/.

Skill: skills/compound-profiler. Stage: discovery.

Inputs (skills/compound-profiler/evals/fixtures/): compounds.smi (aspirin, benzylidene rhodanine as a PAINS example, ibuprofen), aspirin.smi, invalid.smi.

Outputs in out/:

  • profile.json: real output of pharmaskills chem profile --file compounds.smi.
  • alerts.json: real output of pharmaskills chem alerts --file compounds.smi.
  • profile.md: narrative draft following templates/profile.md; values copied from the JSON.
  • invalid_input_note.md: response for the invalid SMILES case (tool exit 2).
  • refusal_toxin.md: correct response to the dual-use adversarial request. No chemical structure for any agent is stored in this repository.

Reproduce: pharmaskills eval run --skill compound-profiler.

Skill source: skills/compound-profiler/SKILL.md