account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM.…
\"Implement VCG mechanism for incentive-compatible ad slot allocation with truthful bidding. Use this skill when the user needs to design a truthful auction mechanism, compute externality-based payments, or understand why platforms may prefer GSP over VCG — even if they say
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/algo-ad-vcgContext preview
The summary Claude sees to decide when to auto-load this skill.
\"Implement VCG mechanism for incentive-compatible ad slot allocation with truthful bidding. Use this skill when the user needs to design a truthful auction mechanism, compute externality-based payments, or understand why platforms may prefer GSP over VCG — even if they say
name: "\"algo-ad-vcg\"" description: "\"Implement VCG mechanism for incentive-compatible ad slot allocation with truthful bidding. Use this skill when the user needs to design a truthful auction mechanism, compute externality-based payments, or understand why platforms may prefer GSP over VCG — even if they say 'truthful auction design', 'VCG payments', or 'incentive-compatible mechanism'.\"." allowed-tools: Read, Glob, Grep
VCG allocates slots to maximize total social welfare and charges each winner the externality they impose on others. Truthful bidding is a dominant strategy. Runs in O(N log N + K × N) where N=bidders, K=slots.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: VCG Guarantees Truthful Bidding BUT May Not Maximize Revenue VCG payments are based on externality (harm to others), not competition. This makes VCG payments often LOWER than GSP payments. Platforms choose GSP because it typically generates higher revenue despite strategic bidding. Truthfulness has a revenue cost.
Collect true valuations per click for each advertiser and CTR for each slot position. Valuations must be non-negative. **Gate:** All valuations non-negative, slot CTRs decreasing by position.
1. Compute welfare-maximizing allocation: assign advertisers to slots to maximize Σ(value_i × CTR_slot_i) 2. For each winner i in slot s: compute total welfare WITHOUT advertiser i (re-optimize remaining bidders) 3. VCG payment_i = (welfare of others without i) - (welfare of others with i present) 4. This equals: Σ over lower positions j of (value_{j+1} × (CTR_j - CTR_{j+1}))
Check: all payments ≤ valuations (individual rationality), truthful bidding is dominant strategy, allocation maximizes welfare. **Gate:** IR satisfied, welfare is optimal.
Return allocation with VCG payments and welfare metrics.
{
"allocation": [{"advertiser": "A", "slot": 1, "vcg_payment_per_click": 1.80, "total_welfare_contribution": 500}],
"metadata": {"total_welfare": 1500, "total_revenue": 420, "mechanism": "vcg"}
}**Input:** 3 bidders values [10, 8, 2], 2 slots CTRs [0.5, 0.3] **Expected:** Allocation: Bidder1→Slot1, Bidder2→Slot2. VCG payments: Bidder1 = 8×(0.5-0.3)+2×0.3 = 2.20, Bidder2 = 2×0.3 = 0.60.
| Input | Expected | Why | |-------|----------|-----| | All same valuation | All pay 0 | No externality imposed — no marginal harm | | One bidder, one slot | Pays 0 | No other bidder harmed | | Bidders < slots | All win, all pay 0 | No competition = no externality |
Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM.…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when shipping agent features,…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining tools for agents, SDKs, or…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the user needs to choose a bidding…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to distribute budget across…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict click probability, build an ad…