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.…
\"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
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-ad-ctr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/algo-ad-ctrContext preview
The summary Claude sees to decide when to auto-load this skill.
\"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
name: "\"algo-ad-ctr\"" description: "\"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'.\"." allowed-tools: Read, Glob, Grep
CTR prediction estimates the probability that a user clicks on an ad given context (user, query, ad, position). Forms the core of ad ranking: AdRank = Bid × pCTR. Typically uses logistic regression or gradient-boosted trees. Training on billions of impressions.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: A CTR Model Must Be CALIBRATED Predicting relative ranking is insufficient. The predicted probability must MATCH actual click frequency (e.g., predicted 5% → 5 clicks per 100 impressions). Without calibration, bid optimization breaks: Expected Value = Bid × pCTR × pConversion If pCTR is off by 2x, bids are wrong by 2x.
Collect impression logs with: user features, ad features, query features, position, click label (0/1). Handle class imbalance (CTR typically 1-5%). **Gate:** Sufficient volume (100K+ impressions), click labels verified, no data leakage from position.
1. Feature engineering: user demographics, ad category, query-ad match, historical CTR, time/device features 2. Train model: logistic regression (interpretable) or GBDT (higher accuracy) 3. Calibrate predictions: Platt scaling or isotonic regression on holdout set 4. Evaluate: log-loss (calibration) + AUC (ranking quality)
Check calibration: bucket predictions into deciles, compare predicted vs actual CTR per bucket. Plot reliability diagram. **Gate:** Calibration curve close to diagonal, AUC > 0.70.
Return predicted CTR with confidence interval and top contributing features.
{
"prediction": {"ctr": 0.035, "confidence_interval": [0.028, 0.042]},
"top_features": [{"feature": "query_ad_match", "importance": 0.32}],
"metadata": {"model": "gbdt", "auc": 0.78, "log_loss": 0.21, "calibration_error": 0.008}
}**Input:** Trained logistic regression with 3 features and these coefficients:
intercept: -3.0 position_1: 0.8 query_ad_match: 1.5 user_is_mobile: 0.3
Features for current request: position_1=1, query_ad_match=1, user_is_mobile=1
**Expected:** logit = -3.0 + 0.8 + 1.5 + 0.3 = -0.4 pCTR = sigmoid(-0.4) = 1/(1 + e^0.4) ≈ 0.401 → **40.1%**
Verify: for features all 0 (baseline), pCTR = sigmoid(-3.0) ≈ 0.047 (4.7%). Calibration is checked by bucketing predictions and comparing to actual CTR in each bucket.
| Input | Expected | Why | |-------|----------|-----| | New ad, no history | Use ad category average | Cold start for features | | Position 1 vs position 4 | Different CTR, same relevance | Position bias inflates top-slot CTR | | Very rare query | Low confidence | Insufficient training data for that query |
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…
\"Implement Generalized Second Price auction for ad slot allocation and pricing. Use this skill when the user needs to understand search ad auctions, compute…