account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect…
\"Implement Louvain community detection to discover densely connected groups in networks. Use this skill when the user needs to find communities or clusters in social/organizational networks, segment customers by interaction patterns, or analyze network modular structure — even
Claude Code
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-net-community --agent claude-code
Codex
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a codex -y
Cursor
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a cursor -y
Gemini CLI
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a gemini-cli -y
GitHub Copilot
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a github-copilot -y
OpenCode
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a opencode -y
Windsurf
$ npx skills add charlieviettq/awesome-agent-skill --skill algo-net-community -a windsurf -y
name: "\"algo-net-community\"" description: "\"Implement Louvain community detection to discover densely connected groups in networks. Use this skill when the user needs to find communities or clusters in social/organizational networks, segment customers by interaction patterns, or analyze network modular structure — even if they say 'find groups in this network', 'community detection', or 'network clustering'.\"." allowed-tools: Read, Glob, Grep
Louvain algorithm detects communities by optimizing modularity — the fraction of edges within communities minus expected fraction if edges were random. A greedy, hierarchical algorithm that runs in O(n log n) for sparse graphs. Produces a hierarchy of communities at multiple resolutions.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: Modularity Has a RESOLUTION LIMIT Louvain optimizes modularity, which has a known resolution limit (Fortunato & Barthélemy, 2007): it cannot detect communities smaller than √(2E) where E = total edges. In large networks, small but real communities may be merged. Use multi-resolution methods or Leiden algorithm (improved Louvain) for better results.
Build undirected weighted graph from interaction data. Edge weights represent interaction strength (frequency, duration, volume). **Gate:** Graph loaded, no isolated nodes (or decide how to handle them).
**Phase 1 — Local moves:** 1. Assign each node to its own community 2. For each node, compute modularity gain of moving to each neighbor's community 3. Move node to community with maximum positive gain 4. Repeat until no beneficial moves remain
**Phase 2 — Aggregation:** 5. Build new graph where nodes = communities, edges = sum of inter-community edges 6. Repeat Phase 1 on the aggregated graph 7. Continue until modularity stops improving
Check: modularity Q > 0 (non-trivial partitioning), community sizes are reasonable (not one giant + many singletons), manual inspection of sample communities. **Gate:** Modularity positive, community sizes follow power-law-like distribution.
Return community assignments with modularity score.
{
"communities": [{"id": 0, "size": 45, "top_members": ["Alice", "Bob"], "internal_density": 0.35}],
"summary": {"num_communities": 12, "modularity": 0.65, "largest": 120, "smallest": 5},
"metadata": {"algorithm": "louvain", "nodes": 500, "edges": 2000}
}**Input:** Email network of 200 employees, weighted by email frequency **Expected:** Communities roughly corresponding to departments/teams, modularity ~0.5-0.7.
| Input | Expected | Why | |-------|----------|-----| | Complete graph | One community or random split | No modular structure | | Disconnected components | Each component = community | Natural separation | | Weighted vs unweighted | Different communities | Weights change modularity calculation |
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…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.