agentleFS
nirholasnirholas/XActions/skills/graph-analysis/SKILL.md

graph-analysis

Skill648 starsChanged 9 months agoApache-2.0View on GitHub

Analyze follower/following network graphs — find clusters, influencers, bridges, and audience segments using graph algorithms. Use when users want to understand the network structure of their X audience or competitor's audience.

The file

Files
SKILL.md

Graph Analysis

API-powered network graph analysis for X/Twitter follower relationships.

Entry Points

GoalRouteMethod
Build a network graphPOST /api/graph/buildREST API
Get graph dataGET /api/graph/:idREST API
Run graph algorithmsPOST /api/graph/:id/analyzeREST API
Export graphGET /api/graph/:id/exportREST API
Visualize graphGET /api/graph/:id/visualizeREST API

API Usage

Build a network graph

POST /api/graph/build
Authorization: Bearer <token>
Content-Type: application/json

{
  "username": "nichxbt",
  "depth": 1,          // 1 = direct followers, 2 = followers of followers
  "maxNodes": 500      // Limit graph size
}

Run graph algorithms

POST /api/graph/:id/analyze
Authorization: Bearer <token>
Content-Type: application/json

{
  "algorithm": "pagerank"  // "pagerank" | "betweenness" | "community" | "influencers"
}

Available Algorithms

AlgorithmDescription
pagerankRank nodes by influence (like Google's PageRank)
betweennessFind bridge accounts connecting different clusters
communityDetect communities/clusters within the network
influencersIdentify top influencers by degree centrality

Use Cases

GoalApproach
Find bridge accounts for cross-audience reachalgorithm: "betweenness"
Identify communities in your follower basealgorithm: "community"
Find most influential followersalgorithm: "influencers"
Rank followers by network influencealgorithm: "pagerank"

Notes

  • Graph building is async and may take several minutes for large networks
  • depth: 2 creates much larger graphs — use maxNodes to limit
  • Export formats: JSON (node/edge list), GraphML, CSV
  • Visualization returns an interactive D3.js-powered HTML page

Related Skills

  • analytics-insights — Analyze your own engagement metrics
  • audience-demographics — Understand follower demographics
  • competitor-intelligence — Analyze competitor audiences
  • crm-management — Manage individual relationships within the graph

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.