Scoring Threshold Calibration
Checks that a scoring or anomaly pipeline really separates classes, so its flags carry real signal.
Claude's review
8/10 Expert threshold/baseline calibration: unit mismatches, fire rates, score composition traps.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Check that a score-threshold-flag pipeline actually separates anything before you trust or tune it — reference constants that are hand-authored but formatted as measurements, a computed feature whose units do not match the constant it is compared against, per-class fire rates that expose a flag firing on nearly every item of both classes, rate features confounded by item length, confidence scores where one feature family contributes once per sub-feature, threshold sweeps hardcoded to one comparison direction and one statistic, and separating features that carry the decision from features that only populate a warning list. Use when writing or reviewing an anomaly detector, a quality or risk score, a fraud/abuse heuristic, a lint-style flag set, or any pipeline that z-scores features against stored baseline constants and emits flags.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: calibrating-thresholds-and-baselines
description: Check that a score-threshold-flag pipeline actually separates anything before you trust or tune it — reference constants that are hand-authored but formatted as measurements, a computed feature whose units do not match the constant it is compared against, per-class fire rates that expose a flag firing on nearly every item of both classes, rate features confounded by item length, confidence scores where one feature family contributes once per sub-feature, threshold sweeps hardcoded to one comparison direction and one statistic, and separating features that carry the decision from features that only populate a warning list. Use when writing or reviewing an anomaly detector, a quality or risk score, a fraud/abuse heuristic, a lint-style flag set, or any pipeline that z-scores features against stored baseline constants and emits flags.
---
# Calibrating Thresholds and Baselines
A scoring pipeline has three layers: features computed per item, reference
constants the features are compared against, and a flag/score layer that turns
the comparison into something a user reads. **reporting-derived-metrics** covers
the first layer — what a feature function returns when the sample is too thin to
support it. This skill covers the other two: where the constant came from, and
whether the flag it drives carries any information at all.
The failure mode is not a crash. It is a pipeline that runs clean, emits
confident-looking flags on every input, and nobody notices because no one ever
asked how often each flag fires per class.
## A committed baseline file is not a measurement
Baselines get checked in as JSON or a module constant and immediately start
reading as ground truth, because they have the shape of data:
```json
{
"name": "general_prose",
"created": "2023-09-04",
"sample_size": 750,
"features": {
"avg_item_len": {"mean": 12.4, "sd": 5.1},
"diversity": {"mean": 0.61, "sd": 0.07},
"rate_per_word":{"mean": 0.22, "sd": 0.05}
}
}
```
Every number there is two significant figures, `sample_size` is a round 750, and
nothing in the repository produces the file. It was typed. Downstream, `z =
(value - 0.22) / 0.05` is reported to four decimals and quoted in an issue as
evidence.
...From wdm0006's repository, MIT licence.
Related skills
-
Checked
dbt platform migration
Moves a dbt project from one warehouse to another and fixes SQL dialect gaps, so your models build again.
7/101 credit -
Checked
CSV and Excel merging
Merges, stacks and dedupes CSV and Excel files into one clean table, then checks the row counts add up.
7/101 credit -
Checked
BigQuery migration checks
Validates that tables moved to BigQuery match their source on schema, aggregates and rows, so nothing is lost.
7/101 credit -
Checked
dbt Mesh contracts
Checks whether a dbt model change breaks consumers and versions it, so downstream dashboards keep working.
7/101 credit -
Checked
SQL and dbt Analytics
Writes analytical SQL and dbt models tested for grain and join errors, so the numbers come out right.
7/101 credit -
Checked
D3 Animated Data Charts
Turns sourced data into honest, accessible animated D3 charts that render reliably frame by frame for video.
7/101 credit