centrality

centrality is a command for Claude Code from MattArtzAnthro/gephi-ai. It costs 10 tokens per session (1,246 once invoked), scanned A, original, Apache-2.0.

A Gephi analysis command that measures different kinds of importance in a network. Gephi is an application for exploring networks of connected items, called nodes.

In plain words
What is it for?
Use it to find highly connected hubs, bridges between groups, influential nodes, and nodes that rank highly across multiple measures.
Why use it?
It replaces a general impression of who matters most with several defined measurements.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to find highly connected hubs, bridges between groups, influential nodes, and nodes that rank highly across multiple measures.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MattArtzAnthro/gephi-ai
Claude Code
/plugin install gephi-network-analysis

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 centrality

README.md
[![agentmods](https://agentmods.dev/badge/commands/mattartzanthro/gephi-ai/centrality/github.svg)](https://agentmods.dev/commands/mattartzanthro/gephi-ai/centrality)
Your own site
<a href="https://agentmods.dev/commands/mattartzanthro/gephi-ai/centrality"><img src="https://agentmods.dev/badge/commands/mattartzanthro/gephi-ai/centrality/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for centrality

Your own site · 80×15
<a href="https://agentmods.dev/commands/mattartzanthro/gephi-ai/centrality"><img src="https://agentmods.dev/badge/commands/mattartzanthro/gephi-ai/centrality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00010 $0.01246
Opus 5.5 $0.00004 $0.00498
Sonnet 5.5 $0.00002 $0.00249
Haiku 4.5 $0.00001 $0.00125

Measured 2mo ago against content hash 4bc0b89f7b4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

centrality 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 2mo 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/centrality.md · 57 lines

How it starts

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

Centrality Analysis Workflow

Run comprehensive centrality analysis to identify the most important and influential nodes in the graph.

Read ${CLAUDE_PLUGIN_ROOT}/skills/gephi/references/statistics-guide.md before interpreting scores, and ${CLAUDE_PLUGIN_ROOT}/skills/gephi/references/layout-guide.md before the layout step.

Tell the user what you are doing at each step. Narrate briefly before each tool call.

Rules this command must keep

  • Session start. Start with gephi_health_check. Then check which workspace is open (gephi_list_workspaces) and whether a filter is active (filter_active in replies): a filter from an earlier conversation stays on, and exports and checks then see only what it shows.
  • Ranking. To rank nodes on a metric, call gephi_query_nodes with sort_by set to the metric, columns set to the few columns you need, and limit about 10: nodes are ordered before paging, so the first page is the top of the whole graph. Without columns, every attribute of every node comes back and a long listing can overflow.
  • No scale-free label. Never call a heavy-tailed degree distribution "scale-free" or a "power law": those fits are near-indistinguishable from log-normal in practice and smuggle in a universal-law claim (Jacomy 2020; Broido and Clauset 2019). Describe hub dominance as a property of this network.
  • Eigenvector caveat. Gephi's eigenvector centrality can rank nodes differently from a standard calculation. Never rank on it alone: compare it with PageRank, and report a node as an authority only when the two agree.

Steps

  1. Load the gephi skill first. Before any Gephi call, load the gephi-network-analysis:gephi skill. Its rules apply to every step below; this command repeats only the ones it is most likely to break.

  2. Session start: Call gephi_health_check. If it fails, tell the user to start Gephi and stop. Call gephi_list_workspaces and gephi_get_project_info for node and edge counts and graph type. If filter_active is true, say that the scores will describe only the visible nodes.

Read the full file on GitHub · 57 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. 2mo ago Changed 4bc0b89f7b4f
  2. 2mo ago Changed · +14 lines 4a7bec11840a
  3. 3mo ago First seen · 43 lines · 10 tokens per session scan A f04f5ef28535

Subscribe to this mod's changes

centrality is a command published in the GitHub repository MattArtzAnthro/gephi-ai (27 stars, last pushed today), licensed Apache-2.0. It adds 10 tokens to every session and 1,246 once invoked, about $0.0000 per session on Opus 5.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.

Related

centrality compared with commands from other repositories

centrality next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
centralityMattArtzAnthro/gephi-aiCommand27todayApache-2.0A10Claude Code
deps-auditwshobson/agentsCommand43kyesterdayMITA23Claude Code
READMEalirezarezvani/claude-skillsCommand31kyesterdayMITA0Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
dedupebjcoombs/ai-native-toolkitCommand372d agoApache-2.0A17Claude Code
bootmicrosoft/PromptKitCommand1171mo agoMITA14GitHub Copilot