Skip to content
ruvnet avatar

Vector Cluster

Cluster code files into communities using graph-based spectral or Louvain detection through ruvector.

CCM score
65 of 100
skills.sh installs
729
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Runs hooks graph-cluster and hooks graph-mincut over a list of source files to produce cluster assignments and edges
  • Returns JSON with community labels and cohesion bands, with outliers flagged for review
  • Notes that hooks init must run first when the output reports "graph.nodes is not iterable"
  • Designed for finding themes in code, with results stored under a vector-clusters memory namespace

Install

$ npx -y skills add ruvnet/ruflo --skill vector-cluster -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Vector Cluster

Cluster vectors in a namespace by semantic similarity using ruvector.

When to use

Use this skill when you have a collection of embeddings and want to discover natural groupings. Clustering reveals themes, identifies outliers, and helps organize large vector collections.

Steps

  1. Ensure ruvector@0.3.13 is available:
    npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.13
    
  2. Run clustering — in ruvector@0.3.13 the only working clustering is via hooks graph-cluster (spectral/Louvain over a code graph). The top-level cluster command is reserved for distributed cluster ops and is currently "Coming Soon" upstream.
    npx -y ruvector@0.3.13 hooks graph-cluster <files...>
    npx -y ruvector@0.3.13 hooks graph-mincut <files...>
    
  3. Review output — JSON with cluster assignments, community labels, and edges. If you see "graph.nodes is not iterable", run hooks init first to seed the graph state.
  4. Store results: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "clusters-PROJECT-TIMESTAMP", value: "CLUSTER_ASSIGNMENTS", namespace: "vector-clusters" })

Interpreting results

Details

Repository
github.com/ruvnet/ruflo
Categories
Code Review & Quality, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the vector-cluster skill do?

vector-cluster groups code files by graph community detection, using spectral and Louvain methods through npx ruvector@0.3.13 hooks graph-cluster. It reveals natural groupings, flags outlier files worth investigating, and can store the cluster assignments in memory under a vector-clusters namespace.

How do I install the vector-cluster skill?

Run npx -y skills add ruvnet/ruflo --skill vector-cluster -y in your project. Once installed, vector-cluster lets your agent run graph clustering over your code and review cohesion scores for each cluster.

Where does vector-cluster sit among code review skills?

vector-cluster falls in the Code Review & Quality category, next to improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Unlike those, vector-cluster focuses on graph community detection over code files rather than review or architecture advice.

What does vector-cluster need before it runs?

vector-cluster needs Bash and Read tools plus the ruflo-core memory tools for storing results. It installs ruvector@0.3.13 through npm if it is missing, and if graph-cluster fails with a graph.nodes error, you must run hooks init first to seed the graph state.

More from ruvnet/ruflo

All 236

Similar to Vector Cluster

More Code Review & Quality