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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
- Ensure ruvector@0.3.3 is available:
npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.3 - Run clustering — in ruvector@0.3.3 the only working clustering is via
hooks graph-cluster(spectral/Louvain over a code graph). The top-levelclustercommand 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...> - Review output — JSON with cluster assignments, community labels, and edges. If you see
"graph.nodes is not iterable", runhooks initfirst to seed the graph state. - 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 Nandcluster --densityare 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
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.