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
Own this skill? Claim it
What it does
- Runs
hooks graph-clusterandhooks graph-mincutover 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 initmust run first when the output reports "graph.nodes is not iterable" - Designed for finding themes in code, with results stored under a
vector-clustersmemory namespace
Install
$ npx -y skills add ruvnet/ruflo --skill vector-cluster -yInstalls 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
- Ensure ruvector@0.3.13 is available:
npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.13 - Run clustering — in ruvector@0.3.13 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.13 hooks graph-cluster <files...> npx -y ruvector@0.3.13 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
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- Kg Traverse728
- Cost Compact Context727
- Market Ingest726
- Vector Hyperbolic725
- Browser Replay721
- Browser Form Fill719
- Browser Record719
- Dossier Collect702
- Browser Extract698
- Browser Screenshot Diff697
- Cost Budget Check693
- Browser Auth Flow690
- Adr Verify689
- Cost Track685
- Cost Booster Route684
- Cost Federation684
- Cost Summary684
- Intelligence Transfer684
- Vector Setup684
- Cost Trend683
- Cost Conversation682
- Cost Export681
- Cost Benchmark679
- Cost Booster Edit679
Similar to Vector Cluster
More Code Review & Qualityagent-swarm-prSkillruvnet/ruflo1.1K installsSwarm-based pull request management that spawns agents to review, validate, and integrate PRs through GitHub.
hive-mindSkillruvnet/ruflo1.1K installsQueen-led swarm coordination with five consensus strategies for fault-tolerant multi-agent work.
Claude FlowMCP serverruvnet82.6K starsAI orchestration server for Claude Code: swarm, agent, memory, and config tools over MCP.
sourcegraphPluginanthropics/claude-plugins-official48.1K starsCode search and understanding across codebases. Search, read, and trace references across repositories; analyze refactor impact; investigate incidents via commi
Network AnalysisSkillaj-geddes/useful-ai-prompts467 installsNetwork analysis toolkit that measures centrality, detects communities, and visualizes relationships in social and organizational graphs.