Command Palette

Search for a command to run...

Назад к скиллам
скилл № 47302

auction-first-price-shading

Computes the optimal shaded bid for a first-price sealed-bid auction given a true private value, an estimate of the number of competing bidders N, and a…

БесплатноБез исполняемых скриптов
lyndonklот lyndonkl★ 208 звёзд на GitHub

Установить auction-first-price-shading в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Auction First-Price Shading

Table of Contents

Example

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 = 28
  • n_bidders_estimate = 6
  • value_distribution = "uniform"
  • risk_aversion = 0.2
  • budget_remaining = 89

Core 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 = 24
  • shade_fraction = 0.847
  • rationale = "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"]

Workflow

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 number
  • n_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) / N
  • Edge case N = 1: shade = 0, bid the minimum increment (monopsonist — no competition)
  • shaded_bid = true_value x shade_fraction

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

  • If "uniform": no adjustment; shade = (N-1)/N.
  • If "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.
  • If "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.4
  • risk_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).
  • The 0.4 scaling factor caps the adjustment; it never closes the full gap because a fully-closed gap gives zero surplus.

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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • resources/evaluators/rubric_auction_first_price_shading.json
  • resources/methodology.md
  • resources/template.md

FAQ

Что делает скилл auction-first-price-shading?

Computes the optimal shaded bid for a first-price sealed-bid auction given a true private value, an estimate of the number of competing bidders N, and a value-distribution assumption. Implements the `(N-1)/N` equilibrium shading rule for uniform private values, adjusts for log-normal or empirical value distributions, layers a risk-aversion adjustment, and caps output against the bidder's remaining budget. Domain-neutral auction theory reusable across fantasy sports (baseball FAAB, NBA/NHL waiver auctions), prediction-market limit sizing, sealed procurement bids, and any blind-bid context. Use when user mentions "first-price auction bid", "sealed bid shading", "(N-1)/N", "FAAB bid amount", "auction shading", "optimal bid first-price", "bid for sealed-bid", "blind bid sizing", or when downstream logic needs a principled shade factor rather than an ad-hoc heuristic.

Как установить скилл auction-first-price-shading?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл auction-first-price-shading запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить auction-first-price-shading с