account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
\"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
Claude Code
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg --agent claude-code
Codex
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a codex -y
Cursor
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a cursor -y
Gemini CLI
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a gemini-cli -y
GitHub Copilot
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a github-copilot -y
OpenCode
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a opencode -y
Windsurf
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-ad-vcg -a windsurf -y
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…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.