adaptyv
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user…
Track physical units and propagate measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo
$ npx -y skills add k-dense-ai/claude-scientific-skills --skill uncertainty-and-units --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/uncertainty-and-unitsContext preview
The summary Claude sees to decide when to auto-load this skill.
Track physical units and propagate measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo
name: uncertainty-and-units description: Track physical units and propagate measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on "is this number physically reasonable", "sanity check these units", "what regime is this flow in", or a result that looks off by orders of magnitude. license: MIT compatibility: Requires Python 3.12+. The numeric CLIs need pint, uncertainties, NumPy, and SciPy; the static auditor is standard-library only. All bundled tooling runs locally with no network access. allowed-tools: Read Write Edit Bash metadata: version: "1.1" skill-author: K-Dense Inc.
Use this skill whenever a calculation carries physical units or a reported number needs an uncertainty. Concretely:
(wavelength to photon energy, mass to amount of substance, energy to temperature);
repeatability data;
order of magnitude, the dimensionless group, and the regime it implies.
This skill covers the metrology and the two libraries that implement it. It does not cover statistical inference, model selection, or study design — see `statistical-analysis`, `statistical-power`, and `experimental-design`.
Verified 2026-07-26:
served CODATA 2018, and several recommended values differ between them.
uv venv --python 3.13 source .venv/bin/activate uv pip install "pint==0.25.3" "uncertainties==3.2.3" "numpy==2.5.1" "scipy==1.18.0"
`pint-pandas` and `pint-xarray` add unit-aware columns and arrays and are separate installs.
1. **Attach units at input and strip them only at output.** Convert at function boundaries with `ureg.wraps` or `m_as("unit")`, never mid-calculation. 2. **Write the measurement model explicitly** before computing anything, including corrections whose estimated value is zero. A correction left out of the model leaves its uncertainty out of the budget. 3. **Give every input four things**: an estimate, a standard uncertainty, the distribution the uncertainty came from, and its degrees of freedom. 4. **Convert Type B statements with the right divisor.** A certificate's expanded uncertainty divides by its stated `k`; rectangular limits divide by `sqrt(3)`. 5. **Identify correlations before combining.** Inputs calibrated against the same standard, measured on the same instrument, or drawn from the same fit are correlated. 6. **Compute sensitivity coefficients**, and read the budget from `c_i * u(x_i)` rather than from the raw uncertainties. 7. **Check the linearization.** Run Monte Carlo alongside the GUM framework and apply the JCGM 101 clause 8 comparison. Report the Monte Carlo result when it fails. 8. **Choose `k` from the effective degrees of freedom**, not by habit. 9. **Round the uncertainty first, then the value to the same decimal place.** 10. **State what the `±` is** — standard or expanded, with `k`, the coverage probability, and the method. 11. **Sanity-check the magnitude before reporting.** A dimensionally consistent result can still be impossible. Compare it against a known scale or a dimensionless group, and confirm every assumption you relied on still holds in that regime.
Each of the following runs without error and produces a plausible number.
length = (12.7 * ureg.mm).magnitude # 12.7 -- of what?
length = (12.7 * ureg.mm).m_as("m") # 0.0127 metres, stated`.magnitude` returns whatever the quantity happened to be carrying. Name the unit at the point of extraction, every time.
Q(20, "degC") + Q(5, "degC") # OffsetUnitCalculusError -- correctly refused Q(20, "degC") + Q(5, "delta_degC") # 25 degree_Celsius Q(25, "degC") - Q(20, "degC") # 5 delta_degree_Celsius
Celsius and Fahrenheit are interval scales. An uncertainty on a temperature is always a difference and belongs in a `delta_` unit: converting `20 ± 0.5 degC` to Fahrenheit gives `68 degF ± 0.9 delta_degF`, two different conversions on one line.
Q(10, "dBm") + Q(10, "dBm") # 0.0001 kilogram**2 * meter**4 / second**6
That is 10 mW × 10 mW, not 20 mW and not 13 dBm. Nothing raises. Convert to a linear unit before any arithmetic.
x = ufloat(1.0, 0.1) x - x
🔔 Claude Scientific Skills is now Scientific Agent Skills. Same skills, broader compatibility — now works with any AI agent that supports the open Agent Skills standard, not just Claude.
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user…
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection,…
Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP…
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data…
Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree…
Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk…