analyze-network

analyze-network is a command for Claude Code from MattArtzAnthro/gephi-ai. It costs 8 tokens per session (869 once invoked), scanned A, original, Apache-2.0.

A command for examining a network graph: a set of things called nodes and the relationships between them. It reports properties such as connected groups, isolated nodes, link density, and which nodes are most central.

In plain words
What is it for?
Use it to study social, organisational, citation, infrastructure, or other relationship data in Gephi, a desktop tool for visualising and analysing networks.
Why use it?
It turns a graph into a structured report instead of requiring you to inspect every relationship manually. It also asks what the nodes and relationships represent so the results can be interpreted in context.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the gephi-network-analysis plugin — 1 skill, 11 commands, 4 agents, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mattartzanthro/gephi-ai/analyze-network
Clone the repo
git clone --depth 1 https://github.com/MattArtzAnthro/gephi-ai

Made for: Claude Code.

Or install gephi-network-analysis, the plugin that ships this one along with the rest of its 1 skill, 11 commands, 4 agents, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-network

README.md
[![agentmods](https://agentmods.dev/badge/commands/mattartzanthro/gephi-ai/analyze-network.svg)](https://agentmods.dev/commands/mattartzanthro/gephi-ai/analyze-network)
Your own site
<a href="https://agentmods.dev/commands/mattartzanthro/gephi-ai/analyze-network"><img src="https://agentmods.dev/badge/commands/mattartzanthro/gephi-ai/analyze-network.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 869 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.00869
Opus 5 $0.00004 $0.00434
Sonnet 5 $0.00002 $0.00174
Haiku 4.5 $0.00001 $0.00087

Measured 6d ago against content hash 57765c9d4328, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

analyze-network scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-code/commands/analyze-network.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comprehensive Network Analysis

Run a full structural analysis of the current graph and present a detailed report of its properties.

Tell the user what you're doing at each step — narrate briefly before each tool call (e.g., "Computing modularity...", "Running centrality analysis...").

Steps

  1. Health check: Call gephi_health_check. If it fails, tell the user to start Gephi and stop.

  2. The intake question (skip if already answered in this conversation): ask in one sentence what the nodes and ties are and what they want to learn. Use their vocabulary in the whole report, and treat their expectations as hypotheses the analysis will confirm or contradict.

  3. Profile first: Call gephi_profile_graph (one call — size, density, degree distribution, components, isolates, weights, modularity, clustering, flags). Open the report with a plain-language first reading that combines their description with these numbers, and let the profile decide which deeper analyses are worth running rather than running everything.

  4. Degree distribution: Call gephi_compute_degree. Query nodes to understand the degree distribution — report min, max, average, and whether it is heavy-tailed (a few high-degree hubs) or even. Do NOT label it "scale-free" or "power-law": those fits are near-indistinguishable from log-normal in practice and smuggle in a universal-law claim (Jacomy 2020). Describe hub dominance as a property of this network, not a law.

  5. Community structure: Call gephi_compute_modularity with resolution 1.0. Report the modularity score and number of communities.

  6. Path analysis: Call gephi_compute_avg_path_length to get average path length, diameter, and radius.

  7. Clustering: Call gephi_compute_clustering_coefficient to measure local cohesion.

  8. Centrality: Call gephi_compute_betweenness and gephi_compute_pagerank.

  9. Report: Present a structured summary:

    Network Overview

    • Nodes, edges, density, average degree, graph type

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 78 lines · 8 tokens per session scan A 57765c9d4328

Subscribe to this mod's changes

analyze-network is a command published in the GitHub repository MattArtzAnthro/gephi-ai (21 stars, last pushed 4d ago), licensed Apache-2.0. It adds 8 tokens to every session and 869 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.