Skip to content
Skillpedia
Analysis & spreadsheets81k · #1685

vector-cluster

What it does

This skill groups items in a collection by how closely they are related, using a graph-based method. It is for people organising large sets of code or notes who want to see the natural groups.

When to use it

  • ✓When you want to discover themes in a large set of notes or code.
  • ✓When you want to find outliers that do not fit any group.
  • ✓When you want to organise a big collection into clusters.

Skill link

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-cluster/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-cluster/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Group the modules in my project by how closely they are connected and show me the clusters.”

5 new skills a week. 1 minute to read.

How it works

The skill installs the pinned ruvector tool, runs the graph clustering command on the files you name and reviews the cluster assignments. It rates each cluster's cohesion and stores the result.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.3 is available:
    npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.3
    
  2. Run clustering — in ruvector@0.3.3 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.3 hooks graph-cluster <files...>
    npx -y ruvector@0.3.3 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

  • High cohesion (>0.85): tight, well-defined cluster
  • Medium cohesion (0.6-0.85): related but diverse content
  • Low cohesion (<0.6): loose grouping, try higher resolution
  • Outliers: novel or anomalous files worth investigating

Caveats

  • cluster --namespace ... --k N and cluster --density are not valid in ruvector@0.3.3 — those flags fall through to the distributed-cluster command, which only accepts --status, --join, --leave, --nodes, --leader, --info.
  • For namespaced k-means over arbitrary embeddings, run k-means in your own code against vectors stored in AgentDB.
FAQ

What does cohesion mean?

It is a score showing how tightly the items in a cluster belong together. The source gives ranges: above 0.85 is tight, and below 0.6 is loose.

What if the output has an error?

The source says to run the hooks init command first to set up the graph state.

Does it cluster any vectors I give it?

The skill says the working clustering path is the graph clustering command.

Details

Original description by the author

Cluster code by graph community detection via npx ruvector@0.3.3 hooks graph-cluster (spectral / Louvain)

repo: ruvnet/ruflo

Popularity

GitHub stars
81k
Ranking position
#1685
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills