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.
npx skills add K-Dense-AI/drug-discovery-agent-skills --skill medchemgit clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skillsWrote 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.
[](https://agentmods.dev/skills/k-dense-ai/drug-discovery-agent-skills/medchem)<a href="https://agentmods.dev/skills/k-dense-ai/drug-discovery-agent-skills/medchem"><img src="https://agentmods.dev/badge/skills/k-dense-ai/drug-discovery-agent-skills/medchem/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/k-dense-ai/drug-discovery-agent-skills/medchem"><img src="https://agentmods.dev/badge/skills/k-dense-ai/drug-discovery-agent-skills/medchem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00176 | $0.03312 |
| Opus 5 | $0.00088 | $0.01656 |
| Sonnet 5 | $0.00035 | $0.00662 |
| Haiku 4.5 | $0.00018 | $0.00331 |
Grade A, and why
medchem 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 12d 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.
This is a copy
89% identical to medchem — 34 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 344 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Medchem
Overview
Medchem is a Python library from datamol-io for molecular filtering and prioritization in drug discovery. Apply literature-derived drug-likeness rules, named alert catalogs, complexity thresholds, chemical-group detection, and a custom query language to triage compound libraries at scale. Filters are context-specific guidelines — combine with domain expertise and target knowledge.
Checked against: medchem 2.0.5 (PyPI stable, released 2024-11-18; still the current release
as of August 2026) — 22 rules and 32 named catalogs verified live. Requires Python ≥3.9. Depends on datamol and RDKit (installed automatically). RuleFilters and structural filter classes return pandas DataFrames. Lilly demerits require optional native binaries (mamba install lilly-medchem-rules).
When to Use This Skill
This skill should be used when:
- Applying drug-likeness rules (Lipinski, Veber, CNS, lead-like) to compound libraries
- Filtering molecules by structural alerts, PAINS, or NIBR screening-deck rules
- Prioritizing compounds for hit-to-lead or lead optimization
- Calculating complexity metrics against ZINC-derived thresholds
- Detecting functional groups or named substructure catalogs
- Building multi-criteria filters with the medchem query language
Installation
uv pip install medchem datamol
Optional — Eli Lilly demerit filter (requires conda-forge native binaries):
mamba install -c conda-forge lilly-medchem-rules
Core Capabilities
1. Medicinal Chemistry Rules
Apply established drug-likeness rules via medchem.rules.
List available rules:
import medchem as mc
mc.rules.RuleFilters.list_available_rules_names()
# ['rule_of_five', 'rule_of_five_beyond', 'rule_of_four', 'rule_of_three', ...]
Single rule on one molecule:
import datamol as dm
import medchem as mc
smiles = "CC(=O)OC1=CC=CC=C1C(=O)O" # aspirin
mc.rules.basic_rules.rule_of_five(smiles) # True
mc.rules.basic_rules.rule_of_cns(smiles) # True
mc.rules.basic_rules.rule_of_veber(smiles) # True
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 344 lines · 176 tokens per session scan A 241855885ee8
medchem is a skill published in the GitHub repository K-Dense-AI/drug-discovery-agent-skills (28 stars, last pushed 5d ago), licensed MIT. It adds 176 tokens to every session and 3,312 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to medchem, differing in 34 lines, and is treated as a copy.
Other skills, from other repositories
patsnap-biological-modality
Biological sequence and modality intelligence via Patsnap MCP.
patsnap-chemical-molecular
Patsnap Chemical Molecular MCP for AI agents. Search 160M+ chemical structures, synthetic routes, and bioactivity data via specialized chemistry tools.
patsnap-scientific-translational-evidence
Patsnap Scientific & Translational Evidence MCP for AI agents. Retrieval platform focusing on scientific literature and translational outcomes, covering academic publication queries and translational medicine record tracking.
patsnap-target-disease
Patsnap Target & Disease MCP for AI agents. Target and disease profiling tool, covering target characterization, disease profiling, and epidemiology evidence retrieval.
patsnap-solution-engine
Patsnap TRIZ Concept Solution Engine MCP for AI agents. Generates innovation or product cost-reduction concepts through asynchronous TRIZ and TRIZ/DFMA workflows. Use for engineering problem solving, concept alternatives, cost-reduction analysis, task-progress retrieval, and selected-solution details.
patsnap-clinical-trials
Patsnap Clinical Trials MCP for AI agents. Intelligent clinical trial retrieval system, covering registered trial tracking, trial details and results analysis, and supporting clinical semantic search.