uncertainty-qsar

uncertainty-qsar is a skill for Claude Code from Kdevos12/ALKYL. It costs 80 tokens per session (1,620 once invoked), scanned A, original, MIT.

A guide to adding confidence estimates to QSAR models, which predict chemical properties from molecular structure. It covers methods for separating model uncertainty from measurement noise and checking whether a molecule is similar to the training data.

In plain words
What is it for?
Use it to create prediction intervals, test whether compounds fall within a model’s applicability domain, rank uncertain compounds, and choose candidates for active learning. It also helps compare whether stated confidence levels match observed accuracy.
Why use it?
A single predicted value does not show how much it may be wrong. Uncertainty estimates help you judge which predictions are reliable and which need more data or caution.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the alkyl plugin — 27 skills shipped together

Good fit Use it to create prediction intervals, test whether compounds fall within a model’s applicability domain, rank uncertain compounds, and choose candidates for active learning. It also helps compare whether stated confidence levels match observed accuracy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kdevos12/alkyl/uncertainty-qsar
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 Kdevos12/ALKYL --skill uncertainty-qsar
Clone the repo
git clone --depth 1 https://github.com/Kdevos12/ALKYL

Made for: Claude Code.

Or install alkyl, the plugin that ships this one along with the rest of its 27 skills.

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 uncertainty-qsar

README.md
[![agentmods](https://agentmods.dev/badge/skills/kdevos12/alkyl/uncertainty-qsar/github.svg)](https://agentmods.dev/skills/kdevos12/alkyl/uncertainty-qsar)
Your own site
<a href="https://agentmods.dev/skills/kdevos12/alkyl/uncertainty-qsar"><img src="https://agentmods.dev/badge/skills/kdevos12/alkyl/uncertainty-qsar/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.

agentmods 80×15 button for uncertainty-qsar

Your own site · 80×15
<a href="https://agentmods.dev/skills/kdevos12/alkyl/uncertainty-qsar"><img src="https://agentmods.dev/badge/skills/kdevos12/alkyl/uncertainty-qsar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 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.00080 $0.01620
Opus 5.5 $0.00032 $0.00648
Sonnet 5.5 $0.00016 $0.00324
Haiku 4.5 $0.00008 $0.00162

Measured 2mo ago against content hash 65f32d0b66e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uncertainty-qsar 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 2mo 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/uncertainty-qsar/SKILL.md · 126 lines

How it starts

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

Uncertainty-Aware QSAR

QSAR models that output only point predictions are insufficient for drug discovery decisions. Uncertainty quantification (UQ) transforms predictions into actionable confidence intervals: "LogD = 2.3 ± 0.4 (90% CI)" is far more useful than "LogD = 2.3".

When to Use This Skill

  • Build QSAR models with calibrated prediction intervals (not just point predictions)
  • Assess whether a query molecule is within the applicability domain (AD) of the model
  • Design active learning loops: prioritize compounds with high epistemic uncertainty
  • Rank compounds when model uncertainty is high (don't trust raw predictions alone)
  • Regulatory/submission context requiring prediction confidence bounds
  • Compare model calibration (is the stated 90% CI actually 90% coverage?)

Uncertainty Types

Type What it means How to reduce Methods
Epistemic Model doesn't know (lack of training data) Add more training data GP variance, ensemble disagreement, MC dropout std
Aleatoric Intrinsic noise (measurement error) Can't be reduced Heteroscedastic models, learned noise σ
Total Combined uncertainty — Epistemic + Aleatoric in prediction

Quick Start — Conformal Prediction (MAPIE)

from mapie.regression import MapieRegressor
from sklearn.ensemble import RandomForestRegressor
import numpy as np

# Fit + calibrate
base_model = RandomForestRegressor(n_estimators=100, random_state=42)
mapie = MapieRegressor(base_model, method="plus", cv=5)
mapie.fit(X_train, y_train)

# Predict with intervals (alpha = desired error rate)
y_pred, y_pi = mapie.predict(X_test, alpha=0.10)  # 90% CI
# y_pi shape: (n_samples, 2, n_alpha)
lower = y_pi[:, 0, 0]
upper = y_pi[:, 1, 0]

# Coverage check
coverage = np.mean((y_test >= lower) & (y_test <= upper))
print(f"Empirical coverage: {coverage:.2%}")  # should be ~90%

Quick Start — Tanimoto GP

import gpytorch
import torch
from rdkit.Chem import rdMolDescriptors

class TanimotoKernel(gpytorch.kernels.Kernel):
    """Tanimoto similarity kernel for binary fingerprints."""
    has_lengthscale = False

    def forward(self, x1, x2, **params):
        x1_sum = x1.sum(-1, keepdim=True)
        x2_sum = x2.sum(-1, keepdim=True)
        dot = torch.matmul(x1, x2.transpose(-1, -2))
        intersection = dot
        union = x1_sum + x2_sum.transpose(-1, -2) - dot
        return intersection / union.clamp(min=1e-8)

# Usage:
# fps = np.array([get_morgan_fp(smi) for smi in smiles_list])
# X = torch.tensor(fps, dtype=torch.float32)
# y = torch.tensor(activities, dtype=torch.float32)
# → see references/gaussian-processes.md for full GP model

Read the full file on GitHub · 126 lines

Files

What ships with it

5 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.

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. 2mo ago First seen · 126 lines · 80 tokens per session scan A 65f32d0b66e5

Subscribe to this mod's changes

uncertainty-qsar is a skill published in the GitHub repository Kdevos12/ALKYL (7 stars, last pushed 7mo ago), licensed MIT. It adds 80 tokens to every session and 1,620 once invoked, about $0.0003 per session on Opus 5.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

deepchem

Molecular ML with diverse featurizers and pre-built datasets. Use for property prediction (ADMET, toxicity) with traditional ML or GNNs when you want extensive featurization options and MoleculeNet benchmarks. Best for quick experiments with pre-trained models, diverse molecular representations. For graph-first…

synthetic-sciences/openscience · 78 tokens

structure-prediction

Protein structure prediction from sequence. ESMFold-based, single GPU, no MSA needed. Predicts 3D structures with pLDDT confidence scores for drug discovery targets.

synthetic-sciences/openscience · 42 tokens

primekg

Query the Precision Medicine Knowledge Graph (PrimeKG) for multiscale biological relationships across genes and proteins, drugs, diseases, phenotypes, pathways, biological processes, exposures and anatomy. Use this skill to search entities by name, pull direct neighbours and their evidence types, summarise the local…

K-Dense-AI/drug-discovery-agent-skills · 121 tokens

fragment-based-count-matrix-generation

Use when you have a backed AnnData object containing processed fragment data (stored in .obsm['fragmentpaired'] or .

HolobiomicsLab/asb-skill-collections · 33 tokens

methylbase-object-handling

Use when after reading in per-sample methylation call files with methRead() and obtaining methylRawList objects, but before calculating differential methylation or performing annotation.

HolobiomicsLab/asb-skill-collections · 40 tokens

monocle3-trajectory-embedding

Use when you have an ArchR project object with dimensionality reduction results (LSI or combined dimensions from scATAC-seq ± scRNA-seq) and want to infer pseudotime trajectories and cell-state transitions.

HolobiomicsLab/asb-skill-collections · 54 tokens