/thinking-frameworks-skills:auction-first-price-shadingfrom thinking-frameworks-skills
Computes optimal shaded bids for first-price sealed-bid auctions using (N-1)/N equilibrium, distribution adjustments, risk-aversion, and budget caps. Useful for fantasy sports FAAB, prediction markets, and procurement bids.
Ships in thinking-frameworks-skills. 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.
Scenario: Domain-neutral sealed-bid auction. A bidder must submit a blind bid for an item whose private value to them is 28 units of budget currency. Six other bidders are expected to compete. Values across bidders look roughly uniform. The bidder is mildly risk-averse (0.2) and has 89 units of budget remaining.
Inputs:
true_value = 28n_bidders_estimate = 6value_distribution = "uniform"risk_aversion = 0.2budget_remaining = 89Core computation:
shade_fraction_base = (N - 1) / N = 5 / 6 = 0.833
shaded_bid_base = true_value x shade_fraction_base = 28 x 0.833 = 23.33
Risk-aversion adjustment (raise the bid toward true value to boost win probability):
shade_fraction' = shade + risk_aversion x (1 - shade) x 0.4
= 0.833 + 0.2 x (1 - 0.833) x 0.4
= 0.833 + 0.0133
= 0.847
shaded_bid' = 28 x 0.847 = 23.72
Budget + safety cap:
cap = min(shaded_bid', 0.9 x true_value, budget_remaining)
= min(23.72, 25.2, 89)
= 23.72 -> round to 24
Output:
shaded_bid = 24shade_fraction = 0.847rationale = "Uniform-values equilibrium shades to (N-1)/N = 0.833 at N=6. Mild risk aversion (0.2) nudges bid up to 0.847 of true value to raise win probability. Final bid capped below 0.9x true_value and well under budget. Expected to win against 5 rivals drawing values from a comparable uniform distribution."assumptions_flagged = ["uniform private-value distribution", "N=6 is an estimate, not observed", "risk_aversion=0.2 is a modeling choice"]Copy this checklist and track progress:
Auction Shading Progress:
- [ ] Step 1: Validate inputs (true_value > 0, 1 <= N <= 12, distribution known)
- [ ] Step 2: Compute base shade from (N-1)/N
- [ ] Step 3: Apply distribution adjustment (uniform / log-normal / empirical)
- [ ] Step 4: Apply risk-aversion adjustment
- [ ] Step 5: Apply budget and safety caps
- [ ] Step 6: Emit shaded_bid, shade_fraction, rationale, assumptions_flagged
Step 1: Validate inputs
Reject or flag bad inputs before computing. See resources/template.md for the full input contract.
true_value is a non-negative numbern_bidders_estimate is an integer, clamp to [1, 12]value_distribution is one of "uniform", "log-normal", "empirical"risk_aversion is in [0, 1] (default 0 if missing)budget_remaining is a non-negative number (if missing, treat as effectively infinite and flag)Step 2: Compute base shade from (N-1)/N
For risk-neutral bidders drawing values from a uniform distribution on [0, v_max], the symmetric Bayes-Nash equilibrium bidding strategy is b(v) = v x (N-1)/N. See resources/methodology.md for the derivation.
shade_fraction = (N - 1) / NN = 1: shade = 0, bid the minimum increment (monopsonist — no competition)shaded_bid = true_value x shade_fractionStep 3: Apply distribution adjustment
Uniform values give the clean (N-1)/N rule. Real-world value distributions are often clustered (log-normal) or empirically lumpy. See resources/methodology.md.
"uniform": no adjustment; shade = (N-1)/N."log-normal": values cluster around a mode with a long right tail. Shift shade toward 1 - 1/(N x spread) where spread >= 1 captures the coefficient of variation. Default spread = 1.5 shifts shade up (bid closer to value) because rivals' values are less likely to be extreme."empirical": distribution learned from prior auctions; pass through a shade-lookup table if available, otherwise fall back to the log-normal formula with spread inferred from observed history.Step 4: Apply risk-aversion adjustment
Risk-averse bidders accept a smaller expected surplus in exchange for a higher win probability. They bid closer to true value (shade less). See resources/methodology.md.
shade_fraction' = shade + risk_aversion x (1 - shade) x 0.4risk_aversion = 0: no change.risk_aversion = 1: shade moves 40 percent of the way from its base value to 1 (i.e., toward bidding true value).Step 5: Apply budget and safety caps
The final bid is clamped three ways:
cap_value = 0.9 x true_value — never pay more than 90 percent of what the item is worth; this preserves at least 10 percent expected surplus.cap_budget = budget_remaining — never bid more than available budget.shaded_bid = min(raw_shaded_bid, cap_value, cap_budget).assumptions_flagged whenever a cap binds so downstream consumers know which constraint is active.Step 6: Emit outputs
Return the four-field output:
shaded_bid (number, rounded to the precision the caller expects — integers for most budget systems)shade_fraction (0-1, the effective shade actually used)rationale (one or two sentences explaining which rule applied and why)assumptions_flagged (string array — every assumption the downstream consumer may need to revisit)Validate using resources/evaluators/rubric_auction_first_price_shading.json. Minimum standard: weighted score of 3.5 or above.
Pattern 1: Generic sealed-bid auction (uniform values, risk-neutral)
(N-1)/N. At N=2 shade to 50 percent. At N=6 shade to 83 percent. At N=8 shade to 87.5 percent.Pattern 2: Clustered values (log-normal or empirical)
1 - 1/(N x spread). Higher spread means more disagreement and permits deeper shading. Low spread (tight cluster) means less room to shade — bidders must be near consensus to win.Pattern 3: Risk-averse bidder
shade' = shade + risk_aversion x (1 - shade) x 0.4. Pushes the bid closer to true value.0.9 x true_value enforces this hard.Pattern 4: Budget-constrained bidder (corner solution)
budget_remaining. The bidder must either accept a lower win probability or forgo the auction.budget_remaining, effective shade = budget_remaining / true_value. Flag that the budget constraint binds so downstream logic can decide whether to skip the auction or accept the lower probability.budget_remaining < (N-1)/N x true_value, the bidder is under-resourced to compete — flag and let the caller decide.(N-1)/N is a symmetric-equilibrium result, not a universal truth. It assumes all bidders use the same bidding function and draw values from the same distribution. If one bidder systematically overbids, optimal response shifts. Flag in assumptions_flagged whenever the user has signals that rivals are not symmetric.
N is an estimate, not a datum. Most callers do not know N exactly. Small errors in N matter little (the shade function is smooth), but mistaking N=2 for N=6 changes the bid from 50 percent to 83 percent of value. Always flag n_bidders_estimate as an assumption.
Clamp N to [1, 12]. Values below 1 are nonsense. Values above 12 rarely improve the bid materially (shade at N=12 is 0.917 vs. 0.875 at N=8) and are usually overconfident. Clamping protects against upstream errors.
Never bid above 0.9 x true_value. This is a hard cap. Even with heavy risk aversion or very large N, crossing 0.9 reduces expected surplus below the point where shading has economic value.
Never bid above budget_remaining. The shaded bid is clamped to available budget. If the clamp binds, the output flag must say so — the downstream consumer may prefer to skip rather than bid the full budget on a single item.
N = 1 is a corner case. With no competition, the dominant strategy is to bid the minimum increment (often 1 unit, sometimes 0). The skill returns shaded_bid = max(1, floor_bid) and flags "no competition — minimum bid wins." Callers supplying their own floor should pass it explicitly; this skill defaults to 1.
Risk aversion does not dominate the math. The adjustment shade' = shade + risk_aversion x (1 - shade) x 0.4 is bounded by the 0.4 scaling factor. The final bid is still capped at 0.9 x true_value. Do not let a risk-averse user bid true value.
This skill is domain-neutral. It knows nothing about baseball, prediction markets, or procurement. Downstream consumers (e.g., mlb-faab-sizer for fantasy baseball, or a procurement agent for sealed supplier bids) wrap this skill with domain-specific value estimation, urgency multipliers, and winner's-curse haircuts.
Key formulas:
Uniform-value risk-neutral equilibrium:
shade_fraction = (N - 1) / N
shaded_bid = true_value x shade_fraction
Log-normal / empirical-cluster adjustment:
shade_fraction_adj = 1 - 1 / (N x spread) # spread >= 1 (CoV proxy)
default spread = 1.5
Risk-aversion adjustment:
shade_fraction_ra = shade + risk_aversion x (1 - shade) x 0.4
Final bid (all caps applied):
shaded_bid = min(true_value x shade_fraction_final,
0.9 x true_value,
budget_remaining)
Shade table (uniform, risk-neutral):
| N | shade_fraction | Example: bid on true_value = 100 |
|---|---|---|
| 1 | 0.00 | 1 (minimum increment) |
| 2 | 0.50 | 50 |
| 3 | 0.67 | 67 |
| 4 | 0.75 | 75 |
| 5 | 0.80 | 80 |
| 6 | 0.83 | 83 |
| 8 | 0.875 | 87 (then capped at 90) |
| 10 | 0.90 | 90 (exactly at cap) |
| 12 | 0.917 | 90 (cap binds) |
Input contract:
true_value (number, >= 0) — bidder's own private valuation in units of budget currencyn_bidders_estimate (int, clamped to [1, 12]) — total number of realistic bidders including selfvalue_distribution ("uniform" | "log-normal" | "empirical") — shape assumptionrisk_aversion (number, [0, 1], default 0) — 0 = risk-neutral, 1 = maximally risk-aversebudget_remaining (number, >= 0) — hard ceiling on the outputOutput contract:
shaded_bid (number) — the deterministic bid to submitshade_fraction (number, [0, 1]) — effective shade actually appliedrationale (string) — one-two sentence explanation for the rationale logassumptions_flagged (string[]) — every modeling assumption the caller may want to revisitKey resources:
(N-1)/N, log-normal adjustment, risk-aversion adjustment, revenue equivalence theorem, three worked examples at N=2, N=6, N=8What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
auction-theory, bid-shading, first-price-auction, faab, sealed-bid
npx claudepluginhub lyndonkl/claude --plugin thinking-frameworks-skills270 skills in this plugin
/abstraction-concrete-examplesBuilds structured abstraction ladders that translate high-level principles into concrete, actionable examples across 3-5 levels. Bridges communication gaps, reveals hidden assumptions, and tests whether abstract ideas work in practice. Use when explaining concepts at different expertise levels, moving between abstract principles and concrete implementation, identifying edge cases by testing ideas against scenarios, designing layered documentation, decomposing complex problems into actionable steps, or bridging strategy-execution gaps./academic-letter-architectGuides the creation of evidence-based academic recommendation letters, reference letters, and award nominations that combine concrete examples, meaningful comparisons, and genuine enthusiasm. Use when writing recommendation letters for students, postdocs, or colleagues, or when user mentions recommendation letter, reference, nomination, letter of support, endorsement, or needs help with strong advocacy and comparative statements./adr-architectureDocuments significant architectural and technical decisions with full context, alternatives considered, trade-offs analyzed, and consequences understood. Creates a decision trail that helps teams understand why decisions were made. Use when choosing between technology options, making infrastructure decisions, establishing standards, migrating systems, or when user mentions ADR, architecture decision, technical decision record, or decision documentation./adverse-selection-priorProduces a Bayesian prior probability that an offered transaction is +EV for the recipient, given that the counterparty chose to propose it. Applies Akerlof market-for-lemons logic -- if they offered it, they believe it is +EV for them, so the prior that it is +EV for us is materially below 50%. Reusable across trade evaluation, waiver drops (another team dropping a player is also adverse selection), job-offer analysis, M&A, and any "someone offered me this" situation. Use when you receive an unsolicited trade/offer/proposal, analyzing incoming trade prior, evaluating why a counterparty proposed a deal, or when user mentions adverse selection, market for lemons, why did they offer this, incoming trade prior, they proposed it, Bayesian adjustment on received offer./advisory-editA strict advisory-only editing discipline for a writer who dictates ("speaks out") essays and wants help WITHOUT having their voice changed. The editor directs structure, flags grammar, and suggests strategic language — but never modifies the writer's text unless the writer explicitly says "apply" / "make that change" / "rewrite this." Produces a line-referenced, suggestion-only critique where every item is marked the writer's call. Four passes — structural, line (grammar/clarity), voice, pre-publish. Use when reviewing a draft, critiquing a spoken-out article, or doing a pre-publish check. The companion to learning-in-public-voice and the operating manual for the biostat-editor agent./alignment-values-north-starCreates actionable alignment frameworks that give teams a shared North Star (direction), values (guardrails), and decision tenets (behavioral standards). Enables autonomous decision-making while maintaining organizational coherence. Use when starting new teams, scaling organizations, defining culture, establishing product vision, resolving misalignment, creating strategic clarity, or when user mentions North Star, team values, mission, principles, guardrails, decision framework, or cultural alignment.Other plugins' skills for the same job