auction-first-price-shading

根据真实私有价值、对竞争投标人数 N 的估计及价值分布假设,计算第一价格密封投标拍卖中的最优折价投标。对均匀分布实现 (N-1)/N 的均衡折价规则,并可基于对数正态或经验价值分布调整,叠加风险厌恶修正,且将输出限制在投标人的剩余预算内。适用于梦幻体育(如 FAAB)、预测市场限价、密封采购等盲投场景。触发词包括“第一价格拍卖投标”“密封投标折价”“(N-1)/N”“FAAB 投标金额”“拍卖折价”。

仓库最近推送
GitHub Stars
206
Forks
28
Issues / PRs
3

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "auction-first-price-shading":https://skillpi.com/zh/skills/deepskill-680a19c44f05d967ca0e99c4c81e2638f8915e5100c9ad06b1d5f83a41cdf0c9。安装前核对上游来源和版本:https://github.com/lyndonkl/claude。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

根据真实私有价值、对竞争投标人数 N 的估计及价值分布假设,计算第一价格密封投标拍卖中的最优折价投标。对均匀分布实现 (N-1)/N 的均衡折价规则,并可基于对数正态或经验价值分布调整,叠加风险厌恶修正,且将输出限制在投标人的剩余预算内。适用于梦幻体育(如 FAAB)、预测市场限价、密封采购等盲投场景。触发词包括“第一价格拍卖投标”“密封投标折价”“(N-1)/N”“FAAB 投标金额”“拍卖折价”。

0 下载

介绍来源: third_party · lyndonkl · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: auction-first-price-shading
description: 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

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 bid more than available budget.
  • [ ] shaded_bid = min(raw_shaded_bid, cap_value, cap_budget).
  • [ ] Flag in 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.

Common Patterns

