📈
AI EngineeringPython

Generalized Second Price Auction

by asgard-ai-platform

Generalized Second Price Auction is an AI Engineering skill for Claude Code, published by asgard-ai-platform in skills.

228 stars28 forkson asgard-ai-platform/skillsAdded 2026/09/03Repository updated 2026/06/06
ai-agentanthropicclaudeclaude-agent-skillsclaude-codecoding-agentknowledge-basemcpmethodologyopen-sourceprompt-engineeringskillstaiwan
Install in seconds
Install Generalized Second Price Auction
Copy Generalized Second Price Auction into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/asgard-ai-platform/skills/tree/main/algo-ad-gsp ~/.claude/skills/algo-ad-gsp

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/asgard-ai-platform/skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
algo-ad-gsp/SKILL.md in asgard-ai-platform/skills
Installs to
~/.claude/skills/algo-ad-gsp
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering2793 skills

What Generalized Second Price Auction does

Generalized Second Price Auction computes ad slot assignments and cost-per-click from bids and quality scores. Use it to analyze search ad auctions, ad rank, and bidding dynamics.

Generalized Second Price Auction is cataloged under AI Engineering on DirSkills. Generalized Second Price Auction comes from a repository tagged ai-agent, anthropic, claude, claude-agent-skills and claude-code.

Documentation

README

Generalized Second Price Auction

Overview

GSP allocates K ad slots to N bidders, assigning the highest bidder the top slot, second-highest the second slot, etc. Each winner pays the bid of the advertiser ONE POSITION BELOW them (per-slot second price). Used by Google Ads and Bing Ads. Runs in O(N log N) for sorting bids.

When to Use

Trigger conditions:

  • Understanding search engine ad auction mechanics
  • Computing ad position and cost-per-click from bid and quality data
  • Analyzing bidding strategy in sponsored search

When NOT to use:

  • When you need incentive-compatible truthful bidding (use VCG mechanism)
  • When analyzing display/programmatic ad auctions (typically use first-price)

Algorithm

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Generalized Second Price Auction

  • What else does asgard-ai-platform publish alongside Generalized Second Price Auction?

    Generalized Second Price Auction is one of 25 skills that DirSkills catalogs from asgard-ai-platform/skills, the repository it ships in. Its siblings there include ARIMA Time Series Model, Ad Bidding Strategies and Ad Budget Allocation. Each one is a separate skill with its own page in this directory, installs the same way Generalized Second Price Auction does, and is maintained by asgard-ai-platform in that same repository. The rest of the collection is listed on the asgard-ai-platform/skills page.

  • How does Generalized Second Price Auction compare to other AI Engineering skills?

    Generalized Second Price Auction ranks #2503 by stars among the 2793 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Generalized Second Price Auction against them. Open each page to compare what they document and how they install.

More from asgard-ai-platform/skills

Generalized Second Price Auction is one of 25 skills cataloged on DirSkills from asgard-ai-platform/skills.

See all 25 skills
📈
7h ago

ARIMA Time Series Model

ARIMA Time Series Model builds ARIMA or SARIMA forecasts from univariate historical data. Use it to test stationarity, choose parameters, and produce predictions with confidence intervals.
Data
22828
📈
7h ago

Ad Bidding Strategies

Ad Bidding Strategies helps choose and tune manual CPC, Target CPA, Target ROAS, and other bidding approaches. Use it when selecting a strategy, setting automated bids, or checking whether conversion data is sufficient.
AI Engineering
22828
📈
7h ago

Ad Budget Allocation

Ad Budget Allocation optimizes spend across multiple campaigns using marginal returns analysis. Use it to split a fixed ad budget, rebalance after performance changes, or maximize ROAS under budget constraints.
Data
22828
⛓️
7h ago

Blockchain Fundamentals

Blockchain Fundamentals explains distributed ledger architecture, consensus, and block structure, and helps decide when blockchain is appropriate. It is used when evaluating a blockchain use case or choosing a permissioned or public design.
AI Engineering
22828
🔎
7h ago

Bm25 Ranking

Bm25 Ranking implements the BM25 text ranking function for e-commerce product search. Use it to score and rank listings by keyword relevance, especially when replacing basic TF-IDF or tuning search results.
SEO
22828
📈
7h ago

CTR Prediction Model

CTR Prediction Model estimates the probability that an ad will be clicked from user, query, ad, and position features. Use it for ad ranking, bid optimization, or evaluating creative performance.
AI Engineering
22828