/ldaume-product:estimate-with-uncertaintyfrom ldaume-product
Computes estimates and forecasts from small, messy operational data as ranges with their basis. Use for cost, budget, capacity, headcount, volume, or KPI projections from measured data.
Ships in ldaume-product. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A number about the future is a distribution. The job is to compute it honestly from the data that exists, say which part of it a reader sees, and make every published figure reproducible. Small samples, open items, skew, and bursty counts are the normal case, so the first method that fits a textbook is usually wrong for them.
product-craft owns that conversation.plain-numbers for a reader outside the work.OVERALL PASS against the figures in your answer (see below).| Data situation | Default method | Why not the obvious one |
|---|---|---|
| Positive, right-skewed amounts (cost, duration) with a size driver, n below about 50 | Bayesian lognormal regression on log scale, weakly informative priors (normal(0, 1) on log-scale slopes and group effects); bootstrap only as a cross-check | At n of about 20, bootstrap intervals are unstable and percentile and BCa can disagree; the posterior carries parameter uncertainty into the forecast directly |
| A small subgroup (a new customer, a new team: fewer than about 10 items) | A group term with a prior that shrinks toward zero; with several groups, a hierarchical model with a half-normal or half-t prior on the group scale | A raw subgroup mean from a handful of items overstates the difference; an Inverse-Gamma(eps, eps) prior on a group scale misbehaves with few groups |
| Items still open | Cost to date times an uplift factor from a stated range, redrawn in every posterior step; a censored (Tobit) fit as the upper scenario | Counting open items as finished biases every figure down |
| Counts per period (items per sprint, tickets per week) | Dispersion index D first; (n - 1) D is roughly chi-square with n - 1 degrees of freedom under Poisson, so judge "above 1" with that, not by eye. Clearly above 1: resample measured period counts (a month = two drawn sprint counts) or a negative binomial. About 1: Poisson | Poisson on overdispersed data gives too narrow ranges; quantiles plus Poisson on top double-counts the noise and gives too wide ones |
| A rate that may depend on size (questions per feature vs size) | Bayesian Poisson or negative-binomial regression; report the slope interval and P(slope > 0) | A p-value answers a question nobody asked; with few nonzero counts many bootstrap resamples hold only zeros |
| Capacity of a queue (runners, on-call people, workers) | State the wait target first (for example 95% wait at most 5 minutes). Discrete-event simulation with the measured burst pattern and lognormal durations, or replayed measured days; Erlang C as cross-check; then N+1 (a reliability convention, not a derived number) so the largest machine can fail | Average utilisation hides bursts; sizing to a peak without a wait target or failure reserve is either waste or an outage |
| Nothing measured | Do not compute. Define value and boundary, or give a reference range from comparable past work with its source | A model on invented inputs launders a guess into a figure |
| Hypothesis test, study or experiment design, power | statistical-analysis, experimental-design, statistical-power | Different question: a forecast needs a predictive distribution, not a test |
The rows trace to (supported) [SRC-EST-001] [SRC-EST-002] [SRC-EST-003] [SRC-EST-008] for regression and priors, (supported) [SRC-EST-005] for the bootstrap, (supported) [SRC-EST-006] for queues, (supported) [SRC-EST-009] for open items as measurement error, and (supported) [SRC-EST-010] for the Tobit scenario.
scripts/forecast_sketch.py is a stdlib starting point for the first, third,
and fourth rows: a Gibbs sampler with the open-item uplift, the resampled
volume, the three ranges, a dispersion check, and check_published. Copy and
adapt it rather than writing a sampler from scratch;
tests/test_forecast_sketch.py shows each behavior it guarantees.
A period forecast mixes two uncertainties. Keep them apart and say which one a figure is:
exp(mu + sigma^2 / 2) averaged over the forecast mix, times
a resampled mean volume. Its interval says how sure the average period is,
not how much single periods swing; label it "interval for the average"
so nobody reads it as the range of one month.For n similar products or teams, the expected-period interval comes from parameters they share, so it scales with n; only the item-to-item noise in the predictive range grows like sqrt(n). Dividing the whole interval by sqrt(n) understates the risk. When part of the forecast lies beyond the largest observed input, report that share and its share of the cost; it is extrapolation, not measurement.
Run each, report one line, change the headline only through the correction log:
exp(sigma^2 / 2)
(supported) [SRC-EST-004] [SRC-EST-007].Every forecast leaves one script with fixed seeds that reruns the models end
to end (the demo in the sketch shows the pattern). Its last step holds the figures exactly as the answer or page states
them (a STATED dict, typed in from your draft, rounded as written) and
compares each with the freshly computed value (check_published in the
sketch), one
PASS or FAIL line each, last line OVERALL PASS or OVERALL FAIL. For a
page, render it to text first and format the numbers in its locale; for a
growing analysis, also compare each output file with the stored one. Run it
before every publish and after every data refresh. Draft the answer, type its
figures into STATED, rerun, then send: a check that compares the script with
its own variables proves nothing. A FAIL means the answer or the model is
wrong, never that the check is too strict.
Keep it at the end of the method document:
| Before | Now | Reason |
|---|---|---|
| OLS on log cost, bootstrap over all items (synthetic example) | Bayesian lognormal regression | Open items counted as finished; percentile and BCa intervals disagreed |
references/vocabulary.md lists the field's terms for authors and check
scripts; a review does not load it.
Reviewers find the same first-draft errors again and again; check for them before review: open items counted as finished, Poisson without a dispersion check, a subgroup mean without shrinkage, a p-value instead of a probability, capacity without a wait target or N+1, a median published as the budget, a shared-parameter interval divided by sqrt(n) across products, and figures copied by hand.
"Budget about 1,040 USD a month (the average; interval for the average 470
to 2,000), based on 20 measured features, 4 still open and counted at 1.0 to
1.5 times their cost so far, and 20 sprints. A typical month is about 840
and a busy one 1,330. The average sits above the typical month because a few
large items cost much more. 39 of the 100 planned items are larger than
anything built so far; splitting them is the biggest lever." (Synthetic:
every figure is printed and checked by the demo in
scripts/forecast_sketch.py.)
references/sources.json holds the registry. Practitioner anchor: a point
forecast is of almost no value without its prediction interval (verified)
[SRC-EST-011].
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ldaume/agentic-engineering-harness --plugin ldaume-product5 skills in this plugin
/integrate-product-complianceIntegrates confirmed security, trust, and compliance scope into product engineering through risk, controls and policy as code, evidence, release policy, and effectiveness review. Use when work touches ISO/IEC 27001, TISAX or VDA ISA, PCI DSS, customer security commitments, regulated or sensitive data, payment flows, compliance as code, policy as code, machine-readable controls, audit evidence, control exceptions, or risk-based delivery./plain-numbersWrites and reviews numbers for readers who were not in the work, so a manager, client, or stakeholder reads each figure the way it was measured. Use when writing or checking a status update, weekly or check-in page, results summary, dashboard, report, or slide that carries percentages, counts, or other metrics. Not for code docs, agent instructions, marketing copy without metrics, or a chat reply to the person who did the work./product-craftShapes evidence-driven product bets, value-defined issues, and honest Now/Next/Later/Never roadmaps. Use when turning signals into bets, deciding whether or when work deserves investment, or trading off product and engineering without backlog theater. Writing the roadmap or status document belongs to writing-product; running user research to design-research.