Pattern 1: Generic sealed-bid auction (uniform values, risk-neutral)

  • When it applies: Values are drawn from roughly the same distribution for all bidders, no unique information, no risk aversion.
  • Shade: (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.
  • Downstream examples: Fantasy sports waiver auctions (FAAB) for private-value targets, sealed procurement bids, silent-auction pledges.

Pattern 2: Clustered values (log-normal or empirical)

  • When it applies: Most bidders' valuations cluster around a shared estimate (common-value component), with a thin tail of outliers. Typical of well-known targets where public information narrows the spread of valuations.
  • Shade: move toward 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.
  • Downstream examples: FAAB bids on headline call-ups, prediction-market limit orders on well-priced contracts, M&A sealed-bid rounds with shared public data.

Pattern 3: Risk-averse bidder

  • When it applies: The bidder values winning more than maximizing expected surplus — for example, a fantasy manager who must fill a lineup slot this week, or a procurement team that must secure supply.
  • Shade adjustment: shade' = shade + risk_aversion x (1 - shade) x 0.4. Pushes the bid closer to true value.
  • Watch for: never lets shade reach 1 (never bids true value), because that yields zero expected surplus. The cap at 0.9 x true_value enforces this hard.

Pattern 4: Budget-constrained bidder (corner solution)

  • When it applies: The unconstrained shaded bid exceeds budget_remaining. The bidder must either accept a lower win probability or forgo the auction.
  • Shade adjustment: output equals 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.
  • Watch for: If budget_remaining < (N-1)/N x true_value, the bidder is under-resourced to compete — flag and let the caller decide.

Guardrails

  1. (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.

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

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

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

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

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

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

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

Quick Reference

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 currency
  • n_bidders_estimate (int, clamped to [1, 12]) — total number of realistic bidders including self
  • value_distribution ("uniform" | "log-normal" | "empirical") — shape assumption
  • risk_aversion (number, [0, 1], default 0) — 0 = risk-neutral, 1 = maximally risk-averse
  • budget_remaining (number, >= 0) — hard ceiling on the output

Output contract:

  • shaded_bid (number) — the deterministic bid to submit
  • shade_fraction (number, [0, 1]) — effective shade actually applied
  • rationale (string) — one-two sentence explanation for the rationale log
  • assumptions_flagged (string[]) — every modeling assumption the caller may want to revisit

Key resources:

版本历史

  1. 0.1 GitHub ↗
    原版更新说明

    ## What's Changed * Improve writer skill navigation and structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/1 * Consolidate stickiness content and reduce revision to 3 passes by @lyndonkl in https://github.com/lyndonkl/claude/pull/2 * Update README.md to reflect current writer skill structure by @lyndonkl in https://github.com/lyndonkl/claude/pull/3 * Add explicit instructions for AI agents to follow resource file workf… by @lyndonkl in https://github.com/lyndonkl/claude/pull/4 * Change analysis files from /tmp/ to project directory by @lyndonkl in https://github.com/lyndonkl/claude/pull/5 * Add five refined skills to production by @lyndonkl in https://github.com/lyndonkl/claude/pull/6 * Add causal-inference-root-cause skill and fix missing methodology files by @lyndonkl in https://github.com/lyndonkl/claude/pull/7 * Add workflow pattern to 6 completed skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/8 * Add chain-estimation and roleplay-debate skills with optimizations by @lyndonkl in https://github.com/lyndonkl/claude/pull/9 * Add 3 new skills and update writer skill workflow pattern by @lyndonkl in https://github.com/lyndonkl/claude/pull/10 * Add skills #12-13: constraint-based-creativity and data-schema-knowle… by @lyndonkl in https://github.com/lyndonkl/claude/pull/11 * Add skills #14-16: decision-matrix, decomposition-reconstruction, deliberation-debate-red-teaming by @lyndonkl in https://github.com/lyndonkl/claude/pull/12 * Add skills #17-19: design-of-experiments, dialectical-mapping-steelmanning, discovery-interviews-surveys by @lyndonkl in https://github.com/lyndonkl/claude/pull/13 * Add chef-assistant skill and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/14 * Fix README: Remove links to gitignored scratchpad files by @lyndonkl in https://github.com/lyndonkl/claude/pull/15 * Add skills #14-22: 9 new production-ready skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/16 * Add skills #20-24 and workflow pattern updates by @lyndonkl in https://github.com/lyndonkl/claude/pull/17 * Add skill #25: expected-value by @lyndonkl in https://github.com/lyndonkl/claude/pull/18 * Add skills #26-28: facilitation-patterns, financial-unit-economics, focus-timeboxing-8020 by @lyndonkl in https://github.com/lyndonkl/claude/pull/19 * Add skills #29-30: heuristics-and-checklists, hypotheticals-counterfactuals by @lyndonkl in https://github.com/lyndonkl/claude/pull/20 * Add skills #31-33: information-architecture, kill-criteria-exit-ramps, layered-reasoning by @lyndonkl in https://github.com/lyndonkl/claude/pull/21 * Add Claude Code plugin support by @lyndonkl in https://github.com/lyndonkl/claude/pull/22 * Fix plugin marketplace source path by @lyndonkl in https://github.com/lyndonkl/claude/pull/23 * Add skill #34: mapping-visualization-scaffolds by @lyndonkl in https://github.com/lyndonkl/claude/pull/24 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/25 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/26 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/27 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/28 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/29 * Add skill #59: skill-extraction by @lyndonkl in https://github.com/lyndonkl/claude/pull/30 * Add skill-creator: Transform documents into actionable skills by @lyndonkl in https://github.com/lyndonkl/claude/pull/31 * Update skill count from 58 to 61 in README by @lyndonkl in https://github.com/lyndonkl/claude/pull/32 * Skill refinement by @lyndonkl in https://github.com/lyndonkl/claude/pull/33 * Add d3-visualization skill: comprehensive D3.js implementation guide by @lyndonkl in https://github.com/lyndonkl/claude/pull/34 * Add comprehensive Superforecasting Toolkit with 4 skills and orchestr… by @lyndonkl in https://github.com/lyndonkl/claude/pull/35 * Add "Run in Smithery" badge by @gurdasnijor in https://github.com/lyndonkl/claude/pull/36 * Add Scientific Writing Toolkit with 6 skills and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/37 * Improve skill invocation rules and update README by @lyndonkl in https://github.com/lyndonkl/claude/pull/38 * Add Geometric Deep Learning skill suite and orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/39 * Decompose writer skill into 4 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/40 * Add GraphRAG skill suite with 5 skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/41 * Decompose cognitive-design skill into 3 focused skills + orchestrating agent by @lyndonkl in https://github.com/lyndonkl/claude/pull/42 ## New Contributors * @lyndonkl made their first contribution in https://github.com/lyndonkl/claude/pull/1 * @gurdasnijor made their first contribution in https://github.com/lyndonkl/claude/pull/36 **Full Changelog**: https://github.com/lyndonkl/claude/commits/0.1

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 提供跨领域的第一价格密封投标拍卖最优折价计算,适用于梦幻体育、采购投标、预测市场等多个场景
  • 结合风险厌恶和预算约束,提供理论严谨且实用的投标策略
  • 包含详细的数学推导和多种分布假设调整,显著优于启发式方法
触发精准95/100

亮点

  • 触发词覆盖全面,包含领域术语(FAAB、豁免拍卖)、理论概念((N-1)/N、折价)和使用场景(盲投标、密封采购)
  • 边界清晰,能有效区分相关与不相关的查询
结构规范65/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md 引用了 resources/template.md、resources/methodology.md 和 resources/evaluators/rubric_auction_first_price_shading.json,但这些文件未包含在输入中

    改进建议:请确保所有被引用的资源文件随 Skill 一起提交,或移除对这些外部文件的依赖

亮点

  • 文档结构清晰,包含示例、工作流、常见模式和防护措施
  • 提供了详细的输入输出契约和快速参考表
执行可靠70/100

待提升项

  • 关键方法论文档缺失 原报告严重程度:重大

    虽然核心算法描述完整,但缺少对 (N-1)/N 推导、分布调整和风险厌恶调整的正式文档,影响用户验证和信任

    改进建议:补充 methodology.md 文件或在主文档中内嵌关键推导过程

亮点

  • 输入验证和边界处理完善(N 范围限制、预算封顶、价值上限)
  • 风险厌恶调整有明确的上界控制,防止过度投标
证据可验 (前四项均值)81/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。