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.…
\"Solve the influence maximization problem to select optimal seed nodes for maximum information spread. Use this skill when the user needs to choose seed users for viral campaigns, maximize network reach under a budget constraint, or compare seeding strategies — even if they say
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-net-influence --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/algo-net-influenceContext preview
The summary Claude sees to decide when to auto-load this skill.
\"Solve the influence maximization problem to select optimal seed nodes for maximum information spread. Use this skill when the user needs to choose seed users for viral campaigns, maximize network reach under a budget constraint, or compare seeding strategies — even if they say
name: "\"algo-net-influence\"" description: "\"Solve the influence maximization problem to select optimal seed nodes for maximum information spread. Use this skill when the user needs to choose seed users for viral campaigns, maximize network reach under a budget constraint, or compare seeding strategies — even if they say 'who should we seed first', 'maximize viral reach', or 'optimal influencer selection'.\"." allowed-tools: Read, Glob, Grep
Influence maximization selects k seed nodes in a network to maximize expected spread under a diffusion model (Independent Cascade or Linear Threshold). NP-hard, but the greedy algorithm achieves (1-1/e) ≈ 63% approximation guarantee due to submodularity. Practical for networks up to millions of nodes with CELF optimization.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: Greedy With Lazy Evaluation (CELF) Is the Practical Standard The naive greedy algorithm requires O(k × n × R) simulations where R = Monte Carlo runs (10,000+). CELF exploits submodularity to skip unnecessary evaluations, achieving 700x speedup. Always use CELF over naive greedy. Simple heuristics (top-k by degree) are fast but can perform 50%+ worse than greedy.
Build network graph. Choose diffusion model: Independent Cascade (probability per edge) or Linear Threshold (threshold per node). Set k (number of seeds) and propagation probabilities. **Gate:** Graph loaded, diffusion model selected, k defined.
**Greedy with CELF:** 1. Initialize: seed set S = ∅ 2. For each candidate node, estimate marginal gain: σ(S∪{v}) - σ(S) via Monte Carlo simulation (R=10,000 runs) 3. Select node with highest marginal gain, add to S 4. CELF optimization: reuse previous marginal gains, only re-evaluate when a node's upper bound exceeds current best 5. Repeat until |S| = k
Compare greedy result against baselines: random seeds, top-k degree, top-k PageRank. Greedy should significantly outperform. **Gate:** Greedy spread > degree heuristic spread, difference is meaningful.
Return seed set with expected spread and comparison.
{
"seeds": [{"node": "user_42", "marginal_gain": 150, "selection_order": 1}],
"expected_spread": 2500,
"baselines": {"random": 800, "top_degree": 1900, "greedy": 2500},
"metadata": {"k": 10, "model": "independent_cascade", "mc_simulations": 10000, "nodes": 50000}
}**Input:** Social network 10K nodes, k=5 seeds, IC model with p=0.1 per edge **Expected:** Greedy selects diverse, well-positioned seeds (not all high-degree), expected spread ~500-1000.
| Input | Expected | Why | |-------|----------|-----| | k=1 | Node with highest individual spread | Single seed, no overlap consideration | | k > number of communities | One seed per community optimal | Diversity beats concentration | | Very sparse graph (low p) | Small spread regardless of seeds | Network can't propagate with low probability |
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…