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.…
\"Calculate network centrality metrics to identify important nodes in graphs. Use this skill when the user needs to find key influencers, critical infrastructure nodes, or central actors in a network — even if they say 'who is most important in this network', 'key nodes', or
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-net-centrality --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/algo-net-centralityContext preview
The summary Claude sees to decide when to auto-load this skill.
\"Calculate network centrality metrics to identify important nodes in graphs. Use this skill when the user needs to find key influencers, critical infrastructure nodes, or central actors in a network — even if they say 'who is most important in this network', 'key nodes', or
name: "\"algo-net-centrality\"" description: "\"Calculate network centrality metrics to identify important nodes in graphs. Use this skill when the user needs to find key influencers, critical infrastructure nodes, or central actors in a network — even if they say 'who is most important in this network', 'key nodes', or 'network influence measurement'.\"." allowed-tools: Read, Glob, Grep
Centrality measures quantify node importance in a network. Four classical metrics: degree (connections), betweenness (bridge role), closeness (proximity), eigenvector (connection quality). Each captures a different aspect of importance. Complexity ranges from O(V+E) for degree to O(V×E) for betweenness.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: Different Centrality Metrics Answer DIFFERENT Questions - Degree: Who has the most connections? (popularity) - Betweenness: Who bridges communities? (brokerage) - Closeness: Who can reach everyone fastest? (efficiency) - Eigenvector: Who is connected to important people? (prestige) Using the WRONG metric answers the WRONG question. Choose based on what "important" means in your context.
Build network graph from edge list or adjacency matrix. Determine: directed vs undirected, weighted vs unweighted, connected vs disconnected. **Gate:** Graph is well-formed, largest connected component identified.
1. **Degree centrality:** C_D(v) = deg(v) / (N-1). O(V+E). 2. **Betweenness centrality:** C_B(v) = Σ(σ_st(v) / σ_st) for all s,t pairs. Fraction of shortest paths through v. O(V×E). 3. **Closeness centrality:** C_C(v) = (N-1) / Σd(v,u). Inverse of average shortest path. O(V×(V+E)). 4. **Eigenvector centrality:** Score proportional to sum of neighbors' scores. Power iteration until convergence. O(k×E).
Check: centrality values normalized [0,1]. Top nodes by each metric may differ — this is expected and informative. Sanity check top-5 against domain knowledge. **Gate:** All metrics computed, top nodes make intuitive sense.
Return centrality scores with multi-metric comparison.
{
"centralities": [{"node": "Alice", "degree": 0.85, "betweenness": 0.42, "closeness": 0.71, "eigenvector": 0.90}],
"metadata": {"nodes": 500, "edges": 2000, "directed": false, "connected_components": 1}
}**Input:** 5-node undirected graph (bridge topology): edges = {(A,B), (A,C), (B,C), (C,D), (D,E)}
A --- B
\ /
C
|
D --- E**Expected centralities (normalized by N-1 = 4):**
| Node | Degree | Betweenness | Closeness | Eigenvector | |------|--------|-------------|-----------|-------------| | A | 0.50 (2/4) | 0.000 | 0.571 (4/7) | 0.452 | | B | 0.50 (2/4) | 0.000 | 0.571 (4/7) | 0.452 | | **C** | **0.75 (3/4)** | **0.667** | **0.800 (4/5)** | **0.628** | | D | 0.50 (2/4) | 0.500 | 0.667 (4/6) | 0.386 | | E | 0.25 (1/4) | 0.000 | 0.500 (4/8) | 0.201 |
Verify: **C is the bridge** — highest in ALL four metrics. E is the periphery — lowest in all metrics. A and B are symmetric (identical scores). D has nonzero betweenness (bridges C to E) but lower degree than C.
| Input | Expected | Why | |-------|----------|-----| | Star graph | Center has max all centralities | Hub dominates in all metrics | | Disconnected graph | Closeness undefined for disconnected pairs | Use harmonic centrality instead | | Directed graph | In-degree ≠ out-degree centrality | Popularity (in) vs activity (out) |
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…