Algo Ad Gsp
Implement Generalized Second Price auction for ad slot allocation and pricing. Use this skill when the user needs to understand search ad auctions, compute ad positions and costs-per-click, or analyze bidding dynamics — even if they say 'how does Google Ads auction work', 'ad rank calculation', or 'second price auction for ads'.
Install
npx skills add asgard-ai-platform/skills --skill algo-ad-gspgit clone --depth 1 https://github.com/asgard-ai-platform/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/algo-ad-gsp ~/.claude/skills/algo-ad-gspPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 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 ``` IRON LAW: GSP Is NOT Incentive-Compatible Unlike Vickrey (single-item second-price) auctions, truthful bidding is NOT a dominant strategy in GSP. Bidders may strategically shade bids below their true value. The equilibrium depends on competitor bids. Ad Rank = Bid × Quality Score (Google's variant adds format/extensions). ``` ### Phase 1: Input Validation Collect: bids, quality scores (or ad rank scores) for all competing advertisers. Define available slot positions and their click-through rate multipliers. **Gate:** All bids positive, quality scores in valid range. ### Phase 2: Core Algorithm 1. Compute Ad Rank for each advertiser: AdRank_i = Bid_i × QualityScore_i 2. Sort advertisers by Ad Rank descending 3. Assign top-K to slots 1 through K
Details
- Skill name
algo-ad-gsp- Repository
- asgard-ai-platform/skills
- Path
algo-ad-gsp/SKILL.md- License
- MIT
- Repo updated
- 6 June 2026
FAQ
What does the Algo Ad Gsp skill do?
Implement Generalized Second Price auction for ad slot allocation and pricing. Use this skill when the user needs to understand search ad auctions, compute ad positions and costs-per-click, or analyze bidding dynamics — even if they say 'how does Google Ads auction work', 'ad rank calculation', or 'second price auction for ads'.
How do I install the Algo Ad Gsp skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add asgard-ai-platform/skills --skill algo-ad-gsp. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Algo Ad Gsp popular?
It lives in asgard-ai-platform/skills, which has 248 GitHub stars and 30 forks.
Related skills
Algo Ad Bidding
248asgard-ai-platform/skills
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 strategy, set up automated bidding, or optimize bid parameters — even if they say 'what bidding strategy should I use', 'target CPA setup', or 'smart bidding configuration'.
Algo Ad Budget
248asgard-ai-platform/skills
Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to distribute budget across multiple campaigns, optimize spend pacing, or maximize overall ROAS under budget constraints — even if they say 'how to split my ad budget', 'campaign budget optimization', or 'diminishing returns on ad spend'.
Algo Ad Ctr
248asgard-ai-platform/skills
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 ranking model, or evaluate ad creative performance — even if they say 'predict click rate', 'ad relevance scoring', or 'which ad will get more clicks'.
Algo Ad Vcg
248asgard-ai-platform/skills
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'.
Algo Blockchain Smart Contract
248asgard-ai-platform/skills
Design and implement smart contracts as self-executing programmatic agreements on blockchain. Use this skill when the user needs to build automated on-chain logic, evaluate smart contract security, or design tokenized business rules — even if they say 'smart contract development', 'automated agreement', or 'on-chain logic'.
Algo Ecom Bm25
248asgard-ai-platform/skills
Implement BM25 ranking function for e-commerce product search relevance scoring. Use this skill when the user needs to build a text-based product search engine, improve search result relevance, or replace basic TF-IDF with a more robust ranking function — even if they say 'product search ranking', 'search relevance', or 'BM25 implementation'.
Browse the most popular Claude skills, all marketing, sales & business skills, or write your own with the skills generator.